joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x769d2041
xor ecx, ebp
loop 0x408d78
pop ebp
ret

Function at 0x408e9c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x41764c
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x408eb6
call fcn.00408e64
mov eax, ebp
jmp 0x408ece
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x408ed6
test al, 7
jne 0x408eba
cmp esi, 8
jb 0x408f5f
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x408edf
xor edx, edx
jmp 0x408f79
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x408f63
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4096b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4096c7
test esi, esi
jg 0x4096ce
xor eax, eax
jmp 0x409772
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x28]
mov ecx, 0x10
call fcn.0040fc34
test esi, esi
jns 0x4096e8
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
test esi, esi
jle 0x409759
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00409a24
mov eax, dword [ebp - 0x28]
xor dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x24]
xor dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x20]
xor dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0xc], eax
mov eax, ebx
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec esi
test esi, esi
jg 0x4096f5
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.0040fc34
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x915008
Capabilities:
Encode data using xor

Disassembly:
jmp 0x915012
pushal
call 0x915018
pop ebp
sub ebp, 0x10
sub ebp, 0x515008
jmp 0x91502e
mov eax, 0x515008
add eax, ebp
add eax, 0x4c
mov ecx, 0x5fc
mov edx, 0x161c2ac
xor byte [eax], dl
inc eax
dec ecx
jne 0x915045
jmp 0x915058
daa
popal
daa
and eax, 0xacacac90
sub eax, 0xacac546d
lodsb al, byte [esi]
scasd eax, dword es:[edi]
popal
adc al, 0xaa
lodsb al, byte [esi]
lodsb al, byte [esi]
lodsb al, byte [esi]
push ss
test byte [esp + ebp*4 - 0x50b1a454], ch
daa
sub eax, 0xacacaca0
scasd eax, dword es:[edi]
imul edi, esp, 0x5088c821
and eax, 0xf0c488a8
push ss
mov byte [0x3905c4ac], al
out dx, al
lodsb al, byte [esi]
lodsd eax, dword [esi]
or byte [eax - 0x392bcf3c], 0x88
inc esp
test eax, 0x45acacac
test byte [esp + ebp*4 - 0xe070654], ch
daa
sub dword [esp + ebp*4 + 0x3927acac], esp
mov al, byte [0x27acacac]
and dword [esp + ebp*4 + 0x456dacac], edi
scasb al, byte es:[edi]
popfd
scasb al, byte es:[edi]
das
outsb dx, byte [esi]
test al, 0xe5
mov dword [0x53535829], eax
push ebx
int1
outsb dx, byte [esi]
mov al, byte [0x882027ac]
test al, 0xac
lodsb al, byte [esi]
lodsb al, byte [esi]
invalid
Function at 0x402e33
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4134a8
call fcn.00403fa4
mov edi, 0x94
mov eax, edi
call fcn.00402670
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x418dd8], ecx
mov eax, dword [esi + 4]
mov dword [0x418de4], eax
mov edx, dword [esi + 8]
mov dword [0x418de8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x418ddc], esi
cmp ecx, 2
je 0x402e93
or esi, 0x8000
mov dword [0x418ddc], esi
shl eax, 8
add eax, edx
mov dword [0x418de0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402ece
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402ece
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402ee6
cmp eax, 0x20b
je 0x402ed3
mov dword [ebp - 0x1c], esi
jmp 0x402efa
cmp dword [ecx + 0x84], 0xe
jbe 0x402ece
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402ef4
cmp dword [ecx + 0x74], 0xe
jbe 0x402ece
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040640e
pop ecx
test eax, eax
jne 0x402f0e
push 0x1c
call fcn.00402db9
pop ecx
call fcn.00403864
test eax, eax
jne 0x402f1f
push 0x10
call fcn.00402db9
pop ecx
call fcn.0040636c
mov dword [ebp - 4], esi
call fcn.00406122
test eax, eax
jge 0x402f38
push 0x1b
call fcn.00402d94
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41a9e0], eax
call fcn.00406000
mov dword [0x418db4], eax
call fcn.00405f5e
test eax, eax
jge 0x402f5e
push 8
call fcn.00402d94
pop ecx
call fcn.00405d2b
test eax, eax
jge 0x402f6f
push 9
call fcn.00402d94
pop ecx
call fcn.004057e0
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x402f82
push eax
call fcn.00402d94
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00405cc2
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x402fa3
movzx eax, word [ebp - 0x34]
jmp 0x402fa6
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401032
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x402fc4
push edi
call fcn.00405918
call fcn.0040593a
jmp 0x402ff6
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00403fdf
ret
Function at 0x407388
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402670
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40741d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x418dd8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40741d
cmp eax, 1
je 0x407435
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40741d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4073f2
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x407419
xor eax, eax
inc eax
jmp 0x407451
cmp esi, ebx
jae 0x407421
xor eax, eax
jmp 0x407451
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x418dd8]
jmp 0x407437
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407601
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4190ac], ebx
push esi
push edi
jne 0x407681
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4076bc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4190ac], eax
je 0x4076bc
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4190b0], eax
call esi
cmp dword [0x418dd8], 2
mov dword [0x4190b4], eax
jne 0x407681
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4190bc], eax
je 0x407681
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4190b8], eax
mov eax, dword [0x4190b8]
test eax, eax
je 0x4076c6
call eax
test eax, eax
je 0x4076ad
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4190bc]
test eax, eax
je 0x4076ad
test byte [ebp - 8], 1
jne 0x4076c6
cmp dword [0x418de4], 4
jb 0x4076c0
or byte [ebp + 0x12], 0x20
jmp 0x4076e5
xor eax, eax
jmp 0x4076f5
or byte [ebp + 0x12], 4
jmp 0x4076e5
mov eax, dword [0x4190b0]
test eax, eax
je 0x4076e5
call eax
mov ebx, eax
test ebx, ebx
je 0x4076e5
mov eax, dword [0x4190b4]
test eax, eax
je 0x4076e5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4190ac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407a23
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x416b60]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x407a4c
xor eax, eax
jmp 0x407bba
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4192c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x407a7f
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0040c482
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407b51
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x407b8c
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x407ada
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x407acb
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x407aae
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407b1a
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x407b23
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x407a9f
jmp 0x407b25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x407bb5
cmp dword [ebp - 8], edi
je 0x407b8c
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x407b7e
call fcn.0040506e
mov dword [eax], 9
call fcn.00405077
mov dword [eax], esi
jmp 0x407b87
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407b73
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x407b25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x407b25
push dword [ebp - 8]
call fcn.00405080
pop ecx
or eax, 0xffffffff
jmp 0x407bb8
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x407ba1
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x407ba1
xor eax, eax
jmp 0x407bb8
call fcn.0040506e
mov dword [eax], 0x1c
call fcn.00405077
mov dword [eax], edi
jmp 0x407b87
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00402a6d
leave
ret
Function at 0x4092b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x409476
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4192c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x409476
test cl, 0x48
je 0x409316
mov al, byte [eax + 5]
cmp al, 0xa
je 0x409316
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409368
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x409350
call fcn.0040506e
mov dword [eax], 9
call fcn.00405077
mov dword [eax], esi
jmp 0x409360
cmp eax, 0x6d
je 0x409476
push eax
call fcn.00405080
pop ecx
or eax, 0xffffffff
jmp 0x409478
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x409471
test edx, edx
je 0x40938b
cmp byte [ebx], 0xa
jne 0x40938b
or al, 4
jmp 0x40938d
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x40946b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40945b
cmp al, 0xd
je 0x4093c1
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40944d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4093db
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4093d6
add dword [ebp + 0x10], 2
jmp 0x40942f
mov dword [ebp + 0x10], eax
jmp 0x409449
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409403
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409449
cmp dword [ebp - 0xc], 0
je 0x409449
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x409424
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40942f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40944c
cmp ebx, dword [ebp + 0xc]
jne 0x409434
cmp byte [ebp - 1], 0xa
jne 0x409434
mov byte [ebx], 0xa
jmp 0x40944c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00407904
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40944d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4093a5
jmp 0x40946b
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x40946b
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x409478
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c90d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00402670
mov eax, dword [0x416b60]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00407904
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40ca37
push 2
push esi
push dword [ebp + 8]
call fcn.00407904
add esp, 0xc
cmp eax, ebx
je 0x40ca37
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40c9da
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00402cb0
push 0x8000
push dword [ebp + 8]
call fcn.0040d5e4
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x40c993
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00407a23
add esp, 0xc
cmp eax, 0xffffffff
je 0x40c9b3
sub edi, eax
test edi, edi
jg 0x40c98b
jmp 0x40c9cb
call fcn.00405077
cmp dword [eax], 5
jne 0x40c9c8
call fcn.0040506e
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0040d5e4
pop ecx
pop ecx
jmp 0x40ca22
jge 0x40ca22
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407904
push dword [ebp + 8]
call fcn.00408e8d
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 0x40ca22
call fcn.0040506e
mov dword [eax], 0xd
call fcn.00405077
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00407904
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40ca39
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00402a6d
leave
ret
Function at 0x40d79d
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4152c0
call fcn.00403fa4
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4191e8], edi
jne 0x40d7e1
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40d7cc
mov dword [0x4191e8], ebx
jmp 0x40d7e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40d7e1
mov dword [0x4191e8], 2
mov eax, dword [0x4191e8]
cmp eax, ebx
jne 0x40d801
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x40d8c4
cmp eax, 2
je 0x40d80a
cmp eax, edi
jne 0x40d832
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x40d81d
mov eax, dword [0x418f44]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x40d839
xor eax, eax
jmp 0x40d8c4
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00402670
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x40d86c
cmp esi, edi
jne 0x40d882
push dword [ebp - 0x24]
call fcn.004052bc
pop ecx
mov esi, eax
cmp esi, edi
je 0x40d832
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40d8b5
cmp dword [ebp + 0x14], edi
jne 0x40d89f
push edi
push edi
jmp 0x40d8a5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x40d8c1
push esi
call fcn.0040494b
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00403fdf
ret
Function at 0x40d8cd
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4152d0
call fcn.00403fa4
xor esi, esi
cmp dword [0x4191ec], esi
jne 0x40d911
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40d8fc
mov dword [0x4191ec], edi
jmp 0x40d911
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40d911
mov dword [0x4191ec], 2
mov eax, dword [0x4191ec]
cmp eax, 2
je 0x40d9f2
cmp eax, esi
je 0x40d9f2
cmp eax, 1
jne 0x40d956
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x40d93f
mov eax, dword [0x418f44]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x40d95d
xor eax, eax
jmp 0x40da04
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00402670
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x40d993
cmp edi, esi
jne 0x40d9ae
lea eax, [ebx + ebx]
push eax
call fcn.004052bc
pop ecx
mov edi, eax
cmp edi, esi
je 0x40d956
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40d9e1
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x40d9cb
push esi
push esi
jmp 0x40d9d1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x40d9ed
push edi
call fcn.0040494b
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x40da04
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00403fdf
ret
Function at 0x40df1a
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x40df85
push 0x3d
push dword [ebp + 8]
call fcn.0040e0fa
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x40df85
cmp dword [ebp + 8], esi
je 0x40df85
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x418df8]
cmp eax, dword [0x418dfc]
jne 0x40df6b
mov edi, eax
call fcn.0040deb9
mov dword [0x418df8], eax
cmp eax, ebx
jne 0x40dfc4
cmp dword [ebp + 0xc], ebx
je 0x40df8d
cmp dword [0x418e00], ebx
je 0x40df8d
call fcn.0040da5b
test eax, eax
je 0x40dfc4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x40e0c8
push 4
call fcn.004052bc
cmp eax, ebx
pop ecx
mov dword [0x418df8], eax
je 0x40df85
mov dword [eax], ebx
cmp dword [0x418e00], ebx
jne 0x40dfc4
push 4
call fcn.004052bc
cmp eax, ebx
pop ecx
mov dword [0x418e00], eax
je 0x40df85
mov dword [eax], ebx
mov ebx, dword [0x418df8]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0040de6c
mov edi, eax
test edi, edi
pop ecx
jl 0x40e01d
cmp dword [ebx], 0
je 0x40e01d
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040494b
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x40e005
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x40e053
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x40dffc
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0040cadf
test eax, eax
pop ecx
pop ecx
je 0x40e053
jmp 0x40e04e
cmp dword [ebp - 4], 0
jne 0x40e0c1
test edi, edi
jge 0x40e02d
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0040cadf
test eax, eax
pop ecx
pop ecx
je 0x40df85
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x418df8], eax
cmp dword [ebp + 0xc], 0
je 0x40e0aa
push dword [ebp + 8]
call fcn.004025e0
inc eax
inc eax
push eax
call fcn.004052bc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40e0aa
push dword [ebp + 8]
push esi
call fcn.004024e0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
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 0x40e0a3
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0040494b
pop ecx
cmp dword [ebp - 4], 0
je 0x40e0b9
push dword [ebp + 8]
call fcn.0040494b
pop ecx
mov eax, dword [ebp - 8]
jmp 0x40df88
push esi
call fcn.0040494b
pop ecx
xor eax, eax
jmp 0x40df88