joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e44e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push 0x427144
push dword [esp + 0x10]
push dword [0x449a08]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40e544
push ebx
push esi
push dword [0x449a08]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40e4a1
push esi
push dword [0x449a08]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e4a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40e4a8
xor eax, eax
jmp 0x40e543
push ebp
push edi
push ebx
xor ebp, ebp
push 2
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40e53d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40e536
push ebx
push esi
push eax
call fcn.00413d70
add esp, 0xc
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x18]
push eax
push ebp
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40e52f
push ebp
push dword [esp + 0x1c]
call fcn.0040e3e3
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
je 0x40e52f
mov ecx, dword [esi + 8]
mov dword [esi + 8], ebp
test ecx, ecx
jne 0x40e527
push 0xffffff
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x40e527
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4

Function at 0x40e9f3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00412500
cmp word [0x44aa3a], 0
je 0x40ea8f
push esi
push 6
push dword [0x430354]
mov esi, 0x44aa3a
push esi
call fcn.00403666
push eax
call fcn.00407632
test eax, eax
jne 0x40ea8e
push 0x449a38
call fcn.0040e8a1
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.0040620e
lea eax, [ebp - 0x1024]
push eax
call fcn.00417753
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00413550
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40eaeb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43036c], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x40eb36
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x4602a8], ax
xor eax, eax
mov word [0x4602aa], ax
mov dword [0x43036c], 0x4602a8
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060dd
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43035c
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40ed9e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00412500
cmp byte [0x44ba40], 0
je 0x40ee4c
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0041020c
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ee4c
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ee43
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x40ee27
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040620e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x40eef8
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00412500
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x40ef13
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x40ef20
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x40efe3
movzx eax, word [esi]
test ax, ax
je 0x40efe3
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x40ef6d
test edi, edi
je 0x40ef77
test ebx, ebx
jne 0x40ef77
test ecx, ecx
je 0x40ef69
mov byte [ecx], 1
mov ebx, ebp
jmp 0x40ef8e
cmp eax, 0xd
je 0x40efa1
cmp eax, 0xa
je 0x40efa4
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x40ef9c
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x40ef4f
jmp 0x40efa4
mov byte [edx], 1
jmp 0x40efa4
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x40efdd
mov word [edi], ax
test ebx, ebx
je 0x40efdd
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040620e
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x40efe5
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x40eff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x40f03f
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x40f047
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411425
Capabilities:
Hide graphical window

Disassembly:
and dword [0x449a00], 0
push 1
push dword [esp + 8]
mov byte [0x449a28], 1
mov byte [0x449a29], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.0040113d
cmp dword [0x449a0c], 0
jne 0x411465
cmp byte [0x449a2e], 0
je 0x41146e
cmp dword [0x449a24], 0
jne 0x411481
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x411554
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00412500
cmp byte [0x44ba40], 0
je 0x4115e3
cmp word [0x44ba42], 0
je 0x4115e3
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44ba42
call fcn.0041020c
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4115e2
push dword [ebp + 8]
call fcn.00417753
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4115e9
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00412500
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.00405f4a
mov esi, eax
test esi, esi
je 0x411641
movzx ecx, word [esi]
push ecx
jmp 0x41162c
add esi, 2
movzx eax, word [esi]
push eax
call fcn.00406061
test al, al
jne 0x411625
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4059bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40fba0
cmp edx, dword [eax]
je 0x4059df
add eax, 8
inc ecx
cmp eax, 0x40fc30
jl 0x4059d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40fba0]
jne 0x405b0d
mov eax, dword [0x41f1f0]
cmp eax, 1
je 0x405ae7
test eax, eax
jne 0x405a10
cmp dword [0x40faec], 1
je 0x405ae7
cmp edx, 0xfc
je 0x405b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405a47
lea eax, [ebp - 0x1a4]
push 0x408420
push eax
call fcn.004067c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40841c
push edi
call fcn.00406940
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x408400
push eax
call fcn.004067c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004067d0
lea eax, [ebp - 0xa0]
push 0x4083fc
push eax
call fcn.004067d0
push dword [esi + 0x40fba4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004067d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4083d4
push eax
call fcn.004068b0
add esp, 0x2c
pop edi
jmp 0x405b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x40fba4]
push 0
push eax
push dword [esi]
call fcn.00405e80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4021b8
Capabilities:
Enumerate pe sections

Disassembly:
cmp al, 3
clc
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.00401fba
sahf
lcall 0x647, 0xb70fddaf
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.00401fba
aaa
stosb byte es:[edi], al
cli
dec eax
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x402214
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
invalid

Function at 0x4022bd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
ret
Function at 0x405bec
Capabilities:
Create directory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 1
pop edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405c12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405c6a
xor edi, edi
push esi
call fcn.00403c4f
pop ecx
push eax
push str.CreateDir
call fcn.00404f71
pop ecx
pop ecx
push 0xfffffffffffffffe
pop ebx
cmp eax, ebx
je 0x405c5b
test edi, edi
je 0x405c3c
call fcn.00404eea
cmp eax, ebx
jne 0x405c6a
jmp 0x405c5b
push esi
push 0x41c058
push dword [0x423658]
call int.00403c7b
add esp, 0xc
push eax
call fcn.00404f1f
cmp eax, ebx
pop ecx
jne 0x405c5f
mov eax, ebx
jmp 0x405c6c
call fcn.00404ec5
cmp eax, ebx
mov eax, ebx
je 0x405c6c
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x405d54
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push SysReAllocStringLen
push dword [esp + 0x28]
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d89
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
jne 0x405dab
push dword [esp + 0x10]
push dword [0x424418]
push str._s_n_s
push 1
push 0x10
push 1
call fcn.00405290
add esp, 0x18
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x407ecb
Capabilities:
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
push ebx
push esi
push edi
push 0x424660
lea eax, [ebp - 0x208]
push 0x208
push eax
push 0
push str.Uninstal
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x208]
mov ebx, 0x424aa0
push eax
push ebx
lea eax, [ebp - 0x514]
push 0x41c1a4
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
mov edi, 0x423b20
push eax
push edi
lea eax, [ebp - 0x71c]
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x924]
push 0x41c5f8
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x71c]
push eax
lea eax, [ebp - 0x924]
push eax
push 0x424cc0
call fcn.00408ec8
add esp, 0xc
lea eax, [ebp - 0x514]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
lea eax, [ebp - 0x30c]
push 0x41c6a4
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
mov esi, str.ST6UNST.EXE
lea eax, [ebp - 0x208]
push esi
push eax
call edi
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x208]
push esi
push eax
lea eax, [ebp - 0x30c]
push ebx
push eax
call fcn.00406199
add esp, 0x1c
dec eax
dec eax
je 0x407ff9
dec eax
dec eax
je 0x407ff9
dec eax
jne 0x407ff5
push esi
push 0x41c058
push dword [0x423888]
call int.00403c7b
add esp, 0xc
push eax
push 1
push 0x10
push 1
call fcn.00405290
add esp, 0x10
jmp 0x407fa8
xor eax, eax
jmp 0x40800a
lea eax, [ebp - 0x514]
push eax
push 0x421900
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4030e8
Capabilities:
Query or enumerate registry value

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

Function at 0x403e34
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e04c], 0
je 0x403e95
cmp word [0x48e220], 0xd7b2
jne 0x403e5d
cmp dword [0x48e228], 0
jbe 0x403e5d
mov eax, 0x48e21c
call dword [0x48e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48b06c
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 0x403ebc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48b030], 0
jne 0x403eb1
push 0
push 0x48b064
push 0x48b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4060dc
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 0x406142
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.00404220
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40612c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406149
lea eax, [ebp - 0x10]
call fcn.00403fb0
ret

Function at 0x40ba58
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 0x40ba91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040a0
jmp 0x40ba9a
mov eax, ebx
mov edx, esi
call fcn.00404004
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c14c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bfc4
mov eax, dword [0x48d434]
cmp byte [eax], 0
je 0x40c1c8
mov eax, dword [0x48d138]
call fcn.00402a70
call fcn.004028e0
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.00408c1c
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 0x40c210
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c1fe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48d0d4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48e668]
call fcn.004055f0
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 0x40cad0
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 0x40cba6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404048
lea eax, [ebp - 8]
call fcn.004044c0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404470
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cb90
mov eax, ebx
call fcn.00402778
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cb89
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.00404470
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cb73
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cbb8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cb73
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 0x40cb90
mov eax, dword [ebp - 0x10]
call fcn.00402798
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbad
lea eax, [ebp - 8]
call fcn.00403fb0
ret

Function at 0x40d0b0
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 0x40d114
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.00404220
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040878c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d11b
lea eax, [ebp - 0xc]
call fcn.00403fb0
ret

Function at 0x422c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48e888
cmp dword [edi], 0
jne 0x422ccc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x48e884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48b5d0
mov ecx, 2
call fcn.00402974
mov edx, 0x422c28
lea eax, [esi + 5]
call fcn.00422c48
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422c48
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 0x422ca1
mov dword [0x48e884], 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 0x423ee8
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 0x423eee
ret
Function at 0x4263b0
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 0x426401
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4263e8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4263d8
jmp 0x426401
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 0x4263e9
pop ebx
mov esp, ebp
pop ebp
ret