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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x100c34c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 0x3c]
push edi
mov esi, dword [eax + ebx + 0x78]
mov eax, dword [eax + ebx + 0x7c]
mov ecx, dword [esi + ebx + 0x10]
mov edi, edx
mov edx, dword [esi + ebx + 0x1c]
add edx, ebx
mov dword [ebp - 0xd4], edx
mov edx, dword [esi + ebx + 0x24]
mov dword [ebp - 0xe0], eax
mov eax, dword [esi + ebx + 0x20]
add edx, ebx
add eax, ebx
mov dword [ebp - 0xd8], edx
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xdc], eax
test edi, 0xffff0000
jne 0x10023c2e
cmp edi, ecx
jb 0x10023c83
mov eax, dword [esi + ebx + 0x14]
dec eax
add eax, ecx
cmp edi, eax
ja 0x10023c83
sub edi, ecx
mov eax, dword [edx + edi*4]
pop edi
pop esi
add eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xd0]
xor esi, esi
cmp dword [ecx + ebx + 0x18], esi
jle 0x10023c83
lea esp, [esp]
mov eax, dword [eax + esi*4]
mov ecx, edi
add eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10023c67
test dl, dl
je 0x10023c63
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10023c67
add eax, 2
add ecx, 2
test dl, dl
jne 0x10023c47
xor eax, eax
jmp 0x10023c6c
sbb eax, eax
or eax, 1
test eax, eax
je 0x10023c96
mov eax, dword [ebp - 0xd0]
inc esi
cmp esi, dword [eax + ebx + 0x18]
mov eax, dword [ebp - 0xdc]
jl 0x10023c40
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd0]
movzx eax, word [eax + esi*2]
mov esi, dword [ebp - 0xd4]
mov esi, dword [esi + eax*4]
add esi, ebx
lea eax, [ebx + ecx]
cmp esi, eax
jb 0x10023d61
mov eax, dword [ebp - 0xe0]
add eax, ebx
add eax, ecx
cmp esi, eax
ja 0x10023d61
push 0x63
lea eax, [ebp - 0x67]
push 0
push eax
mov byte [ebp - 0x68], 0
call fcn.1007c850
push 0x63
lea eax, [ebp - 0xcb]
push 0
push eax
mov byte [ebp - 0xcc], 0
call fcn.1007c850
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x18
lea eax, [ebp - 0x68]
push esi
push eax
call edi
lea eax, [ebp - 0x68]
push 0x2e
push eax
call fcn.10078920
add esp, 8
test eax, eax
je 0x10023d61
mov byte [eax], 0
inc eax
push eax
lea eax, [ebp - 0xcc]
push eax
call edi
push str..dll
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10023d61
lea edx, [ebp - 0xcc]
mov ecx, eax
call fcn.10023ba0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
Function at 0x100263b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ecx + 0x10], 0
push edi
mov edi, edx
jne 0x100263c6
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x14], 8
jb 0x100263ce
mov ecx, dword [ecx]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100263f7
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov byte [ebp - 1], 1
push edi
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
neg ebx
sbb bl, bl
and bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10026430
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x10], 0
push ebx
mov ebx, edx
jne 0x10026446
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x14], 8
jb 0x1002644e
mov ecx, dword [ecx]
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10026477
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 8], 0
mov edi, eax
je 0x100264a2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x100264bb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp edi, eax
jbe 0x100264d7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
test eax, eax
lea ecx, [ebp - 0xc]
push ecx
cmove eax, edi
push eax
push ebx
push esi
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov ebx, eax
neg ebx
sbb bl, bl
and bl, byte [ebp - 1]
push esi
mov dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100266e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009dd2d
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x100c34c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x84], 0
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x88], esi
jne 0x1002675a
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x100a666d
mov byte [esi], 0
call fcn.10011ad0
mov dword [ebp - 4], 0
mov dword [ebp - 0x84], 1
jmp 0x10026837
push ecx
lea ecx, [ebp - 0x140]
call fcn.10029400
mov dword [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x10026775
mov edi, dword [edi]
sub esp, 8
lea ecx, [ebp - 0x130]
push edi
call fcn.100298c0
test eax, eax
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x140]
mov eax, dword [eax + 4]
jne 0x100267aa
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x100267b9
or eax, 4
jmp 0x100267b9
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
mov edx, 4
cmove eax, edx
push 0
push eax
call fcn.10025520
cmp dword [ebp - 0xe0], 0
jne 0x100267d8
push 0x100a666d
mov ecx, esi
call fcn.100106d0
jmp 0x1002681e
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x80], 0x67452301
mov dword [ebp - 0x7c], 0xefcdab89
mov dword [ebp - 0x78], 0x98badcfe
mov dword [ebp - 0x74], 0x10325476
call fcn.10043e40
push esi
lea ecx, [ebp - 0x80]
call fcn.100448e0
mov dword [ebp - 0x84], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x140]
call fcn.10026860
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
Function at 0x10026a80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009ddf8
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x100c34c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x10026abc
xor al, al
jmp 0x10026bd2
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10011ff0
mov dword [ebp - 4], 0
mov edx, 0x2f
lea ecx, [ebp - 0x28]
call fcn.1001d310
mov edx, 0x5c
lea ecx, [ebp - 0x28]
call fcn.1001d310
cmp dword [ebp - 0x18], 3
ja case.default.0x10026b28
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
ja case.default.0x10026b28
jmp dword [eax*4 + 0x10026bf0]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x10026b88
mov eax, dword [esi + 0x10]
lea edx, [eax - 1]
cmp eax, edx
ja 0x10026b61
push str.invalid_string_position
call fcn.10091ac9
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x10026b6d
mov ecx, dword [esi]
jmp 0x10026b6f
mov ecx, esi
cmp word [ecx + edx*2], 0x5c
je case.0x10026b28.3
cmp eax, 8
jb 0x10026b7d
mov esi, dword [esi]
cmp word [esi + edx*2], 0x2f
jne case.0x10026b28.0
mov bl, 1
jmp 0x10026ba4
test byte [ebp - 0x278], 0x10
push eax
je 0x10026b9c
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
jmp 0x10026ba4
call dword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x10026bbc
push dword [ebp - 0x28]
call fcn.10076e4c
add esp, 4
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
Function at 0x10027180
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009dc31
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x100c34c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
push ecx
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x264], 0
call fcn.10014810
add esp, 4
mov ecx, eax
call fcn.10040f80
mov dword [ebp - 4], 1
cmp dword [ebp - 0x220], 0
jne 0x10027217
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
lea eax, [ebp - 0x230]
push eax
mov ecx, edi
call fcn.10011d10
mov dword [ebp - 0x264], 1
jmp 0x100273e0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.1007c850
add esp, 0xc
call esi
push eax
push 0x100adb04
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10078d49
add esp, 0x10
lea ecx, [ebp - 0x230]
push 1
push 0x100ad740
call fcn.10011ec0
cmp word [ebp - 0x218], 0
mov esi, eax
jne 0x1002727b
xor ecx, ecx
jmp 0x10027293
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10027284
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.10011ec0
lea ecx, [ebp - 0x230]
call fcn.10026eb0
test al, al
je 0x10027308
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
call fcn.10011ff0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 2
mov ebx, 2
jmp 0x10027324
push 0x100ad6f0
lea ecx, [ebp - 0x260]
call fcn.100109a0
mov dword [ebp - 4], 3
mov ebx, 4
mov dword [ebp - 0x264], ebx
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
push eax
mov ecx, edi
call fcn.10011d10
or ebx, 1
mov dword [ebp - 0x264], ebx
mov dword [ebp - 4], 2
test bl, 4
je 0x10027397
and ebx, 0xfffffffb
mov dword [ebp - 0x264], ebx
cmp dword [ebp - 0x24c], 8
jb 0x1002737a
push dword [ebp - 0x260]
call fcn.10076e4c
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
mov dword [ebp - 4], 1
test bl, 2
je 0x100273e0
and ebx, 0xfffffffd
mov dword [ebp - 0x264], ebx
cmp dword [ebp - 0x234], 8
jb 0x100273c3
push dword [ebp - 0x248]
call fcn.10076e4c
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x21c], 8
jb 0x100273fb
push dword [ebp - 0x230]
call fcn.10076e4c
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
Function at 0x10027970
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov bl, dl
cmp dword [esi + 0x10], 0
je 0x10027a21
cmp dword [esi + 0x14], 8
jb 0x1002798e
mov ecx, dword [esi]
call fcn.10026180
cmp eax, 1
sete al
test al, al
je 0x10027a21
mov ecx, esi
call fcn.10026a80
test al, al
je 0x100279b4
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x100279be
mov eax, dword [esi]
jmp 0x100279c0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10027a21
test bl, bl
je 0x10027a21
cmp dword [esi + 0x14], 8
jb 0x100279d9
mov eax, dword [esi]
jmp 0x100279db
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x100279fd
and eax, 0xfffffffe
cmp dword [esi + 0x14], 8
jb 0x100279f3
mov ecx, dword [esi]
jmp 0x100279f5
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x10027a07
mov eax, dword [esi]
jmp 0x10027a09
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10027a21
mov ecx, esi
call fcn.10028310
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10027f80
Capabilities:
Move file

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x10028037
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10028037
cmp dword [esi + 0x14], 8
jb 0x10027fa5
mov edx, dword [esi]
push eax
push edx
push ecx
push ecx
mov ecx, edi
call fcn.100122c0
test eax, eax
jne 0x10027fbd
mov eax, 2
pop edi
pop esi
pop ecx
ret
cmp dword [edi + 0x10], 0
je 0x1002802e
cmp dword [edi + 0x14], 8
jb 0x10027fcd
mov ecx, dword [edi]
jmp 0x10027fcf
mov ecx, edi
call fcn.10026180
cmp eax, 1
sete al
test al, al
je 0x1002802e
cmp dword [esi + 0x10], 0
je 0x10028008
cmp dword [esi + 0x14], 8
jb 0x10027fee
mov ecx, dword [esi]
jmp 0x10027ff0
mov ecx, esi
call fcn.10026180
cmp eax, 1
sete al
test al, al
je 0x10028008
mov dl, 1
mov ecx, esi
call fcn.10027970
cmp dword [esi + 0x14], 8
jb 0x10028010
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x10028018
mov edi, dword [edi]
push esi
push edi
call fcn.100791be
add esp, 8
neg eax
sbb eax, eax
and eax, 0xfffffffc
inc eax
pop edi
pop esi
pop ecx
ret
mov eax, 0xfffffffe
pop edi
pop esi
pop ecx
ret
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
Function at 0x10029400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d52a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100c34c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
lea eax, [edi + 0x70]
mov dword [edi], 0x100adb4c
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.10025640
lea eax, [ebp - 0x14]
lea ebx, [edi + 0x10]
push eax
mov ecx, esi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 0
call fcn.100255d0
mov dword [ebp - 4], 4
push eax
call fcn.1002a040
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100294dc
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x100294dc
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x10029501
mov eax, dword [esi + 0xc]
or eax, 4
push 0
push eax
mov ecx, esi
call fcn.10025520
mov dword [ebp - 4], 5
mov eax, dword [edi]
mov dword [ebp - 0x18], ebx
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.10029f50
mov byte [ebp - 4], 6
lea eax, [ebx + 4]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x14]
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x4c], 0
mov byte [ebx + 0x45], 0
lea ecx, [ebx + 8]
mov dword [ebx + 0x10], ecx
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, dword [0x100c69b8]
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10029ad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009dfb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100c34c0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x100c34c0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x10029c63
cmp byte [ebx + 0x45], 0
je 0x10029c63
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x10029b30
xor al, al
jmp 0x10029c65
mov ecx, 0xf
mov dword [esp + 0x2c], 0
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
jmp 0x10029b90
cmp ecx, 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, edx
lea esi, [esp + 0x1c]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10029bcb
dec eax
je 0x10029bcf
sub eax, 2
je 0x10029c2d
xor bl, bl
jmp 0x10029c2f
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x10029c0e
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.100794be
add esp, 0x10
cmp esi, eax
jne 0x10029bc7
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp byte [ebx + 0x45], 0
je 0x10029c2d
test esi, esi
jne 0x10029b90
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.1001dc60
jmp 0x10029b7f
mov bl, 1
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x10029c4a
push dword [esp + 0x18]
call fcn.10076e4c
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov al, bl
jmp 0x10029c65
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
Function at 0x1002b7b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100c34c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.1007c850
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1002b90f
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x1002b820
cmp dword [ebp - 0x118], 1
jne 0x1002b90f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x1002b901
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x1002b846
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1002b85e
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x1002b8e9
mov ecx, 0x100ad9fc
call fcn.10004310
mov edx, str.RtlGetVersion
mov ecx, eax
call fcn.10023ba0
test eax, eax
je 0x1002b8d6
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
jne 0x1002b8d6
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x1002b8b5
cmp dword [ebp - 0x118], 3
jne 0x1002b8d6
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x1002b8d6
cmp dword [ebp - 0x118], 0
jne 0x1002b8d6
mov eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x1002b90f
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x1002b90f
cmp dword [ebp - 0x118], 0
je 0x1002b8c3
mov ecx, dword [ebp - 4]
xor ecx, ebp
or eax, 0xffffffff
call fcn.10076e3d
mov esp, ebp
pop ebp
ret