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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00496d60
test byte [ebp + 0xd], 0xc0
jne 0x495c80
mov eax, dword [0x4ab264]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x495c8d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x495cba
je 0x495ccc
sub ecx, 0x100
je 0x495cda
sub ecx, 0x100
je 0x495ce1
sub ecx, 0x100
je 0x495cd3
jmp 0x495ce8
sub ecx, 0x600
je 0x495ce1
sub ecx, 0x100
je 0x495ccc
jmp 0x495ce8
mov edi, 1
jmp 0x495ced
mov edi, 2
jmp 0x495ced
mov edi, 4
jmp 0x495ced
mov edi, 5
jmp 0x495ced
mov edi, 3
test byte [ebp + 0xd], 1
je 0x495d14
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4aacdc]
test al, 0x80
je 0x495d0d
mov ebx, 0x80
jmp 0x495d26
mov ebx, 1
jmp 0x495d26
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x495d26
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x495d38
je 0x495d41
dec eax
je 0x495d4a
jmp 0x495d53
mov dword [ebp - 4], CreateStatusWindowA
jmp 0x495d62
mov dword [ebp - 4], 0x40000000
jmp 0x495d62
mov dword [ebp - 4], 0xc0000000
jmp 0x495d62
push 1
call fcn.00497138
pop ecx
mov ebx, eax
jmp 0x495e52
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x495d7e
sub eax, 0x10
je 0x495d85
sub eax, 0x10
je 0x495d8e
sub eax, 0x10
je 0x495d97
jmp 0x495d97
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x495d9e
mov dword [ebp - 8], 1
jmp 0x495d9e
mov dword [ebp - 8], 2
jmp 0x495d9e
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x495e0b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x495e00
test byte [ebp + 0xd], 1
je 0x495dfb
mov ebx, 0x50
jmp 0x495e00
mov ebx, 2
push ebx
call fcn.00497138
pop ecx
mov ebx, eax
jmp 0x495e52
mov edi, esi
push edi
call fcn.00495bc0
pop ecx
test eax, eax
je 0x495e1f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x495e2b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00496e60
add esp, 8
mov ebx, eax
inc eax
jne 0x495e52
push 4
call fcn.00497138
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00496d94
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49635c
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x496378
call fcn.004971a4
jmp 0x4963e7
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x496394
call fcn.004971a4
jmp 0x4963e7
cmp dword [0x4e63c4], 1
je 0x4963e5
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.0049b15c
pop ecx
cmp al, 0x41
jl 0x4963e5
cmp al, 0x5a
jg 0x4963e5
cmp byte [ebp - 0x107], 0x3a
jne 0x4963e5
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4963e5
call fcn.004971a4
jmp 0x4963e7
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x49b220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x49b282
call fcn.0049b1d0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004949f8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004949f8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x49b300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4ac1bc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x49b3da
cmp dword [0x4ac1b8], 0
jne 0x49b3da
cmp dword [0x4ac3e4], 0
je 0x49b394
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0049b104
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49b37a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0049b104
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49b37a
lea ebx, [ebp - 0x84]
jmp 0x49b37b
inc ebx
call fcn.0049b2bc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x49b415
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4ac1c0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004949f8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4ac1c3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x49b415
cmp dword [0x4ac1b8], 0
je 0x49b3f4
cmp dword [0x4ac1b8], 0xffffffff
je 0x49b415
push esi
call dword [0x4ac1b8]
pop ecx
mov eax, dword [0x4ac1bc]
test eax, eax
je 0x49b415
cmp dword [0x4ac1bc], 0xffffffff
je 0x49b415
cmp byte [eax], 0
je 0x49b415
push esi
push eax
call fcn.0049b220
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49cba4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x49cbca
test esi, esi
je 0x49cbca
call fcn.0049b288
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x49cc3c
call fcn.0049c8bc
mov ebx, eax
test eax, eax
jne 0x49cbe5
call fcn.0049b288
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x49cc3c
mov edx, dword [ebp + 0x10]
mov dword [ebx + 4], edx
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x54], eax
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push 0x49cb00
push esi
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x49cc30
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x49cc29
push 0x59
call fcn.00497138
pop ecx
jmp 0x49cc3c
call fcn.004971a4
jmp 0x49cc3c
mov dword [ebx + 8], eax
test edi, edi
je 0x49cc3c
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x7b9130
Capabilities:
Decompress data using aplib

Disassembly:
call 0x7b9280
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7b9156
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7b9142
add dl, dl
jne 0x7b9161
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7b91b4
xor eax, eax
add dl, dl
jne 0x7b916e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7b9255
add dl, dl
jne 0x7b917d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7b9188
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7b9193
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7b919e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7b91aa
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7b914d
mov eax, 1
add dl, dl
jne 0x7b91c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7b91cd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7b91b9
sub eax, ebx
mov ebx, 1
jne 0x7b9200
mov ecx, 1
add dl, dl
jne 0x7b91e6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7b91f1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7b91dd
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7b914d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7b9217
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7b9222
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7b920e
cmp eax, 0x7d00
jae 0x7b9245
cmp eax, 0x500
jb 0x7b9240
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7b914d
cmp eax, 0x7f
ja 0x7b9248
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7b914d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7b9276
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x7b914d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4029f4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403ff0
test esi, esi
jne 0x402a2a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040e0
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030ac
Capabilities:
Query or enumerate registry value

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

Function at 0x403df0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x452048], 0
je 0x403e51
cmp word [0x45221c], 0xd7b2
jne 0x403e19
cmp dword [0x452224], 0
jbe 0x403e19
mov eax, 0x452218
call dword [0x452234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45006c
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 0x403e78
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x450030], 0
jne 0x403e6d
push 0
push 0x450064
push 0x45006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403fa4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026cc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x452049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403f6c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405b68
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 0x405bce
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.00404260
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c70
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405bb8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bd5
lea eax, [ebp - 0x10]
call fcn.00403ff0
ret

Function at 0x40ab88
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 0x40abc1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040e0
jmp 0x40abca
mov eax, ebx
mov edx, esi
call fcn.00404044
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b27c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b0f4
mov eax, dword [0x45101c]
cmp byte [eax], 0
je 0x40b2f8
mov eax, dword [0x450e3c]
call fcn.00402adc
call fcn.00402834
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.004083e8
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 0x40b340
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b32e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x450dec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x452664]
call fcn.0040507c
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 0x40bb94
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 0x40bc6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404088
lea eax, [ebp - 8]
call fcn.00404500
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044b0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bc54
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bc4d
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.004044b0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bc37
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bc7c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bc37
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 0x40bc54
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc71
lea eax, [ebp - 8]
call fcn.00403ff0
ret

Function at 0x40c0e8
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 0x40c14c
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.00404260
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407f78
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c153
lea eax, [ebp - 0xc]
call fcn.00403ff0
ret

Function at 0x419658
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004194b0
dec esi
jne 0x41967a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41a7bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x452888
cmp dword [edi], 0
jne 0x41a838
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x452884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4503ec
mov ecx, 2
call fcn.004028c8
mov edx, 0x41a794
lea eax, [esi + 5]
call fcn.0041a7b4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a7b4
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 0x41a80d
mov dword [0x452884], 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 0x41ba4c
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 0x41ba52
ret

Function at 0x41de94
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 0x41dee5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41decc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41debc
jmp 0x41dee5
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 0x41decd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425f0c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00425c88
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004044b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x425f6a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x450f4c]
mov dl, 1
mov eax, dword [0x425bac]
call fcn.0040b43c
call fcn.004039a8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x427830
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 0x42777c
call sub.user32.dll_EnumWindows
ret

Function at 0x427950
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 0x4279cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004273b0
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 0x427975
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00426fb0
cmp dword [ebp - 4], 0
je 0x4279b7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004044b0
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 0x4279d4
lea eax, [ebp - 4]
call fcn.00403ff0
ret
Function at 0x42a670
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 [0x452b58], 0
je 0x42a7bf
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x450fc0]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42a7bf
mov eax, dword [0x452b5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x452b58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42a78e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x452b58]
call fcn.00413884
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42a786
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42a786
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42a786
mov eax, dword [ebp - 0x14]
call fcn.004331d4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42a786
push ebp
call fcn.0042a62c
pop ecx
test al, al
jne 0x42a786
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42a742
mov eax, dword [ebp - 0x14]
call fcn.00431d04
dec eax
jle 0x42a786
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.00403430
cmp byte [ebp - 1], 0
je 0x42a786
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42a786
mov edx, dword [ebp - 0x14]
mov eax, dword [0x452b5c]
call fcn.00429df8
inc edi
dec ebx
jne 0x42a6d5
mov eax, dword [0x452b5c]
cmp dword [eax + 8], 0
jle 0x42a7a6
mov eax, dword [0x452b5c]
call fcn.00429e88
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42a7bf
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042a494
pop ecx
test al, al
jne 0x42a7bf
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