joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4094a6
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 0x4094d4
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 0x4094db
cmp ebx, dword [eax + 4]
jae 0x4094db
xor eax, eax
jmp 0x4096cb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4094ec
xor eax, eax
inc eax
jmp 0x4096ca
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x409502
cmp ecx, edx
jae 0x409647
cmp dword [eax + 4], 0
je 0x40950b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4094f3
cmp dword [ebp + 8], 0
je 0x40952d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x409647
cmp eax, esi
jae 0x409647
mov eax, dword [0x41bda8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x409552
cmp dword [esi*4 + 0x41bdb0], edi
je 0x40964b
inc esi
cmp esi, eax
jl 0x409540
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4096c7
cmp dword [ebp - 8], 0x1000000
jne 0x4096c7
test byte [ebp - 0xc], 0xcc
je 0x4095d0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4096c7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4096c7
cmp word [eax + 0x18], 0x10b
jne 0x4096c7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4096c7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4095d0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4095d0
test byte [ecx + 0x27], 0x80
jne 0x409647
push 1
push 0x41bdf0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4094e4
mov ecx, dword [0x41bda8]
test ecx, ecx
mov edx, ecx
jle 0x409604
lea eax, [ecx*4 + 0x41bdac]
cmp dword [eax], edi
je 0x409604
dec edx
sub eax, 4
test edx, edx
jg 0x4095f8
test edx, edx
jne 0x409635
push 0xf
pop ebx
cmp ecx, ebx
jg 0x409611
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x409629
lea eax, [edx*4 + 0x41bdb0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x409617
cmp ecx, 0x10
jge 0x409635
inc ecx
mov dword [0x41bda8], ecx
push 0
push 0x41bdf0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4094e4
xor eax, eax
jmp 0x4096ca
test esi, esi
jle 0x4094e4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41bdf0
call ebx
test eax, eax
jne 0x4094e4
cmp dword [esi*4 + 0x41bdb0], edi
je 0x4096a1
mov eax, dword [0x41bda8]
lea esi, [eax - 1]
test esi, esi
jl 0x40968f
cmp dword [esi*4 + 0x41bdb0], edi
je 0x40968b
dec esi
jns 0x40967f
test esi, esi
jge 0x40969f
cmp eax, 0x10
jge 0x40969a
inc eax
mov dword [0x41bda8], eax
lea esi, [eax - 1]
jmp 0x4096a1
je 0x4096b9
xor ecx, ecx
test esi, esi
jl 0x4096b9
lea eax, [ecx*4 + 0x41bdb0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4096a7
push 0
push 0x41bdf0
call ebx
jmp 0x4094e4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40986d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x41add8]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x40989e
xor eax, eax
jmp 0x409a27
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x425900]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4098da
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0040d55c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4099b5
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4099f3
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x40993e
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40992f
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x40990f
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40997e
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x409987
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x409900
jmp 0x409989
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x409a22
cmp dword [ebp - 0x6c], edi
je 0x4099f3
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4099e8
call fcn.00409ba2
mov dword [eax], 9
call fcn.00409bab
mov dword [eax], esi
jmp 0x409a1d
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4099dd
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x409989
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x409989
push dword [ebp - 0x6c]
call fcn.00409bb4
pop ecx
jmp 0x409a1d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x409a0b
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x409a0b
xor eax, eax
jmp 0x409a25
call fcn.00409ba2
mov dword [eax], 0x1c
call fcn.00409bab
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x409a25
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040489a
add ebp, 0x3a0
leave
ret
Function at 0x409c27
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41bdf8], ebx
push esi
push edi
jne 0x409ca7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409ce2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41bdf8], eax
je 0x409ce2
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41bdfc], eax
call esi
cmp dword [0x41babc], 2
mov dword [0x41be00], eax
jne 0x409ca7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41be08], eax
je 0x409ca7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41be04], eax
mov eax, dword [0x41be04]
test eax, eax
je 0x409cec
call eax
test eax, eax
je 0x409cd3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41be08]
test eax, eax
je 0x409cd3
test byte [ebp - 8], 1
jne 0x409cec
cmp dword [0x41bac8], 4
jb 0x409ce6
or byte [ebp + 0x12], 0x20
jmp 0x409d0b
xor eax, eax
jmp 0x409d1b
or byte [ebp + 0x12], 4
jmp 0x409d0b
mov eax, dword [0x41bdfc]
test eax, eax
je 0x409d0b
call eax
mov ebx, eax
test ebx, ebx
je 0x409d0b
mov eax, dword [0x41be00]
test eax, eax
je 0x409d0b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41bdf8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dcea
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.00405170
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40dd85
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 [0x41babc]
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 0x40dd85
cmp eax, 1
je 0x40dda6
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 0x40dd85
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40dd52
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40dd81
xor eax, eax
inc eax
jmp 0x40ddc5
cmp edi, eax
jae 0x40dd89
xor eax, eax
jmp 0x40ddc5
cmp eax, esi
jae 0x40dd90
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 [0x41babc]
jmp 0x40dda9
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 0x40ecd7
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x418db8
call fcn.00405de8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x41bf4c], edi
jne 0x40ed1b
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40ed06
mov dword [0x41bf4c], ebx
jmp 0x40ed1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40ed1b
mov dword [0x41bf4c], 2
mov eax, dword [0x41bf4c]
cmp eax, ebx
jne 0x40ed3b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x40edfe
cmp eax, 2
je 0x40ed44
cmp eax, edi
jne 0x40ed6c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x40ed57
mov eax, dword [0x41be58]
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 - 0x20], eax
cmp eax, edi
jne 0x40ed73
xor eax, eax
jmp 0x40edfe
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00405170
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x40eda6
cmp esi, edi
jne 0x40edbc
push dword [ebp - 0x20]
call fcn.00404a26
pop ecx
mov esi, eax
cmp esi, edi
je 0x40ed6c
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40edef
cmp dword [ebp + 0x14], edi
jne 0x40edd9
push edi
push edi
jmp 0x40eddf
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 - 0x24], edi
je 0x40edfb
push esi
call fcn.0040490e
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00405e23
ret
Function at 0x40ee07
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x418dc8
call fcn.00405de8
xor esi, esi
cmp dword [0x41bf50], esi
jne 0x40ee4b
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40ee36
mov dword [0x41bf50], edi
jmp 0x40ee4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40ee4b
mov dword [0x41bf50], 2
mov eax, dword [0x41bf50]
cmp eax, 2
je 0x40ef2c
cmp eax, esi
je 0x40ef2c
cmp eax, 1
jne 0x40ee90
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x40ee79
mov eax, dword [0x41be58]
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 0x40ee97
xor eax, eax
jmp 0x40ef3e
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00405170
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x40eecd
cmp edi, esi
jne 0x40eee8
lea eax, [ebx + ebx]
push eax
call fcn.00404a26
pop ecx
mov edi, eax
cmp edi, esi
je 0x40ee90
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 0x40ef1b
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x40ef05
push esi
push esi
jmp 0x40ef0b
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 0x40ef27
push edi
call fcn.0040490e
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x40ef3e
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.00405e23
ret
Function at 0x40f5cd
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 0x40f5e6
or eax, 0xffffffff
jmp 0x40f647
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x40f643
push 0x3d
push esi
call fcn.0040f7cd
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40f643
cmp esi, eax
je 0x40f643
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x41badc]
sete cl
cmp eax, dword [0x41bae0]
mov dword [ebp - 8], ecx
jne 0x40f629
mov edi, eax
call fcn.0040f56c
mov dword [0x41badc], eax
cmp eax, ebx
jne 0x40f682
cmp dword [ebp + 0xc], ebx
je 0x40f64b
cmp dword [0x41bae4], ebx
je 0x40f64b
call fcn.0040f0ef
test eax, eax
je 0x40f682
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x40f654
xor eax, eax
jmp 0x40f646
push 4
call fcn.00404a26
cmp eax, ebx
pop ecx
mov dword [0x41badc], eax
je 0x40f643
mov dword [eax], ebx
cmp dword [0x41bae4], ebx
jne 0x40f682
push 4
call fcn.00404a26
cmp eax, ebx
pop ecx
mov dword [0x41bae4], eax
je 0x40f643
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x41badc]
call fcn.0040f51f
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x40f6e3
cmp dword [esi], ebx
je 0x40f6e3
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040490e
cmp dword [ebp - 8], ebx
pop ecx
jne 0x40f6c6
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x40f724
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x40f6bd
mov eax, edi
shl eax, 2
push eax
push dword [0x41badc]
call fcn.0040d1e7
cmp eax, ebx
pop ecx
pop ecx
je 0x40f724
jmp 0x40f71f
cmp dword [ebp - 8], ebx
jne 0x40f78f
cmp edi, ebx
jge 0x40f6f2
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x41badc]
call fcn.0040d1e7
cmp eax, ebx
pop ecx
pop ecx
je 0x40f643
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 [0x41badc], eax
cmp dword [ebp + 0xc], ebx
je 0x40f779
push dword [ebp - 4]
call fcn.00409200
inc eax
inc eax
push eax
call fcn.00404a26
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x40f779
push dword [ebp - 4]
push esi
call fcn.00409d20
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 0x40f772
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040490e
pop ecx
cmp dword [ebp - 8], ebx
je 0x40f787
push dword [ebp - 4]
call fcn.0040490e
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x40f646
push dword [ebp - 4]
call fcn.0040490e
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x40f650
Function at 0x403fbc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405ad4
test esi, esi
jne 0x403ff2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405c10
jmp 0x404010
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403ea0
mov edi, eax
test esi, esi
je 0x404010
cmp dword [ebx], 0
je 0x404010
dec esi
jmp 0x403ff9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405854
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43e04c], 0
je 0x4058bb
cmp word [0x43e338], 0xd7b2
jne 0x40587d
cmp dword [0x43e340], 0
jbe 0x40587d
mov eax, 0x43e334
call dword [0x43e350]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4058e8
call fcn.00405f74
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x439022], 0
jne 0x4058d7
push 0
push 0x43999a
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4071b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407315
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405ad4
cmp si, word [0x4399d8]
jb 0x407248
cmp si, word [0x439bd8]
ja 0x407248
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x407248
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4399d8]
jae 0x407222
mov edi, ebx
dec edi
jmp 0x407243
cmp si, word [ebx*8 + 0x4399d8]
jbe 0x407232
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407243
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4399dc]
call fcn.004070d0
jmp 0x407248
cmp edi, dword [ebp - 8]
jae 0x40720c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4072f7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4072f7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004060b0
push dword [ebp - 0x160]
push 0x407330
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004060b0
push dword [ebp - 0x164]
push 0x407340
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004060b0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406268
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40731c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405b34
ret
Function at 0x4074c8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4075cb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x440b7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x440b94]
jne 0x407514
mov eax, esi
mov edx, 0x440b96
mov ecx, 0x55
call fcn.004060b0
push 0x440b7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4075b5
push 0x440b7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405ad4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407583
cmp byte [0x440b78], 0
je 0x407548
mov edx, esi
mov eax, ebx
call fcn.004073ac
jmp 0x407583
mov edx, esi
mov eax, ebx
call fcn.004071b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x407583
cmp dword [esi], 0
je 0x40756c
mov eax, esi
mov edx, 0x4075e4
call fcn.00406188
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004071b0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406188
push 0x440b7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x440b94], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040601c
push eax
push 0x440b96
call sub.kernel32.dll_lstrcpynW
push 0x440b7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4075d2
lea eax, [ebp - 4]
call fcn.00405ad4
ret
Function at 0x407800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405bb8
xor eax, eax
push ebp
push 0x407a25
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407840
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40785a
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040601c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x407a0f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407a34
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407929
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407a34
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407929
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407a70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407929
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407a70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407929
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407aa4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407929
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407ad8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x407a0f
xor eax, eax
push ebp
push 0x407a08
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040760c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407998
mov eax, dword [ebp - 0x10]
call fcn.00403bfc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406074
jmp 0x4079e3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x407b18
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4079e3
mov eax, dword [ebp - 0x10]
call fcn.00403bfc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x407b18
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406074
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a0f
cmp dword [ebp - 8], 0
je 0x4079fe
mov eax, dword [ebp - 8]
call fcn.00403c18
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a2c
lea eax, [ebp - 4]
call fcn.00405ad4
ret