joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40a4b2
sub esp, 0xc
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x40a4a5
mov ebp, dword [eax]
cmp ebp, 0
je 0x40a4a5
movzx ebp, byte [eax + 4]
mov ebx, ebp
and ebx, 4
cmp bl, 0
je 0x40a379
mov ebx, 0x5fe394
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.0042a460
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 5]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jne 0x40a403
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp ecx, 8
jae 0x40a3b1
mov esi, ecx
shl esi, 3
add esi, 8
mov ebx, edx
add ebx, esi
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp eax, dword [esp + 0x1c]
jne 0x40a3ab
cmp esi, dword [esp + 0x18]
je 0x40a3d7
inc ecx
cmp ecx, 8
jb 0x40a38e
mov eax, dword [esp + 0x10]
movzx ebp, word [eax + 0x34]
mov eax, ebp
sub eax, 4
mov ebx, edx
add ebx, eax
mov edx, dword [ebx]
xor ebp, ebp
cmp edx, ebp
jne 0x40a387
mov ebx, 0x6da6a0
mov dword [esp + 0x20], ebx
add esp, 0xc
ret
mov ebx, edx
add ebx, ecx
movzx ebp, byte [ebx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
je 0x40a3ab
mov eax, edx
mov ebx, dword [esp + 0x10]
movzx ebp, byte [ebx + 0x32]
mov edx, ebp
imul edx, ecx
add edx, 0x48
mov ebx, eax
add ebx, edx
mov dword [esp + 0x20], ebx
add esp, 0xc
ret
lea ebx, [esp + 0x18]
xor ebx, 0
mov dword [esp], ebx
mov ebp, dword [eax + 8]
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [ebx + 0x20]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
mov ebx, dword [edx]
call ebx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 8]
movzx ecx, byte [edi + 5]
mov ebx, 1
cmp cl, 0x20
jae 0x40a4a1
shl ebx, cl
dec ebx
mov ecx, ebx
mov eax, esi
and eax, ebx
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
imul eax, ebp
mov edx, dword [edi + 0xc]
add edx, eax
mov eax, dword [edi + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x40a387
shr ecx, 1
and ecx, esi
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
mov ebx, ebp
mov ebp, ecx
imul ebp, ebx
mov ecx, eax
add ecx, ebp
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jbe 0x40a49d
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x40a49d
mov eax, 1
cmp al, 0
jne 0x40a387
mov edx, ecx
jmp 0x40a387
xor eax, eax
jmp 0x40a48d
xor ebx, ebx
jmp 0x40a43a
mov ebx, 0x6da6a0
mov dword [esp + 0x20], ebx
add esp, 0xc
ret
call fcn.00450ed0
jmp fcn.0040a320
Function at 0x442df0
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x442fdf
sub esp, 0x3c
mov edi, dword [esp + 0x40]
mov ecx, dword [edi + 4]
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xe9
xchg ebp, eax
jne 0x442e37
mov ebp, dword [edi + 4]
add ebp, 5
mov dword [esp + 0xc], ebp
mov esi, ecx
inc esi
mov eax, dword [esi]
cdq
mov ebx, dword [esp + 0xc]
add ebx, eax
mov dword [edi + 4], ebx
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xeb
xchg ebp, eax
jne 0x442e62
mov ebp, dword [edi + 4]
add ebp, 2
mov dword [esp + 8], ebp
mov eax, ecx
inc eax
movzx eax, byte [eax]
movsx eax, al
cdq
mov ebx, dword [esp + 8]
add ebx, eax
mov dword [edi + 4], ebx
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xcc
xchg ebp, eax
jne 0x442e70
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xor edx, edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
movzx ebp, byte [ecx + 1]
xor edx, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], edx
movzx ebp, byte [ecx + 2]
xor edx, edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
movzx ebp, byte [ecx + 3]
xor edx, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], ecx
movzx ebp, byte [ecx + 4]
xor ecx, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
call fcn.0042ac40
mov ebx, 0x5f79aa
mov dword [esp], ebx
mov dword [esp + 4], 0xc
call fcn.0042b650
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
call fcn.0042b610
mov ebx, 0x5f5784
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b650
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.0042b4e0
mov ebx, 0x5f5784
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b650
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.0042b4e0
mov ebx, 0x5f5784
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b650
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.0042b4e0
mov ebx, 0x5f5784
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b650
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
call fcn.0042b4e0
mov ebx, 0x5f5784
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b650
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call fcn.0042b4e0
mov ebx, 0x5f57a6
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b650
call fcn.0042acc0
mov ebx, 0x5fea9f
mov dword [esp], ebx
mov dword [esp + 4], 0x22
call fcn.0042a460
add esp, 0x3c
ret
call fcn.00450ed0
jmp fcn.00442df0
Function at 0x401480
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
push 0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x48], 0x4012b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x68], str.SapperApp
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push dword [esp + 0x54]
push 0
push 0
push 0x12c
push 0x12c
push 0x80000000
push 0x80000000
push 0xca0000
push str.Minesweeper
push str.SapperApp
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push 1
push esi
mov dword [0x4154b8], esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x24]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x401591
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x24]
push eax
call esi
lea eax, [esp + 0x24]
push eax
call edi
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call ebx
test eax, eax
jne 0x401572
push dword [esp + 0x10]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402209
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402248
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402248
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402248
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402248
cmp dword [ecx + 0x74], 0xe
jbe 0x402248
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x406a1f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40f610
push 0x40f608
push str.FlsAlloc
push 0x1e
call fcn.0040693d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406a53
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e188]
call esi
jmp 0x406a59
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x406a9d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40f620
push 0x40f618
push str.FlsGetValue
push 0x20
call fcn.0040693d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406ad4
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40817c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408219
push ebx
push esi
call fcn.00408145
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040808e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4081c6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408218
push edi
push eax
call fcn.004089f4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4081e6
call fcn.00406c9e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408217
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040808e
add esp, 0x20
test eax, eax
jne 0x408205
push edi
call fcn.00406c9e
jmp 0x40820d
push ebx
call fcn.00406c9e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x401cf0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x401d60
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401da0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x402f74
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x47e008], 0x8088405
inc edx
mov dword [ebx + 0x47e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4033cc
Capabilities:
Query or enumerate registry value

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

Function at 0x404184
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5b104c], 0
je 0x4041e5
cmp word [0x5b1220], 0xd7b2
jne 0x4041ad
cmp dword [0x5b1228], 0
jbe 0x4041ad
mov eax, 0x5b121c
call dword [0x5b1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47e070
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 0x40420c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47e034], 0
jne 0x404201
push 0
push 0x47e068
push 0x47e070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406250
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 0x4062b6
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.00404578
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f90
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4062a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062bd
lea eax, [ebp - 0x10]
call fcn.00404308
ret

Function at 0x40b720
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 0x40b759
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043f8
jmp 0x40b762
mov eax, ebx
mov edx, esi
call fcn.0040435c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40be24
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc8c
mov eax, dword [0x5b0938]
cmp byte [eax], 0
je 0x40bea0
mov eax, dword [0x5b0704]
call fcn.00402de0
call fcn.00402c2c
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.00408edc
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 0x40bee8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bed6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5b06a8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5b1668]
call fcn.004056bc
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 0x40c798
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 0x40c86e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004043a0
lea eax, [ebp - 8]
call fcn.00404818
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004047c8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c858
mov eax, ebx
call fcn.00402aa0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c851
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.004047c8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c83b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c880
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c83b
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 0x40c858
mov eax, dword [ebp - 0x10]
call fcn.00402ad0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c875
lea eax, [ebp - 8]
call fcn.00404308
ret

Function at 0x40cdd4
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 0x40ce38
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.00404578
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004089f0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce3f
lea eax, [ebp - 0xc]
call fcn.00404308
ret
Function at 0x41e8bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x5b1888
cmp dword [esi], 0
jne 0x41e962
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x5b1884]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x47e404
mov ecx, 2
call fcn.00402cc0
mov edx, 0x41e894
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041e8b4
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041e8b4
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41e929
mov eax, dword [ebp - 8]
mov dword [0x5b1884], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41ffe0
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 0x41ffe6
ret

Function at 0x4224ec
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 0x42253d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422524
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422514
jmp 0x42253d
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 0x422525
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4316d4
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 0x431620
call sub.user32.dll_EnumWindows
ret

Function at 0x4317f4
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 0x431871
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00431254
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x431819
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00430e54
cmp dword [ebp - 4], 0
je 0x43185b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004047c8
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 0x431878
lea eax, [ebp - 4]
call fcn.00404308
ret

Function at 0x434830
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 [0x5b1af4], 0
je 0x43497f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5b08c4]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43497f
mov eax, dword [0x5b1af8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5b1af4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43494e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5b1af4]
call fcn.00417bd4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x434946
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x434946
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x434946
mov eax, dword [ebp - 0x14]
call fcn.0043d4f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x434946
push ebp
call fcn.004347ec
pop ecx
test al, al
jne 0x434946
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x434902
mov eax, dword [ebp - 0x14]
call fcn.0043bfec
dec eax
jle 0x434946
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.00403768
cmp byte [ebp - 1], 0
je 0x434946
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x434946
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5b1af8]
call fcn.00433fb8
inc edi
dec ebx
jne 0x434895
mov eax, dword [0x5b1af8]
cmp dword [eax + 8], 0
jle 0x434966
mov eax, dword [0x5b1af8]
call fcn.00434048
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43497f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00434654
pop ecx
test al, al
jne 0x43497f
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 0x437f80
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 0x437fcc
mov eax, esi
call fcn.0044d954
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x437fcc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x437fcc
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 0x43810b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x43800c
cmp eax, 0x108
ja 0x43800c
mov eax, esi
call fcn.0044d954
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x438102
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x43810b
jmp 0x438102
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4380eb
cmp eax, 0x20a
ja 0x4380eb
test byte [esi + 0x50], 0x80
jne 0x43803e
sub eax, 0x203
je 0x43803b
sub eax, 3
je 0x43803b
sub eax, 3
jne 0x43803e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x438052
dec eax
je 0x438067
dec eax
je 0x438084
dec eax
je 0x438067
jmp 0x43808b
mov ecx, ebx
mov eax, dword [0x5b08c4]
mov eax, dword [eax]
mov edx, esi
call fcn.00457234
jmp 0x438102
cmp byte [esi + 0x5d], 1
jne 0x43807d
mov eax, esi
mov si, 0xffed
call fcn.00403768
jmp 0x43810b
or word [esi + 0x54], 1
jmp 0x438102
and word [esi + 0x54], 0xfffe
jmp 0x438102
mov eax, dword [0x5b1ab0]
cmp byte [eax + 0x20], 0
je 0x438102
mov eax, dword [0x5b1ab0]
cmp dword [eax + 0x1c], 0
je 0x438102
mov eax, dword [ebx]
mov edx, dword [0x5b1ab0]
cmp eax, dword [edx + 0x1c]
jne 0x438102
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.0044d898
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.00403768
jmp 0x43810b
cmp eax, 0xb00b
jne 0x438102
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00436894
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