joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402240
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40228b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402284
test esi, esi
je 0x402284
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402260
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402470
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4024c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402598
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4024fe
cmp eax, 4
jne 0x402520
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40250e
cmp edx, 4
je 0x40250e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402470
Function at 0xc80108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c80258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc8012e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc8011a
add dl, dl
jne 0xc80139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc8018c
xor eax, eax
add dl, dl
jne 0xc80146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc8022d
add dl, dl
jne 0xc80155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc80160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc8016b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc80176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc80182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc80125
mov eax, 1
add dl, dl
jne 0xc8019a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc801a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc80191
sub eax, ebx
mov ebx, 1
jne 0xc801d8
mov ecx, 1
add dl, dl
jne 0xc801be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc801c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc801b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc80125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc801ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc801fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc801e6
cmp eax, 0x7d00
jae 0xc8021d
cmp eax, 0x500
jb 0xc80218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc80125
cmp eax, 0x7f
ja 0xc80220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc80125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc8024e
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 0xc80125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402670
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x40267e
call dword [0x452014]
or eax, eax
je 0x40267f
ret
mov al, 1
jmp fcn.004026f0

Function at 0x402688
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x402696
call dword [0x452018]
or eax, eax
jne 0x402697
ret
mov al, 2
jmp fcn.004026f0

Function at 0x4026a0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x4026d8
test edx, edx
je 0x4026c2
push eax
mov eax, ecx
call dword [0x45201c]
pop ecx
or eax, eax
je 0x4026d1
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.004026f0
mov dword [eax], edx
mov eax, ecx
call dword [0x452018]
or eax, eax
jne 0x4026bb
ret
mov al, 1
jmp fcn.004026f0
test edx, edx
je 0x4026ec
push eax
mov eax, edx
call dword [0x452014]
pop ecx
or eax, eax
je 0x4026d1
mov dword [ecx], eax
ret

Function at 0x402734
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push ecx
call fcn.004051bc
cmp dword [eax + 4], 0
pop ecx
pop edx
pop eax
jne 0x402749
ret
xor eax, eax
jmp fcn.004026f0

Function at 0x4029e0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x45303c], 0x8088405
inc edx
mov dword [0x45303c], edx
mul edx
mov eax, edx
ret

Function at 0x4029f8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x45303c], 0x8088405
inc edx
mov dword [0x45303c], edx
fld qword [0x452024]
push 0
push edx
fild qword [esp]
add esp, 8
fscale
fstp st(1)
ret

Function at 0x402b3c
Capabilities:
Query or enumerate registry value

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

Function at 0x402da4
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x402dbe
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, edx
je 0x402dbe
mov ecx, dword [ecx - 0x18]
test ecx, ecx
jne 0x402daa
mov al, 0xa
jmp fcn.004026f0
ret

Function at 0x402df0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x453018], 0
je 0x402843
call dword [0x453018]
mov eax, 0xd2
jmp fcn.0040376c
push eax
push ecx
mov eax, dword [eax]
call fcn.00402dc0
pop ecx
pop eax
je 0x402dff
jmp ebx
pop ecx
jmp 0x402834
Function at 0x403648
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x453480
mov esi, 0x453030
mov edi, 0x453034
cmp byte [ebx + 0x24], 0
jne 0x403677
cmp dword [edi], 0
je 0x403677
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x403666
cmp dword [0x453038], 0
je 0x4036be
call fcn.004035c4
cmp byte [0x453040], 0
je 0x4036a4
mov edx, 0x45202c
mov eax, 0x453214
call fcn.00404ca8
call fcn.00404c2b
jmp 0x4036b7
push 0
push 0x45204c
push 0x45202c
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
mov dword [0x453038], eax
cmp byte [ebx + 0x24], 2
jne 0x4036ce
cmp dword [esi], 0
jne 0x4036ce
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.0040347c
cmp byte [ebx + 0x24], 1
jbe 0x4036de
cmp dword [esi], 0
je 0x4036fb
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4036fb
call fcn.004046e0
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 8]
cmp edx, dword [eax + 4]
je 0x4036fb
push edx
call sub.kernel32.dll_FreeLibrary
call fcn.00403454
cmp byte [ebx + 0x24], 1
jne 0x403709
call dword [ebx + 0x28]
cmp byte [ebx + 0x24], 0
je 0x403714
call fcn.00403614
cmp dword [ebx], 0
jne 0x403721
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4036be

Function at 0x403d70
Capabilities:
Terminate process

Disassembly:
test edx, edx
je fcn.00403d34
mov ecx, dword [edx - 4]
shr ecx, 1
je fcn.00403d34
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x403d2c
ret

Function at 0x403e18
Capabilities:
Terminate process

Disassembly:
mov al, 1
jmp fcn.004026f0
test ecx, ecx
je fcn.00403d34
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x403d2c
ret

Function at 0x403e70
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x403eaa
cmp al, 0xb
je 0x403eaa
cmp al, 0xc
je 0x403eb4
cmp al, 0xd
je 0x403ec7
cmp al, 0xe
je 0x403ee5
cmp al, 0xf
je 0x403eaa
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.004026f0
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x403eaa
jmp 0x403ef9
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x403eb4
jmp 0x403ef9
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call 0x403e70
dec edi
jg 0x403eca
pop ebp
jmp 0x403ef9
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00403e44
dec edi
jg 0x403ee8
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x403e70
Function at 0x403f00
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x403eaa
cmp al, 0xb
je 0x403eaa
cmp al, 0xc
je 0x403eb4
cmp al, 0xd
je 0x403ec7
cmp al, 0xe
je 0x403ee5
cmp al, 0xf
je 0x403eaa
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.004026f0
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x403eaa
jmp 0x403ef9
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x403eb4
jmp 0x403ef9
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call 0x403e70
dec edi
jg 0x403eca
pop ebp
jmp 0x403ef9
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00403e44
dec edi
jg 0x403ee8
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x403e70

Function at 0x403f38
Capabilities:
Terminate process

Disassembly:
push eax
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
cmp al, 0xa
je 0x403f72
cmp al, 0xb
je 0x403f89
cmp al, 0xc
je 0x403fa0
cmp al, 0xd
je 0x403faf
cmp al, 0xe
je 0x403fcd
cmp al, 0xf
je 0x403fe3
pop edi
pop esi
pop ebx
pop eax
mov al, 2
jmp fcn.004026f0
cmp ecx, 1
mov eax, ebx
jg 0x403f80
call fcn.00403778
jmp 0x403ff0
mov edx, ecx
call fcn.0040379c
jmp 0x403ff0
cmp ecx, 1
mov eax, ebx
jg 0x403f97
call fcn.00403d34
jmp 0x403ff0
mov edx, ecx
call fcn.00403d4c
jmp 0x403ff0
mov eax, ebx
add ebx, 0x10
call fcn.004043e0
dec edi
jg 0x403fa0
jmp 0x403ff0
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call fcn.00403f38
dec edi
jg 0x403fb2
pop ebp
jmp 0x403ff0
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00403f0c
dec edi
jg 0x403fd0
pop ebp
jmp 0x403ff0
mov eax, ebx
add ebx, 4
call fcn.00404794
dec edi
jg 0x403fe3
pop edi
pop esi
pop ebx
pop eax
ret

Function at 0x403ff8
Capabilities:
Terminate process

Disassembly:
mov ecx, 1
jmp fcn.00403f38

Function at 0x40417c
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.004026f0
cmp eax, edx
je 0x4041ec
cmp word [eax], 8
jb 0x4041a1
push eax
push edx
cmp word [eax], 0x100
je 0x404197
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x40419f
add eax, 8
call fcn.00403778
pop edx
pop eax
cmp word [edx], 8
jae 0x4041b8
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
jne 0x4041d8
mov edx, dword [edx + 8]
or edx, edx
je 0x4041cf
mov ecx, dword [edx - 8]
inc ecx
jle 0x4041cf
mov dword [edx - 8], ecx
mov word [eax], 0x100
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call sub.oleaut32.dll_VariantCopyInd
or eax, eax
jne 0x404140
ret
Function at 0x404434
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4045d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4044e4
xor eax, eax
push ebp
push 0x4044dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4044c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4045f0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4044e4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4045c5
cmp byte [ebp - 0xd], 0
jne 0x404526
cmp byte [ebp - 0x12], 0
je 0x4045c5
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40453f
dec ebx
cmp byte [ebx], 0x2e
je 0x40454e
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40453e
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4045c5
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40457b
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4045c5
cmp byte [ebp - 0xd], 0
je 0x4045c5
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4045c5
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404fdc
Capabilities:
Terminate process

Disassembly:
push ebx
sub esp, 0xc
fstp xword [esp]
pop ebx
pop edx
pop ecx
shr ebx, 0x18
adc bl, 0
adc edx, 0
adc cx, 0
jo 0x40501e
add edx, edx
add cx, cx
rcr edx, 1
shr cx, 1
sub cx, 0x3f7e
jle 0x405014
test ch, ch
jg 0x40501e
mov byte [eax], cl
mov byte [eax + 1], bl
mov dword [eax + 2], edx
pop ebx
ret
xor ecx, ecx
mov dword [eax], ecx
mov word [eax + 4], cx
pop ebx
ret
pop ebx
mov al, 8
jmp fcn.004026f0
Function at 0x4072d0
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407309
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040385c
jmp 0x407312
mov eax, ebx
mov edx, esi
call fcn.00403810
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x410e14
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 0x410e1a
ret

Function at 0x413330
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 0x413381
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x413368
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jne 0x413358
jmp 0x413381
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
jne 0x413369
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bd54
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x114], 0
je 0x41bd70
cmp dword [esi + 4], 0
je 0x41bd97
mov eax, ebx
call fcn.0041af88
test eax, eax
jne 0x41bd89
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x41bea7
mov edx, esi
mov eax, ebx
call fcn.0041b9f8
jmp 0x41bea7
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41bea0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041d354
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00419e90
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0041bd54
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041d354
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bea7
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4200f0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403778
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x420151
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x420151
cmp byte [ebp - 0x102], 0
je 0x420151
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.004039a4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4214e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x421561
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x421512
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x421524
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x421530
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0042136c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x421555
push ebp
mov eax, dword [ebp - 4]
call fcn.00421450
pop ecx
mov ebx, eax
cmp bl, 2
je 0x421530
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423388
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4536dc
cmp dword [edi], 0
jne 0x423404
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4536d8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45270c
mov ecx, 2
call fcn.00402764
mov edx, 0x423360
lea eax, [esi + 5]
call fcn.00423380
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423380
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 0x4233d9
mov dword [0x4536d8], 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 0x423528
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x423578]
test si, 4
je 0x42353c
or bl, 1
test si, 8
je 0x423546
or bl, 4
test si, 1
je 0x423550
or bl, 8
test si, 2
je 0x42355a
or bl, 0x10
test si, 0x10
je 0x423564
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x423573
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret