joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040090
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1007ab48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.1003a990
test eax, eax
je 0x10040198
lea ecx, [esp + 0xc]
call fcn.10013fb0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.1003a990
mov ecx, eax
call fcn.10038150
test eax, eax
je 0x1004017f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x1004017f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1004017f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.100141b0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x10040161
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1004017f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x100b0908]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x10084368
call fcn.100141b0
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x100401e0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.1003a990
test eax, eax
je 0x100402cf
mov ecx, edi
call fcn.1003a990
mov ecx, eax
call fcn.10038000
test eax, eax
jne 0x100402cf
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100402cf
mov eax, dword [0x100b0908]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x10040242
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.1003a990
mov ecx, eax
call fcn.10038230
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x100402cf
cmp ebx, eax
jne 0x100402cf
cmp dword [esp + 0x10], eax
jne 0x100402b5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x10042f00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1007add8
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 0x10042f39
inc eax
mov dword [esi + 0x10], eax
jmp 0x1004304c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x10042f4d
mov eax, 0xffffffc7
jmp 0x1004304e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x10042f5e
cmp dword [esi + 8], eax
jne 0x10042f4d
cmp dword [esi + 8], eax
jne 0x10042f77
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x10042f77
mov eax, 0xffffffc7
jmp 0x1004304e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x10042f8b
push eax
mov ecx, ebx
call fcn.10042730
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.10013fb0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x10042fbc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.10013fd0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.10041ea0
test eax, eax
mov dword [esp + 0x38], eax
je 0x10042fef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x10084368
call fcn.100141b0
mov eax, dword [esp + 0x38]
jmp 0x1004304e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.10042d60
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x10043033
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.10042d80
mov esi, eax
test esi, esi
jne 0x10043063
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.10042d60
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x10043005
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x10084368
call fcn.100141b0
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], 0x10084368
call fcn.100141b0
mov eax, esi
jmp 0x1004304e

Function at 0x10046190
Capabilities:
Create thread

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

Disassembly:
push 0xffffffffffffffff
push 0x1007b2e8
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.10074601
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.1004bd00
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.1007452f
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.10070dd9
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.10070dd9
push 1
push 0
push 0
mov ecx, esi
call fcn.10070d81
push 1
push 0
push 1
mov ecx, esi
call fcn.10070d81
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10074673
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x1004c4e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007b2e8
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.10074601
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.1004bd00
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.1007452f
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 0x1004c5a4
cmp dword [esp + 0x40], 1
jne 0x1004c5a2
cmp ecx, eax
jge 0x1004c5a4
mov eax, ecx
cmp eax, 0xc8
jge 0x1004c5b0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.1004c360
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.10074673
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x1004cd20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007b353
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.1006f1f6
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.100748a9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.10075e08
test eax, eax
je 0x1004ce3c
mov ecx, dword [esp + 0x3c]
call fcn.100748d6
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 0x1004ce00
push edi
mov ecx, esi
call fcn.10071f29
mov ecx, esi
call fcn.1004cfa0
cmp dword [esp + 0x38], 1
jne 0x1004ce35
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.10072064
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 0x1004f840
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1004f873
push esi
call fcn.10052930
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1004f86c
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 0x1004f8f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1004f8e2
mov eax, dword [esi + 8]
test eax, eax
je 0x1004f897
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 0x1004f8de
cmp eax, 2
je 0x1004f8e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1004f88a
cmp eax, 3
je 0x1004f8bd
cmp eax, 1
jne 0x1004f88a
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 0x1004f88a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1004f88a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1004f920
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1004f908
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1004f920
add esp, 4
pop esi
ret
Function at 0x1005b9c3
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1005bab3
mov eax, 0x94
call fcn.1005d310
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1005bb28
mov ecx, dword [esi + 0x10]
mov dword [0x100b2a38], ecx
mov eax, dword [esi + 4]
mov dword [0x100b2a44], eax
mov edx, dword [esi + 8]
mov dword [0x100b2a48], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x100b2a3c], esi
je 0x1005ba2e
or esi, 0x8000
mov dword [0x100b2a3c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x100b2a40], eax
call fcn.10060127
test eax, eax
pop ecx
je 0x1005bb28
call fcn.1005f89a
test eax, eax
jne 0x1005ba5b
call fcn.10060178
jmp 0x1005bb28
call fcn.10060085
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100b42a4], eax
call fcn.1005ff63
mov dword [0x100b2a14], eax
call fcn.1005fa44
test eax, eax
jl 0x1005baac
call fcn.1005fec1
test eax, eax
jl 0x1005baa7
call fcn.1005fc8e
test eax, eax
jl 0x1005baa7
push 0
call fcn.1005eb63
test eax, eax
pop ecx
jne 0x1005baa7
inc dword [0x100b2a10]
jmp 0x1005bb39
call fcn.1005fc42
call fcn.1005f683
jmp 0x1005ba51
test eax, eax
jne 0x1005bae3
cmp dword [0x100b2a10], eax
jle 0x1005bb28
dec dword [0x100b2a10]
cmp dword [0x100b2a74], eax
jne 0x1005bad2
call fcn.1005eca1
call fcn.1005fc42
call fcn.1005f683
call fcn.10060178
jmp 0x1005bb39
cmp eax, 2
jne 0x1005bb2c
push 0x8c
push 1
call fcn.1005f989
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1005bb28
push esi
push dword [0x100a3120]
call dword [0x100b2aac]
test eax, eax
push esi
je 0x1005bb22
call fcn.1005f6a0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1005bb39
call fcn.1005d554
pop ecx
xor eax, eax
jmp 0x1005bb3c
cmp eax, 3
jne 0x1005bb39
push 0
call fcn.1005f86b
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1005ebcd
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1008a160
call fcn.10060378
push 8
call fcn.10063e48
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x100b2a78], esi
jne 0x1005ec01
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100b2a74], esi
mov al, byte [ebp + 0x10]
mov byte [0x100b2a70], al
cmp dword [ebp + 0xc], edi
jne 0x1005ec4b
cmp dword [0x100b3288], edi
je 0x1005ec3b
mov eax, dword [0x100b3284]
sub eax, 4
mov dword [0x100b3284], eax
cmp eax, dword [0x100b3288]
jb 0x1005ec3b
mov eax, dword [eax]
cmp eax, edi
je 0x1005ec1c
call eax
jmp 0x1005ec1c
push 0x100980d4
mov eax, 0x100980c8
call fcn.1005eb4b
pop ecx
push 0x100980e0
mov eax, 0x100980d8
call fcn.1005eb4b
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1005ec7c
cmp dword [ebp + 0x10], edi
jne 0x1005ec8a
mov dword [0x100b2a78], esi
push dword [ebp + 8]
call fcn.1005eb09
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1005ec89
push 8
call fcn.10063d93
pop ecx
ret
call fcn.100603b3
ret
Function at 0x100604cd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100a36f4]
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 + 0x100a31d8]
je 0x10060502
inc eax
cmp eax, 0x13
jb 0x100604f3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100a31d8]
jne 0x10060628
mov eax, dword [0x100b2a1c]
cmp eax, 1
je 0x10060600
cmp eax, edx
jne 0x10060532
cmp dword [0x100b2a20], 1
je 0x10060600
cmp ecx, 0xfc
je 0x10060628
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 0x10060568
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10064100
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1005e330
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1006059c
mov eax, edi
push eax
call fcn.1005e330
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1008a620
push edi
call fcn.1005d430
add esp, 0x10
push edi
call fcn.1005e330
push dword [esi + 0x100a31dc]
mov ebx, eax
call fcn.1005e330
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1005d310
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10064100
push edi
push ebx
call fcn.10064110
push 0x1008a600
push ebx
call fcn.10064110
push dword [esi + 0x100a31dc]
push ebx
call fcn.10064110
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10068852
add esp, 0x2c
jmp 0x10060628
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100a31dc]
push dword [esi]
call fcn.1005e330
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.10065499
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10063f27
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 0x10063f40
or eax, 0xffffffff
jmp 0x10063fa1
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10063f9d
push 0x3d
push esi
call fcn.1005e1b3
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x10063f9d
cmp esi, eax
je 0x10063f9d
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x100b2a58]
sete cl
cmp eax, dword [0x100b2a5c]
mov dword [ebp - 8], ecx
jne 0x10063f83
mov edi, eax
call fcn.10063ec6
mov dword [0x100b2a58], eax
cmp eax, ebx
jne 0x10063fdc
cmp dword [ebp + 0xc], ebx
je 0x10063fa5
cmp dword [0x100b2a60], ebx
je 0x10063fa5
call fcn.10063c65
test eax, eax
je 0x10063fdc
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x10063fae
xor eax, eax
jmp 0x10063fa0
push 4
call fcn.1005d66c
cmp eax, ebx
pop ecx
mov dword [0x100b2a58], eax
je 0x10063f9d
mov dword [eax], ebx
cmp dword [0x100b2a60], ebx
jne 0x10063fdc
push 4
call fcn.1005d66c
cmp eax, ebx
pop ecx
mov dword [0x100b2a60], eax
je 0x10063f9d
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x100b2a58]
call fcn.10063e79
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x1006403d
cmp dword [esi], ebx
je 0x1006403d
lea esi, [esi + edi*4]
push dword [esi]
call fcn.1005d554
cmp dword [ebp - 8], ebx
pop ecx
jne 0x10064020
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1006407e
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x10064017
mov eax, edi
shl eax, 2
push eax
push dword [0x100b2a58]
call fcn.1005e926
cmp eax, ebx
pop ecx
pop ecx
je 0x1006407e
jmp 0x10064079
cmp dword [ebp - 8], ebx
jne 0x100640e9
cmp edi, ebx
jge 0x1006404c
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x100b2a58]
call fcn.1005e926
cmp eax, ebx
pop ecx
pop ecx
je 0x10063f9d
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 [0x100b2a58], eax
cmp dword [ebp + 0xc], ebx
je 0x100640d3
push dword [ebp - 4]
call fcn.1005e330
inc eax
inc eax
push eax
call fcn.1005d66c
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x100640d3
push dword [ebp - 4]
push esi
call fcn.10064100
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 0x100640cc
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.1005d554
pop ecx
cmp dword [ebp - 8], ebx
je 0x100640e1
push dword [ebp - 4]
call fcn.1005d554
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x10063fa0
push dword [ebp - 4]
call fcn.1005d554
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x10063faa
Function at 0x10065385
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.1005d310
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10065420
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 [0x100b2a38]
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 0x10065420
cmp eax, 1
je 0x10065441
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 0x10065420
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100653ed
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1006541c
xor eax, eax
inc eax
jmp 0x10065460
cmp edi, eax
jae 0x10065424
xor eax, eax
jmp 0x10065460
cmp eax, esi
jae 0x1006542b
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 [0x100b2a38]
jmp 0x10065444
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 0x10068852
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100b2e6c], ebx
push esi
push edi
jne 0x100688d2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1006890d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1008eac4
push edi
call esi
test eax, eax
mov dword [0x100b2e6c], eax
je 0x1006890d
push 0x1008eab4
push edi
call esi
push 0x1008eaa0
push edi
mov dword [0x100b2e70], eax
call esi
cmp dword [0x100b2a38], 2
mov dword [0x100b2e74], eax
jne 0x100688d2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x100b2e7c], eax
je 0x100688d2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x100b2e78], eax
mov eax, dword [0x100b2e78]
test eax, eax
je 0x10068917
call eax
test eax, eax
je 0x100688fe
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100b2e7c]
test eax, eax
je 0x100688fe
test byte [ebp - 8], 1
jne 0x10068917
cmp dword [0x100b2a44], 4
jb 0x10068911
or byte [ebp + 0x12], 0x20
jmp 0x10068936
xor eax, eax
jmp 0x10068946
or byte [ebp + 0x12], 4
jmp 0x10068936
mov eax, dword [0x100b2e70]
test eax, eax
je 0x10068936
call eax
mov ebx, eax
test ebx, ebx
je 0x10068936
mov eax, dword [0x100b2e74]
test eax, eax
je 0x10068936
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100b2e6c]
pop edi
pop esi
pop ebx
leave
ret