joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5360b20
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x78dc2243
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x406dbb
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop esi
push edx
jmp 0x406dc9
pop edx
mov ecx, dword [ebp - 0x4e4]
mov dword [ebp - 0x2a8], ecx
jmp 0x406e40
Function at 0x423018
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov eax, dword [0x4665b8]
test eax, eax
jne 0x423056
push esi
push edi
rdtsc
push 0x3e8
mov esi, edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
rdtsc
sub eax, edi
push 0
sbb edx, esi
push 0x186a0
push edx
push eax
call fcn.0042e830
push 0xa
xor edx, edx
pop ecx
pop edi
div ecx
pop esi
mov dword [0x4665b8], eax
ret

Function at 0x424306
Capabilities:
Get file version info

Disassembly:
mov eax, 0x44dbf8
call fcn.0042d094
sub esp, 0x11c
push ebx
push esi
mov ebx, ecx
push edi
mov edi, ebx
push 0x34
neg edi
lea eax, [ebx + 4]
push 0
sbb edi, edi
mov word [ebx + 0x3e], 0x4e4
and edi, eax
mov dword [ebp - 0x1c], eax
push edi
call fcn.0042bfe0
add esp, 0xc
push 2
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
and dword [ebp - 4], 0
test esi, esi
jne 0x424364
cmp dword [ebp + 8], eax
je 0x424364
or dword [ebp - 4], 0xffffffff
jmp 0x4243da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
lea eax, [ebp - 0x128]
push eax
call fcn.0042d410
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push eax
lea eax, [ebp - 0x128]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp + 8], eax
jbe 0x4243cb
push eax
call fcn.0043dc10
pop ecx
mov dword [ebx + 0x38], eax
push eax
lea eax, [ebp - 0x128]
push dword [ebp + 8]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4243cb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x460f78
push dword [ebx + 0x38]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4243de
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4243da
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x424432
mov esi, dword [ebp - 0x10]
push 0xd
pop ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x38]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42440d
cmp dword [ebp - 0x14], 4
jb 0x42440d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebx + 0x3c], eax
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp dword [ecx], 0xfeef04bd
sete al
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
mov esi, eax
je 0x424430
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42e6d3
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453ee8
push 0x43106c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call fcn.0040147e
nop
xor edx, edx
mov dl, ah
mov dword [0x468654], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x468650], ecx
shl ecx, 8
add ecx, edx
mov dword [0x46864c], ecx
shr eax, 0x10
mov dword [0x468648], eax
push 1
call fcn.0042fd53
pop ecx
test eax, eax
jne 0x42e73e
push 0x1c
call fcn.0042e800
pop ecx
call fcn.0043199c
test eax, eax
jne 0x42e74f
push 0x10
call fcn.0042e800
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00431f8b
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x468d88], eax
call fcn.00433780
mov dword [0x468694], eax
call fcn.00433533
call fcn.0043347a
call fcn.0042d244
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00433422
mov dword [ebp - 0x64], eax
test byte [ebp - 0x30], 1
je 0x42e79e
movzx eax, word [ebp - 0x2c]
jmp 0x42e7a1
push 0xa
pop eax
push eax
push dword [ebp - 0x64]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0042d271
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.004332aa
pop ecx
pop ecx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4321d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042d500
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4321f7
test byte [esp + 8], 2
je 0x4321f7
call fcn.0042d573
mov dword [eax], 0xd
call fcn.0042d57c
mov dword [eax], 5
jmp 0x4321d0
xor eax, eax
ret
Function at 0x4338eb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x465420
cmp edx, dword [eax]
je 0x43390d
add eax, 8
inc ecx
cmp eax, 0x4654b0
jl 0x4338fe
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x465420]
jne 0x433a3b
mov eax, dword [0x46869c]
cmp eax, 1
je 0x433a15
test eax, eax
jne 0x43393e
cmp dword [0x463088], 1
je 0x433a15
cmp edx, 0xfc
je 0x433a3b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x433975
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042d410
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042de80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4339b8
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042de80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x454488
push edi
call fcn.00435550
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042d410
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042d420
lea eax, [ebp - 0xa0]
push 0x454468
push eax
call fcn.0042d420
push dword [esi + 0x465424]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042d420
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004354b8
add esp, 0x2c
pop edi
jmp 0x433a3b
lea eax, [ebp + 8]
lea esi, [esi + 0x465424]
push 0
push eax
push dword [esi]
call fcn.0042de80
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 0x436cc8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x436d1e
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x454dec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x436d11
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x436d20
xor eax, eax
pop esi
leave
ret 4
Function at 0x43e110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x44dd80
call fcn.0042d094
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00448258
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x43e14f
call fcn.00448258
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43e15d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x43e16b
or eax, 0xffffffff
jmp 0x43e253
mov ecx, esi
call fcn.0043e086
mov dword [ebp - 0x14], eax
call fcn.0043ef1f
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x43e1a2
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x43e1a2
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0043eed3
push dword [ebp - 0x14]
call fcn.0043ea20
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0043de1e
cmp eax, edi
je 0x43e215
test byte [esi + 0x24], 0x10
je 0x43e1e3
push 4
mov ecx, esi
pop ebx
call fcn.004410c4
test ah, 1
je 0x43e1db
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00440a90
cmp dword [esi + 0x1c], edi
je 0x43e215
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0044120c
jmp 0x43e215
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x43e229
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x43e242
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x43e242
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0043e0c0
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x44093e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x440980
call fcn.00448258
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x440980
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x440977
xor eax, eax
jmp 0x440988
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0044098e
pop edi
pop esi
pop ebx
ret 4
Function at 0x448ddb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x448e09
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x448e27
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00448d41
jmp 0x448e27
mov eax, dword [esi + 0x14]
test eax, eax
je 0x448e27
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00448d41
test edi, edi
mov eax, edi
jne 0x448e11
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402ba8
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.00404ac0
test esi, esi
jne 0x402bde
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.00404bb0
jmp 0x402bfc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402abc
mov edi, eax
test esi, esi
je 0x402bfc
cmp dword [ebx], 0
je 0x402bfc
dec esi
jmp 0x402be5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4033ac
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x4033c2
sub ecx, 2
jne 0x4033e4
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x4033eb
cmp edx, dword [ebx + 8]
je 0x4033f5
mov eax, 0x64
jmp 0x4033f0
mov eax, 0x67
jmp 0x4033f0
call sub.kernel32.dll_GetLastError
call fcn.004029d0
pop ebx
ret

Function at 0x40369c
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4036cf
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x4036d6
cmp edx, dword [ebx + 8]
je 0x4036e0
mov eax, 0x65
jmp 0x4036db
mov eax, 5
jmp 0x4036db
call sub.kernel32.dll_GetLastError
call fcn.004029d0
mov eax, ebx
pop ebx
ret

Function at 0x403a7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5a3024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b14
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403af4
xor eax, eax
push ebp
push 0x403aed
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 0x403b30
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 0x403af4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x5a3024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5a3024], ax
mov esp, ebp
pop ebp
ret
Function at 0x4048c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a804c], 0
je 0x404921
cmp word [0x5a8220], 0xd7b2
jne 0x4048e9
cmp dword [0x5a8228], 0
jbe 0x4048e9
mov eax, 0x5a821c
call dword [fcn.005a8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5a3094
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 0x404948
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5a3034], 0
jne 0x40493d
push 0
push 0x5a308c
push 0x5a3094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404a74
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.00402848
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5a804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a3c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4065a4
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 0x4067d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406627
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406627
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4066b0
xor eax, eax
push ebp
push 0x4066a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004063ec
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 0x40668e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406810
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40668e
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 0x4066b0
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 0x4067ca
cmp byte [ebp - 0xd], 0
jne 0x4066f7
cmp byte [ebp - 0x12], 0
je 0x4067ca
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406710
dec ebx
cmp byte [ebx], 0x2e
je 0x40671f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40670f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4067ca
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40675c
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 0x4067ca
cmp byte [ebp - 0xd], 0
je 0x4067ca
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 0x4067ca
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 0x406eec
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 0x406f52
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.00404d30
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004035c8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406f3c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f59
lea eax, [ebp - 0x10]
call fcn.00404ac0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f80
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a15d
test al, 0x10
jne 0x40a161
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d61c
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 0x40d655
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404bb0
jmp 0x40d65e
mov eax, ebx
mov edx, esi
call fcn.00404b14
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40e694
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 0x40e76a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404b58
lea eax, [ebp - 8]
call fcn.00404fd0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f80
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e754
mov eax, ebx
call fcn.00402848
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e74d
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.00404f80
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e737
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e77c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e737
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 0x40e754
mov eax, dword [ebp - 0x10]
call fcn.00402868
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e771
lea eax, [ebp - 8]
call fcn.00404ac0
ret
Function at 0x40edb4
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 0x40ee18
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.00404d30
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409c8c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ee1f
lea eax, [ebp - 0xc]
call fcn.00404ac0
ret

Function at 0x425804
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x425851
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00425630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x425869
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x425870
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.00425630
dec esi
jne 0x425892
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4269d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5a888c
cmp dword [edi], 0
jne 0x426a50
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5a8888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5a3714
mov ecx, 2
call fcn.00402a7c
mov edx, 0x4269ac
lea eax, [esi + 5]
call fcn.004269cc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004269cc
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 0x426a25
mov dword [0x5a8888], 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 0x4280cc
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 0x4280d2
ret