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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10067f68
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.10028e00
test eax, eax
je 0x1002e608
lea ecx, [esp + 0xc]
call fcn.10005ce0
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.10028e00
mov ecx, eax
call fcn.100265d0
test eax, eax
je 0x1002e5ef
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x1002e5ef
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1002e5ef
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.10005ee0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x1002e5d1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1002e5ef
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x10095f08]
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], 0x1006c100
call fcn.10005ee0
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x1002e650
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.10028e00
test eax, eax
je 0x1002e73f
mov ecx, edi
call fcn.10028e00
mov ecx, eax
call fcn.10026480
test eax, eax
jne 0x1002e73f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1002e73f
mov eax, dword [0x10095f08]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x1002e6b2
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.10028e00
mov ecx, eax
call fcn.100266b0
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 0x1002e73f
cmp ebx, eax
jne 0x1002e73f
cmp dword [esp + 0x10], eax
jne 0x1002e725
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 0x10031360
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100681f8
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 0x10031399
inc eax
mov dword [esi + 0x10], eax
jmp 0x100314ac
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x100313ad
mov eax, 0xffffffc7
jmp 0x100314ae
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x100313be
cmp dword [esi + 8], eax
jne 0x100313ad
cmp dword [esi + 8], eax
jne 0x100313d7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x100313d7
mov eax, 0xffffffc7
jmp 0x100314ae
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x100313eb
push eax
mov ecx, ebx
call fcn.10030b90
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.10005ce0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x1003141c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.10005d00
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.10030300
test eax, eax
mov dword [esp + 0x38], eax
je 0x1003144f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x1006c100
call fcn.10005ee0
mov eax, dword [esp + 0x38]
jmp 0x100314ae
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.100311c0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x10031493
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.100311e0
mov esi, eax
test esi, esi
jne 0x100314c3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.100311c0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x10031465
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x1006c100
call fcn.10005ee0
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], 0x1006c100
call fcn.10005ee0
mov eax, esi
jmp 0x100314ae

Function at 0x10034580
Capabilities:
Create thread

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

Disassembly:
push 0xffffffffffffffff
push 0x10068828
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.10061acf
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.1003a0a0
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.100619fd
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.1005e2a4
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.1005e2a4
push 1
push 0
push 0
mov ecx, esi
call fcn.1005e24c
push 1
push 0
push 1
mov ecx, esi
call fcn.1005e24c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10061b41
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x1003a880
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10068848
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.10061acf
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.1003a0a0
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.100619fd
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 0x1003a944
cmp dword [esp + 0x40], 1
jne 0x1003a942
cmp ecx, eax
jge 0x1003a944
mov eax, ecx
cmp eax, 0xc8
jge 0x1003a950
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.1003a700
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.10061b41
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x1003b0d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100688b3
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.1005c6c4
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.10061d77
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.10063293
test eax, eax
je 0x1003b1ec
mov ecx, dword [esp + 0x3c]
call fcn.10061da4
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 0x1003b1b0
push edi
mov ecx, esi
call fcn.1005f3ef
mov ecx, esi
call fcn.1003b350
cmp dword [esp + 0x38], 1
jne 0x1003b1e5
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.1005f52a
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 0x1003dc10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1003dc43
push esi
call fcn.10040d10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1003dc3c
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 0x1003dcc9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1003dcb2
mov eax, dword [esi + 8]
test eax, eax
je 0x1003dc67
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 0x1003dcae
cmp eax, 2
je 0x1003dcb2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003dc5a
cmp eax, 3
je 0x1003dc8d
cmp eax, 1
jne 0x1003dc5a
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 0x1003dc5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1003dc5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1003dcf0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1003dcd8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1003dcf0
add esp, 4
pop esi
ret

Function at 0x1005d4ba
Capabilities:
Get graphical window text

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

Function at 0x1005ebac
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 0x1005ebee
call fcn.1006467e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1005ebee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1005ebe5
xor eax, eax
jmp 0x1005ebf6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1005ebfc
pop edi
pop esi
pop ebx
ret 4

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x1006e02
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x1006f14
cmp esi, 0xffffffff
je 0x1006f14
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x1006f07
cmp eax, 0xffffffff
je 0x1006f07
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1006e67
mov esi, 0x80004005
jmp 0x1006e8c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x1006ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1006e8a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
xor edi, edi
cmp dword [ebp - 8], edi
je 0x1006e9c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0xc], edi
je 0x1006eaa
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, edi
jge 0x1006ebc
cmp dword [ebp - 4], edi
je 0x1006ebc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
leave
ret 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x1006e76
cmp eax, 0xffffffff
je 0x1006e76
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1006e76
cmp eax, 0xffffffff
je 0x1006e76
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp + 0x10]
push 1
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
jmp 0x1006e8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jmp 0x1006e7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jg 0x1006e80
mov esi, eax
jmp 0x1006eaa
Function at 0x1007b41
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor ebx, ebx
push 0xfffffffffffffff6
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x1007ce7
cmp edi, ebx
je 0x1007ce7
push esi
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [ebp - 0x14]
and eax, 0xfffffff9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp dword [ebp + 0xc], 2
jb 0x1007cbb
cmp dword [ebp + 0x10], ebx
je 0x1007cbb
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
push 0
cmp eax, 2
lea eax, [ebp - 0x10]
push eax
push 1
je 0x1007c17
lea eax, [ebp - 1]
push eax
push edi
call esi
test eax, eax
je 0x1007ca2
cmp dword [ebp - 0x10], 0
jne 0x1007bdb
mov dword [ebp - 8], 0xa
jmp 0x1007c22
push 1
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 1]
push eax
push 0
call dword [sym.imp.msvcrt.dll__getmbcp]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1007bfd
and dword [ebp - 8], eax
push 0xd
pop eax
cmp ax, word [ebp - 8]
jne 0x1007c22
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push edi
call esi
jmp 0x1007c22
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov ecx, dword [ebp - 8]
movzx eax, cx
sub eax, 8
je 0x1007c76
dec eax
dec eax
je 0x1007c96
sub eax, 3
je 0x1007c96
sub eax, 0xe
je 0x1007c54
mov eax, dword [ebp + 0xc]
dec eax
cmp ebx, eax
jae 0x1007ba4
mov eax, dword [ebp + 8]
mov word [eax + ebx*2], cx
inc ebx
jmp 0x1007ba4
test ebx, ebx
jbe 0x1007ba4
push 8
push 8
push 0x1001808
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0xc
dec ebx
jne 0x1007c5c
jmp 0x1007ba4
test ebx, ebx
jbe 0x1007ba4
cmp ebx, dword [ebp + 0xc]
jae 0x1007ba4
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ecx + ebx*2], ax
dec ebx
jmp 0x1007ba4
push 0x10017a4
call fcn.0100d8c5
jmp 0x1007cc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1007cb6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xc], eax
jmp 0x1007cc2
mov dword [ebp - 0xc], 0x80070057
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
pop esi
cmp ebx, dword [ebp + 0xc]
jb 0x1007cd9
mov eax, 0x8007007a
jmp 0x1007cfb
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ecx + ebx*2], ax
mov eax, dword [ebp - 0xc]
jmp 0x1007cfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1007cfb
and eax, 0xffff
or eax, 0x80070000
pop edi
pop ebx
leave
ret 0xc
Function at 0x100b057
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10103f0
call fcn.0100b294
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1014020
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100ae6a
cmp eax, esi
jne 0x100ae5d
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100ae6d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100ae44
xor esi, esi
inc esi
mov eax, dword [0x101401c]
cmp eax, esi
jne 0x100ae80
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100aebb
mov eax, dword [0x101401c]
test eax, eax
jne 0x100aeb5
mov dword [0x101401c], esi
push 0x10013c0
push 0x10013b4
call fcn.0100adc1
pop ecx
pop ecx
test eax, eax
je 0x100aebb
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100af85
mov dword [0x1013c9c], esi
mov eax, dword [0x101401c]
cmp eax, esi
jne 0x100aedf
push 0x10013b0
push 0x1001294
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101401c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x100aeec
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1014024], ebx
je 0x100af0d
push 0x1014024
call fcn.0100b209
pop ecx
test eax, eax
je 0x100af0d
push ebx
push 2
push ebx
call dword [0x1014024]
push dword [0x1013c84]
push dword [0x1013c88]
push dword [0x1013c80]
call fcn.0100a42e
add esp, 0xc
mov dword [0x1013c98], eax
cmp dword [0x1013c8c], ebx
jne 0x100af6b
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1013c9c], ebx
jne 0x100af79
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1013c98]
call fcn.0100b2d9
ret
call fcn.0100b3e1
jmp 0x100ae22
Function at 0x100bdd3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push 0
push dword [ebp + 0x10]
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x208
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x100be13
mov dword [ebp + 8], 0x8007000e
jmp 0x100bea5
push ebx
push esi
push edi
mov esi, 0x104
push esi
push eax
push dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
jbe 0x100be31
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
ja 0x100be5f
call ebx
test eax, eax
je 0x100be53
jle 0x100be58
and eax, edi
or eax, esi
jmp 0x100be58
mov eax, 0x80004005
mov dword [ebp + 8], eax
test eax, eax
jl 0x100be90
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jbe 0x100be7a
and dword [ebp + 8], 0
jmp 0x100be90
call ebx
test eax, eax
je 0x100be88
jle 0x100be8d
and eax, edi
or eax, esi
jmp 0x100be8d
mov eax, 0x80004005
mov dword [ebp + 8], eax
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov eax, dword [ebp + 8]
leave
ret 0xc