joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fdf50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa9000]
push edi
jmp 0x4fdf6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fdf71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fdf60
mov eax, 1
add ebx, ebx
jne 0x4fdf83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fdf94
jne 0x4fdfb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fdfb3
dec eax
add ebx, ebx
jne 0x4fdfa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fdf78
add ebx, ebx
jne 0x4fdfaf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fe005
xor ecx, ecx
sub eax, 3
jb 0x4fdfcb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fe03a
sar eax, 1
mov ebp, eax
jmp 0x4fdfd6
add ebx, ebx
jne 0x4fdfd6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fdfa4
inc ecx
add ebx, ebx
jne 0x4fdfe4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fdfa4
add ebx, ebx
jne 0x4fdff1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fdfe6
jne 0x4fe002
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fdfe6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fe024
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fe016
jmp 0x4fdf66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fe024
add edi, ecx
jmp 0x4fdf66
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fe042
cmp byte [edi], 0x11
jne 0x4fe042
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4fe047
lea edi, [esi + 0xf6000]
mov eax, dword [edi]
or eax, eax
je 0x4fe0bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1236c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12383c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fe074
mov ecx, edi
jns 0x4fe0a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x123840]
or eax, eax
je 0x4fe0b9
mov dword [ebx], eax
add ebx, 4
jmp 0x4fe091
call dword [esi + 0x123850]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4fe0f0
cmp al, 0xef
ja 0x4fe0e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4fe0c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4fe0d2
mov ebp, dword [esi + 0x123844]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4fe124
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x401180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
je 0x401226
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov edx, 8
imul eax, edx, 0
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 4], ecx
mov dword [ebp - 4], 0
jmp 0x4011ea
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x401226
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp + 8]
push ecx
call fcn.00401500
add esp, 4
cmp eax, dword [ebp + 0xc]
jne 0x401224
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4]
add eax, dword [ebp + 8]
jmp 0x401228
jmp 0x4011e1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401500
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0x1505
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
cmp dword [ebp - 0xc], 0
je 0x40153c
mov ecx, dword [ebp - 4]
shl ecx, 5
add ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x40150d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401550
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40500c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
jne 0x4015b9
mov eax, dword fs:[0x30]
cmp byte ds:[eax + 2], 0
je 0x4015b9
cmp byte ds:[eax + 0x68], 0x70
je 0x4015b9
cmp byte ds:[0x401ce0], 0xe8
jne 0x4015b9
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 8], eax
push 0x1c93965e
mov eax, dword [ebp - 8]
push eax
call fcn.00401180
add esp, 8
mov dword [ebp - 0xc], eax
push 8
push 0x4015d0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401230
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402dfb
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x40500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x40c], 0
mov ecx, 0x100
mov esi, dword [ebp - 0x414]
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x410], 0
jmp 0x40196d
mov eax, dword [ebp - 0x410]
add eax, 1
mov dword [ebp - 0x410], eax
mov ecx, dword [ebp - 0x410]
cmp ecx, dword [ebp + 0xc]
jae 0x401a5c
mov edx, dword [ebp - 0x408]
add edx, 1
and edx, 0x800000ff
jns 0x401995
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x408], edx
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x40c]
add ecx, dword [ebp + eax*4 - 0x404]
and ecx, 0x800000ff
jns 0x4019be
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp - 0x414]
mov eax, dword [ebp - 0x408]
mov cl, byte [ebp + eax*4 - 0x404]
mov byte [edx + 0x408], cl
mov edx, dword [ebp - 0x408]
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp + eax*4 - 0x404]
mov dword [ebp + edx*4 - 0x404], ecx
mov edx, dword [ebp - 0x414]
movzx eax, byte [edx + 0x408]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp + ecx*4 - 0x404], eax
mov edx, dword [ebp - 0x408]
mov eax, dword [ebp + edx*4 - 0x404]
mov ecx, dword [ebp - 0x40c]
add eax, dword [ebp + ecx*4 - 0x404]
and eax, 0x800000ff
jns 0x401a39
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x410]
movzx ecx, byte [edx]
xor ecx, dword [ebp + eax*4 - 0x404]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x410]
mov byte [edx], cl
jmp 0x40195e
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402dfb
mov esp, ebp
pop ebp
ret 8
Function at 0x401e10
Capabilities:
Get process heap force flags

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx + 0xa4]
shl eax, 0x10
or eax, dword [ecx + 0xa8]
ret

Function at 0x401ec0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
movzx ecx, word [ecx + 6]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*8]
cmp eax, edi
je 0x401efe
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x401ef7
mov ecx, dword [eax + 8]
add ecx, edx
cmp esi, ecx
jb 0x401f00
add eax, 0x28
cmp eax, edi
jne 0x401ee7
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4028e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x40500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.DLL_IsProcessorFeaturePresent]
test eax, eax
je 0x402907
mov ecx, 5
int 0x29
push 2
call fcn.004023f0
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.DLL_UnhandledExceptionFilter]
test eax, eax
jne 0x402a12
test esi, esi
jne 0x402a12
push 2
call fcn.004023f0
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00402dfb
mov esp, ebp
pop ebp
ret
Function at 0x402a74
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.00404280
test esi, esi
jne 0x402aaa
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.00404370
jmp 0x402ac8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402928
mov edi, eax
test esi, esi
je 0x402ac8
cmp dword [ebx], 0
je 0x402ac8
dec esi
jmp 0x402ab1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032a0
Capabilities:
Query or enumerate registry value

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

Function at 0x404060
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x496048], 0
je 0x4040c1
cmp word [0x49621c], 0xd7b2
jne 0x404089
cmp dword [0x496224], 0
jbe 0x404089
mov eax, 0x496218
call dword [0x496234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x490074
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 0x4040e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x490030], 0
jne 0x4040dd
push 0
push 0x49006c
push 0x490074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404234
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.004026ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x496049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4041fc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405a9c
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 0xf0019
push 0
push 0x405ccc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b1f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ccc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b1f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ce8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ba8
xor eax, eax
push ebp
push 0x405ba1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004058e4
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 0x405b86
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d08
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b86
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ba8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x405cc2
cmp byte [ebp - 0xd], 0
jne 0x405bef
cmp byte [ebp - 0x12], 0
je 0x405cc2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c08
dec ebx
cmp byte [ebx], 0x2e
je 0x405c17
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c07
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405cc2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c54
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405cc2
cmp byte [ebp - 0xd], 0
je 0x405cc2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405cc2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x406394
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 0x4063fa
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.004044f0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d3c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4063e4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406401
lea eax, [ebp - 0x10]
call fcn.00404280
ret

Function at 0x40b878
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 0x40b8b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404370
jmp 0x40b8ba
mov eax, ebx
mov edx, esi
call fcn.004042d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bf6c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bde4
mov eax, dword [0x4953c4]
cmp byte [eax], 0
je 0x40bfe8
mov eax, dword [0x4950d8]
call fcn.00402ba8
call fcn.00402854
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.00408fd0
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 0x40c030
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c01e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x495068]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x496664]
call fcn.004058a8
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 0x40c8a8
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 0x40c97e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404318
lea eax, [ebp - 8]
call fcn.00404790
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404740
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c968
mov eax, ebx
call fcn.004026ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c961
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.00404740
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c94b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c990
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c94b
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 0x40c968
mov eax, dword [ebp - 0x10]
call fcn.0040270c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c985
lea eax, [ebp - 8]
call fcn.00404280
ret

Function at 0x40cf04
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 0x40cf68
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.004044f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408ac4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf6f
lea eax, [ebp - 0xc]
call fcn.00404280
ret

Function at 0x421980
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.004217d8
dec esi
jne 0x4219a2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x422ae4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x496888
cmp dword [edi], 0
jne 0x422b60
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x496884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4904ac
mov ecx, 2
call fcn.004028e8
mov edx, 0x422abc
lea eax, [esi + 5]
call fcn.00422adc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422adc
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 0x422b35
mov dword [0x496884], 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 0x4240f4
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 0x4240fa
ret

Function at 0x426694
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 0x4266e5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4266cc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4266bc
jmp 0x4266e5
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 0x4266cd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42fa28
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404730
xor eax, eax
push ebp
push 0x42fb56
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42fb29
xor eax, eax
push ebp
push 0x42fb22
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404540
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42faf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42fae6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404540
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404740
mov edx, ebx
pop ecx
call fcn.004028e8
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42faed
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x494fe8]
mov dl, 1
mov eax, dword [0x40780c]
call fcn.0040c114
call fcn.00403bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fb5d
lea eax, [ebp - 4]
call fcn.00404280
ret