joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40efab
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x41a3ac]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x40eff4
call ebp
mov esi, eax
cmp esi, ebx
je 0x40efda
mov dword [0x41a3ac], 1
jmp 0x40eff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40efef
push 2
pop eax
mov dword [0x41a3ac], eax
jmp 0x40eff4
mov eax, dword [0x41a3ac]
cmp eax, 1
jne 0x40f051
cmp esi, ebx
jne 0x40f00c
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40f00c
xor eax, eax
jmp 0x40f0f8
cmp word [esi], bx
mov eax, esi
je 0x40f021
inc eax
inc eax
cmp word [eax], bx
jne 0x40f013
inc eax
inc eax
cmp word [eax], bx
jne 0x40f013
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00408efe
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x40f044
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x40f0f8
push ebp
push esi
push edi
call fcn.00408fc0
add esp, 0xc
jmp 0x40f036
cmp eax, 2
je 0x40f05a
cmp eax, ebx
jne 0x40f005
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x40f005
cmp byte [ebp], bl
mov esi, ebp
je 0x40f090
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40f005
push esi
add edi, eax
call fcn.00408f30
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x40f06d
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00408efe
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x40f109
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x40f0ea
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40f0ff
push edi
call fcn.00408f30
push esi
lea edi, [edi + eax + 1]
call fcn.00408082
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x40f0b0
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0040931f
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40f005
Function at 0x40f115
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x41a3b0]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x40f155
call esi
test eax, eax
je 0x40f13a
mov dword [0x41a3b0], 1
jmp 0x40f15a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40f151
mov dword [0x41a3b0], 2
jmp 0x40f163
xor eax, eax
jmp 0x40f1b1
cmp eax, 1
jne 0x40f15e
call esi
jmp 0x40f1b1
cmp eax, 2
jne 0x40f151
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x40f1a9
lea eax, [esi + esi]
push eax
call fcn.00408efe
mov ebp, eax
test ebp, ebp
pop ecx
je 0x40f1a9
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x40f1ad
push ebp
call fcn.0040931f
pop ecx
xor eax, eax
jmp 0x40f1af
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x410899
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4108c7
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4108ce
cmp ebx, dword [eax + 4]
jae 0x4108ce
xor eax, eax
jmp 0x410abe
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4108df
xor eax, eax
inc eax
jmp 0x410abd
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4108f5
cmp ecx, edx
jae 0x410a3a
cmp dword [eax + 4], 0
je 0x4108fe
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4108e6
cmp dword [ebp + 8], 0
je 0x410920
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x410a3a
cmp eax, esi
jae 0x410a3a
mov eax, dword [0x41a3c0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x410945
cmp dword [esi*4 + 0x41a3c8], edi
je 0x410a3e
inc esi
cmp esi, eax
jl 0x410933
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410aba
cmp dword [ebp - 8], 0x1000000
jne 0x410aba
test byte [ebp - 0xc], 0xcc
je 0x4109c3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x410aba
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x410aba
cmp word [eax + 0x18], 0x10b
jne 0x410aba
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x410aba
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4109c3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4109c3
test byte [ecx + 0x27], 0x80
jne 0x410a3a
push 1
push 0x41a408
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4108d7
mov ecx, dword [0x41a3c0]
test ecx, ecx
mov edx, ecx
jle 0x4109f7
lea eax, [ecx*4 + 0x41a3c4]
cmp dword [eax], edi
je 0x4109f7
dec edx
sub eax, 4
test edx, edx
jg 0x4109eb
test edx, edx
jne 0x410a28
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410a04
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x410a1c
lea eax, [edx*4 + 0x41a3c8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x410a0a
cmp ecx, 0x10
jge 0x410a28
inc ecx
mov dword [0x41a3c0], ecx
push 0
push 0x41a408
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4108d7
xor eax, eax
jmp 0x410abd
test esi, esi
jle 0x4108d7
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41a408
call ebx
test eax, eax
jne 0x4108d7
cmp dword [esi*4 + 0x41a3c8], edi
je 0x410a94
mov eax, dword [0x41a3c0]
lea esi, [eax - 1]
test esi, esi
jl 0x410a82
cmp dword [esi*4 + 0x41a3c8], edi
je 0x410a7e
dec esi
jns 0x410a72
test esi, esi
jge 0x410a92
cmp eax, 0x10
jge 0x410a8d
inc eax
mov dword [0x41a3c0], eax
lea esi, [eax - 1]
jmp 0x410a94
je 0x410aac
xor ecx, ecx
test esi, esi
jl 0x410aac
lea eax, [ecx*4 + 0x41a3c8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x410a9a
push 0
push 0x41a408
call ebx
jmp 0x4108d7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410f8a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41a414], ebx
push esi
push edi
jne 0x41100a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x411045
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41a414], eax
je 0x411045
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41a418], eax
call esi
cmp dword [0x41a154], 2
mov dword [0x41a41c], eax
jne 0x41100a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41a424], eax
je 0x41100a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41a420], eax
mov eax, dword [0x41a420]
test eax, eax
je 0x41104f
call eax
test eax, eax
je 0x411036
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41a424]
test eax, eax
je 0x411036
test byte [ebp - 8], 1
jne 0x41104f
cmp dword [0x41a160], 4
jb 0x411049
or byte [ebp + 0x12], 0x20
jmp 0x41106e
xor eax, eax
jmp 0x41107e
or byte [ebp + 0x12], 4
jmp 0x41106e
mov eax, dword [0x41a418]
test eax, eax
je 0x41106e
call eax
mov ebx, eax
test ebx, ebx
je 0x41106e
mov eax, dword [0x41a41c]
test eax, eax
je 0x41106e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41a414]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4121b8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040f2b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412253
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41a154]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x412253
cmp eax, 1
je 0x412274
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412253
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x412220
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41224f
xor eax, eax
inc eax
jmp 0x412293
cmp edi, eax
jae 0x412257
xor eax, eax
jmp 0x412293
cmp eax, esi
jae 0x41225e
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41a154]
jmp 0x412277
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412d33
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040f2b0
mov eax, dword [0x4191b4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040bfb5
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x412e66
push 2
push esi
push dword [ebp + 8]
call fcn.0040bfb5
add esp, 0xc
cmp eax, ebx
je 0x412e66
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x412e06
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00411560
push 0x8000
push dword [ebp + 8]
call fcn.0041347a
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x412dbc
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0040a542
add esp, 0xc
cmp eax, 0xffffffff
je 0x412ddc
sub edi, eax
test edi, edi
jg 0x412db4
jmp 0x412df4
call fcn.0040a92c
cmp dword [eax], 5
jne 0x412df1
call fcn.0040a923
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041347a
pop ecx
pop ecx
jmp 0x412e4e
jge 0x412e4e
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040bfb5
push dword [ebp + 8]
call fcn.0041057f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x412e4e
call fcn.0040a923
mov dword [eax], 0xd
call fcn.0040a92c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0040bfb5
add esp, 0xc
mov eax, esi
pop edi
jmp 0x412e68
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00407a34
leave
ret
Function at 0x41399f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4139b8
or eax, 0xffffffff
jmp 0x413a19
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x413a15
push 0x3d
push esi
call fcn.00413b9f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x413a15
cmp esi, eax
je 0x413a15
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x41a174]
sete cl
cmp eax, dword [0x41a178]
mov dword [ebp - 8], ecx
jne 0x4139fb
mov edi, eax
call fcn.0041393e
mov dword [0x41a174], eax
cmp eax, ebx
jne 0x413a54
cmp dword [ebp + 0xc], ebx
je 0x413a1d
cmp dword [0x41a17c], ebx
je 0x413a1d
call fcn.00413125
test eax, eax
je 0x413a54
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x413a26
xor eax, eax
jmp 0x413a18
push 4
call fcn.00408efe
cmp eax, ebx
pop ecx
mov dword [0x41a174], eax
je 0x413a15
mov dword [eax], ebx
cmp dword [0x41a17c], ebx
jne 0x413a54
push 4
call fcn.00408efe
cmp eax, ebx
pop ecx
mov dword [0x41a17c], eax
je 0x413a15
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x41a174]
call fcn.004138f1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x413ab5
cmp dword [esi], ebx
je 0x413ab5
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040931f
cmp dword [ebp - 8], ebx
pop ecx
jne 0x413a98
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x413af6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x413a8f
mov eax, edi
shl eax, 2
push eax
push dword [0x41a174]
call fcn.0040d348
cmp eax, ebx
pop ecx
pop ecx
je 0x413af6
jmp 0x413af1
cmp dword [ebp - 8], ebx
jne 0x413b61
cmp edi, ebx
jge 0x413ac4
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x41a174]
call fcn.0040d348
cmp eax, ebx
pop ecx
pop ecx
je 0x413a15
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x41a174], eax
cmp dword [ebp + 0xc], ebx
je 0x413b4b
push dword [ebp - 4]
call fcn.00408f30
inc eax
inc eax
push eax
call fcn.00408efe
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x413b4b
push dword [ebp - 4]
push esi
call fcn.0040aad0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x413b44
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040931f
pop ecx
cmp dword [ebp - 8], ebx
je 0x413b59
push dword [ebp - 4]
call fcn.0040931f
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x413a18
push dword [ebp - 4]
call fcn.0040931f
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x413a22
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x416900
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0041698f
jae 0x41690e
xor ecx, ecx
call fcn.0041698f
jae 0x41693d
xor eax, eax
call fcn.0041698f
jae 0x41694d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0041698f
adc al, al
jae 0x41692f
jne 0x416979
stosb byte es:[edi], al
jmp 0x416911
call fcn.0041699b
sub ecx, ebx
jne 0x416956
call fcn.00416999
jmp 0x416975
lodsb al, byte [esi]
shr eax, 1
je 0x416983
adc ecx, ecx
jmp 0x416972
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00416999
cmp eax, 0x7d00
jae 0x416972
cmp ah, 5
jae 0x416973
cmp eax, 0x7f
ja 0x416974
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416911
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x4015d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x4015f6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40168a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401645
cmp eax, 0x40
je 0x401645
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4015e9
cmp eax, 0x40
je 0x4015e9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x4015e9
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x402ab4
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.0040407c
test esi, esi
jne 0x402aea
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.0040416c
jmp 0x402b08
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c8
mov edi, eax
test esi, esi
je 0x402b08
cmp dword [ebx], 0
je 0x402b08
dec esi
jmp 0x402af1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40319c
Capabilities:
Query or enumerate registry value

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

Function at 0x403f00
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47504c], 0
je 0x403f61
cmp word [0x475220], 0xd7b2
jne 0x403f29
cmp dword [0x475228], 0
jbe 0x403f29
mov eax, 0x47521c
call dword [0x475238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47306c
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 0x403f88
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x473030], 0
jne 0x403f7d
push 0
push 0x473064
push 0x47306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405590
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 0x4057c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405613
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4057c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405613
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4057dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40569c
xor eax, eax
push ebp
push 0x405695
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004053d8
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 0x40567a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4057fc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40567a
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 0x40569c
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 0x4057b6
cmp byte [ebp - 0xd], 0
jne 0x4056e3
cmp byte [ebp - 0x12], 0
je 0x4057b6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4056fc
dec ebx
cmp byte [ebx], 0x2e
je 0x40570b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4056fb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4057b6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405748
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 0x4057b6
cmp byte [ebp - 0xd], 0
je 0x4057b6
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 0x4057b6
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