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

Disassembly:
push 0x48
mov eax, 0x2a8d2de7
call fcn.2a801426
mov edi, ecx
push 0x44
pop ebx
push ebx
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call sub.MSVCR100.dll_memset
push 0x10
mov dword [ebp - 0x54], ebx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x2a85a87b
push 0x10
push esi
push ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, ebx
jmp 0x2a85a87d
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [edi + 0x28], eax
call fcn.2a858f47
push dword [edi + 0x28]
lea ecx, [ebp - 0x54]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.kernel32.dll_CreateProcessW]
call fcn.2a801635
ret

Function at 0x2a85cf60
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.2a85add0
mov eax, dword [0x2a919eec]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
test eax, eax
je 0x2a85cfc5
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x2a85cfc5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_vfprintf
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.2a801bd0
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call sub.MSVCR100.dll__vsnprintf
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.kernel32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x2a85d054
call fcn.2a837aea
test eax, eax
jle 0x2a85d054
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.2a801bd0
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.2a801bd0
add esp, 0x108
ret

Function at 0x2a85d0b0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x2a85d0d2
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x2a85d0c6
pop esi
movzx eax, cl
pop edi
ret
Function at 0x401ab0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x210
mov eax, dword [0x4130c8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov dword [esp + 0x10], 0
mov word [esp + 0x14], ax
call fcn.00404a00
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
push 0x1002
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b23
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004019c0
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004049f1
add esp, 0x210
ret
Function at 0x4034f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40e500
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4130c8]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
push edi
mov eax, dword [0x4130c8]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x12c]
xor eax, eax
push 0xc6
push eax
lea ecx, [esp + 0x22]
push ecx
mov dword [esp + 0xf8], 1
mov dword [esp + 0x1c], 0x64
mov word [esp + 0x24], ax
call fcn.00404a00
mov eax, dword [esp + 0x104]
mov edi, 8
add esp, 0xc
cmp dword [esp + 0x10c], edi
jae 0x403579
lea eax, [esp + 0xf8]
lea edx, [esp + 0xc]
push edx
push 0x20119
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4035f0
mov eax, dword [esp + 0x114]
cmp dword [esp + 0x128], edi
jae 0x4035ac
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4035f0
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4035d4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004019c0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10c], edi
jb 0x403614
mov edx, dword [esp + 0xf8]
push edx
call fcn.004044c5
add esp, 4
xor eax, eax
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], 0
mov word [esp + 0xf8], ax
cmp dword [esp + 0x128], edi
jb 0x40364d
mov ecx, dword [esp + 0x114]
push ecx
call fcn.004044c5
add esp, 4
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.004049f1
add esp, 0xe4
ret
Function at 0x4037a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40e538
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4130c8]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x98]
mov esi, dword [ecx + 0x14]
xor ebx, ebx
mov al, 1
cmp esi, ebx
je 0x4039a0
mov ebp, dword [esp + 0x94]
mov edi, dword [ebp + 0x14]
push 4
call fcn.0040455a
add esp, 4
cmp eax, ebx
je 0x403800
lea edx, [esp + 0x28]
mov dword [eax], edx
jmp 0x403802
xor eax, eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + edi + 4]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x1c], ebx
call fcn.00403680
mov esi, dword [esp + 0x38]
sub esi, dword [esp + 0x34]
sar esi, 1
jne 0x403835
call fcn.00404c21
mov edx, dword [esp + 0x34]
push 0x40f8c4
push esi
push edx
call fcn.004044d0
mov esi, dword [esp + 0x44]
sub esi, dword [esp + 0x40]
add esp, 0xc
sar esi, 1
jne 0x403859
call fcn.00404c21
mov ecx, ebp
call fcn.00402360
push eax
mov eax, dword [esp + 0x38]
push esi
push eax
call fcn.00404c31
mov esi, dword [esp + 0x44]
sub esi, dword [esp + 0x40]
add esp, 0xc
sar esi, 1
jne 0x403880
call fcn.00404c21
mov ecx, dword [esp + 0x34]
push 0x40f8bc
push esi
push ecx
call fcn.00404c31
mov esi, dword [esp + 0x44]
sub esi, dword [esp + 0x40]
add esp, 0xc
sar esi, 1
jne 0x4038a4
call fcn.00404c21
mov ecx, dword [esp + 0x98]
call fcn.00402360
mov edx, dword [esp + 0x34]
push eax
push esi
push edx
call fcn.00404c31
push 0x40
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.00404a00
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x4c]
xor eax, eax
add esp, 0x18
sar ecx, 1
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
jne 0x4038f7
call fcn.00404c21
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403943
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x403929
push eax
call fcn.004044c5
add esp, 4
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.004044c5
mov al, bl
jmp 0x40399d
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x403965
push eax
call esi
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x403974
push eax
call esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x403985
push eax
call fcn.004044c5
add esp, 4
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.004044c5
mov al, 1
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x4049f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4130c8]
jne 0x4049fb
repz ret
jmp fcn.00406e7c

Function at 0x40c1ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406868
and dword [ebp - 4], 0
cmp dword [0x414ac8], 0
mov ebx, eax
jne 0x40c25d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c30e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c30e
push eax
call fcn.004067f6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414ac8], eax
call esi
push eax
call fcn.004067f6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414acc], eax
call esi
push eax
call fcn.004067f6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x414ad0], eax
call esi
push eax
call fcn.004067f6
pop ecx
mov dword [0x414ad8], eax
test eax, eax
je 0x40c25d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004067f6
pop ecx
mov dword [0x414ad4], eax
mov eax, dword [0x414ad4]
cmp eax, ebx
je 0x40c2b5
cmp dword [0x414ad8], ebx
je 0x40c2b5
push eax
call fcn.00406871
push dword [0x414ad8]
mov esi, eax
call fcn.00406871
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c2b5
test edi, edi
je 0x40c2b5
call esi
test eax, eax
je 0x40c2ac
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c2ac
test byte [ebp - 0xc], 1
jne 0x40c2b5
or dword [ebp + 0x10], 0x200000
jmp 0x40c2ee
mov eax, dword [0x414acc]
cmp eax, ebx
je 0x40c2ee
push eax
call fcn.00406871
pop ecx
test eax, eax
je 0x40c2ee
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c2ee
mov eax, dword [0x414ad0]
cmp eax, ebx
je 0x40c2ee
push eax
call fcn.00406871
pop ecx
test eax, eax
je 0x40c2ee
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414ac8]
call fcn.00406871
pop ecx
test eax, eax
je 0x40c30e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c310
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403024
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40309c
xor eax, eax
push ebp
push 0x403095
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 0x4030d8
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 0x40309c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46e020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d88
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x470048], 0
je 0x403de9
cmp word [0x47021c], 0xd7b2
jne 0x403db1
cmp dword [0x470224], 0
jbe 0x403db1
mov eax, 0x470218
call dword [0x470234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46e06c
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 0x403e10
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e030], 0
jne 0x403e05
push 0
push 0x46e064
push 0x46e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e14
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 0x405e7a
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.00404194
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402be8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e64
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e81
lea eax, [ebp - 0x10]
call fcn.00403f24
ret

Function at 0x40aee8
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 0x40af21
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404014
jmp 0x40af2a
mov eax, ebx
mov edx, esi
call fcn.00403f78
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40af34
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 0x40af55
mov al, byte [esp]
jmp 0x40af57
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b5dc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b454
mov eax, dword [0x46f2b0]
cmp byte [eax], 0
je 0x40b658
mov eax, dword [0x46f0a4]
call fcn.00402a54
call fcn.0040286c
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.00408728
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 0x40b6a0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b68e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46f048]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x470664]
call fcn.00405328
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 0x40bef4
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 0x40bfca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403fbc
lea eax, [ebp - 8]
call fcn.00404434
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004043e4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bfb4
mov eax, ebx
call fcn.00402704
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bfad
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.004043e4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bf97
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bfdc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bf97
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 0x40bfb4
mov eax, dword [ebp - 0x10]
call fcn.00402724
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfd1
lea eax, [ebp - 8]
call fcn.00403f24
ret

Function at 0x40c4d4
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 0x40c538
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.00404194
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408250
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c53f
lea eax, [ebp - 0xc]
call fcn.00403f24
ret

Function at 0x41f718
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x470884
cmp dword [edi], 0
jne 0x41f794
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x470880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46e4f4
mov ecx, 2
call fcn.00402900
mov edx, 0x41f6f0
lea eax, [esi + 5]
call fcn.0041f710
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f710
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 0x41f769
mov dword [0x470880], 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 0x420c30
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 0x420c36
ret
Function at 0x423128
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 0x423179
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423160
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423150
jmp 0x423179
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 0x423161
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f458
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 0x42f3a4
call sub.user32.dll_EnumWindows
ret

Function at 0x42f578
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 0x42f5f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042efd8
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 0x42f59d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042ebd8
cmp dword [ebp - 4], 0
je 0x42f5df
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004043e4
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 0x42f5fc
lea eax, [ebp - 4]
call fcn.00403f24
ret

Function at 0x43235c
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 [0x470b54], 0
je 0x4324ab
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x46f248]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4324ab
mov eax, dword [0x470b58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x470b54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43247a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x470b54]
call fcn.00418c90
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x432472
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x432472
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x432472
mov eax, dword [ebp - 0x14]
call fcn.0043af6c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x432472
push ebp
call fcn.00432318
pop ecx
test al, al
jne 0x432472
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43242e
mov eax, dword [ebp - 0x14]
call fcn.00439a9c
dec eax
jle 0x432472
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.004033b0
cmp byte [ebp - 1], 0
je 0x432472
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x432472
mov edx, dword [ebp - 0x14]
mov eax, dword [0x470b58]
call fcn.00431ae4
inc edi
dec ebx
jne 0x4323c1
mov eax, dword [0x470b58]
cmp dword [eax + 8], 0
jle 0x432492
mov eax, dword [0x470b58]
call fcn.00431b74
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4324ab
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00432180
pop ecx
test al, al
jne 0x4324ab
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 0x435a70
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 0x435abc
mov eax, esi
call fcn.0044afd8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x435abc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x435abc
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 0x435bfb
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x435afc
cmp eax, 0x108
ja 0x435afc
mov eax, esi
call fcn.0044afd8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x435bf2
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x435bfb
jmp 0x435bf2
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x435bdb
cmp eax, 0x20a
ja 0x435bdb
test byte [esi + 0x50], 0x80
jne 0x435b2e
sub eax, 0x203
je 0x435b2b
sub eax, 3
je 0x435b2b
sub eax, 3
jne 0x435b2e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x435b42
dec eax
je 0x435b57
dec eax
je 0x435b74
dec eax
je 0x435b57
jmp 0x435b7b
mov ecx, ebx
mov eax, dword [0x46f248]
mov eax, dword [eax]
mov edx, esi
call fcn.0045482c
jmp 0x435bf2
cmp byte [esi + 0x5d], 1
jne 0x435b6d
mov eax, esi
mov si, 0xffed
call fcn.004033b0
jmp 0x435bfb
or word [esi + 0x54], 1
jmp 0x435bf2
and word [esi + 0x54], 0xfffe
jmp 0x435bf2
mov eax, dword [0x470b10]
cmp byte [eax + 0x20], 0
je 0x435bf2
mov eax, dword [0x470b10]
cmp dword [eax + 0x1c], 0
je 0x435bf2
mov eax, dword [ebx]
mov edx, dword [0x470b10]
cmp eax, dword [edx + 0x1c]
jne 0x435bf2
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.0044af1c
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.004033b0
jmp 0x435bfb
cmp eax, 0xb00b
jne 0x435bf2
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004343ac
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