joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b60
Capabilities:
Hide graphical window
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x14], 0x190
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x10], 0x258
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x1c], 0x64
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], 0x64
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetMenu]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
push 0
push 0x9c44
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 1
push 0x9c45
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_EnableMenuItem]
lea eax, [ebp - 0x194]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x401c33
push str.Failed_to_load_Winsock_
lea ecx, [ebp - 0x294]
push ecx
call fcn.00406f90
add esp, 8
push 0
push str.Remote_Server
lea edx, [ebp - 0x294]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x401c6a
lea eax, [ebp - 0x2a8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00402000
push 0x417c43
push 0x417c42
push 0x417c41
push 0x417c40
lea ecx, [ebp - 0x2a8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004020f0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401e60
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], 0x9c41
jne 0x401e9b
cmp dword [0x417c48], 0
je 0x401e8e
mov eax, dword [0x417f68]
push eax
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401ff4
cmp dword [ebp + 0xc], 0x9c44
jne 0x401f66
push 0
push 0x401d70
mov ecx, dword [ebp + 8]
push ecx
push 0x72
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x401f61
push 6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0x417c44
push 0
push 0
push 0x402430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x417c48], eax
cmp dword [0x417c48], 0
jne 0x401f24
push 0x30
push 0x4150a4
push str.Socket
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401f61
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403390
add esp, 4
mov edx, dword [ebp + 8]
mov dword [0x417f74], edx
push 1
push 0x9c44
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0x9c45
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
jmp 0x401ff4
cmp dword [ebp + 0xc], 0x9c45
jne 0x401fd5
push 4
push 0x4150a4
push 0x415074
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x401fd3
push 0
push 0x9c44
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 1
push 0x9c45
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [ebp + 8]
push eax
call fcn.00403760
add esp, 4
cmp dword [0x417c48], 0
je 0x401fd3
mov ecx, dword [0x417f68]
push ecx
call sub.WS2_32.dll_closesocket
jmp 0x401ff4
cmp dword [ebp + 0xc], 0x9c46
jne 0x401ff4
push 0
push 0x4150a4
push str.2003_7_2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402000
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostname
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x402048
push 0x4150b8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404f80
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40205d
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4020f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40212f
mov dword [ebp + 0x18], 0
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402174
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402172
push 4
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00407090
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x10]
mov byte [eax], cl
mov edx, dword [ebp + 0x10]
mov al, byte [ebp - 0xf]
mov byte [edx], al
mov ecx, dword [ebp + 0x14]
mov dl, byte [ebp - 0xe]
mov byte [ecx], dl
mov eax, dword [ebp + 0x18]
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
push 0x51
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.004073d0
add esp, 0xc
mov ecx, dword [0x417f64]
push ecx
push 0x415220
lea edx, [ebp - 0x54]
push edx
call fcn.00406f90
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
call fcn.00407430
add esp, 4
push eax
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00404410
add esp, 0xc
mov dword [ebp - 0x58], eax
push 0x51
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.004073d0
add esp, 0xc
push 0
push 0x51
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov byte [ebp + eax - 0x54], 0
push 0x51
push 0
lea ecx, [ebp - 0x54]
push ecx
call fcn.004073d0
add esp, 0xc
mov edx, dword [0x417f78]
push edx
push 0x415220
lea eax, [ebp - 0x54]
push eax
call fcn.00406f90
add esp, 0xc
lea ecx, [ebp - 0x54]
push ecx
call fcn.00407430
add esp, 4
push eax
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404410
add esp, 0xc
mov dword [ebp - 0x58], eax
push 0x51
push 0
lea ecx, [ebp - 0x54]
push ecx
call fcn.004073d0
add esp, 0xc
push 0
push 0x51
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov byte [ebp + ecx - 0x54], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404410
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push 0x14
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.004073d0
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov edx, 1
test edx, edx
je 0x40457d
push 0
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x30]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x4044bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x3e5
je 0x4044bf
mov ecx, dword [ebp - 0x38]
push ecx
push str.WSASend_failed_with_error__d_n
lea edx, [ebp - 0x8c]
push edx
call fcn.00406f90
add esp, 0xc
push 0
push str.Server
lea eax, [ebp - 0x8c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x20]
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
jne 0x404507
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAWaitForMultipleEvents_failed__d_n
lea edx, [ebp - 0x8c]
push edx
call fcn.00406f90
add esp, 0xc
push 0
push str.Server
lea eax, [ebp - 0x8c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
lea edx, [ebp - 0x34]
push edx
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x40455e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAGetOverlappedResult_failed_with_error__d_n
lea eax, [ebp - 0x8c]
push eax
call fcn.00406f90
add esp, 0xc
push 0
push str.Server
lea ecx, [ebp - 0x8c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x30]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
jne 0x40456f
jmp 0x40457d
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
jmp 0x40444d
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402e48
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404884
test esi, esi
jne 0x402e7f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404974
jmp 0x402ea0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ce4
mov dword [esp], eax
test esi, esi
je 0x402ea0
cmp dword [ebx], 0
je 0x402ea0
dec esi
jmp 0x402e87
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403964
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x479020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4039dc
xor eax, eax
push ebp
push 0x4039d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403a18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4039dc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x479020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x479020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404700
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47c04c], 0
je 0x404761
cmp word [0x47c220], 0xd7b2
jne 0x404729
cmp dword [0x47c228], 0
jbe 0x404729
mov eax, 0x47c21c
call dword [0x47c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x479090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404788
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x479030], 0
jne 0x40477d
push 0
push 0x479088
push 0x479090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406750
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4067b6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404af4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403528
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4067a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067bd
lea eax, [ebp - 0x10]
call fcn.00404884
ret

Function at 0x409030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404d44
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409049
test al, 0x10
jne 0x40904d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bbac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bbe5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404974
jmp 0x40bbee
mov eax, ebx
mov edx, esi
call fcn.004048d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bbf8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bc19
mov al, byte [esp]
jmp 0x40bc1b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c2b0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c118
mov eax, dword [0x47b038]
cmp byte [eax], 0
je 0x40c32c
mov eax, dword [0x47ae30]
call fcn.00403224
call fcn.00402c04
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040924c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c374
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c362
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47add4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47c668]
call fcn.00405bbc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40cc18
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ccee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040491c
lea eax, [ebp - 8]
call fcn.00404d94
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d44
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ccd8
mov eax, ebx
call fcn.00402a78
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ccd1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d44
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ccbb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cd00
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ccbb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccd8
mov eax, dword [ebp - 0x10]
call fcn.00402aa8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccf5
lea eax, [ebp - 8]
call fcn.00404884
ret

Function at 0x40d2cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d330
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404af4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408c90
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d337
lea eax, [ebp - 0xc]
call fcn.00404884
ret

Function at 0x41e6f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47c888
cmp dword [edi], 0
jne 0x41e770
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47c884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4794a0
mov ecx, 2
call fcn.00402ca4
mov edx, 0x41e6cc
lea eax, [esi + 5]
call fcn.0041e6ec
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e6ec
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41e745
mov dword [0x47c884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41fcfc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41fd02
ret
Function at 0x4222f4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x422345
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42232c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42231c
jmp 0x422345
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42232d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a5d4
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x43a520
call sub.user32.dll_EnumWindows
ret

Function at 0x43a6f4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x43a771
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0043a154
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x43a719
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00439d54
cmp dword [ebp - 4], 0
je 0x43a75b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404d44
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a778
lea eax, [ebp - 4]
call fcn.00404884
ret

Function at 0x43dba8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x47cb58], 0
je 0x43dcf7
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x47afd0]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43dcf7
mov eax, dword [0x47cb5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x47cb58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43dcc6
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x47cb58]
call fcn.00417c18
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43dcbe
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43dcbe
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43dcbe
mov eax, dword [ebp - 0x14]
call fcn.00446840
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43dcbe
push ebp
call fcn.0043db64
pop ecx
test al, al
jne 0x43dcbe
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43dc7a
mov eax, dword [ebp - 0x14]
call fcn.00445370
dec eax
jle 0x43dcbe
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403d00
cmp byte [ebp - 1], 0
je 0x43dcbe
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43dcbe
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47cb5c]
call fcn.0043d330
inc edi
dec ebx
jne 0x43dc0d
mov eax, dword [0x47cb5c]
cmp dword [eax + 8], 0
jle 0x43dcde
mov eax, dword [0x47cb5c]
call fcn.0043d3c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43dcf7
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043d9cc
pop ecx
test al, al
jne 0x43dcf7
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4412d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x441324
mov eax, esi
call fcn.00457080
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x441324
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x441324
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x441463
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x441364
cmp eax, 0x108
ja 0x441364
mov eax, esi
call fcn.00457080
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44145a
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x441463
jmp 0x44145a
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x441443
cmp eax, 0x20a
ja 0x441443
test byte [esi + 0x50], 0x80
jne 0x441396
sub eax, 0x203
je 0x441393
sub eax, 3
je 0x441393
sub eax, 3
jne 0x441396
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4413aa
dec eax
je 0x4413bf
dec eax
je 0x4413dc
dec eax
je 0x4413bf
jmp 0x4413e3
mov ecx, ebx
mov eax, dword [0x47afd0]
mov eax, dword [eax]
mov edx, esi
call fcn.004609e8
jmp 0x44145a
cmp byte [esi + 0x5d], 1
jne 0x4413d5
mov eax, esi
mov si, 0xffed
call fcn.00403d00
jmp 0x441463
or word [esi + 0x54], 1
jmp 0x44145a
and word [esi + 0x54], 0xfffe
jmp 0x44145a
mov eax, dword [0x47cb14]
cmp byte [eax + 0x20], 0
je 0x44145a
mov eax, dword [0x47cb14]
cmp dword [eax + 0x1c], 0
je 0x44145a
mov eax, dword [ebx]
mov edx, dword [0x47cb14]
cmp eax, dword [edx + 0x1c]
jne 0x44145a
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00456fc4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403d00
jmp 0x441463
cmp eax, 0xb00b
jne 0x44145a
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0043fbf8
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret