joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d7b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444a10]
jne 0x408d85
repz ret
jmp fcn.0040b04c

Function at 0x40a79c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405c6d
and dword [ebp - 4], 0
cmp dword [0x445dac], 0
mov ebx, eax
jne 0x40a84d
push 0x402c0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a8fe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c00
push edi
call esi
test eax, eax
je 0x40a8fe
push eax
call fcn.00405bfb
mov dword [esp], 0x402bf0
push edi
mov dword [0x445dac], eax
call esi
push eax
call fcn.00405bfb
mov dword [esp], 0x402bdc
push edi
mov dword [0x445db0], eax
call esi
push eax
call fcn.00405bfb
mov dword [esp], 0x402bc0
push edi
mov dword [0x445db4], eax
call esi
push eax
call fcn.00405bfb
pop ecx
mov dword [0x445dbc], eax
test eax, eax
je 0x40a84d
push 0x402ba8
push edi
call esi
push eax
call fcn.00405bfb
pop ecx
mov dword [0x445db8], eax
mov eax, dword [0x445db8]
cmp eax, ebx
je 0x40a8a5
cmp dword [0x445dbc], ebx
je 0x40a8a5
push eax
call fcn.00405c76
push dword [0x445dbc]
mov esi, eax
call fcn.00405c76
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a8a5
test edi, edi
je 0x40a8a5
call esi
test eax, eax
je 0x40a89c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a89c
test byte [ebp - 0xc], 1
jne 0x40a8a5
or dword [ebp + 0x10], 0x200000
jmp 0x40a8de
mov eax, dword [0x445db0]
cmp eax, ebx
je 0x40a8de
push eax
call fcn.00405c76
pop ecx
test eax, eax
je 0x40a8de
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a8de
mov eax, dword [0x445db4]
cmp eax, ebx
je 0x40a8de
push eax
call fcn.00405c76
pop ecx
test eax, eax
je 0x40a8de
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445dac]
call fcn.00405c76
pop ecx
test eax, eax
je 0x40a8fe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a900
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x5a51029b
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..text
nop
mov ebx, 0x42cd70
mov ecx, 0x45b24232
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7c931069
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x120a4d12
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4016de
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x10c]
xor ebx, ebx
push esi
push eax
mov edi, ecx
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x401727
mov byte [eax], bl
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push str..ps2rate.vxd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40175e
push 0x10
push str.ERROR
push str.Couldnt_open_PS2Rate.VxD._nThe_vxd_must_be_in_the_same_directory_as_the_exe.
jmp 0x4017cf
cmp dword [ebp + 0xc], ebx
je 0x401767
or byte [ebp + 9], 1
push ebx
push ebx
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp + 8]
push 4
push eax
push 2
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40179e
push 0x10
push str.ERROR
push str.Couldnt_load_PS2Rate.VxD._nPS2Rate_works_in_Windows_95_and_98_only
mov ecx, edi
call fcn.00420218
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4017d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], ebx
jne 0x4017da
cmp dword [ebp - 4], 2
jne 0x4017be
push 0x10
push str.ERROR
push str.Unsupported_rate__reset_to_40hz.
jmp 0x4017cf
cmp dword [ebp - 4], ebx
je 0x4017da
push 0x10
push str.ERROR
push str.PS_2_mouse_not_found._nIf_you_are_sure_you_have_a_PS_2_mouse__ntry_with__dont_detect__checked
mov ecx, edi
call fcn.00420218
xor eax, eax
jmp 0x4017dd
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4078a0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00407960
mov eax, dword [0x436a28]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x4078c4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x436a24], 1
mov byte [0x436a20], bl
jne 0x40791e
mov ecx, dword [0x437fec]
test ecx, ecx
je 0x40790c
mov esi, dword [0x437fe8]
sub esi, 4
cmp esi, ecx
jb 0x40790c
mov eax, dword [esi]
test eax, eax
je 0x407905
call eax
mov ecx, dword [0x437fec]
sub esi, 4
cmp esi, ecx
jae 0x4078f7
push 0x430098
push 0x430090
call fcn.00407980
add esp, 8
push 0x4300a4
push 0x43009c
call fcn.00407980
add esp, 8
test ebx, ebx
je 0x40793d
call fcn.00407970
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x436a28], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407c00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a8e8
push 0x40d038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4369f8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4369f4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4369f0], ecx
shr eax, 0x10
mov dword [0x4369ec], eax
call fcn.0040cff0
test eax, eax
jne 0x407c6a
push 0x1c
call fcn.00407db0
add esp, 4
call fcn.0040a770
test eax, eax
jne 0x407c7d
push 0x10
call fcn.00407db0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040cde0
call fcn.00408ab0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x437fe4], eax
call fcn.0040cc80
mov dword [0x436a2c], eax
test eax, eax
je 0x407cb0
mov eax, dword [0x437fe4]
test eax, eax
jne 0x407cba
push 0xffffffffffffffff
call fcn.00407860
add esp, 4
call fcn.0040c9d0
call fcn.0040c8e0
call fcn.00407830
mov esi, dword [0x437fe4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x407d99
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x407d01
test al, al
je 0x407d01
and eax, 0xff
push eax
call fcn.0040c880
add esp, 4
test eax, eax
je 0x407cdb
inc esi
mov dword [ebp - 0x64], esi
jmp 0x407cdb
cmp byte [esi], 0x22
jne 0x407d0a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x407d1a
cmp al, 0x20
ja 0x407d1a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x407d0a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x407d3b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x407d40
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00407860
jmp 0x407d7e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x407d0a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x407d99

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

Disassembly:
push esi
call fcn.0040a990
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4313b0], eax
je 0x40a7c8
push 0x74
push 1
call fcn.0040db20
mov esi, eax
add esp, 8
test esi, esi
je 0x40a7c8
mov eax, dword [0x4313b0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40a7c8
push esi
call fcn.0040a7d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x40a7f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x4313b0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40a85e
push 0x74
push 1
call fcn.0040db20
mov esi, eax
add esp, 8
test esi, esi
je 0x40a854
mov ecx, dword [0x4313b0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40a854
push esi
call fcn.0040a7d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00407db0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x40cc80
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x436d10]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40ccc2
call edi
mov esi, eax
test esi, esi
je 0x40ccac
mov eax, 1
jmp 0x40ccbd
call ebp
mov ebx, eax
test ebx, ebx
je 0x40cdcf
mov eax, 2
mov dword [0x436d10], eax
cmp eax, 1
jne 0x40cd62
test esi, esi
jne 0x40ccdb
call edi
mov esi, eax
test esi, esi
je 0x40cdcf
cmp word [esi], 0
mov eax, esi
je 0x40ccf5
add eax, 2
cmp word [eax], 0
jne 0x40cce3
add eax, 2
cmp word [eax], 0
jne 0x40cce3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40cd54
push edi
call fcn.00408100
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40cd54
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40cd46
push ebx
call fcn.00407e80
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40cdcf
test ebx, ebx
jne 0x40cd73
call ebp
mov ebx, eax
test ebx, ebx
je 0x40cdcf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40cd8b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40cd7b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40cd7b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00408100
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40cdad
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40d150
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x431760
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40d174
add eax, 8
inc ebp
cmp eax, 0x4317f0
jb 0x40d165
cmp ecx, dword [ebp*8 + 0x431760]
jne 0x40d31b
mov eax, dword [0x436a34]
cmp eax, 1
je 0x40d2dd
test eax, eax
jne 0x40d1a0
cmp dword [0x431034], 1
je 0x40d2dd
cmp ecx, 0xfc
je 0x40d31b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d1db
mov ecx, 5
mov esi, 0x42ae34
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40d224
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x42ae30
add ebx, ecx
push ebx
call fcn.0040ff50
add esp, 0xc
mov ecx, 6
mov esi, 0x42ae14
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42ae10
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x42ade8
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x431764]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040fec0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x437ee0]
test eax, eax
je 0x40d2ee
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x40d2f8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x431764]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40fb30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40fb5c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x437ee0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x40fb97
push 2
push ebp
push ecx
call fcn.0040fa30
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40fcf9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40fc41
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40fbf2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40fbdf
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40fbc2
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40fcea
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40fc3d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40fbbe
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40fcd9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40fc95
cmp eax, 5
jne 0x40fc7e
call fcn.004096a0
mov dword [eax], 9
call fcn.004096b0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00409620
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40fcb5
cmp byte [ebp], 0x1a
jne 0x40fcb5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.004096a0
mov dword [eax], 0x1c
call fcn.004096b0
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40fc3d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40fd2a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40fc41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40fc41
Function at 0x413660
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x436e98]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x4136a8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x413688
mov eax, 2
jmp 0x4136a3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x413788
mov eax, 1
mov dword [0x436e98], eax
cmp eax, 2
jne 0x4136c8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x41379a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4136e3
mov ecx, dword [0x436d48]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x413702
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00408100
mov esi, eax
add esp, 4
test esi, esi
jne 0x413719
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41377f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x413760
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x41377f
push esi
call fcn.00407e80
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x41378f
push esi
call fcn.00407e80
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00407e80
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x413f10
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4140ce
push 0x3d
push edi
call fcn.00408580
mov esi, eax
add esp, 8
test esi, esi
je 0x4140ce
cmp edi, esi
je 0x4140ce
mov dl, byte [esi + 1]
mov ecx, dword [0x436a0c]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x436a08]
cmp eax, ecx
jne 0x413f67
push eax
call fcn.004141a0
add esp, 4
mov dword [0x436a08], eax
test eax, eax
jne 0x413fe2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x413f8e
mov eax, dword [0x436a10]
test eax, eax
je 0x413f8e
call fcn.00413300
test eax, eax
je 0x413fdd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x413f9a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00408100
add esp, 4
mov dword [0x436a08], eax
test eax, eax
je 0x4140ce
mov dword [eax], 0
mov eax, dword [0x436a10]
test eax, eax
jne 0x413fdd
push 4
call fcn.00408100
add esp, 4
mov dword [0x436a10], eax
test eax, eax
je 0x4140ce
mov dword [eax], 0
mov eax, dword [0x436a08]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00414120
mov esi, eax
add esp, 8
test esi, esi
jl 0x4140df
cmp dword [ebx], 0
je 0x4140df
test ebp, ebp
je 0x4140d7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00407e80
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x414039
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x414028
lea eax, [esi*4]
push eax
push ebx
call fcn.004093e0
add esp, 8
test eax, eax
je 0x414053
mov dword [0x436a08], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4140c6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00408100
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4140c6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00407e80
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x414057
test ebp, ebp
jne 0x4140c6
test esi, esi
jge 0x4140e9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.004093e0
add esp, 8
test eax, eax
je 0x4140ce
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x436a08], eax
jmp 0x414057