joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f8f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, eax
add esi, 0xffff0000
movzx eax, si
test eax, eax
push edi
je 0x100f908
sub esi, eax
cmp esi, dword [esp + 0x30]
jbe 0x100f99b
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x100f937
mov esi, 0x4fff0000
jmp 0x100f995
xor eax, eax
push 0x1c
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call ebx
test eax, eax
je 0x100f99b
cmp dword [esp + 0x20], ebp
jne 0x100f982
cmp dword [esp + 0x1c], ebp
jb 0x100f982
push 0x40
push 0x3000
push ebp
push esi
call edi
test eax, eax
jne 0x100f99d
sub esi, ebp
jmp 0x100f995
mov esi, dword [esp + 0x14]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x100f995
sub esi, eax
cmp esi, dword [esp + 0x30]
ja 0x100f923
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x100f9b0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
lea ebx, [esi - 0x7ff80000]
ja 0x100f9c9
mov ebx, 0x10000
cmp esi, 0x80000000
lea ebp, [esi + 0x7ff80000]
jb 0x100f9dc
mov ebp, 0xfff80000
mov eax, dword [0x104e290]
test eax, eax
mov edx, dword [0x104e28c]
jne 0x100f9f6
test edx, edx
je 0x100fa09
mov eax, edx
mov dword [0x104e290], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100fa09
cmp ecx, ebx
jb 0x100fa09
cmp ecx, ebp
jbe 0x100faf7
test edx, edx
mov eax, edx
mov dword [0x104e290], eax
je 0x100fa37
test eax, eax
je 0x100fa2b
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100fa2b
cmp ecx, ebx
jb 0x100fa2b
cmp ecx, ebp
jbe 0x100faf2
mov eax, dword [eax + 4]
test eax, eax
jne 0x100fa18
mov dword [0x104e290], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x100fa72
lea edi, [esi - 0x40000000]
push esi
mov eax, edi
call fcn.0100f820
add esp, 4
test eax, eax
jne 0x100fab6
push ebx
mov eax, edi
call fcn.0100f8f0
add esp, 4
test eax, eax
jne 0x100fab6
cmp esi, 0x40000000
jae 0x100fa98
lea edi, [esi + 0x40000000]
push esi
mov eax, edi
call fcn.0100f8f0
add esp, 4
test eax, eax
jne 0x100fab6
push ebp
mov eax, edi
call fcn.0100f820
add esp, 4
test eax, eax
jne 0x100fab6
push ebx
mov eax, esi
call fcn.0100f8f0
add esp, 4
test eax, eax
jne 0x100fab6
push ebp
mov eax, esi
call fcn.0100f820
add esp, 4
test eax, eax
je 0x100fb1f
xor edx, edx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov ecx, dword [0x104e28c]
mov dword [eax + 4], ecx
mov dword [0x104e290], eax
mov dword [0x104e28c], eax
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
nop
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
sub esi, 1
jne 0x100fae0
mov dword [eax + 8], edx
jmp 0x100faf7
mov dword [0x104e290], eax
mov esi, dword [eax + 8]
cmp esi, ebx
jb 0x100fb1f
cmp esi, ebp
ja 0x100fb1f
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call fcn.01024780
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x100fb60
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [0x104e28c]
test eax, eax
push ebx
mov ebx, 0x104e28c
je 0x100fbcd
push esi
push edi
cmp dword [eax], 0x52727464
jne 0x100fbc2
lea edi, [eax + 0x10000]
xor edx, edx
lea esi, [eax + 0x88]
mov ecx, dword [esi]
test ecx, ecx
je 0x100fb95
cmp ecx, eax
jb 0x100fbc2
cmp ecx, edi
jae 0x100fbc2
add edx, 1
add esi, 0x48
cmp edx, 0x38d
jb 0x100fb87
mov ecx, dword [eax + 4]
push 0x8000
push 0
push eax
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x104e290], 0
jmp 0x100fbc5
lea ebx, [eax + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x100fb71
pop edi
pop esi
pop ebx
ret
Function at 0x100fc70
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x104e29c], eax
je 0x100fc86
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x104e2ac]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x100fcee
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x36]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebp
jne 0x100fcdd
mov ebx, dword [esi + 0x10]
cmp ebx, ebp
je 0x100fcdd
push 0x48
push ebp
mov edi, ebx
push ebx
and edi, 0xffff0000
call fcn.01024780
mov edx, dword [edi + 8]
mov dword [ebx + 0x40], edx
mov dword [edi + 8], ebx
add esp, 0xc
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.0101dab7
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x100fc96
mov dword [0x104e2ac], ebp
call fcn.0100f7d0
mov esi, dword [0x104e2a8]
cmp esi, ebp
je 0x100fd27
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov eax, dword [esi + 4]
push eax
call ebx
mov edi, dword [esi]
push esi
call fcn.0101dab7
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x100fd10
pop edi
pop esi
mov dword [0x104e2a8], ebp
mov dword [0x104e29c], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1010030
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x104e2a0]
test eax, eax
jne 0x10100a5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x101004a
xor eax, eax
pop edi
ret
push esi
push 8
call fcn.0101dbab
mov esi, eax
add esp, 4
test esi, esi
jne 0x1010060
lea edi, [eax + 8]
jmp 0x101007d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1010092
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.0101dab7
add esp, 4
pop esi
mov dword [0x104e2a0], edi
mov eax, edi
mov dword [0x104e2a4], 0
pop edi
ret
mov eax, dword [0x104e2a8]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x104e2a8], esi
xor eax, eax
pop esi
pop edi
ret
Function at 0x1010320
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x104e29c], eax
je 0x101033c
mov eax, 0x10dd
pop ebp
ret 8
mov eax, dword [0x104e2a0]
test eax, eax
jne 0x1010432
test ebp, ebp
jne 0x1010354
lea eax, [ebp + 6]
pop ebp
ret 8
cmp dword [ebp], 0
jne 0x101036e
mov eax, 6
mov dword [0x104e2a4], ebp
mov dword [0x104e2a0], eax
pop ebp
ret 8
push ebx
push esi
push edi
push 0x18
call fcn.0101dbab
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1010389
lea esi, [eax + 8]
jmp 0x1010414
mov ecx, dword [ebp]
call fcn.0100fbd0
mov ecx, dword [esp + 0x18]
mov edi, eax
call fcn.0100fbd0
movzx ecx, byte [edi + 0x36]
mov esi, dword [edi + 0x40]
sub esi, ecx
test ecx, ecx
je 0x1010406
cmp ecx, 0x1e
ja 0x1010406
cmp dword [edi + 0x44], eax
jne 0x1010406
lea eax, [esp + 0x14]
push eax
push 0x40
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10103d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1010414
mov edx, dword [0x104e2ac]
mov dword [ebx + 0x10], edi
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], esi
pop edi
mov dword [ebx + 4], 1
mov ecx, dword [esp + 0x10]
pop esi
mov dword [ebx + 0x14], ecx
mov dword [ebx], edx
mov dword [0x104e2ac], ebx
pop ebx
xor eax, eax
pop ebp
ret 8
cmp dword [0x104e294], 0
mov esi, 9
jne 0x101041a
mov dword [0x104e2a0], esi
test ebx, ebx
je 0x1010427
push ebx
call fcn.0101dab7
add esp, 4
pop edi
mov eax, esi
pop esi
mov dword [0x104e2a4], ebp
pop ebx
pop ebp
ret 8
Function at 0x1010540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1046ed8
push 0x1024ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x104b584]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test eax, eax
jne 0x1010587
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
cmp word [eax], 0x5a4d
je 0x101059f
push 0xc1
jmp 0x101065f
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x24], ecx
cmp dword [ecx], 0x4550
je 0x10105b9
push 0xbf
jmp 0x101065f
movzx eax, word [ecx + 0x14]
test ax, ax
je 0x101065a
movzx eax, ax
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x1c], edx
xor edx, edx
mov dword [ebp - 0x20], edx
movzx eax, word [ecx + 6]
cmp edx, eax
jae 0x101065a
lea ecx, [edx + edx*4]
mov eax, dword [ebp - 0x1c]
lea ebx, [eax + ecx*8]
mov edi, str..detour
mov esi, ebx
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1010649
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x101065a
cmp dword [ebx + 0x10], 0
je 0x101065a
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x101065a
cmp dword [esi + 4], 0x727444
jne 0x101065a
cmp dword [esi + 8], 0
jne 0x1010624
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add edx, 1
mov ecx, dword [ebp - 0x24]
jmp 0x10105d2
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10107f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
cmp dword [esi], 0x678
jne 0x10108f8
cmp dword [esp + 0x10], 0x678
jb 0x10108f8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
push ebx
or eax, 0xffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 0x40
push ecx
push edx
xor ebx, ebx
call edi
test eax, eax
je 0x10108ee
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
lea eax, [esp + 8]
push eax
push 0x40
push ecx
push edx
call edi
test eax, eax
je 0x10108da
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x10]
push eax
lea ecx, [esi + 0x1c]
push ecx
push edx
call fcn.01023840
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x14]
push eax
lea ecx, [esi + 0x5c]
push ecx
push edx
call fcn.01023840
mov eax, dword [esi + 0x18]
add esp, 0x18
test eax, eax
je 0x10108c1
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
call edi
test eax, eax
je 0x10108c6
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
push eax
lea ecx, [esi + 0x664]
push ecx
push edx
call fcn.01023840
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0xc]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
call edi
mov ebx, 1
mov edx, dword [esp + 8]
mov eax, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push eax
push ecx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call edi
pop edi
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0xc
ret 4

Function at 0x1010e00
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, dword [eax]
sub esp, 8
test eax, eax
jne 0x1010e12
or eax, 0xffffffff
add esp, 8
ret 4
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1010e09
mov edx, dword [esp + 4]
add dword [esi + 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esi + 4]
mov ecx, dword [esp + 4]
je 0x1010ea1
mov edx, ecx
test edx, edx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
jge 0x1010e5a
fadd qword [0x1045388]
mov edx, eax
test edx, edx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
jge 0x1010e6e
fadd qword [0x1045388]
fdivp st(1)
mov edx, dword [esi + 0xc]
test edx, edx
fstp qword [esi + 0x10]
fild dword [esi + 0xc]
jge 0x1010e83
fadd qword [0x1045388]
mov edx, eax
sub edx, dword [esi]
test edx, edx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
jge 0x1010e99
fadd qword [0x1045388]
fdivp st(1)
mov dword [esi + 4], eax
fstp qword [esi + 0x18]
mov eax, ecx
add esp, 8
ret 4
Function at 0x1011130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1038ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x104b584]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x104b584]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
xor edi, edi
push ecx
xor ebx, ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
call fcn.01001767
lea esi, [esp + 0x10]
mov dword [esp + 0x38], edi
call fcn.01010eb0
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x10111a6
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x38], 0xffffffff
je 0x10111d1
cmp dword [esp + 0x28], esi
jb 0x10111cd
mov edx, dword [esp + 0x14]
push edx
call fcn.0101dab7
add esp, 4
mov al, 1
jmp 0x10111e6
cmp dword [esp + 0x28], esi
jb 0x10111e4
mov eax, dword [esp + 0x14]
push eax
call fcn.0101dab7
add esp, 4
xor al, al
mov word [esp + 0x14], di
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 7
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0101daa8
add esp, 0x2c
ret

Function at 0x1011220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1038ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x104b584]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x104b584]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
xor edi, edi
push ecx
xor ebx, ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
call fcn.01001767
lea esi, [esp + 0x10]
mov dword [esp + 0x38], edi
call fcn.01010eb0
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x1011296
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10112c5
test al, 0x10
je 0x10112c5
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], esi
jb 0x10112c1
mov edx, dword [esp + 0x14]
push edx
call fcn.0101dab7
add esp, 4
mov al, 1
jmp 0x10112e2
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], esi
jb 0x10112e0
mov eax, dword [esp + 0x14]
push eax
call fcn.0101dab7
add esp, 4
xor al, al
mov word [esp + 0x14], di
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 7
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0101daa8
add esp, 0x2c
ret
Function at 0x1011320
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x10391a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x104b584]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x104b584]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [edi + 0x14]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x101143c
lea ebp, [edi + 4]
cmp esi, dword [edi + 0x14]
jbe 0x101136f
call fcn.0101dd3f
mov ebx, 8
cmp dword [edi + 0x18], ebx
jb 0x101137e
mov eax, dword [ebp]
jmp 0x1011380
mov eax, ebp
cmp word [eax + esi*2], 0x2f
je 0x10113a8
cmp esi, dword [edi + 0x14]
jbe 0x1011391
call fcn.0101dd3f
cmp dword [edi + 0x18], ebx
jb 0x101139b
mov eax, dword [ebp]
jmp 0x101139d
mov eax, ebp
cmp word [eax + esi*2], 0x5c
jne 0x101142f
push esi
lea eax, [esp + 0x18]
push eax
push edi
xor ebx, ebx
call fcn.01006748
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x28], ebx
je 0x1011402
lea edx, [esp + 0x14]
push edx
call fcn.01011130
add esp, 4
test al, al
jne 0x1011402
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x10113e0
lea eax, [esp + 0x18]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1011402
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x101141e
mov eax, dword [esp + 0x18]
push eax
jmp 0x1011416
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x101141e
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0101dab7
add esp, 4
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
add esi, 1
cmp esi, dword [esp + 0x10]
jb 0x1011365
push edi
call fcn.01011130
add esp, 4
test al, al
jne 0x1011468
cmp dword [edi + 0x18], 8
jb 0x1011454
mov eax, dword [edi + 4]
jmp 0x1011457
lea eax, [edi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1011468
xor al, al
jmp 0x1011471
push edi
call fcn.01011220
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0101daa8
add esp, 0x30
ret
Function at 0x1014130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1038975
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x104b584]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
sub esp, 0x2c
mov eax, esp
xor ecx, ecx
mov dword [eax + 0x24], 0xf
mov dword [eax + 0x20], ecx
mov dword [esp + 0x30], esp
mov dword [esp + 0x34], eax
mov byte [eax + 0x10], cl
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], 1
mov dword [esp + 0x40], 0xffffffff
call fcn.01014420
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret 4
Function at 0x101daa8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x104b584]
jne 0x101dab2
repz ret
jmp fcn.0102466d
Function at 0x101f8d9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x101f916
cmp dword [ebp + 0x14], edi
je 0x101f916
cmp ecx, edi
jne 0x101f91d
call fcn.010204d4
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0101dd1b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x101f931
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x101f952
cmp ebx, 0xffffffff
je 0x101f941
push ebx
push edi
push ecx
call fcn.01024780
add esp, 0xc
cmp esi, edi
je 0x101f8fe
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x101f8fe
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x101f96e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x101f975
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x101fa66
test word [esi + 0xc], 0x10c
je 0x101f9c9
mov eax, dword [esi + 4]
test eax, eax
je 0x101f9c9
jl 0x101fac7
cmp ebx, eax
mov edi, ebx
jb 0x101f99a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x101fa6e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0101dabc
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x101fa5e
cmp ebx, dword [ebp - 0xc]
jb 0x101fa36
cmp dword [ebp - 0xc], 0
je 0x101f9f3
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x101f9e8
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x101f9ef
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x101f9fe
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x101f9fe
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x101fa9a
push eax
push dword [ebp - 8]
push esi
call fcn.01026e8a
pop ecx
push eax
call fcn.01029c90
add esp, 0xc
test eax, eax
je 0x101fad9
cmp eax, 0xffffffff
je 0x101fac7
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x101fa5e
push esi
call fcn.0102827b
cmp eax, 0xffffffff
pop ecx
je 0x101facb
cmp dword [ebp - 4], 0
je 0x101fa9a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x101f97d
mov eax, dword [ebp + 0x14]
jmp 0x101f918
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x101fa85
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.01024780
add esp, 0xc
call fcn.010204d4
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x101f90e
cmp dword [ebp + 0xc], 0xffffffff
je 0x101fab0
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.01024780
add esp, 0xc
call fcn.010204d4
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x101f90e
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x101f918
or dword [esi + 0xc], 0x10
jmp 0x101facb
Function at 0x10264ab
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x104b5a8]
je 0x10264c6
inc edi
cmp edi, 0x17
jb 0x10264b7
cmp edi, 0x17
jae 0x1026646
push ebp
push 3
call fcn.010316c0
cmp eax, 1
pop ecx
je 0x1026612
push 3
call fcn.010316c0
test eax, eax
pop ecx
jne 0x10264fa
cmp dword [0x104b110], 1
je 0x1026612
cmp ebx, 0xfc
je 0x1026645
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x104d698
push ebp
call fcn.01024608
add esp, 0xc
test eax, eax
je 0x1026530
push esi
push esi
push esi
push esi
push esi
call fcn.0101dc1f
add esp, 0x14
push 0x104
mov esi, 0x104d6b1
push esi
push 0
mov byte [0x104d7b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1026574
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.01024608
add esp, 0xc
test eax, eax
je 0x1026574
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0101dc1f
add esp, 0x14
push esi
call fcn.01020e90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10265b9
push esi
call fcn.01020e90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x104d9ac
push 0x103c38c
sub ecx, eax
push ecx
push eax
call fcn.0102e38e
add esp, 0x14
test eax, eax
je 0x10265b9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0101dc1f
add esp, 0x14
jmp 0x10265bb
xor esi, esi
push 0x103c388
push ebx
push ebp
call fcn.0102e31d
add esp, 0xc
test eax, eax
je 0x10265db
push esi
push esi
push esi
push esi
push esi
call fcn.0101dc1f
add esp, 0x14
push dword [edi*8 + 0x104b5ac]
push ebx
push ebp
call fcn.0102e31d
add esp, 0xc
test eax, eax
je 0x10265fd
push esi
push esi
push esi
push esi
push esi
call fcn.0101dc1f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.01031503
add esp, 0xc
jmp 0x1026645
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1026645
cmp ebp, 0xffffffff
je 0x1026645
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x104b5ac]
push dword [esi]
call fcn.01020e90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret