joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014a4e7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x3c]
lea ecx, [ebx + 0x30]
cmp edx, ecx
mov dword [esp + 8], ebx
mov al, 1
mov dword [esp + 4], edx
je 0x1014a617
push ebp
push esi
push edi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov edi, dword [ecx + 8]
mov ecx, dword [edi]
and ecx, 0x7f
lea eax, [ecx - 0x20]
cmp eax, 0x20
ja case.0x1014a4c3.33
movzx edx, byte [eax + 0x1014a634]
jmp dword [edx*4 + 0x1014a628]
movsx eax, word [edi + 0xc]
imul eax, dword [ebx + 0x78]
cdq
and edx, 0xf
add eax, edx
mov esi, eax
sar esi, 4
cmp ecx, 0x20
jne 0x1014a531
add esi, 1
jmp 0x1014a531
mov eax, dword [edi + 4]
test al, 3
jne case.0x1014a4c3.33
mov ecx, eax
and ecx, 0x1e000000
cmp ecx, 0x14000000
jne case.0x1014a4c3.33
test al, 0x60
jne case.0x1014a4c3.33
mov edx, dword [edi + 8]
and edx, 0x1e00
cmp edx, 0x1400
jne case.0x1014a4c3.33
mov eax, dword [edi + 0xc]
cdq
and edx, 0xf
add eax, edx
mov esi, eax
sar esi, 4
mov eax, dword [edi + 4]
and eax, 0xc00
cmp eax, 0xc00
jne 0x1014a61c
mov ebx, dword [ebx + 0x74]
mov ecx, dword [esp + 0x14]
add dword [ecx + 0x60], 1
mov edx, dword [esp + 0x10]
mov ebp, ebx
add ebx, 1
mov dword [ecx + 0x74], ebx
mov eax, dword [edx + 8]
lea edi, [ecx + 0xc]
mov dword [eax + 0x44], ebp
cmp ebp, dword [edi + 0xc]
mov dword [esp + 0x18], ebp
jb 0x1014a579
push ebx
mov ecx, edi
call fcn.10089060
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 8]
test eax, eax
je 0x1014a598
cmp ebp, dword [edi + 0xc]
jae 0x1014a598
mov dword [eax + ebp*4], 0
mov eax, dword [edi + 0x18]
cmp ebx, eax
jae 0x1014a595
mov ebx, eax
mov dword [edi + 0x18], ebx
test esi, esi
mov eax, dword [esp + 0x10]
jge 0x1014a5b1
mov edx, dword [ecx + 0x3c]
cmp eax, edx
je 0x1014a61c
add esi, 1
mov eax, dword [eax + 0x10]
jne 0x1014a5a3
jmp 0x1014a5c2
je 0x1014a5c2
lea edx, [ecx + 0x30]
cmp eax, edx
je 0x1014a61c
sub esi, 1
mov eax, dword [eax + 0xc]
jne 0x1014a5b3
add ecx, 0x30
cmp eax, ecx
je 0x1014a61c
mov eax, dword [eax + 8]
mov edi, dword [eax + 0x20]
lea ecx, [esp + 0x18]
lea esi, [eax + 0xc]
push ecx
mov ecx, esi
call fcn.10059710
test eax, eax
mov ebx, dword [esp + 0x14]
je case.0x1014a4c3.33
mov dword [eax + 0xc], edi
mov edi, dword [edi + 0x10]
mov dword [eax + 0x10], edi
mov dword [edi + 0xc], eax
mov edx, dword [eax + 0xc]
mov dword [edx + 0x10], eax
add dword [esi + 0x1c], 1
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
lea ecx, [ebx + 0x30]
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x1014a4a1
pop edi
pop esi
mov al, 1
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x1014ad10
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10201b71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0xc]
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov al, byte [esp + 0x30]
mov dword [ecx + 8], edx
mov byte [esi + 0x18], al
lea ebx, [esi + 0x28]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], 0x10206160
push 0x35
mov ecx, ebx
mov dword [ebx + 4], edi
mov dword [ebx], 0x10206158
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], edi
call fcn.10089060
push edi
mov ecx, ebx
call fcn.100c6280
mov dword [esi + 0x44], edi
lea ecx, [esi + 0x48]
push edi
mov dword [esp + 0x1c], edi
mov dword [ecx + 4], edi
mov dword [ecx], 0x10206778
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x18], edi
call fcn.100c6280
lea ecx, [esi + 0x64]
mov ebx, 1
push edi
mov byte [esp + 0x1c], bl
mov dword [ecx + 4], edi
mov dword [ecx], 0x10206778
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x18], edi
call fcn.100c6280
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x1014adec
add dword [eax + 4], ebx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x1c], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x101b85b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10201fa5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x34]
push esi
push edi
push ebx
push eax
mov eax, dword [esp + 0x30]
mov esi, ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], edx
push eax
mov ecx, esi
mov dword [esp + 0x24], esi
call fcn.1011bef0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esi + 0x20], ecx
mov dword [esi], 0x10215610
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], ebx
xor edi, edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], 0x10206138
mov dword [esi + 0x48], edi
lea eax, [esi + 0x40]
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], eax
lea eax, [esi + 0x58]
mov dword [eax + 4], edi
mov dword [eax], 0x10206138
mov dword [eax + 8], edi
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], eax
mov ecx, 0x1020dfec
mov dword [esp + 0x18], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x38], ecx
mov dword [esi + 0x74], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x78], 0x10206138
mov dword [esi + 0x80], edi
lea eax, [esi + 0x78]
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], eax
lea eax, [esi + 0x90]
mov dword [eax + 4], edi
mov dword [eax], 0x10206138
mov dword [eax + 8], edi
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], eax
mov dword [esi + 0x8c], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0x70], ecx
mov dword [esi + 0xac], edi
lea eax, [esi + 0xb0]
mov dword [eax + 4], edi
mov dword [eax], 0x10206138
mov dword [eax + 8], edi
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], eax
lea eax, [esi + 0xc8]
mov dword [eax + 4], edi
mov dword [eax], 0x10206138
mov dword [eax + 8], edi
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], eax
mov dword [esi + 0xc4], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xa8], ecx
lea ebx, [esi + 0xe8]
mov dword [esi + 0xe4], edi
mov dword [esi + 0xe0], 0x10206160
push 0x35
mov ecx, ebx
mov byte [esp + 0x1c], 3
mov dword [ebx + 4], edi
mov dword [ebx], 0x10206158
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], edi
call fcn.10089060
push edi
mov ecx, ebx
call fcn.100c6280
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x104], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x118], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x20
Function at 0x101cc420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov edx, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x4c]
push edx
push 1
mov ebx, ecx
mov ecx, dword [ebx + 0x84]
mov eax, dword [ecx]
push 4
push 6
call dword [eax + 0x14]
mov ecx, ebx
mov dword [esp + 0x40], eax
call fcn.10130570
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x50]
mov edx, dword [esi]
and ecx, 0xff7fffb1
or ecx, 0x600031
mov dword [esi + 8], ecx
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 0x10]
mov edi, dword [esp + 0x48]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov edx, dword [esi + 0xc]
and eax, 0xff
mov ebp, dword [esp + 0x4c]
add ecx, ecx
or ah, 1
add ecx, ecx
and ecx, 0x1f
and edx, 0xffe0
shl eax, 5
or eax, ecx
mov ecx, dword [edi]
and ecx, 3
shl eax, 0x10
or eax, ecx
movzx ecx, byte [esp + 0x54]
or eax, edx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
shl ecx, 0x1f
and eax, 0x7fffffff
or ecx, eax
mov dword [esi + 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
shr ecx, 0x15
and ecx, 7
mov dword [esp + 0x3c], edx
mov edx, dword [ebp]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0xc]
and edx, 3
and ecx, 0xfffffc1f
shl edx, 5
or edx, ecx
mov ecx, dword [esp + 0x54]
cmp ecx, 5
mov dword [esi + 0xc], edx
ja case.0x101cc507.0
jmp dword [ecx*4 + 0x101cc618]
mov edx, dword [esi + 0x10]
and edx, 0xfe45ffff
or edx, 0x450000
mov dword [esi + 0x10], edx
jmp 0x101cc565
mov ecx, dword [esi + 0x10]
and ecx, 0xfe69ffff
or ecx, 0x690000
mov dword [esi + 0x10], ecx
jmp 0x101cc565
mov edx, dword [esi + 0x10]
and edx, 0xfe8dffff
or edx, 0x8d0000
mov dword [esi + 0x10], edx
jmp 0x101cc565
mov ecx, dword [esi + 0x10]
and ecx, 0xfe8dffff
or ecx, 0x8d0000
mov dword [esi + 0x10], ecx
jmp 0x101cc565
and dword [esi + 0x10], 0xfe00ffff
mov ecx, dword [esi + 0x10]
and eax, 0xff
shl eax, 5
mov edx, dword [esp + 0x40]
and ecx, 0xffff601f
or eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x10], eax
and eax, 0xfe8dffe0
add ecx, ecx
add ecx, ecx
and ecx, 0x1f
or eax, ecx
or eax, 0x8d0000
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
and ah, 0x8f
or ah, 0xc
mov dword [esi + 0x14], edx
mov edx, edi
push 0x10
push esi
push 0x10216180
push ebp
mov dword [esi + 0xc], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov edx, dword [edx + 8]
add eax, 1
mov dword [esp + 0x3c], eax
add eax, 1
mov dword [esp + 0x30], eax
add eax, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], edx
lea edx, [esp + 0x40]
push edx
push edi
push 0x31
lea eax, [esp + 0x78]
push eax
mov ecx, ebx
call fcn.101ca8d0
mov ecx, dword [eax]
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x24
ret 0x20
Function at 0x101cd480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.1017d860
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
and ecx, 0xff7fff80
mov edx, ebp
and edx, 0x7f
or ecx, edx
or ecx, 0x600000
mov dword [esi + 8], ecx
mov eax, dword [edi + 0x7c]
shl eax, 0x18
xor eax, ecx
and eax, 0xf000000
xor eax, ecx
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x70]
shl ecx, 0x10
xor ecx, eax
and ecx, 0xf0000
xor ecx, eax
mov dword [esi + 8], ecx
movzx eax, byte [edi + 0x74]
shl eax, 0x14
xor eax, ecx
and eax, 0x100000
xor eax, ecx
mov dword [esi + 8], eax
mov eax, dword [edi + 0x78]
sub eax, 0
je 0x101cd500
sub eax, 1
jne 0x101cd504
or byte [esi + 0x13], 2
jmp 0x101cd504
and byte [esi + 0x13], 0xfd
mov eax, dword [edi + 0x80]
mov edx, dword [esi + 8]
mov ecx, eax
sar ecx, 1
and ecx, 1
shl ecx, 0x13
and eax, 1
or ecx, eax
shl ecx, 9
and edx, 0xeffffdff
or ecx, edx
mov dword [esi + 8], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
mov ecx, esi
call fcn.10142680
mov edx, dword [edi + 0x10]
mov eax, edx
shr eax, 3
and al, 1
mov ecx, edx
shr ecx, 2
and cl, 1
shr edx, 1
and dl, 1
push 0x10
and eax, 1
add eax, eax
push esi
and ecx, 1
or eax, ecx
mov cl, byte [edi + 0x10]
add eax, eax
and edx, 1
or eax, edx
mov edx, dword [esi + 0xc]
add eax, eax
push 0x10216180
and ecx, 1
or eax, ecx
mov ecx, dword [esi + 8]
shl eax, 0x10
and edx, 0xfff0ffff
or eax, edx
mov dword [esi + 0xc], eax
movzx eax, byte [edi + 0x14]
push 0x10216180
push 0x10216180
push 0x10216180
and ecx, 0x7fffffff
shl eax, 0x1f
or eax, ecx
push 0x10216180
push edi
mov dword [esi + 8], eax
mov edx, dword [edi + 0x18]
or dword [esi + 0xc], 0x3e0
push ebp
lea ecx, [esp + 0x3c]
mov eax, edx
push ecx
mov ecx, ebx
mov dword [esp + 0x40], edx
mov dword [esi + 0x14], eax
call fcn.101ca8d0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
ret 0xc
Function at 0x101cd5f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.1017d860
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
and ecx, 0xff7fff80
mov edx, ebp
and edx, 0x7f
or ecx, edx
or ecx, 0x600000
mov dword [esi + 8], ecx
mov eax, dword [edi + 0x7c]
shl eax, 0x18
xor eax, ecx
and eax, 0xf000000
xor eax, ecx
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x70]
shl ecx, 0x10
xor ecx, eax
and ecx, 0xf0000
xor ecx, eax
mov dword [esi + 8], ecx
movzx eax, byte [edi + 0x74]
shl eax, 0x14
xor eax, ecx
and eax, 0x100000
xor eax, ecx
mov dword [esi + 8], eax
mov eax, dword [edi + 0x78]
sub eax, 0
je 0x101cd670
sub eax, 1
jne 0x101cd674
or byte [esi + 0x13], 2
jmp 0x101cd674
and byte [esi + 0x13], 0xfd
mov eax, dword [edi + 0x80]
mov edx, dword [esi + 8]
mov ecx, eax
sar ecx, 1
and ecx, 1
shl ecx, 0x13
and eax, 1
or ecx, eax
shl ecx, 9
and edx, 0xeffffdff
or ecx, edx
mov dword [esi + 8], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
mov ecx, esi
call fcn.10142680
mov edx, dword [edi + 0x10]
mov eax, edx
shr eax, 3
and al, 1
mov ecx, edx
shr ecx, 2
and cl, 1
shr edx, 1
and dl, 1
push 0x10
and eax, 1
add eax, eax
push esi
and ecx, 1
or eax, ecx
mov cl, byte [edi + 0x10]
add eax, eax
and edx, 1
or eax, edx
mov edx, dword [esi + 0xc]
add eax, eax
and edx, 0xfff0ffff
and ecx, 1
or eax, ecx
mov ecx, dword [esi + 8]
shl eax, 0x10
or eax, edx
mov dword [esi + 0xc], eax
movzx eax, byte [edi + 0x14]
push 0x10216180
shl eax, 0x1f
and ecx, 0x7fffffff
or eax, ecx
push 0x10216180
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov edx, dword [edi + 0x18]
push 0x10216180
push 0x10216180
and eax, 0xfffffc7f
push 0x10216180
or al, 0x60
push edi
push ebp
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
mov dword [esi + 0x14], edx
mov dword [esi + 0xc], eax
call fcn.101ca8d0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
ret 0xc
Function at 0x101f1be7
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x101f1cd7
mov eax, 0x94
call fcn.101f18f0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x101f1d4c
mov ecx, dword [esi + 0x10]
mov dword [0x102356cc], ecx
mov eax, dword [esi + 4]
mov dword [0x102356d8], eax
mov edx, dword [esi + 8]
mov dword [0x102356dc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x102356d0], esi
je 0x101f1c52
or esi, 0x8000
mov dword [0x102356d0], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x102356d4], eax
call fcn.101f57c9
test eax, eax
pop ecx
je 0x101f1d4c
call fcn.101f34fb
test eax, eax
jne 0x101f1c7f
call fcn.101f581a
jmp 0x101f1d4c
call fcn.101f5727
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10237824], eax
call fcn.101f5605
mov dword [0x10235544], eax
call fcn.101f50e6
test eax, eax
jl 0x101f1cd0
call fcn.101f5563
test eax, eax
jl 0x101f1ccb
call fcn.101f5330
test eax, eax
jl 0x101f1ccb
push 0
call fcn.101f4e68
test eax, eax
pop ecx
jne 0x101f1ccb
inc dword [0x10235540]
jmp 0x101f1d5d
call fcn.101f52e4
call fcn.101f32e4
jmp 0x101f1c75
test eax, eax
jne 0x101f1d07
cmp dword [0x10235540], eax
jle 0x101f1d4c
dec dword [0x10235540]
cmp dword [0x10235708], eax
jne 0x101f1cf6
call fcn.101f4fa6
call fcn.101f52e4
call fcn.101f32e4
call fcn.101f581a
jmp 0x101f1d5d
cmp eax, 2
jne 0x101f1d50
push 0x8c
push 1
call fcn.101f502b
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x101f1d4c
push esi
push dword [0x1022c158]
call dword [0x102356bc]
test eax, eax
push esi
je 0x101f1d46
call fcn.101f3301
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x101f1d5d
call fcn.101f2399
pop ecx
xor eax, eax
jmp 0x101f1d60
cmp eax, 3
jne 0x101f1d5d
push 0
call fcn.101f34cc
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x101f4ed2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10217270
call fcn.101f28dc
push 8
call fcn.101f26d1
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1023570c], esi
jne 0x101f4f06
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10235708], esi
mov al, byte [ebp + 0x10]
mov byte [0x10235704], al
cmp dword [ebp + 0xc], edi
jne 0x101f4f50
cmp dword [0x10237808], edi
je 0x101f4f40
mov eax, dword [0x10237804]
sub eax, 4
mov dword [0x10237804], eax
cmp eax, dword [0x10237808]
jb 0x101f4f40
mov eax, dword [eax]
cmp eax, edi
je 0x101f4f21
call eax
jmp 0x101f4f21
push 0x1022403c
mov eax, 0x10224034
call fcn.101f4e50
pop ecx
push 0x10224048
mov eax, 0x10224040
call fcn.101f4e50
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x101f4f81
cmp dword [ebp + 0x10], edi
jne 0x101f4f8f
mov dword [0x1023570c], esi
push dword [ebp + 8]
call fcn.101f4e0e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x101f4f8e
push 8
call fcn.101f261c
pop ecx
ret
call fcn.101f2917
ret
Function at 0x101f5a1e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1022bd20]
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 + 0x1022c240]
je 0x101f5a53
inc eax
cmp eax, 0x13
jb 0x101f5a44
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1022c240]
jne 0x101f5b79
mov eax, dword [0x1023554c]
cmp eax, 1
je 0x101f5b51
cmp eax, edx
jne 0x101f5a83
cmp dword [0x10235550], 1
je 0x101f5b51
cmp ecx, 0xfc
je 0x101f5b79
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 0x101f5ab9
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.101f3710
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.101f2410
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x101f5aed
mov eax, edi
push eax
call fcn.101f2410
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x102176a8
push edi
call fcn.101f1380
add esp, 0x10
push edi
call fcn.101f2410
push dword [esi + 0x1022c244]
mov ebx, eax
call fcn.101f2410
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.101f18f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.101f3710
push edi
push ebx
call fcn.101f3720
push 0x10217688
push ebx
call fcn.101f3720
push dword [esi + 0x1022c244]
push ebx
call fcn.101f3720
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.101f8de5
add esp, 0x2c
jmp 0x101f5b79
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1022c244]
push dword [esi]
call fcn.101f2410
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.101f1ed0
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x101f887f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1022bd20]
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 0x101f88b0
xor eax, eax
jmp 0x101f8a39
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 + 0x10237700]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x101f88ec
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.101fa17d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x101f89c7
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x101f8a05
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 0x101f8950
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x101f8941
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 0x101f8921
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 0x101f8990
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x101f8999
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x101f8912
jmp 0x101f899b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x101f8a34
cmp dword [ebp - 0x6c], edi
je 0x101f8a05
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x101f89fa
call fcn.101f24c1
mov dword [eax], 9
call fcn.101f24ca
mov dword [eax], esi
jmp 0x101f8a2f
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 0x101f89ef
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x101f899b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x101f899b
push dword [ebp - 0x6c]
call fcn.101f24d3
pop ecx
jmp 0x101f8a2f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x101f8a1d
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x101f8a1d
xor eax, eax
jmp 0x101f8a37
call fcn.101f24c1
mov dword [eax], 0x1c
call fcn.101f24ca
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x101f8a37
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.101f1ed0
add ebp, 0x3a0
leave
ret
Function at 0x101f8de5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10235904], ebx
push esi
push edi
jne 0x101f8e65
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x101f8ea0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10235904], eax
je 0x101f8ea0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10235908], eax
call esi
cmp dword [0x102356cc], 2
mov dword [0x1023590c], eax
jne 0x101f8e65
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10235914], eax
je 0x101f8e65
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10235910], eax
mov eax, dword [0x10235910]
test eax, eax
je 0x101f8eaa
call eax
test eax, eax
je 0x101f8e91
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10235914]
test eax, eax
je 0x101f8e91
test byte [ebp - 8], 1
jne 0x101f8eaa
cmp dword [0x102356d8], 4
jb 0x101f8ea4
or byte [ebp + 0x12], 0x20
jmp 0x101f8ec9
xor eax, eax
jmp 0x101f8ed9
or byte [ebp + 0x12], 4
jmp 0x101f8ec9
mov eax, dword [0x10235908]
test eax, eax
je 0x101f8ec9
call eax
mov ebx, eax
test ebx, ebx
je 0x101f8ec9
mov eax, dword [0x1023590c]
test eax, eax
je 0x101f8ec9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10235904]
pop edi
pop esi
pop ebx
leave
ret