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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x466e38
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 0x430fb9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4310cc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x430fcd
mov eax, 0xffffffc7
jmp 0x4310ce
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x430fde
cmp dword [esi + 8], eax
jne 0x430fcd
cmp dword [esi + 8], eax
jne 0x430ff7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x430ff7
mov eax, 0xffffffc7
jmp 0x4310ce
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43100b
push eax
mov ecx, ebx
call fcn.004307b0
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.00401f10
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43103c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401f30
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042ff20
test eax, eax
mov dword [esp + 0x38], eax
je 0x43106f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x105ba10
call fcn.00402110
mov eax, dword [esp + 0x38]
jmp 0x4310ce
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00430de0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4310b3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00430e00
mov esi, eax
test esi, esi
jne 0x4310e3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00430de0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x431085
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x105ba10
call fcn.00402110
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], 0x105ba10
call fcn.00402110
mov eax, esi
jmp 0x4310ce

Function at 0x434210
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x434270
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x434270
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x434270
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x434270
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 0x4342b0
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 0x43a1c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467468
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.004603c0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00439b60
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.004602ee
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.0045cbb2
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.0045cbb2
push 1
push 0
push 0
mov ecx, esi
call fcn.0045cb5a
push 1
push 0
push 1
mov ecx, esi
call fcn.0045cb5a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00460432
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43a340
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467488
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.004603c0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00439b60
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.004602ee
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 0x43a404
cmp dword [esp + 0x40], 1
jne 0x43a402
cmp ecx, eax
jge 0x43a404
mov eax, ecx
cmp eax, 0xc8
jge 0x43a410
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043a1c0
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.00460432
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43ab90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4674f3
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.0045afd2
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.00460668
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00461b84
test eax, eax
je 0x43acac
mov ecx, dword [esp + 0x3c]
call fcn.00460695
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 0x43ac70
push edi
mov ecx, esi
call fcn.0045dcf9
mov ecx, esi
call fcn.0043ae10
cmp dword [esp + 0x38], 1
jne 0x43aca5
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.0045de34
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 0x43d6d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d703
push esi
call fcn.004407c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d6fc
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 0x43d789
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d772
mov eax, dword [esi + 8]
test eax, eax
je 0x43d727
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 0x43d76e
cmp eax, 2
je 0x43d772
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d71a
cmp eax, 3
je 0x43d74d
cmp eax, 1
jne 0x43d71a
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 0x43d71a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d71a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d7b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d798
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d7b0
add esp, 4
pop esi
ret

Function at 0x45bdc8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45be00
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.00459e7c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00459e54
jmp 0x45be0c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45d4b6
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 0x45d4f8
call fcn.00462f6f
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 0x45d4f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45d4ef
xor eax, eax
jmp 0x45d500
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045d506
pop edi
pop esi
pop ebx
ret 4

Function at 0x46349f
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 0x4634cd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4634eb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00463405
jmp 0x4634eb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4634eb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00463405
test edi, edi
mov eax, edi
jne 0x4634d5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401930
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
mov dword [esp], 0
test eax, eax
jne 0x401947
add esp, 8
ret
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40199d
mov eax, 4
lea ecx, [esp]
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push 0
push str.CAPTCompliant
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40199d
mov dword [esp], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4019ac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 8
ret

Function at 0x4019c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ebx
push ebp
push esi
lea eax, [esp + 0x30]
push edi
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401ac7
push eax
push eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x48]
push ecx
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x401ac7
mov eax, dword [esp + 0x30]
test eax, eax
jbe 0x401ac7
mov ecx, dword [esp + 0x14]
lea ebx, [ecx + ecx + 4]
push ebx
call fcn.00409a40
mov esi, eax
add esp, 4
test esi, esi
je 0x401ac7
mov eax, dword [esp + 0x30]
xor edi, edi
test eax, eax
jbe 0x401aba
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov eax, dword [esp + 0x34]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push 0
push edx
push esi
push edi
push eax
mov dword [esp + 0x38], ebx
call ebp
test eax, eax
jne 0x401aa7
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push esi
push edx
call fcn.004018c0
add esp, 0xc
test eax, eax
jne 0x401aa7
mov eax, dword [esp + 0x34]
push esi
push eax
call fcn.00401930
add esp, 8
cmp eax, 3
je 0x401ab2
mov eax, dword [esp + 0x30]
inc edi
cmp edi, eax
jb 0x401a5f
jmp 0x401aba
mov dword [esp + 0x10], 1
test esi, esi
je 0x401ac7
push esi
call fcn.00409a80
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x401ad6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4044b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x298
mov ecx, dword [0x412010]
push ebx
push ebp
mov edx, 0x7ff
push esi
mov esi, dword [esp + 0x2b0]
push edi
mov dword [esp + 0x10], 9
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0xd
mov dword [esp + 0x1c], 0x801
mov dword [esp + 0x20], 0xb
mov dword [esp + 0x24], 0x800
mov dword [esp + 0x28], 0x2b
mov dword [esp + 0x2c], 0x806
mov dword [esp + 0x30], 0x52
mov dword [esp + 0x34], 0x815
mov dword [esp + 0x38], 0x5b
mov dword [esp + 0x3c], 0x808
mov dword [esp + 0x40], 0x1f
mov dword [esp + 0x44], 0x809
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 0x7fc
mov dword [esp + 0x50], 5
mov dword [esp + 0x54], 0x7fd
mov dword [esp + 0x58], 7
mov dword [esp + 0x5c], 0x7fe
mov dword [esp + 0x60], 0x1b
mov dword [esp + 0x64], 0x803
mov dword [esp + 0x68], 0x14
mov dword [esp + 0x6c], 0x802
mov dword [esp + 0x70], 0x1c
mov dword [esp + 0x74], 0x804
mov dword [esp + 0x78], 0x25
mov dword [esp + 0x7c], 0x805
mov dword [esp + 0x80], 0x244
mov dword [esp + 0x84], 0x80e
mov dword [esp + 0x88], 0x245
mov dword [esp + 0x8c], 0x80f
mov dword [esp + 0x90], 0x246
mov dword [esp + 0x94], 0x810
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0x80a
xor eax, eax
cmp esi, 0x152f
mov edi, eax
jne 0x404622
mov ebx, dword [ecx + 0x2c]
and edi, 0xffff
mov ebx, dword [ebx + ecx]
mov ebp, dword [esp + edi*8 + 0x10]
cmp ebx, ebp
je 0x40463a
jmp 0x404631
mov ebx, dword [ecx + 0x54]
and edi, 0xffff
cmp ebx, dword [esp + edi*8 + 0x10]
je 0x40463a
inc eax
cmp ax, 0x12
jb 0x404602
jmp 0x404643
and eax, 0xffff
mov edx, dword [esp + eax*8 + 0x14]
cmp edx, 0x80e
je 0x404689
cmp edx, 0x80f
je 0x404689
cmp edx, 0x810
je 0x404689
mov ecx, dword [0x412ff8]
lea eax, [esp + 0xa0]
push 0x104
push eax
push edx
push ecx
lea esi, [esp + 0xb0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x404686
mov esi, 0x40f444
push esi
jmp 0x4046e5
mov eax, dword [ecx + 0x58]
add eax, ecx
cmp word [eax], 0
jne 0x4046e4
lea ecx, [esp + 0xa0]
push 0x104
push ecx
push edx
mov edx, dword [0x412ff8]
lea esi, [esp + 0xac]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x4046bf
mov esi, 0x40f444
mov eax, dword [esp + 0x2b0]
mov ecx, dword [esp + 0x2ac]
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret
push eax
mov edx, dword [esp + 0x2b4]
mov eax, dword [esp + 0x2b0]
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret
Function at 0x406310
Capabilities:
Get hostname

Disassembly:
sub esp, 0x210
mov eax, dword [0x40f688]
mov cx, word [0x40f68c]
lea edx, [esp + 4]
push edi
push edx
mov dword [esp + 0xc], eax
mov word [esp + 0x10], cx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x412010]
test eax, eax
je 0x4063a1
push esi
mov esi, dword [eax + 0x5c]
add esi, eax
lea eax, [esp + 0xc]
push edx
push eax
push esi
call fcn.0040a890
add esp, 0xc
test eax, eax
jne 0x40636d
add esi, 4
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x10], 0x202
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call fcn.0040a890
add esp, 0xc
pop esi
pop edi
add esp, 0x210
ret
xor eax, eax
pop edi
add esp, 0x210
ret

Function at 0x4063b0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x208
mov ecx, pe_nt_image_headers32
xor eax, eax
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x412010]
test eax, eax
je 0x406404
push esi
mov esi, dword [eax + 0x60]
add esi, eax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0x202
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [esp + 0xc]
push edx
push esi
call fcn.0040a8d0
add esp, 8
pop esi
pop edi
add esp, 0x208
ret
xor eax, eax
pop edi
add esp, 0x208
ret
Function at 0x4071c0
Capabilities:
Get geographical location
Get graphical window text

Disassembly:
sub esp, 0x2f8
cmp word [0x41321c], 0x64
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
jb 0x407223
mov eax, dword [0x412394]
push 0
push 0
push 0x1008
push eax
call edi
mov eax, dword [0x412440]
test eax, eax
je 0x4071fc
push eax
call fcn.00409a80
add esp, 4
mov eax, 0x412440
mov ecx, 0x63
mov edx, dword [eax + 4]
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x407206
mov eax, dword [0x41208c]
dec word [0x41321c]
dec eax
mov dword [0x41208c], eax
push 0x38c
call fcn.00409a40
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 4
xor ecx, ecx
mov cx, word [0x41321c]
push 0x412dc0
push eax
mov dword [ecx*4 + 0x412440], eax
call esi
mov edx, dword [0x412010]
push 0x104
test byte [edx + 8], 4
je 0x4072a4
mov ecx, dword [0x412ff8]
lea eax, [esp + 0x100]
push eax
push 0x7f9
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x407287
lea edx, [esp + 0xfc]
push edx
jmp 0x4072e8
xor edx, edx
push str.Cancel
mov dx, word [0x41321c]
mov eax, dword [edx*4 + 0x412440]
add eax, 0x208
push eax
jmp 0x4072fe
mov edx, dword [0x412ff8]
lea ecx, [esp + 0x100]
push ecx
push 0x7fa
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x4072e3
xor ecx, ecx
lea eax, [esp + 0xfc]
mov cx, word [0x41321c]
push eax
mov edx, dword [ecx*4 + 0x412440]
add edx, 0x208
push edx
jmp 0x4072fe
push str.Done
xor eax, eax
mov ax, word [0x41321c]
mov ecx, dword [eax*4 + 0x412440]
add ecx, 0x208
push ecx
call esi
mov eax, dword [0x412010]
mov edx, dword [eax + 0x60]
add edx, eax
xor eax, eax
mov ax, word [0x41321c]
push edx
mov ecx, dword [eax*4 + 0x412440]
add ecx, 0x288
push ecx
call esi
xor edx, edx
mov ecx, dword [0x412704]
mov dx, word [0x41321c]
push 0xa0
mov eax, dword [edx*4 + 0x412440]
lea edx, [esp + 0x60]
push edx
push 0x1003
push 0x400
mov dword [eax + 0x308], ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push pe_nt_image_headers32
mov ax, word [0x41321c]
lea edx, [esp + 0x60]
mov ecx, dword [eax*4 + 0x412440]
add ecx, 0x30c
push ecx
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov eax, dword [0x41208c]
lea edx, [esp + 0xc]
mov dword [esp + 0x10], eax
inc eax
mov dword [0x41208c], eax
xor eax, eax
mov ax, word [0x41321c]
push edx
push 0
or ebx, 0xffffffff
mov ecx, dword [eax*4 + 0x412440]
mov eax, dword [0x412394]
push 0x104d
push eax
mov dword [esp + 0x1c], 0xd
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x3c], ecx
call edi
cmp eax, ebx
je 0x40742f
xor esi, esi
mov edx, dword [0x41208c]
mov eax, dword [0x412394]
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], esi
push ecx
push edx
push 0x1074
push eax
mov dword [esp + 0x58], ebx
call edi
inc esi
cmp esi, 5
jl 0x4073f0
mov ecx, dword [0x4125dc]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
inc word [0x41321c]
pop edi
pop esi
pop ebx
add esp, 0x2f8
ret
Function at 0x409570
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x68c
push ebx
push ebp
push esi
mov esi, 0x104
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push 0x40
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
push esi
push ebx
push 0
call ebp
test eax, eax
jne 0x4095c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4096c9
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esi, esi
push esi
push 0x40
call edi
mov ebx, eax
push esi
push ebx
push 0
call ebp
test eax, eax
je 0x4095c9
test ebx, ebx
jne 0x4095ab
mov esi, 1
lea eax, [esp + 0x2c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor ebp, ebp
lea ecx, [esp + 0x2c]
push ebp
push ebp
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x40]
xor edx, edx
cmp word [esp + 0x6a0], bp
mov dword [esp + 0x10], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], si
mov dword [esp + 0x6c], esi
mov dword [esp + 0x28], eax
jne 0x409671
mov ecx, dword [esp + 0x6a4]
cmp ecx, ebp
je 0x409671
mov eax, dword [esp + 0x6a8]
cmp eax, ebp
je 0x409671
push eax
push ecx
push ebx
lea ecx, [esp + 0x90]
push str._s__D_s__P_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x409688
push ebx
lea edx, [esp + 0x88]
push str._s__L
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x40]
push eax
push ecx
push ebp
push ebp
push 0x200
lea edx, [esp + 0x24]
push ebp
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0xa0]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68c
ret