joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f858
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x47f875
add esp, 0xfffffff0
call fcn.004037e0
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x47fa11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00476064
test al, al
jne 0x47f8b2
mov ecx, 0x47fa44
mov dl, 1
mov eax, dword [0x46a760]
call fcn.0040c4ec
call fcn.00403d0c
xor eax, eax
push ebp
push 0x47f8de
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00474b10
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004749fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47f8fe
mov eax, dword [ebp - 0x10]
mov edx, 0x47fa80
call fcn.00404ca0
je 0x47f91b
mov eax, esi
mov edx, 0x47fa80
call fcn.00404ca0
jne 0x47f93f
mov eax, edi
mov edx, 0x47fa90
call fcn.00404ca0
je 0x47f93f
mov ecx, 0x47fa68
mov dl, 1
mov eax, dword [0x46aa08]
call fcn.0040c4ec
call fcn.00403d0c
mov eax, edi
xor edx, edx
call fcn.00404ca0
jne 0x47f96c
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404ca0
je 0x47f96c
mov ecx, 0x47fa68
mov dl, 1
mov eax, dword [0x46aa08]
call fcn.0040c4ec
call fcn.00403d0c
mov eax, dword [ebp - 0x10]
mov edx, 0x47fad0
call fcn.00404ca0
jne 0x47f99f
mov eax, edi
mov edx, 0x47fadc
call fcn.00404ca0
je 0x47f99f
mov ecx, 0x47fa68
mov dl, 1
mov eax, dword [0x46aa08]
call fcn.0040c4ec
call fcn.00403d0c
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.0047d948
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404a34
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.00404a34
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404a34
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404a34
lea eax, [ebx + 8]
call fcn.004049f8
mov byte [ebx + 0xc], 2
xor eax, eax
mov dword [ebx + 0x30], eax
mov al, byte [ebp + 8]
mov byte [ebx + 0x34], al
mov ax, word [0x47fb28]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fa18
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404a10
ret
Function at 0x48130c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x481329
add esp, 0xfffffff0
call fcn.004037e0
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4814c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00476064
test al, al
jne 0x481366
mov ecx, 0x4814f8
mov dl, 1
mov eax, dword [0x46a760]
call fcn.0040c4ec
call fcn.00403d0c
xor eax, eax
push ebp
push 0x481392
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00474b10
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004749fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4813b2
mov eax, edi
xor edx, edx
call fcn.00404ca0
jne 0x4813df
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404ca0
je 0x4813df
mov ecx, 0x48151c
mov dl, 1
mov eax, dword [0x46aa08]
call fcn.0040c4ec
call fcn.00403d0c
mov eax, dword [ebp - 0x10]
mov edx, 0x481534
call fcn.00404ca0
jne 0x481412
mov eax, edi
mov edx, 0x481540
call fcn.00404ca0
je 0x481412
mov ecx, 0x48151c
mov dl, 1
mov eax, dword [0x46aa08]
call fcn.0040c4ec
call fcn.00403d0c
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.0047d948
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404a34
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.00404a34
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404a34
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404a34
lea eax, [ebx + 8]
call fcn.004049f8
mov byte [ebx + 0xc], 1
mov dl, 1
mov eax, dword [0x419520]
call fcn.0040349c
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x419520]
call fcn.0040349c
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x419520]
call fcn.0040349c
mov dword [ebx + 0x34], eax
push ebx
mov eax, dword [ebx + 0x38]
push eax
mov ax, word [0x48158c]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x46d784]
call fcn.0047cba0
mov dword [ebx + 0x3c], eax
mov ax, word [0x481590]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4814cb
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404a10
ret
Function at 0x483f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x483f42
add esp, 0xfffffff0
call fcn.004037e0
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4840ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00476064
test al, al
jne 0x483f7f
mov ecx, 0x4840e0
mov dl, 1
mov eax, dword [0x46a760]
call fcn.0040c4ec
call fcn.00403d0c
push dword [0x4cd778]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x4cd778]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c58
mov eax, dword [ebp - 0xc]
call fcn.00476b3c
test al, al
jne 0x484051
push dword [0x4cd774]
push dword [ebp + 8]
push dword [0x4cd774]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404c58
mov eax, dword [ebp - 0x14]
call fcn.00476b3c
test al, al
jne 0x484051
push dword [0x4cd778]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x4cd778]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404c58
mov eax, dword [ebp - 0x18]
call fcn.00476c54
test al, al
jne 0x484051
push dword [0x4cd774]
push edi
push dword [0x4cd774]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404c58
mov eax, dword [ebp - 0x20]
call fcn.00476c54
test al, al
jne 0x484051
mov ecx, 0x4840e0
mov dl, 1
mov eax, dword [0x46a760]
call fcn.0040c4ec
call fcn.00403d0c
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.0047d948
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404a34
lea eax, [ebx + 8]
call fcn.004049f8
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.00404a34
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.00404a34
mov byte [ebx + 0xc], 0xc
mov ax, word [0x4840fc]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4840b4
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404a10
ret

Function at 0x4b8bb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b8c2b
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x59
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4b8c12
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.0040455c
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.00408880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8c32
lea eax, [ebp - 0x104]
call fcn.004042ec
ret
Function at 0x1001573
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001a00
call fcn.01001714
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100132e
cmp eax, esi
jne 0x1001321
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001331
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001308
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x1001344
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001373
mov eax, dword [0x100236c]
test eax, eax
jne 0x100136d
mov dword [0x100236c], esi
push 0x10010b8
push 0x10010ac
call fcn.0100126a
pop ecx
pop ecx
test eax, eax
je 0x1001373
jmp 0x1001497
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x1001397
push 0x10010a8
push 0x10010a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x10013a4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x10013c5
push 0x1002374
call fcn.01001689
pop ecx
test eax, eax
je 0x10013c5
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1001497
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100142f
cmp cx, bx
je 0x10013ea
cmp dword [ebp - 0x1c], ebx
jne 0x100142f
movzx ecx, word [eax]
cmp cx, bx
je 0x10013ff
cmp cx, 0x20
ja 0x10013ff
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10013ea
test byte [ebp - 0x40], 1
je 0x100140b
movzx ecx, word [ebp - 0x3c]
jmp 0x100140e
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x1001474
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1001440
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10013d4
cmp dword [0x1002034], ebx
jne 0x1001482
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x10014a3
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001759
ret
call fcn.01001861
jmp 0x10012cb
Function at 0x51e1d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb7000]
push edi
or ebp, 0xffffffff
jmp 0x51e1f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51e1f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e1e8
mov eax, 1
add ebx, ebx
jne 0x51e20b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51e21c
jne 0x51e22c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e22c
dec eax
add ebx, ebx
jne 0x51e228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51e200
xor ecx, ecx
sub eax, 3
jb 0x51e244
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51e2b6
sar eax, 1
mov ebp, eax
jmp 0x51e24f
add ebx, ebx
jne 0x51e24f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x51e25c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x51e280
inc ecx
add ebx, ebx
jne 0x51e26c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51e261
jne 0x51e27d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51e261
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51e2a0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51e291
jmp 0x51e1ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51e2a0
add edi, ecx
jmp 0x51e1ee
pop esi
mov edi, esi
mov ecx, 0x94fe
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51e2be
cmp byte [edi], 0x13
jne 0x51e2be
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 eax, ebx
loop 0x51e2c3
lea edi, [esi + 0x11b000]
mov eax, dword [edi]
or eax, eax
je 0x51e33b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x125260]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1253a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51e2f0
mov ecx, edi
jns 0x51e31f
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 + 0x1253a4]
or eax, eax
je 0x51e335
mov dword [ebx], eax
add ebx, 4
jmp 0x51e30d
call dword [esi + 0x1253a8]
popal
jmp 0x4a0c5d
Function at 0x4028e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40291d
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x40293d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404254
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403040
Capabilities:
Query or enumerate registry value

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

Function at 0x403de4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x495048], 0
je 0x403e45
cmp word [0x49521c], 0xd7b2
jne 0x403e0d
cmp dword [0x495224], 0
jbe 0x403e0d
mov eax, 0x495218
call dword [0x495234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49206c
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 0x403e6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x492030], 0
jne 0x403e61
push 0
push 0x492064
push 0x49206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403f98
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.00402704
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x495049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403f60
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405ed0
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 0x405f36
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.00404254
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c04
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f20
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f3d
lea eax, [ebp - 0x10]
call fcn.00403fe4
ret

Function at 0x40891c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004044a4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408935
test al, 0x10
jne 0x408939
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b828
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 0x40b861
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040d4
jmp 0x40b86a
mov eax, ebx
mov edx, esi
call fcn.00404038
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bf1c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bd94
mov eax, dword [0x4943f0]
cmp byte [eax], 0
je 0x40bf98
mov eax, dword [0x4940c8]
call fcn.00402a70
call fcn.0040286c
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.00408e8c
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 0x40bfe0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bfce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49404c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x495664]
call fcn.004053e4
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 0x40c834
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 0x40c90a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040407c
lea eax, [ebp - 8]
call fcn.004044f4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044a4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c8f4
mov eax, ebx
call fcn.00402704
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c8ed
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.004044a4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c8d7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c91c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c8d7
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 0x40c8f4
mov eax, dword [ebp - 0x10]
call fcn.00402724
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c911
lea eax, [ebp - 8]
call fcn.00403fe4
ret

Function at 0x40cec0
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 0x40cf24
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.00404254
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408548
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf2b
lea eax, [ebp - 0xc]
call fcn.00403fe4
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x495888
cmp dword [edi], 0
jne 0x422b70
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x495884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x492514
mov ecx, 2
call fcn.00402978
mov edx, 0x422acc
lea eax, [esi + 5]
call fcn.00422aec
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422aec
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 0x422b45
mov dword [0x495884], 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 0x424114
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 0x42411a
ret

Function at 0x4266a0
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 0x4266f1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4266d8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4266c8
jmp 0x4266f1
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 0x4266d9
pop ebx
mov esp, ebp
pop ebp
ret