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

Disassembly:
jmp 0x403740
sub esp, 0x58
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.00401091
test eax, eax
jne 0x403762
push 0xfff43714
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 0x1c51b
push esi
push edi
mov ecx, 0x13
mov esi, str.nygNeFTdF8g4wvh9ye_FMAgNmS94_SkFb7O8eXZnw_3byj2LBCNR2EjoMnghG2AZv3GXa
lea edi, [esp + 0x18]
mov dword [0x41ed4c], eax
mov dword [0x41ed50], eax
mov dword [0x41ed54], eax
mov dword [0x41ed58], eax
mov dword [0x41ed5c], eax
mov dword [0x41ed60], eax
mov dword [0x41ed64], eax
mov dword [0x41ed68], eax
rep movsd dword es:[edi], dword [esi]
call fcn.00401014
test eax, eax
je 0x4038b9
lea eax, [esp + 0xc]
push eax
push 0x2096
call fcn.0040105a
add esp, 8
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4038b9
mov ebx, dword [0x41ed44]
push ebp
mov ebp, dword [str.f2npmsW8GlatqcSYCpSrlQzGzQhHdbUtUKIxkDcFyF3B79TaWJEsiFHDQWu1De6W]
push ebx
push ebp
call fcn.00401073
mov esi, eax
push ebx
push ebp
sub esi, 0x390b1603
call fcn.00401073
mov edi, eax
push ebx
push ebp
sub edi, 0x390af643
call fcn.00401073
add esp, 0x18
push esi
sub eax, 0x390b0643
or eax, edi
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x24]
push edx
push 0xffffffffffffffff
call dword [0x420118]
test eax, eax
pop ebp
jl 0x403841
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push 0x4c
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00401037
add esp, 0x14
call dword [esp + 0x10]
mov esi, dword [esp + 0x70]
push esi
call fcn.0041252a
push str.reglagesepare
push esi
call fcn.00404370
add esp, 0xc
neg eax
sbb eax, eax
neg eax
mov dword [0x420138], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0xb4aeb5
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esp + 0x68]
push 0x6e
push ecx
mov dword [0x420100], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [0x420124]
push 0
push 0x40108c
push 0
push 0x65
push edx
mov dword [0x420120], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0
push 0
push str.OK_GOOGLE___
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x58
ret 0x10

Function at 0x401087
Capabilities:
Print debug messages

Disassembly:
jmp 0x401130
mov ecx, dword [esp + 4]
sub esp, 0x400
push edi
lea eax, [esp + 0x40c]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00403b39
lea edi, [esp + 0x10]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401156
mov ax, word [0x41a158]
lea ecx, [esp + 4]
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x404495
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41a3f8
call fcn.00406b10
mov edi, 0x94
mov eax, edi
call fcn.00406c70
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 [0x420448], ecx
mov eax, dword [esi + 4]
mov dword [0x420454], eax
mov edx, dword [esi + 8]
mov dword [0x420458], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42044c], esi
cmp ecx, 2
je 0x4044f5
or esi, 0x8000
mov dword [0x42044c], esi
shl eax, 8
add eax, edx
mov dword [0x420450], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x404530
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404530
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x404548
cmp eax, 0x20b
je 0x404535
mov dword [ebp - 0x1c], esi
jmp 0x40455c
cmp dword [ecx + 0x84], 0xe
jbe 0x404530
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x404556
cmp dword [ecx + 0x74], 0xe
jbe 0x404530
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00406e63
pop ecx
test eax, eax
jne 0x404570
push 0x1c
call fcn.0040441b
pop ecx
call fcn.00406a21
test eax, eax
jne 0x404581
push 0x10
call fcn.0040441b
pop ecx
call fcn.00409856
mov dword [ebp - 4], esi
call fcn.0040960c
test eax, eax
jge 0x40459a
push 0x1b
call fcn.004043f6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x421f74], eax
call fcn.004094ea
mov dword [0x4202bc], eax
call fcn.00409448
test eax, eax
jge 0x4045c0
push 8
call fcn.004043f6
pop ecx
call fcn.00409215
test eax, eax
jge 0x4045d1
push 9
call fcn.004043f6
pop ecx
push 1
call fcn.00408cc6
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4045e7
push eax
call fcn.004043f6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004091b8
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x404608
movzx eax, word [ebp - 0x40]
jmp 0x40460b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401078
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x404629
push edi
call fcn.00408df3
call fcn.00408e15
jmp 0x40465b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00406b4b
ret
Function at 0x405995
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.00406c70
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405a30
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 [0x420448]
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 0x405a30
cmp eax, 1
je 0x405a51
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 0x405a30
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4059fd
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405a2c
xor eax, eax
inc eax
jmp 0x405a70
cmp edi, eax
jae 0x405a34
xor eax, eax
jmp 0x405a70
cmp eax, esi
jae 0x405a3b
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 [0x420448]
jmp 0x405a54
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 0x408d30
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41a888
call fcn.00406b10
push 8
call fcn.00406e18
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x420488], esi
jne 0x408d64
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x420484], esi
mov al, byte [ebp + 0x10]
mov byte [0x420480], al
cmp dword [ebp + 0xc], edi
jne 0x408dae
cmp dword [0x421f14], edi
je 0x408d9e
mov eax, dword [0x421f10]
sub eax, 4
mov dword [0x421f10], eax
cmp eax, dword [0x421f14]
jb 0x408d9e
mov eax, dword [eax]
cmp eax, edi
je 0x408d7f
call eax
jmp 0x408d7f
push 0x41e930
mov eax, 0x41e728
call fcn.00408c90
pop ecx
push 0x41ec3c
mov eax, 0x41ea34
call fcn.00408c90
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x408ddf
cmp dword [ebp + 0x10], edi
jne 0x408ded
mov dword [0x420488], esi
push dword [ebp + 8]
call fcn.00408c4e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x408dec
push 8
call fcn.00406d4b
pop ecx
ret
call fcn.00406b4b
ret
Function at 0x408e33
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41f178]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41f180]
je 0x408e68
inc eax
cmp eax, 0x13
jb 0x408e59
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41f180]
jne 0x408f8e
mov eax, dword [0x4202c4]
cmp eax, 1
je 0x408f66
cmp eax, edx
jne 0x408e98
cmp dword [0x41edd4], 1
je 0x408f66
cmp ecx, 0xfc
je 0x408f8e
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408ece
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004098e0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004099e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408f02
mov eax, edi
push eax
call fcn.004099e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ac80
push edi
call fcn.0040b3e0
add esp, 0x10
push edi
call fcn.004099e0
push dword [esi + 0x41f184]
mov ebx, eax
call fcn.004099e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00406c70
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004098e0
push edi
push ebx
call fcn.004098f0
push 0x41ac60
push ebx
call fcn.004098f0
push dword [esi + 0x41f184]
push ebx
call fcn.004098f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040ea13
add esp, 0x2c
jmp 0x408f8e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41f184]
push dword [esi]
call fcn.004099e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040a3ba
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x409ea8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x41f178]
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 0x409ed9
xor eax, eax
jmp 0x40a062
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 + 0x421e00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x409f15
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0040f05d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x409ff0
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x40a02e
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 0x409f79
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x409f6a
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 0x409f4a
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 0x409fb9
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x409fc2
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x409f3b
jmp 0x409fc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x40a05d
cmp dword [ebp - 0x6c], edi
je 0x40a02e
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x40a023
call fcn.0040e926
mov dword [eax], 9
call fcn.0040e92f
mov dword [eax], esi
jmp 0x40a058
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 0x40a018
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x409fc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x409fc4
push dword [ebp - 0x6c]
call fcn.0040e938
pop ecx
jmp 0x40a058
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40a046
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x40a046
xor eax, eax
jmp 0x40a060
call fcn.0040e926
mov dword [eax], 0x1c
call fcn.0040e92f
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x40a060
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040a3ba
add ebp, 0x3a0
leave
ret
Function at 0x40e662
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 0x40e690
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 0x40e697
cmp ebx, dword [eax + 4]
jae 0x40e697
xor eax, eax
jmp 0x40e887
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40e6a8
xor eax, eax
inc eax
jmp 0x40e886
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40e6be
cmp ecx, edx
jae 0x40e803
cmp dword [eax + 4], 0
je 0x40e6c7
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40e6af
cmp dword [ebp + 8], 0
je 0x40e6e9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40e803
cmp eax, esi
jae 0x40e803
mov eax, dword [0x420620]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40e70e
cmp dword [esi*4 + 0x420628], edi
je 0x40e807
inc esi
cmp esi, eax
jl 0x40e6fc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e883
cmp dword [ebp - 8], 0x1000000
jne 0x40e883
test byte [ebp - 0xc], 0xcc
je 0x40e78c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40e883
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40e883
cmp word [eax + 0x18], 0x10b
jne 0x40e883
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40e883
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40e78c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40e78c
test byte [ecx + 0x27], 0x80
jne 0x40e803
push 1
push 0x420668
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40e6a0
mov ecx, dword [0x420620]
test ecx, ecx
mov edx, ecx
jle 0x40e7c0
lea eax, [ecx*4 + 0x420624]
cmp dword [eax], edi
je 0x40e7c0
dec edx
sub eax, 4
test edx, edx
jg 0x40e7b4
test edx, edx
jne 0x40e7f1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40e7cd
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40e7e5
lea eax, [edx*4 + 0x420628]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40e7d3
cmp ecx, 0x10
jge 0x40e7f1
inc ecx
mov dword [0x420620], ecx
push 0
push 0x420668
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40e6a0
xor eax, eax
jmp 0x40e886
test esi, esi
jle 0x40e6a0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x420668
call ebx
test eax, eax
jne 0x40e6a0
cmp dword [esi*4 + 0x420628], edi
je 0x40e85d
mov eax, dword [0x420620]
lea esi, [eax - 1]
test esi, esi
jl 0x40e84b
cmp dword [esi*4 + 0x420628], edi
je 0x40e847
dec esi
jns 0x40e83b
test esi, esi
jge 0x40e85b
cmp eax, 0x10
jge 0x40e856
inc eax
mov dword [0x420620], eax
lea esi, [eax - 1]
jmp 0x40e85d
je 0x40e875
xor ecx, ecx
test esi, esi
jl 0x40e875
lea eax, [ecx*4 + 0x420628]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40e863
push 0
push 0x420668
call ebx
jmp 0x40e6a0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ea13
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x420670], ebx
push esi
push edi
jne 0x40ea93
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40eace
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x420670], eax
je 0x40eace
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x420674], eax
call esi
cmp dword [0x420448], 2
mov dword [0x420678], eax
jne 0x40ea93
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x420680], eax
je 0x40ea93
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42067c], eax
mov eax, dword [0x42067c]
test eax, eax
je 0x40ead8
call eax
test eax, eax
je 0x40eabf
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x420680]
test eax, eax
je 0x40eabf
test byte [ebp - 8], 1
jne 0x40ead8
cmp dword [0x420454], 4
jb 0x40ead2
or byte [ebp + 0x12], 0x20
jmp 0x40eaf7
xor eax, eax
jmp 0x40eb07
or byte [ebp + 0x12], 4
jmp 0x40eaf7
mov eax, dword [0x420674]
test eax, eax
je 0x40eaf7
call eax
mov ebx, eax
test ebx, ebx
je 0x40eaf7
mov eax, dword [0x420678]
test eax, eax
je 0x40eaf7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x420670]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411794
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41c5c8
call fcn.00406b10
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x420760], edi
jne 0x4117d8
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4117c3
mov dword [0x420760], ebx
jmp 0x4117d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4117d8
mov dword [0x420760], 2
mov eax, dword [0x420760]
cmp eax, ebx
jne 0x4117f8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4118bb
cmp eax, 2
je 0x411801
cmp eax, edi
jne 0x411829
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x411814
mov eax, dword [0x4205bc]
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 0x411830
xor eax, eax
jmp 0x4118bb
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00406c70
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x411863
cmp esi, edi
jne 0x411879
push dword [ebp - 0x20]
call fcn.00403df2
pop ecx
mov esi, eax
cmp esi, edi
je 0x411829
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 0x4118ac
cmp dword [ebp + 0x14], edi
jne 0x411896
push edi
push edi
jmp 0x41189c
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 0x4118b8
push esi
call fcn.00405464
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00406b4b
ret
Function at 0x4118c4
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41c5d8
call fcn.00406b10
xor esi, esi
cmp dword [0x420764], esi
jne 0x411908
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4118f3
mov dword [0x420764], edi
jmp 0x411908
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x411908
mov dword [0x420764], 2
mov eax, dword [0x420764]
cmp eax, 2
je 0x4119e9
cmp eax, esi
je 0x4119e9
cmp eax, 1
jne 0x41194d
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x411936
mov eax, dword [0x4205bc]
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 0x411954
xor eax, eax
jmp 0x4119fb
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00406c70
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x41198a
cmp edi, esi
jne 0x4119a5
lea eax, [ebx + ebx]
push eax
call fcn.00403df2
pop ecx
mov edi, eax
cmp edi, esi
je 0x41194d
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 0x4119d8
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4119c2
push esi
push esi
jmp 0x4119c8
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 0x4119e4
push edi
call fcn.00405464
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4119fb
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.00406b4b
ret
Function at 0x4120e6
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 0x4120ff
or eax, 0xffffffff
jmp 0x412160
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41215c
push 0x3d
push esi
call fcn.004122e6
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41215c
cmp esi, eax
je 0x41215c
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x420468]
sete cl
cmp eax, dword [0x42046c]
mov dword [ebp - 8], ecx
jne 0x412142
mov edi, eax
call fcn.00412085
mov dword [0x420468], eax
cmp eax, ebx
jne 0x41219b
cmp dword [ebp + 0xc], ebx
je 0x412164
cmp dword [0x420470], ebx
je 0x412164
call fcn.00411c08
test eax, eax
je 0x41219b
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41216d
xor eax, eax
jmp 0x41215f
push 4
call fcn.00403df2
cmp eax, ebx
pop ecx
mov dword [0x420468], eax
je 0x41215c
mov dword [eax], ebx
cmp dword [0x420470], ebx
jne 0x41219b
push 4
call fcn.00403df2
cmp eax, ebx
pop ecx
mov dword [0x420470], eax
je 0x41215c
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x420468]
call fcn.00412038
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4121fc
cmp dword [esi], ebx
je 0x4121fc
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00405464
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4121df
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41223d
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4121d6
mov eax, edi
shl eax, 2
push eax
push dword [0x420468]
call fcn.00409af8
cmp eax, ebx
pop ecx
pop ecx
je 0x41223d
jmp 0x412238
cmp dword [ebp - 8], ebx
jne 0x4122a8
cmp edi, ebx
jge 0x41220b
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x420468]
call fcn.00409af8
cmp eax, ebx
pop ecx
pop ecx
je 0x41215c
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 [0x420468], eax
cmp dword [ebp + 0xc], ebx
je 0x412292
push dword [ebp - 4]
call fcn.004099e0
inc eax
inc eax
push eax
call fcn.00403df2
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x412292
push dword [ebp - 4]
push esi
call fcn.004098e0
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 0x41228b
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00405464
pop ecx
cmp dword [ebp - 8], ebx
je 0x4122a0
push dword [ebp - 4]
call fcn.00405464
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41215f
push dword [ebp - 4]
call fcn.00405464
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x412169