joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50389d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5038bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0050283a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5038e0
test byte [esp + 8], 2
je 0x5038e0
call fcn.005028ad
mov dword [eax], 0xd
call fcn.005028b6
mov dword [eax], 5
jmp 0x5038b9
xor eax, eax
ret

Function at 0x520a50
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x520a88
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0051eac8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0051eaa0
jmp 0x520a94
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x52224c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x52228e
call fcn.0052856e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x52228e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x522285
xor eax, eax
jmp 0x522296
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0052229c
pop edi
pop esi
pop ebx
ret 4

Function at 0x528a9e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x528acc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x528aea
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00528a04
jmp 0x528aea
mov eax, dword [esi + 0x14]
test eax, eax
je 0x528aea
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00528a04
test edi, edi
mov eax, edi
jne 0x528ad4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x405055
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x4050e6
lea eax, [ebp - 0x104]
push eax
call fcn.00405236
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x4051af
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4051ef
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4051ef
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x405194
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4051ef
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4051e4
push 0x3e8
call eax
test eax, eax
je 0x4051e4
call 0x4051d4
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x43b642
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
push 0xcfa26092
mov ecx, dword [esp]
add esp, 4
add ecx, esi
mov ecx, 0x32c685e2
call fcn.0043b681
add ecx, esi
sub esi, 1
sub ecx, esi
xor dword [ebx], edx
inc ecx
inc ebx
sub esi, 0xa155c7c6
cmp ebx, edi
jne fcn.0043b642
and ecx, esi
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4016a8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor ebx, ebx
cmp byte [ebp + 8], 0
je 0x4016f8
lea eax, [ebp - 8]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x401760
lea eax, [ebp - 8]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCreateKeyW
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x401760
push esi
call sub.kernel32.dll_lstrlenW
inc eax
add eax, eax
call fcn.00401448
mov dword [ebp - 0xc], eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_lstrcpyW
lea eax, [ebp - 8]
push eax
push 2
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x401758
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
push eax
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0xc]
call fcn.00401438
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40176c
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor ebx, ebx
cmp byte [ebp + 8], 0
je 0x4017b7
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40180b
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegDeleteKeyW
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x40180b
push esi
call sub.kernel32.dll_lstrlenW
inc eax
add eax, eax
call fcn.00401448
mov dword [ebp - 0xc], eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_lstrcpyW
lea eax, [ebp - 8]
push eax
push 2
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x401803
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0xc]
call fcn.00401438
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401854
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, edx
mov dword [esp], eax
xor ebx, ebx
mov eax, dword [esp]
call fcn.00401818
mov esi, eax
mov eax, dword [esp]
push eax
call sub.kernel32.dll_lstrlenW
dec eax
jne 0x40187e
xor eax, eax
mov dword [esp], eax
jmp 0x401882
add dword [esp], 2
lea eax, [esp + 4]
push eax
push 8
push 0
mov eax, dword [esp + 0xc]
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4018ac
push 1
xor ecx, ecx
mov dl, 0x4c
mov eax, edi
call fcn.004031c0
jmp 0x4019ad
lea eax, [esp + 0xc]
mov edx, 0x1000
call fcn.004014d0
cmp dword [esp + 0xc], 0
je 0x4019ad
push 1
xor ecx, ecx
mov dl, 0x45
mov eax, edi
call fcn.004031c0
mov dword [esp + 0x10], 0x1fe
lea eax, [esp + 8]
mov edx, dword [esp + 0x10]
call fcn.004014d0
xor esi, esi
jmp 0x401949
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_lstrcatW
push 0x4019b4
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_lstrcatW
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_lstrlenW
mov ebx, eax
cmp ebx, 0x708
jle 0x401940
mov eax, ebx
add eax, eax
inc eax
push eax
mov ecx, dword [esp + 0x10]
mov dl, 0x46
mov eax, edi
call fcn.004031c0
xor ebx, ebx
mov edx, 0x1000
mov eax, dword [esp + 0xc]
call fcn.00401538
inc esi
mov dword [esp + 0x10], 0xff
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
je 0x4018eb
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegCloseKey
test ebx, ebx
je 0x4019a0
mov eax, ebx
add eax, eax
inc eax
push eax
mov ecx, dword [esp + 0x10]
mov dl, 0x46
mov eax, edi
call fcn.004031c0
mov edx, 0x1000
mov eax, dword [esp + 0xc]
call fcn.00401538
push 1
xor ecx, ecx
mov dl, 0x47
mov eax, edi
call fcn.004031c0
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x40223c
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffd4
mov ebx, ecx
mov esi, edx
mov edi, eax
push esi
push edi
call sub.user32.dll_SetCursorPos
push esi
push edi
push 0x4022b0
lea eax, [esp + 0xc]
push eax
call sub.user32.dll_wsprintfA
add esp, 0x10
push esp
call sub.kernel32.dll_OutputDebugStringA
test bl, bl
je 0x402289
push 0
push 0
push esi
push edi
push 2
call sub.user32.dll_mouse_event
push 0
push 0
push esi
push edi
push 4
call sub.user32.dll_mouse_event
jmp 0x4022a7
push 0
push 0
push 0
push 0
push 8
call sub.user32.dll_mouse_event
push 0
push 0
push 0
push 0
push 0x10
call sub.user32.dll_mouse_event
add esp, 0x2c
pop edi
pop esi
pop ebx
ret

Function at 0x402350
Capabilities:
Get common file path

Disassembly:
push ecx
mov eax, 0x208
call fcn.00401448
mov dword [esp], eax
mov eax, dword [esp]
push eax
push 0
push 0
push 0x1c
push 0
call sub.shfolder.dll_SHGetFolderPathW
push 0x4023b4
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_lstrlenW
dec eax
add eax, eax
cdq
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
je 0x4023ad
push 0x4023b4
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_lstrcatW
mov eax, dword [esp]
pop edx
ret

Function at 0x4023b8
Capabilities:
Get common file path

Disassembly:
push ecx
mov eax, 0x208
call fcn.00401448
mov dword [esp], eax
cmp dword [esp], 0
je 0x402419
push 0x208
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
push 0x402420
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_lstrlenW
dec eax
add eax, eax
cdq
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
je 0x402419
push 0x402424
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_lstrcatW
mov eax, dword [esp]
pop edx
ret

Function at 0x402454
Capabilities:
Persist via run registry key

Disassembly:
push ebx
add esp, 0xfffffdf0
push 0x208
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_lstrlenW
mov ebx, eax
add ebx, 3
mov eax, esp
mov edx, ebx
call fcn.004014d0
cmp dword [esp], 0
je 0x4024f3
mov edx, ebx
mov eax, dword [esp]
call fcn.00401538
lea eax, [esp + 4]
push eax
push 0x4024fc
mov eax, dword [esp + 8]
push eax
call sub.user32.dll_wsprintfW
add esp, 0xc
mov eax, dword [esp]
push eax
push 0
mov ecx, dword [0x40809c]
mov ecx, dword [ecx]
mov edx, dword [0x408044]
mov eax, 0x80000002
call fcn.004016a8
test al, al
jne 0x4024eb
mov eax, dword [esp]
push eax
push 0
mov ecx, dword [0x40809c]
mov ecx, dword [ecx]
mov edx, dword [0x408044]
mov eax, 0x80000001
call fcn.004016a8
mov eax, dword [esp]
call fcn.00401438
add esp, 0x210
pop ebx
ret
Function at 0x40261c
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, eax
test dl, dl
je 0x40262b
mov ebx, 5
jmp 0x40262d
xor ebx, ebx
push ebx
push 0
push 0
push esi
push 0
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
jbe 0x402646
mov al, 1
pop esi
pop ebx
ret
xor eax, eax
pop esi
pop ebx
ret

Function at 0x402674
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x402701
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x4026ff
dec ecx
jne 0x402701
cmp eax, 4
jg 0x4026ac
mov ebx, 1
jmp 0x402701
cmp eax, 5
jne 0x4026bc
test edx, edx
jne 0x4026bc
mov ebx, 2
jmp 0x402701
cmp eax, 5
jne 0x4026cd
cmp edx, 1
jne 0x4026cd
mov ebx, 3
jmp 0x402701
cmp eax, 6
jne 0x4026dd
test edx, edx
jne 0x4026dd
mov ebx, 4
jmp 0x402701
cmp eax, 6
jne 0x4026ee
cmp edx, 1
jne 0x4026ee
mov ebx, 5
jmp 0x402701
cmp eax, 6
jne 0x402701
cmp edx, 2
jne 0x402701
mov ebx, 6
jmp 0x402701
xor ebx, ebx
mov eax, ebx
add esp, 0x94
pop ebx
ret

Function at 0x4027bc
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
add esp, 0xfffffff0
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push 0x402820
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x402818
mov dword [esp + 0xc], 4
mov dword [esp + 8], 4
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x402880
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, dword [esp]
add esp, 0x10
ret

Function at 0x40288c
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffff4
mov dword [esp], edx
mov ebx, eax
mov edx, dword [esp]
mov eax, ebx
call fcn.00401538
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push 0x4028f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4028e8
mov dword [esp + 8], 1
push esp
push ebx
lea eax, [esp + 0x10]
push eax
push 0
push 0x402950
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegCloseKey
add esp, 0xc
pop ebx
ret

Function at 0x402d10
Capabilities:
Terminate process

Disassembly:
push ecx
cmp dword [0x4090e0], 0
je 0x402d46
push esp
mov eax, dword [0x4090e0]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [esp], 0x103
jne 0x402d3c
push 0
mov eax, dword [0x4090e0]
push eax
call sub.kernel32.dll_TerminateProcess
push 0x1f4
call sub.kernel32.dll_Sleep
pop edx
ret

Function at 0x402d48
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp dword [0x4090e0], 0
je 0x402d84
push esp
mov eax, dword [0x4090e0]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [esp], 0x103
jne 0x402d84
push 0
lea eax, [esp + 8]
push eax
dec esi
push esi
push ebx
mov eax, dword [0x4090dc]
push eax
call sub.kernel32.dll_WriteFile
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x402fa0
Capabilities:
Create thread

Disassembly:
push ebx
push ecx
mov ebx, eax
call fcn.00402d10
mov dword [0x4090e4], ebx
push esp
push 0
push 0
push 0x402d8c
push 0
push 0
call sub.kernel32.dll_CreateThread
pop edx
pop ebx
ret

Function at 0x403000
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, esi
call fcn.00401518
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test esi, esi
jle 0x40304b
push 0
push esi
mov eax, dword [ebp - 4]
push eax
push edi
call sub.wsock32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40304b
test ebx, ebx
je 0x40304b
mov eax, dword [ebp - 4]
add eax, ebx
mov dword [ebp - 4], eax
sub esi, ebx
test esi, esi
jg 0x403025
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x4080e4]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x403140
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
mov edi, eax
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4031b5
mov word [esp + 4], 2
push esi
call sub.wsock32.dll_htons
mov word [esp + 6], ax
push edi
call sub.wsock32.dll_inet_addr
mov esi, eax
mov dword [esp + 8], esi
inc esi
jne 0x4031a1
push edi
call sub.wsock32.dll_gethostbyname
mov dword [esp], eax
cmp dword [esp], 0
je 0x40319c
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 8], eax
jmp 0x4031a1
or ebx, 0xffffffff
jmp 0x4031b5
push 0x10
lea eax, [esp + 8]
push eax
push ebx
call sub.wsock32.dll_connect
test eax, eax
je 0x4031b5
or ebx, 0xffffffff
mov eax, ebx
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x4031c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x4031c9
mov eax, dword [ebp - 4]
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x400e]
mov edx, 0x4002
call fcn.00401538
lea eax, [ebp - 0x400e]
add eax, 5
mov dword [ebp - 0xc], eax
test esi, esi
jle 0x403219
test edi, edi
je 0x403219
mov ecx, esi
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.00401510
lea eax, [ebp - 0x400e]
lea edx, [esi + 1]
mov dword [eax], edx
mov dl, byte [ebp - 5]
mov byte [eax + 4], dl
dec dword [ebp - 0xc]
add esi, 5
push 0
push esi
lea eax, [ebp - 0x400e]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_send
cmp esi, eax
jne 0x403249
mov bl, 1
test bl, bl
je 0x40325a
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x4080e4]
mov dword [edx], eax
push 0
call sub.kernel32.dll_Sleep
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403318
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
lea edi, [ebp - 0xc]
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebx]
push eax
call fcn.004032b4
mov dword [edi], eax
mov eax, dword [ebx]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x4033d0
inc eax
mov ebx, eax
mov eax, dword [edi]
cmp dword [eax + 0x10], 0
jne 0x40338b
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 0x38]
test esi, esi
jle 0x403386
push 0x40
push 0x1000
push esi
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 8], eax
mov eax, dword [edi]
mov edx, dword [ebp - 8]
mov dword [eax + 8], edx
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00401538
add dword [edi], 0x28
jmp 0x4033c9
push 0x40
push 0x1000
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.00401510
mov eax, dword [edi]
mov edx, dword [ebp - 8]
mov dword [eax + 8], edx
add dword [edi], 0x28
dec ebx
jne 0x403349
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403650
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x403665
or edx, 0x200
test eax, 0x20000000
je 0x403698
test eax, 0x40000000
je 0x403684
test eax, 0x80000000
je 0x40367f
or edx, 0x40
jmp 0x4036bf
or edx, 0x20
jmp 0x4036bf
test eax, 0x80000000
je 0x403693
or edx, 0x80
jmp 0x4036bf
or edx, 0x10
jmp 0x4036bf
test eax, 0x40000000
je 0x4036b0
test eax, 0x80000000
je 0x4036ab
or edx, 4
jmp 0x4036bf
or edx, 2
jmp 0x4036bf
test eax, 0x80000000
je 0x4036bc
or edx, 8
jmp 0x4036bf
or edx, 1
mov eax, edx
pop ebp
ret 4