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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jb 0x416504
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x4163ee
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4163f3
inc edi
cmp edi, dword [ebp - 8]
jb 0x4163e5
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x4164e4
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x416477
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x41641f
cmp cl, 0xff
jne 0x4164a6
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x4164b7
movzx esi, byte [edx + 0x404f98]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
mov cl, bl
test cl, cl
je 0x416467
cmp cl, 0xff
jne 0x4164b4
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x41643d
dec ecx
shl edx, cl
and edx, 7
je 0x41640c
movzx ecx, byte [edx + 0x404f98]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x404f90], 0
mov cl, byte [ebx + 4]
je 0x4164a3
test cl, cl
je 0x4164a3
cmp cl, 0xff
jne 0x41640c
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4163e0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4163e0
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret 0xc
Function at 0x41ba01
Capabilities:
Access peb ldr_data

Disassembly:
mov ch, 0xb4
cli
invalid
pop edx
jge 0x41b9cb
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x41ba1a
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00419856
invalid

Function at 0x423610
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
pop ebp
ret 4
Function at 0x40290f
Capabilities:
Terminate process

Disassembly:
jmp 0x42029d
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4202ae
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00403ff3
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4029b4
Capabilities:
Query environment variable

Disassembly:
jmp 0x45521d
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45522e
pop esi
ret
push ebx
push edi
push esi
call fcn.00455104
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402fa4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x455256
push ebx
push esi
push edi
call fcn.00403e9a
add esp, 0xc
push 0
call fcn.004045cf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x403f17
Capabilities:
Parse pe header

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

Function at 0x444e84
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x444ec3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x444ec3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x444ec3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x444ec3
cmp dword [ecx + 0x74], 0xe
jbe 0x444ec3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x453482
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x482040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4534cd
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00453a39
test al, al
jne 0x4534c7
sub edx, 2
cmp edx, edi
jne 0x4534ad
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4534ef
lea eax, [edi + 2]
cmp edx, eax
je 0x4534ef
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045307b
add esp, 0x10
jmp 0x4535e9
push esi
lea ecx, [ebp - 0x255]
call fcn.00453a39
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x453532
push dword [ebp - 0x25c]
jmp 0x4534df
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x45356f
cmp word [ebp - 0x226], 0
je 0x453590
cmp word [ebp - 0x226], ax
jne 0x45356f
cmp word [ebp - 0x224], 0
je 0x453590
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045307b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4535dc
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x453549
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4535c4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4535e9
push 0x452961
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403d9b
add esp, 0x10
jmp 0x4535b9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402577
leave
ret

Function at 0x45981b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004031d9
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45988a
cmp esi, dword [ebp - 4]
je 0x459885
cmp dword [ebp + 0xc], 0
je 0x459885
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x459862
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00459243
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x45988c
xor eax, eax
inc eax
jmp 0x45988c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x465fd4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x484800]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x466014
cmp byte [ebx], 0xa
jne 0x466014
or byte [edi + eax + 0x28], 4
jmp 0x466019
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x466118
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4660fb
inc eax
cmp dl, 0xd
je 0x466045
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x46606b
cmp eax, ecx
jae 0x466079
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x46602d
jmp 0x466118
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4660f6
cmp dword [ebp - 0x10], 0
je 0x4660f6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x484800]
test byte [eax + edi + 0x28], 0x48
je 0x4660d0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4660bb
mov byte [esi], dl
jmp 0x4660cc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x484800]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x466118
cmp byte [ebp - 1], 0xa
jne 0x4660df
cmp esi, ebx
jne 0x4660df
mov byte [esi], 0xa
jmp 0x466117
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004015f5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x466118
mov byte [esi], 0xd
jmp 0x466117
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x484800]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x466115
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x466118
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x466174
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x484800]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4661ba
cmp word [ebx], dx
jne 0x4661ba
or byte [eax + edi + 0x28], 4
jmp 0x4661bf
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x466322
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x466302
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x466200
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x466236
cmp eax, edx
jae 0x466244
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4661db
jmp 0x466322
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4662fd
cmp dword [ebp - 0x18], 0
je 0x4662fd
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x484800]
test byte [eax + edi + 0x28], 0x48
je 0x4662d3
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x466297
mov word [esi], cx
jmp 0x4662ce
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x484800]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x484800]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x484800]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x466322
pop eax
cmp word [ebp - 4], ax
jne 0x4662e3
cmp esi, ebx
jne 0x4662e3
mov word [esi], ax
jmp 0x46631f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004015f5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x466322
push 0xd
pop eax
jmp 0x4662de
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x484800]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x46631c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x466322
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4033e8
Capabilities:
Query or enumerate registry value

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

Function at 0x4041f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46104c], 0
je 0x404255
cmp word [0x461220], 0xd7b2
jne 0x40421d
cmp dword [0x461228], 0
jbe 0x40421d
mov eax, 0x46121c
call dword [0x461238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45f054
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 0x40427c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45f01c], 0
jne 0x404271
push 0
push 0x45f074
push 0x45f054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a1e4
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 0x40a21d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404480
jmp 0x40a226
mov eax, ebx
mov edx, esi
call fcn.004043e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a8d8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a750
mov eax, dword [0x460288]
cmp byte [eax], 0
je 0x40a945
mov eax, dword [0x460090]
call fcn.00402d04
call fcn.004028c0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408a5c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40a98c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a97b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x460044]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x461718]
call fcn.00405b24
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 0x40b488
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 0x40b4ec
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.004045f8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040877c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b4f3
lea eax, [ebp - 0xc]
call fcn.00404390
ret
Function at 0x4226f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x461a5c
cmp dword [edi], 0
jne 0x422770
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x461a58]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45f5e8
mov ecx, 2
call fcn.00402954
mov edx, 0x4226cc
lea eax, [esi + 5]
call fcn.004226ec
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004226ec
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 0x422745
mov dword [0x461a58], 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 0x42394c
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 0x423952
ret

Function at 0x425dcc
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 0x425e1d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x425e04
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x425df4
jmp 0x425e1d
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 0x425e05
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e0c0
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 0x42e00c
call sub.user32.dll_EnumWindows
ret

Function at 0x42e1e4
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 0x42e261
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042dc30
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 0x42e209
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042d888
cmp dword [ebp - 4], 0
je 0x42e24b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404840
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 0x42e268
lea eax, [ebp - 4]
call fcn.00404390
ret

Function at 0x431f60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x431fb0]
test si, 4
je 0x431f74
or bl, 1
test si, 8
je 0x431f7e
or bl, 4
test si, 1
je 0x431f88
or bl, 8
test si, 2
je 0x431f92
or bl, 0x10
test si, 0x10
je 0x431f9c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431fab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x431fb4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x431fec]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431fcd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431fdc
or bl, 4
test esi, 0x20000000
je 0x431fe7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x438608
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43861a
add esp, 0xfffffff0
call fcn.004038c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421670
mov eax, dword [0x46004c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4389ac
mov eax, dword [0x460058]
mov dword [eax + 4], ebx
mov dword [eax], 0x4389b8
mov eax, ebx
call fcn.004389c4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416e70]
call fcn.00403548
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416e70]
call fcn.00403548
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416e70]
call fcn.00403548
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416e70]
call fcn.00403548
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416e70]
call fcn.00403548
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x434e8c
push eax
push 0
push 0
mov eax, dword [0x4601a4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x423050]
call fcn.00424494
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x423050]
call fcn.00424494
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x423050]
call fcn.00424494
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00438de4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x438cc0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x438cc0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x438cc0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x438757
call fcn.0040391c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret