joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d230
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x462b58
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42d269
inc eax
mov dword [esi + 0x10], eax
jmp 0x42d37c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42d27d
mov eax, 0xffffffc7
jmp 0x42d37e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42d28e
cmp dword [esi + 8], eax
jne 0x42d27d
cmp dword [esi + 8], eax
jne 0x42d2a7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42d2a7
mov eax, 0xffffffc7
jmp 0x42d37e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42d2bb
push eax
mov ecx, ebx
call fcn.0042ca60
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004019a0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42d2ec
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004019c0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042c1d0
test eax, eax
mov dword [esp + 0x38], eax
je 0x42d31f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x476160
call fcn.00401ba0
mov eax, dword [esp + 0x38]
jmp 0x42d37e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042d090
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42d363
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042d0b0
mov esi, eax
test esi, esi
jne 0x42d393
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042d090
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42d335
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x476160
call fcn.00401ba0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x476160
call fcn.00401ba0
mov eax, esi
jmp 0x42d37e

Function at 0x430460
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4304c0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4304c0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4304c0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4304c0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x430500
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4363d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0045c4f2
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00435d70
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0045c420
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00458ce4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00458ce4
push 1
push 0
push 0
mov ecx, esi
call fcn.00458c8c
push 1
push 0
push 1
mov ecx, esi
call fcn.00458c8c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045c564
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x436550
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4631a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0045c4f2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00435d70
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0045c420
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x436614
cmp dword [esp + 0x40], 1
jne 0x436612
cmp ecx, eax
jge 0x436614
mov eax, ecx
cmp eax, 0xc8
jge 0x436620
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004363d0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045c564
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x436da0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463213
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00457104
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0045c79a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0045dcb6
test eax, eax
je 0x436ebc
mov ecx, dword [esp + 0x3c]
call fcn.0045c7c7
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x436e80
push edi
mov ecx, esi
call fcn.00459e2b
mov ecx, esi
call fcn.00437020
cmp dword [esp + 0x38], 1
jne 0x436eb5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00459f66
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4398e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x439913
push esi
call fcn.0043c9d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43990c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x439999
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x439982
mov eax, dword [esi + 8]
test eax, eax
je 0x439937
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43997e
cmp eax, 2
je 0x439982
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43992a
cmp eax, 3
je 0x43995d
cmp eax, 1
jne 0x43992a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43992a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43992a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004399c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4399a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004399c0
add esp, 4
pop esi
ret

Function at 0x457efa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x457f32
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00455fae
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00455f86
jmp 0x457f3e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4595e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45962a
call fcn.0045f0a1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45962a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x459621
xor eax, eax
jmp 0x459632
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00459638
pop edi
pop esi
pop ebx
ret 4

Function at 0x45f5d1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x45f5ff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45f61d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045f537
jmp 0x45f61d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45f61d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0045f537
test edi, edi
mov eax, edi
jne 0x45f607
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408c03
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0040b726
xor esi, esi
inc esi
cmp dword [0x4490d0], esi
pop ecx
jne 0x408c2b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4490cc], esi
mov byte [0x4490c8], al
jne 0x408c91
mov ecx, dword [0x44a9e8]
test ecx, ecx
je 0x408c72
mov eax, dword [0x44a9e4]
sub eax, 4
cmp eax, ecx
jmp 0x408c6b
mov eax, dword [eax]
test eax, eax
je 0x408c5d
call eax
mov eax, dword [0x44a9e4]
sub eax, 4
cmp eax, dword [0x44a9e8]
mov dword [0x44a9e4], eax
jae 0x408c55
mov eax, 0x445084
mov esi, 0x44508c
cmp eax, esi
mov edi, eax
jae 0x408c91
mov eax, dword [edi]
test eax, eax
je 0x408c8a
call eax
add edi, 4
cmp edi, esi
jb 0x408c82
mov eax, 0x445090
mov esi, 0x445098
cmp eax, esi
mov edi, eax
jae 0x408cb0
mov eax, dword [edi]
test eax, eax
je 0x408ca9
call eax
add edi, 4
cmp edi, esi
jb 0x408ca1
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x408cc1
push 8
call fcn.0040b692
jmp 0x408cd3
push dword [ebp + 8]
mov dword [0x4490d0], 1
call fcn.00408b5c
pop ecx
pop ebp
ret
Function at 0x40d8fe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x446440]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x446930]
je 0x40d92b
inc eax
cmp eax, 0x12
jb 0x40d91c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x446930]
jne 0x40da5f
mov eax, dword [0x449088]
cmp eax, 1
je 0x40da3a
cmp eax, edx
jne 0x40d95b
cmp dword [0x446414], 1
je 0x40da3a
cmp ecx, 0xfc
je 0x40da5f
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d994
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0040b380
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00408950
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40d9d6
lea eax, [ebp - 0x10c]
push eax
call fcn.00408950
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x43c4a8
push edi
call fcn.0040b4d0
add esp, 0x10
push edi
call fcn.00408950
push dword [esi + 0x446934]
mov ebx, eax
call fcn.00408950
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00408530
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040b380
push edi
push ebx
call fcn.0040b390
push 0x43c488
push ebx
call fcn.0040b390
push dword [esi + 0x446934]
push ebx
call fcn.0040b390
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00411e75
add esp, 0x2c
jmp 0x40da5f
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x446934]
push dword [esi]
call fcn.00408950
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004084b4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411350
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.00408530
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4113e5
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 [0x449090]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4113e5
cmp eax, 1
je 0x4113fd
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 0x4113e5
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4113ba
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4113e1
xor eax, eax
inc eax
jmp 0x411419
cmp esi, ebx
jae 0x4113e9
xor eax, eax
jmp 0x411419
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x449090]
jmp 0x4113ff
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 0x411930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x446440]
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 0x411959
xor eax, eax
jmp 0x411ac7
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 + 0x44a660]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41198c
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00412e96
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x411a5e
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x411a99
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 0x4119e7
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4119d8
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 0x4119bb
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 0x411a27
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x411a30
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4119ac
jmp 0x411a32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x411ac2
cmp dword [ebp - 8], edi
je 0x411a99
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x411a8b
call fcn.0040a061
mov dword [eax], 9
call fcn.0040a06a
mov dword [eax], esi
jmp 0x411a94
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 0x411a80
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x411a32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x411a32
push dword [ebp - 8]
call fcn.0040a073
pop ecx
or eax, 0xffffffff
jmp 0x411ac5
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x411aae
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x411aae
xor eax, eax
jmp 0x411ac5
call fcn.0040a061
mov dword [eax], 0x1c
call fcn.0040a06a
mov dword [eax], edi
jmp 0x411a94
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004084b4
leave
ret
Function at 0x411e75
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4494b8], ebx
push esi
push edi
jne 0x411ef5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x411f30
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43c85c
push edi
call esi
test eax, eax
mov dword [0x4494b8], eax
je 0x411f30
push 0x43c84c
push edi
call esi
push 0x43c838
push edi
mov dword [0x4494bc], eax
call esi
cmp dword [0x449090], 2
mov dword [0x4494c0], eax
jne 0x411ef5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4494c8], eax
je 0x411ef5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4494c4], eax
mov eax, dword [0x4494c4]
test eax, eax
je 0x411f3a
call eax
test eax, eax
je 0x411f21
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4494c8]
test eax, eax
je 0x411f21
test byte [ebp - 8], 1
jne 0x411f3a
cmp dword [0x44909c], 4
jb 0x411f34
or byte [ebp + 0x12], 0x20
jmp 0x411f59
xor eax, eax
jmp 0x411f69
or byte [ebp + 0x12], 4
jmp 0x411f59
mov eax, dword [0x4494bc]
test eax, eax
je 0x411f59
call eax
mov ebx, eax
test ebx, ebx
je 0x411f59
mov eax, dword [0x4494c0]
test eax, eax
je 0x411f59
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4494b8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412a6b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x43c868
call fcn.0040a1a4
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4494cc], edi
jne 0x412aaf
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x412a9a
mov dword [0x4494cc], ebx
jmp 0x412aaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x412aaf
mov dword [0x4494cc], 2
mov eax, dword [0x4494cc]
cmp eax, ebx
jne 0x412acf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x412b92
cmp eax, 2
je 0x412ad8
cmp eax, edi
jne 0x412b00
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x412aeb
mov eax, dword [0x44927c]
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 0x412b07
xor eax, eax
jmp 0x412b92
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00408530
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x412b3a
cmp esi, edi
jne 0x412b50
push dword [ebp - 0x24]
call fcn.00407d22
pop ecx
mov esi, eax
cmp esi, edi
je 0x412b00
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 0x412b83
cmp dword [ebp + 0x14], edi
jne 0x412b6d
push edi
push edi
jmp 0x412b73
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 0x412b8f
push esi
call fcn.00407c0a
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040a1df
ret
Function at 0x412b9b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x43c878
call fcn.0040a1a4
xor esi, esi
cmp dword [0x4494d0], esi
jne 0x412bdf
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x412bca
mov dword [0x4494d0], edi
jmp 0x412bdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x412bdf
mov dword [0x4494d0], 2
mov eax, dword [0x4494d0]
cmp eax, 2
je 0x412cc0
cmp eax, esi
je 0x412cc0
cmp eax, 1
jne 0x412c24
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x412c0d
mov eax, dword [0x44927c]
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 0x412c2b
xor eax, eax
jmp 0x412cd2
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00408530
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x412c61
cmp edi, esi
jne 0x412c7c
lea eax, [ebx + ebx]
push eax
call fcn.00407d22
pop ecx
mov edi, eax
cmp edi, esi
je 0x412c24
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 0x412caf
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x412c99
push esi
push esi
jmp 0x412c9f
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 0x412cbb
push edi
call fcn.00407c0a
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x412cd2
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.0040a1df
ret