joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c0b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x258
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x258]
push ecx
push eax
lea eax, [ebp - 0x114]
push str._s_s
push eax
sub ebx, ebx
mov dword [ebp - 0x258], 0x2a2e2a
call fcn.00401cb9
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c99
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x254]
push eax
push edi
call esi
or eax, eax
je 0x401c99
cmp ebx, 4
jge 0x401c94
lea eax, [ebp - 0x254]
push eax
push edi
inc ebx
call esi
or eax, eax
jne 0x401c7b
cmp ebx, 4
jl 0x401c99
xor eax, eax
inc eax
jmp 0x401c9b
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret

Function at 0x401caa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4110fc]
jne 0x401cb4
repz ret
jmp fcn.00403039

Function at 0x404531
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
or edi, edi
jne 0x40454c
call fcn.00404284
xor eax, eax
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x434168], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x43416c], eax
call esi
push str.FlsFree
push edi
mov dword [0x434170], eax
call esi
cmp dword [0x434168], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x434174], eax
je 0x4045ac
cmp dword [0x43416c], 0
je 0x4045ac
cmp dword [0x434170], 0
je 0x4045ac
test eax, eax
jne 0x4045d0
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x43416c], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x434168], 0x404251
mov dword [0x434170], esi
mov dword [0x434174], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x411284], eax
je 0x4046b0
push dword [0x43416c]
push eax
call esi
or eax, eax
je 0x4046b0
call fcn.004069c2
push dword [0x434168]
call fcn.00404182
push dword [0x43416c]
mov dword [0x434168], eax
call fcn.00404182
push dword [0x434170]
mov dword [0x43416c], eax
call fcn.00404182
push dword [0x434174]
mov dword [0x434170], eax
call fcn.00404182
add esp, 0x10
mov dword [0x434174], eax
call fcn.00408ff4
or eax, eax
je 0x4046ab
push 0x404410
push dword [0x434168]
call fcn.004041ee
pop ecx
call eax
cmp eax, 0xffffffff
mov dword [0x411280], eax
je 0x4046ab
push 0x214
push 1
call fcn.0040517d
push eax
pop esi
or esi, esi
pop ecx
pop ecx
je 0x4046ab
push esi
push dword [0x411280]
push dword [0x434170]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x4046ab
push 0
push esi
call fcn.004042c1
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
sub eax, eax
inc eax
jmp 0x4046b2
call fcn.00404284
xor eax, eax
pop esi
pop edi
ret
Function at 0x406a0e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
sub esi, esi
sub edi, edi
cmp ebx, dword [edi*8 + 0x4119e8]
je 0x406a29
inc edi
cmp edi, 0x17
jl 0x406a1a
cmp edi, 0x17
jae 0x406ba9
push ebp
push 3
call fcn.0040b683
cmp eax, 1
pop ecx
je 0x406b75
push 3
call fcn.0040b683
test eax, eax
pop ecx
jne 0x406a5d
cmp dword [0x4110f8], 1
je 0x406b75
cmp ebx, 0xfc
je 0x406ba8
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4342c8
push ebp
call fcn.004050d8
add esp, 0xc
test eax, eax
je 0x406a93
push esi
push esi
push esi
push esi
push esi
call fcn.00403c3f
add esp, 0x14
push 0x104
mov esi, 0x4342e1
push esi
push 0
mov byte [0x4343e5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406ad7
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004050d8
add esp, 0xc
or eax, eax
je 0x406ad7
sub eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00403c3f
add esp, 0x14
push esi
call fcn.00401d50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x406b1c
push esi
call fcn.00401d50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4345dc
push 0x40eb04
sub ecx, eax
push ecx
push eax
call fcn.00409ab6
add esp, 0x14
or eax, eax
je 0x406b1c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00403c3f
add esp, 0x14
jmp 0x406b1e
sub esi, esi
push 0x40eb00
push ebx
push ebp
call fcn.004099f7
add esp, 0xc
test eax, eax
je 0x406b3e
push esi
push esi
push esi
push esi
push esi
call fcn.00403c3f
add esp, 0x14
push dword [edi*8 + 0x4119ec]
push ebx
push ebp
call fcn.004099f7
add esp, 0xc
test eax, eax
je 0x406b60
push esi
push esi
push esi
push esi
push esi
call fcn.00403c3f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040b4e5
add esp, 0xc
jmp 0x406ba8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
pop ebp
cmp ebp, esi
je 0x406ba8
cmp ebp, 0xffffffff
je 0x406ba8
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4119ec]
push dword [esi]
call fcn.00401d50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4070e0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4346e8]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
sub ebx, ebx
sub esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x407129
call edi
push eax
pop esi
cmp esi, ebx
je 0x407110
mov dword [0x4346e8], 1
jmp 0x407132
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x407124
push ebp
pop eax
mov dword [0x4346e8], eax
jmp 0x407129
mov eax, dword [0x4346e8]
cmp eax, 1
jne 0x4071b6
cmp esi, ebx
jne 0x407145
call edi
push eax
pop esi
cmp esi, ebx
jne 0x407145
xor eax, eax
jmp 0x40720e
cmp word [esi], bx
mov eax, esi
je 0x40715a
add eax, ebp
cmp word [eax], bx
jne 0x40714c
add eax, ebp
cmp word [eax], bx
jne 0x40714c
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
push eax
pop ebp
cmp ebp, ebx
je 0x4071ab
push ebp
call fcn.0040513d
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4071ab
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x4071a7
push dword [esp + 0x10]
call fcn.0040504a
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push ebx
pop eax
jmp 0x40720e
cmp eax, ebp
je 0x4071be
cmp eax, ebx
jne 0x40713e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x40713e
cmp byte [esi], bl
je 0x4071dc
inc eax
cmp byte [eax], bl
jne 0x4071d2
inc eax
cmp byte [eax], bl
jne 0x4071d2
sub eax, esi
inc eax
push eax
pop ebp
push ebp
call fcn.0040513d
push eax
pop edi
cmp edi, ebx
pop ecx
jne 0x4071fa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40713e
push ebp
push esi
push edi
call fcn.00405260
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40b0c0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40b0ce
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b0cb
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
push ecx
pop eax
ret

Function at 0x40b0f0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
sub edx, edx
or esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40b12c
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40b122
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40b12e
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40b112
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x476ee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4f000]
push edi
or ebp, 0xffffffff
jmp 0x476f02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x476f09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476ef8
mov eax, 1
add ebx, ebx
jne 0x476f1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x476f2c
jne 0x476f4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476f4b
dec eax
add ebx, ebx
jne 0x476f38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x476f10
add ebx, ebx
jne 0x476f47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x476f9d
xor ecx, ecx
sub eax, 3
jb 0x476f63
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x476fd2
sar eax, 1
mov ebp, eax
jmp 0x476f6e
add ebx, ebx
jne 0x476f6e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476f3c
inc ecx
add ebx, ebx
jne 0x476f7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476f3c
add ebx, ebx
jne 0x476f89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x476f7e
jne 0x476f9a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x476f7e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x476fbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x476fae
jmp 0x476efe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x476fbc
add edi, ecx
jmp 0x476efe
pop esi
mov edi, esi
mov ecx, 0x2764
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x476fda
cmp byte [edi], 0x11
jne 0x476fda
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 0x476fdf
lea edi, [esi + 0x72000]
mov eax, dword [edi]
or eax, eax
je 0x477057
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x775d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x776b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47700c
mov ecx, edi
jns 0x47703b
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 + 0x776b4]
or eax, eax
je 0x477051
mov dword [ebx], eax
add ebx, 4
jmp 0x477029
call dword [esi + 0x776c4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x477088
cmp al, 0xef
ja 0x47707b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x47705d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x47706a
mov ebp, dword [esi + 0x776b8]
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 0x4770bc
sub esp, 0xffffff80
jmp 0x436cb1
Function at 0x402a7c
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.004041e0
test esi, esi
jne 0x402ab2
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.004042d0
jmp 0x402ad0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402990
mov edi, eax
test esi, esi
je 0x402ad0
cmp dword [ebx], 0
je 0x402ad0
dec esi
jmp 0x402ab9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4af008], 0x8088405
inc edx
mov dword [ebx + 0x4af008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40323c
Capabilities:
Query or enumerate registry value

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

Function at 0x403fe0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b104c], 0
je 0x404041
cmp word [0x4b1220], 0xd7b2
jne 0x404009
cmp dword [0x4b1228], 0
jbe 0x404009
mov eax, 0x4b121c
call dword [0x4b1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4af070
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 0x404068
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4af034], 0
jne 0x40405d
push 0
push 0x4af068
push 0x4af070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404194
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.00402754
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40415c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40617c
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 0x4061e2
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.00404450
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402da8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061cc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061e9
lea eax, [ebp - 0x10]
call fcn.004041e0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004046a0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408d99
test al, 0x10
jne 0x408d9d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bad0
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 0x40bb09
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042d0
jmp 0x40bb12
mov eax, ebx
mov edx, esi
call fcn.00404234
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c1c4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c03c
mov eax, dword [0x4b07a8]
cmp byte [eax], 0
je 0x40c240
mov eax, dword [0x4b054c]
call fcn.00402bbc
call fcn.004028bc
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.00409180
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 0x40c288
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c276
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b04e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b1668]
call fcn.00405690
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 0x40cb30
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 0x40cc06
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404278
lea eax, [ebp - 8]
call fcn.004046f0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046a0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cbf0
mov eax, ebx
call fcn.00402754
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cbe9
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.004046a0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cbd3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cc18
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cbd3
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 0x40cbf0
mov eax, dword [ebp - 0x10]
call fcn.00402774
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc0d
lea eax, [ebp - 8]
call fcn.004041e0
ret

Function at 0x40d1c8
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 0x40d22c
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.00404450
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004089e0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d233
lea eax, [ebp - 0xc]
call fcn.004041e0
ret

Function at 0x422308
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.00422160
dec esi
jne 0x42232a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42346c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b188c
cmp dword [edi], 0
jne 0x4234e8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b1888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4af528
mov ecx, 2
call fcn.00402950
mov edx, 0x423444
lea eax, [esi + 5]
call fcn.00423464
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423464
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 0x4234bd
mov dword [0x4b1888], 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 0x424b74
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 0x424b7a
ret

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