joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4166a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a99b
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x449570]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor bl, bl
test eax, eax
je 0x416900
lea ecx, [ebp - 0xc8]
push ecx
push 1
push 1
push 0
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4168ce
push ecx
lea ecx, [ebp - 0xc4]
call fcn.00402830
sub esp, 8
lea ecx, [ebp - 0xc4]
call fcn.00403070
mov edx, 0x443314
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 0
call fcn.00404c90
mov edx, esi
mov ecx, eax
call fcn.00404f50
mov edx, 0x44330c
mov ecx, eax
call fcn.00404c90
mov edx, edi
mov ecx, eax
call fcn.00404f50
push 0
push dword [ebp - 0xc8]
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xcc], 0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x41686f
push 0x44
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.004219e0
mov eax, 3
add esp, 0xc
mov word [ebp - 0xfc], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x12c], 0x44
mov dword [ebp - 0x124], 0x443318
movq qword [ebp - 0xdc], xmm0
movq qword [ebp - 0xd4], xmm0
call fcn.004031a0
cmp dword [eax + 0x14], 8
jb 0x4167d7
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x4167df
mov esi, dword [esi]
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push 0
push dword [ebp - 0xcc]
push 0x420
push 0
push 0
push 0
push eax
push esi
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x130], 8
mov esi, eax
jb 0x416827
push dword [ebp - 0x144]
call fcn.0041df62
add esp, 4
test esi, esi
je 0x41683b
push dword [ebp - 0xcc]
mov bl, 1
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x4168a1
push str.CreateProcessAsUser__
lea ecx, [ebp - 0x144]
call fcn.00402eb0
lea ecx, [ebp - 0x144]
call fcn.00416600
lea ecx, [ebp - 0x144]
call fcn.00402f80
push dword [ebp - 0xcc]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x4168a1
push str.CreateEnvironmentBlock__
lea ecx, [ebp - 0xe4]
call fcn.00402eb0
lea ecx, [ebp - 0xe4]
call fcn.00416600
cmp dword [ebp - 0xd0], 8
jb 0x4168a1
push dword [ebp - 0xe4]
call fcn.0041df62
add esp, 4
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.00403120
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0041d8ae
jmp 0x4168fd
push str.DuplicateTokenEx__
lea ecx, [ebp - 0xe4]
call fcn.00402eb0
lea ecx, [ebp - 0xe4]
call fcn.00416600
cmp dword [ebp - 0xd0], 8
jb 0x416900
push dword [ebp - 0xe4]
call fcn.0041df62
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ddb7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x431ec6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00426a9f
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x431efe
xor eax, eax
jmp 0x431f2a
cmp esi, dword [ebp - 4]
je 0x431f27
cmp dword [ebp + 0xc], 0
je 0x431f27
push dword [edi + 0x9c]
call fcn.00431ad4
push dword [edi + 0x9c]
mov esi, eax
call fcn.00423b7c
pop ecx
pop ecx
cmp esi, eax
je 0x431efa
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x43230e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x449570]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004237cf
mov dword [ebp - 0x14], eax
cmp dword [0x44c0d4], edi
jne 0x4323ff
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x43238c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4324df
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4324df
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4324df
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x44c0d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x44c0d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x44c0dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44c0e4], eax
test eax, eax
je 0x4323fc
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44c0e0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x432424
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x432417
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x432439
push 4
pop eax
jmp 0x4324e1
cmp dword [ebp - 0x14], edi
je 0x432439
push dword [0x44c0d4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x43241e
mov eax, dword [0x44c0e0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x432497
cmp dword [0x44c0e4], esi
je 0x432497
push eax
call ebx
push dword [0x44c0e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x432497
test eax, eax
je 0x432497
call ecx
test eax, eax
je 0x43248c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x43248c
test byte [ebp - 8], 1
jne 0x432497
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4324c7
mov eax, dword [0x44c0d8]
cmp eax, esi
je 0x4324c4
push eax
call ebx
test eax, eax
je 0x4324c4
call eax
mov edi, eax
test edi, edi
je 0x4324c4
mov eax, dword [0x44c0dc]
cmp eax, esi
je 0x4324c4
push eax
call ebx
test eax, eax
je 0x4324c4
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x44c0d4]
call ebx
test eax, eax
je 0x4324df
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4324e1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ddb7
leave
ret
Function at 0x404a60
Capabilities:
Encode data using xor

Disassembly:
rcr byte [esi - 0x58], 0xc
sub al, cl
mov byte [0x410229], al
add eax, 0xa64102b8
add byte [eax], al
mov al, byte [eax]
jno 0x404a97
loopne 0x404a0c
inc ecx
add byte [eax], al
add byte [edi - 0x6f6f3c6d], bh
xchg ebx, eax
ret
nop
nop
salc
adc al, 0x90
nop
push ds
nop
sbb ecx, dword [ebx - 0x35134014]
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor eax, 0x8307ce8d
loop 0x404a6a
cmp esi, dword [edx]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], edx
jae 0x404a99
mov eax, dword [eax - 0x43]
test eax, eax
setg byte [esi + 2]
jno 0x404a87
push 0xc
call eax
or dword [ebx + 0x77c07547], 0x5e
pop esi
mov esp, ebp
pop ebp
ret 8
or byte [eax], al
and eax, 0x4e8b2c70
adc byte [ebx + 0x612b147e], cl
jle 0x404a29
ja 0x404a3e
retf 0x5fd1

Function at 0x408150
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
fsubr dword [edi]
push ebx
push eax
cmp esi, edx
jb 0x4080a0
xchg esp, eax
or al, 0x43
dec edi
add byte [ebx - 0x74a4a1f1], cl
in eax, 0xae
ret
mov dl, byte [esi]
mov eax, esi
add dl, 5
or byte [ebx + 0x39], 0x45
push ss
jle 0x4080d6
jle 0x4080c1
sbb al, 0x3b
mov byte [esi], 0x30
jbe 0x4080bd
dec esi
inc byte [esi]
jmp 0x4080d1
and eax, 0x398b3106
inc edi
test edx, edx
mov dword [ecx], edi
jne 0x4080d1
cmp dword [edi - 0x7b], eax
ror byte [ecx + 0x79087539], cl
and byte [esi + 3], dh
jns 0x4080eb
jbe 0x4080d0
add eax, esi
add byte [eax], dh
mov byte [eax], 0x30
inc eax
cmp byte [esi], 0x39
jg 0x40808b
mov byte [eax], 0
pop edi
mov eax, ebx
sub ebx, dword [ebx - 0x75]
mov bl, byte [ebp - 0x3d]
and ecx, eax
nop
nop
nop
sub al, 0xfa
nop
add dl, byte [eax - 0x6fa46f70]
nop
nop
nop
pop ebx
nop
push ebp
mov eax, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
xor dword [ebx], ebx
je 0x408110
add dword [ebp + 0x10], eax
dec esi
add byte [eax], al
add byte [eax], al
add bl, ch
adc cl, byte [ebx - 0x3fccefab]
mov edx, dword [ebp + 0x10]
xor eax, eax
test ecx, ecx
comiss xmm0, xmm0
test eax, eax
mov dword [ecx - 0x2608fd8c], ebp
sbb byte [esp + ecx*8 + 0x46b3cccc], 0xf7
loope 0x408128
inc esi
mul ecx
cld
ljmp 0x8c2:0x4ec2c912
loop 0x4080cc
mov ch, 0xc1
sub edi, esi
mov dword [eax], edi
or dh, al
insd dword es:[edi], dx
in al, dx
pop ebx
pop ebp
ret
push ebp
mov ebp, esp
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp - 0x5a]
push edi
mov edi, dword [ebp + 0x18]
test eax, eax
ja 0x408172
jb 0x4081a9
cmp ebx, 0xffffffff
rol dword [eax*4 - 0x7ade8a88], cl
sar byte [edi + 0x34], 0x80
mov bh, 0x61
sti
in al, 0xff
invalid
jg 0x4081a8
xor byte [edi - 0x1b049f], 0xff
jg 0x4081f4
sub al, byte [ebx + 0x257cfff8]
jg 0x40813f
cmp ebx, 0x80000000
jb 0x4081a8
test ecx, ecx
push es
sbb ecx, dword [ebx + 0x558b1c45]
adc al, 0x50
fist word [edx + 0x51]
push ebx
call 0x3f8df0
adc ecx, 0x14
pop edi
pop ebx
pop ebp
ret
test ecx, ecx
leave
invalid
Function at 0x4015ff
Capabilities:
Read file via mapping
Terminate process

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x403010], eax
mov eax, dword [0x40300c]
mov esi, dword [0x403008]
mov ebp, dword [0x403004]
mov dword [esp + 0x18], eax
mov eax, dword [section..data]
push 0x46
mov dword [esp + 0x20], eax
pop eax
mov word [esp + 0x20], ax
push 0x4d
pop eax
mov word [esp + 0x22], ax
xor eax, eax
mov word [esp + 0x34], ax
xor edi, edi
mov ebx, ebp
shr ebx, 0x1c
and bl, 0xf
movzx eax, bl
lea ecx, [eax + 0x30]
add eax, 0x57
movzx edx, ax
movzx eax, cx
cmp bl, 0x39
cmovbe edx, eax
shl ebp, 4
mov word [esp + edi*2 + 0x24], dx
inc edi
cmp edi, 8
jl 0x401648
lea eax, [esp + 0x20]
push eax
push esi
xor ebx, ebx
push ebx
push 2
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x401704
push esi
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x4016fd
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi]
add ecx, esi
call fcn.004012a0
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x4016f6
cmp dword [esp + 0x14], ebx
je 0x4016f6
push dword [esp + 0x18]
push ebx
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4016ed
push dword [esp + 0x1c]
mov edx, ebp
push esi
push ecx
mov ecx, ebx
call fcn.00401432
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebp
call fcn.00401762
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x28005655
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x31e503b5
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x43b65a
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop edi
mov eax, eax
call fcn.0043b69e
push eax
mov ebx, dword [esp]
add esp, 4
xor dword [ecx], edi
add ebx, 0xf64f8f0c
add ecx, 1
add eax, 0x2f4518f8
and ebx, ebx
cmp ecx, esi
jne fcn.0043b65a
mov ebx, 0x9d57b140
or ebx, ebx
add eax, 1
ret
Function at 0x40297c
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 0x4029b9
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 0x4029d9
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404a8c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402ba0
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.0040480c
test esi, esi
jne 0x402bd6
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.004048fc
jmp 0x402bf4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a54
mov edi, eax
test esi, esi
je 0x402bf4
cmp dword [ebx], 0
je 0x402bf4
dec esi
jmp 0x402bdd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403924
Capabilities:
Query or enumerate registry value

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

Function at 0x404690
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48204c], 0
je 0x4046f1
cmp word [0x482220], 0xd7b2
jne 0x4046b9
cmp dword [0x482228], 0
jbe 0x4046b9
mov eax, 0x48221c
call dword [0x482238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47f090
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 0x404718
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47f030], 0
jne 0x40470d
push 0
push 0x47f088
push 0x47f090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406a3c
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 0x406aa2
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.00404a8c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040338c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406a8c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406aa9
lea eax, [ebp - 0x10]
call fcn.0040480c
ret

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

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

Function at 0x40c6a0
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 0x40c6d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048fc
jmp 0x40c6e2
mov eax, ebx
mov edx, esi
call fcn.00404860
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cee0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cd58
mov eax, dword [0x4816f0]
cmp byte [eax], 0
je 0x40cf5c
mov eax, dword [0x481474]
call fcn.00402fe8
call fcn.004028fc
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.00409964
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 0x40cfa4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cf92
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48140c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x482668]
call fcn.00405ee4
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 0x40d84c
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 0x40d922
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004048a4
lea eax, [ebp - 8]
call fcn.00404d2c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404cdc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d90c
mov eax, ebx
call fcn.00402794
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d905
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.00404cdc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d8ef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d934
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d8ef
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 0x40d90c
mov eax, dword [ebp - 0x10]
call fcn.004027b4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d929
lea eax, [ebp - 8]
call fcn.0040480c
ret

Function at 0x40de2c
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 0x40de90
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.00404a8c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040920c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de97
lea eax, [ebp - 0xc]
call fcn.0040480c
ret

Function at 0x421fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48288c
cmp dword [edi], 0
jne 0x42205c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x482888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47f5bc
mov ecx, 2
call fcn.00402a14
mov edx, 0x421fb8
lea eax, [esi + 5]
call fcn.00421fd8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421fd8
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 0x422031
mov dword [0x482888], 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 0x4227a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404cdc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4227fc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x481864]
mov dl, 1
mov eax, dword [0x42235c]
call fcn.0040d0ac
call fcn.00404248
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00422464
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4240ac
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 0x4240b2
ret

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