joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fc0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x437c39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00430ee5
mov dword [esi], 0x43d47c
lea edi, [esi + 0x68]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [edi + 4], ebx
mov dword [edi], 0x43d858
push fcn.004023b0
push 0x402380
lea ebp, [esi + 0x70]
push 2
push 8
push ebp
mov byte [esp + 0x30], 1
call fcn.0041e610
mov dword [esi + 0x80], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x3c], ebx
mov ebx, dword [0x43a4ac]
push 0x12
mov byte [esp + 0x20], 2
mov dword [esi], 0x43a640
mov dword [esi + 0x84], 0x400
call ebx
push 0xf
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
call ebx
mov ebx, dword [0x43a0d4]
push eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
call ebx
push eax
mov ecx, edi
call fcn.00434dec
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
mov ecx, ebp
call fcn.00434dec
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
lea ecx, [esi + 0x78]
call fcn.00434dec
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401fd8
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x437c39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00430ee5
mov dword [esi], 0x43d47c
lea edi, [esi + 0x68]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [edi + 4], ebx
mov dword [edi], 0x43d858
push fcn.004023b0
push 0x402380
lea ebp, [esi + 0x70]
push 2
push 8
push ebp
mov byte [esp + 0x30], 1
call fcn.0041e610
mov dword [esi + 0x80], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x3c], ebx
mov ebx, dword [0x43a4ac]
push 0x12
mov byte [esp + 0x20], 2
mov dword [esi], 0x43a640
mov dword [esi + 0x84], 0x400
call ebx
push 0xf
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
call ebx
mov ebx, dword [0x43a0d4]
push eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
call ebx
push eax
mov ecx, edi
call fcn.00434dec
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
mov ecx, ebp
call fcn.00434dec
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
lea ecx, [esi + 0x78]
call fcn.00434dec
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x411f90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x411fc0
push esi
call fcn.00415370
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x411fb9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x412043
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x41202f
mov eax, dword [esi + 8]
test eax, eax
je 0x411fe4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x41202b
cmp eax, 2
je 0x41202f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x411fd7
cmp eax, 3
je 0x41200a
cmp eax, 1
jne 0x411fd7
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 0x411fd7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x411fd7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00412070
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x412063
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00412070
add esp, 4
pop esi
ret
Function at 0x403664
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push edi
mov dword [esi + 0xdc], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xe0], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x44], eax
mov al, byte [esp + 0x24]
mov dword [esi + 0x48], ecx
xor cl, cl
test al, al
mov dword [esi + 0x40], edx
mov byte [esi + 0x4c], al
mov byte [esp + 0xc], cl
jbe 0x4036c4
mov eax, dword [esp + 0xc]
and eax, 0xff
inc cl
mov byte [esp + 0xc], cl
mov edx, dword [esp + eax*8 + 0x28]
mov dword [esi + eax*8 + 0x50], edx
mov edx, dword [esp + eax*8 + 0x2c]
mov dword [esi + eax*8 + 0x54], edx
mov al, byte [esi + 0x4c]
cmp cl, al
jb 0x40369e
mov eax, dword [esi + 0x48]
mov ecx, dword [esp + 0x14]
inc eax
cmp ecx, eax
jae 0x4036d8
mov dword [esi + 0x104], ecx
jmp 0x4036de
mov dword [esi + 0x104], eax
mov edi, dword [esi + 0x104]
mov ecx, dword [esi + 0x11c]
mov eax, edi
xor edx, edx
div ecx
mov dword [esi + 0x108], edi
test edx, edx
je 0x40370a
mov eax, edi
xor edx, edx
div ecx
inc eax
imul eax, ecx
mov dword [esi + 0x104], eax
mov eax, dword [esi + 0x44]
xor edx, edx
div ecx
imul eax, ecx
cmp dword [esi + 0xd4], eax
jae 0x403722
mov dword [esi + 0xd4], eax
mov eax, dword [esi + 0x104]
mov edi, 1
cmp eax, 0x100000
mov dword [esi + 0x10c], edi
ja 0x403742
mov dword [esi + 0xd8], edi
jmp 0x4037ab
cmp eax, 0x200000
ja 0x403755
mov dword [esi + 0xd8], 2
jmp 0x4037ab
cmp eax, 0x400000
ja 0x403768
mov dword [esi + 0xd8], 4
jmp 0x4037ab
cmp eax, 0x800000
ja 0x40377b
mov dword [esi + 0xd8], 8
jmp 0x4037ab
cmp eax, 0x1000000
ja 0x40378e
mov dword [esi + 0xd8], 0x10
jmp 0x4037ab
cmp eax, 0x2000000
ja 0x4037a1
mov dword [esi + 0xd8], 0x20
jmp 0x4037ab
mov dword [esi + 0xd8], 0x40
mov eax, dword [esi + 0x124]
test eax, eax
jne 0x4037cb
mov ecx, esi
call fcn.004045a0
mov eax, dword [esi + 0x20]
push edi
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
pop esi
ret 0x9c

Function at 0x408300
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4091b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
push edi
call dword [0x417fc0]
mov edi, eax
test edi, edi
jne 0x4091cc
push 1
call dword [0x417fd4]
add esp, 4
mov al, byte [0x417a44]
mov cl, byte [0x417a45]
push 0xff
push eax
push ecx
call dword [0x418044]
mov edx, dword [0x417f9c]
add esp, 0xc
mov eax, dword [edx + 0x20]
sub eax, 2
je 0x4092b0
sub eax, 2
je 0x4092b0
push 0x18
push 0x18
push 1
call dword [0x418044]
push 0x18
push 0x18
push 3
call dword [0x418044]
push 0xff
push 0xff
push 2
call dword [0x418044]
push 0xbd00
push 0xff
push 2
call dword [0x417fcc]
push 0xbd01
push 0x18
push 1
call dword [0x417fcc]
push 0xbd02
push 0x18
push 3
call dword [0x417fcc]
add esp, 0x48
lea eax, [esp + 8]
push eax
push 3
push 0xbd00
call dword [0x417fc8]
add esp, 0xc
lea eax, [esp + 8]
mov ecx, 3
mov dl, byte [eax]
xor dl, 0x39
mov byte [eax], dl
inc eax
dec ecx
jne 0x40927d
mov eax, dword [esp + 8]
mov dl, byte [esp + 0xa]
mov cl, ah
and eax, 0xff
shr ecx, 1
and ecx, 0xc
shl eax, 4
or ecx, eax
shr edx, 3
mov esi, ecx
and edx, 3
or esi, edx
jmp 0x409348
push 0xf8
push 0xf8
push 1
call dword [0x418044]
push 0x7f
push 0x7f
push 2
call dword [0x418044]
push 0xbd00
push 0x7f
push 2
call dword [0x417fcc]
push 0xbd01
push 0xf8
push 1
call dword [0x417fcc]
lea eax, [esp + 0x38]
push eax
push 2
push 0xbd00
call dword [0x417fc8]
add esp, 0x3c
lea eax, [esp + 8]
mov ecx, 2
mov dl, byte [eax]
xor dl, 0x39
mov byte [eax], dl
inc eax
dec ecx
jne 0x40930d
mov ecx, dword [esp + 8]
mov al, cl
shl al, 1
test ch, 0x80
mov byte [esp + 0xc], al
je 0x40932f
or al, 1
mov byte [esp + 0xc], al
mov edx, dword [esp + 0xc]
mov cl, ch
shr ecx, 3
and edx, 0xff
and ecx, 0xf
shl edx, 4
or ecx, edx
mov esi, ecx
test edi, edi
jne 0x409356
push edi
call dword [0x417fd4]
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 8
ret
Function at 0x40e830
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x418090]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x40e883
push str.PRf48PInfFile
push 0x838
push 0
push 4
push 0
push 0xffffffffffffffff
call esi
test eax, eax
mov dword [0x418090], eax
jne 0x40e870
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
push 0x838
push 0
push 0
push 6
push eax
call edi
mov dword [0x417f9c], eax
mov eax, dword [0x41808c]
test eax, eax
jne 0x40e8cd
push str.PRf48PBufFile
push 0x1000000
push 0
push 4
push 0
push 0xffffffffffffffff
call esi
test eax, eax
mov dword [0x41808c], eax
jne 0x40e8b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
push 0x1000000
push 0
push 0
push 6
push eax
call edi
mov dword [0x417fa4], eax
mov dword [0x417fa0], eax
pop edi
mov eax, 1
pop esi
ret
Function at 0x10003340
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1002f490]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1001ca20
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x10028354
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrRStrIW]
test eax, eax
je 0x1000346b
push esi
push str.CreateProcessW
push 0x100281e8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000346a
push ebx
push edi
lea eax, [ebp - 0x218]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [esi]
mov bl, byte [esi + 4]
push 5
mov ecx, 0x10001d60
sub ecx, esi
push esi
sub ecx, 5
push 0xffffffffffffffff
mov dword [ebp - 0x214], edi
mov byte [ebp - 0x210], bl
mov byte [esi], 0xe9
mov dword [esi + 1], ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x218]
push 0
push edx
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x40
push 0x1000
push 0xa
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp byte [ebp - 0x214], 0xe9
mov dword [0x10032e80], eax
mov dword [eax], edi
mov byte [eax + 4], bl
mov eax, dword [0x10032e80]
jne 0x1000344c
mov ecx, esi
sub ecx, eax
add dword [ebp - 0x213], ecx
mov bl, byte [ebp - 0x210]
mov edi, dword [ebp - 0x214]
mov dword [eax], edi
mov byte [eax + 4], bl
mov edx, dword [0x10032e80]
mov byte [edx + 5], 0xe9
mov eax, dword [0x10032e80]
sub esi, eax
sub esi, 5
pop edi
mov dword [eax + 6], esi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012773
mov esp, ebp
pop ebp
ret
Function at 0x10003560
Capabilities:
Create thread
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x1002f490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
dec eax
push esi
mov esi, dword [ebp + 8]
jne 0x100036b6
push 0x103
push eax
mov byte [ebp - 0x148], al
lea eax, [ebp - 0x147]
push eax
mov dword [0x10032e7c], esi
call fcn.1001ca20
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x148]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x148]
push 0x5c
push edx
call fcn.10014110
mov byte [eax], 0
lea eax, [ebp - 0x148]
add esp, 8
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100035d0
mov ecx, dword [str._soft.ini]
mov edx, dword [0x10028384]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [eax], ecx
mov cx, word [0x10028388]
mov dword [eax + 4], edx
lea edx, [ebp - 0x148]
push edx
push 0x40
push str.cqhelper
push str.cqhelper
push str.windname
push str.Deskband
mov word [eax + 8], cx
call esi
push 0x3f
lea eax, [ebp - 0x43]
push 0
push eax
mov byte [ebp - 0x44], 0
call fcn.1001ca20
add esp, 0xc
lea ecx, [ebp - 0x148]
push ecx
push 0x40
lea edx, [ebp - 0x44]
push edx
push 0x100281d1
push str.windshow
push str.Deskband
call esi
mov ecx, 0x100281d1
lea eax, [ebp - 0x44]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003673
test dl, dl
je 0x1000366f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10003673
add eax, 2
add ecx, 2
test dl, dl
jne 0x10003653
xor eax, eax
jmp 0x10003678
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100036a5
push 0x40
push 0
push str.cqss
call fcn.1001ca20
push str..exe
lea eax, [ebp - 0x44]
push eax
push str._s_s
mov edx, str.cqss
call fcn.100079b0
add esp, 0x18
push 0
push 0
push 0x10003480
call fcn.10013647
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.10012773
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003820
Capabilities:
Find taskbar
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push 0x18
mov esi, eax
push 0x113
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
test esi, esi
je 0x1000385c
push 0
push str.ReBarWindow32
push 0
push esi
call dword [sym.imp.USER32.dll_FindWindowExA]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.CLSIDC86089C6_DBC6_4BFB_B8BF_B33CC2B9585BInprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0
mov esi, 1
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0
call ebx
test eax, eax
jne 0x100038ed
cmp dword [ebp - 8], esi
jne 0x100038ed
mov eax, dword [ebp - 4]
cmp eax, 0x1000
jae 0x100038ed
inc eax
push eax
call fcn.10012441
mov ecx, dword [ebp - 4]
inc ecx
push ecx
mov esi, eax
call fcn.10012441
mov ecx, dword [ebp - 0xc]
add esp, 8
lea edx, [ebp - 4]
push edx
push esi
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push ecx
call ebx
push esi
call fcn.10013b8a
push edi
call fcn.10013b8a
add esp, 8
push str.CLSIDC86089C6_DBC6_4BFB_B8BF_B33CC2B9585B
push 0x80000000
call fcn.10003d50
mov edx, dword [0x10025278]
mov ecx, dword [0x1002527c]
sub esp, 8
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x10025280]
mov dword [eax + 4], ecx
mov ecx, dword [0x10025284]
mov dword [eax + 8], edx
mov edx, dword [0x100281d8]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x100281dc]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x100281e0]
mov dword [eax + 4], ecx
mov ecx, dword [0x100281e4]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.10003ca0
add esp, 0x20
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003d50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x1002f490]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x10003daf
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.10012773
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x200
call esi
test eax, eax
jne 0x10003e14
nop
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.10003d50
add esp, 8
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push edx
call esi
test eax, eax
je 0x10003de0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10012773
mov esp, ebp
pop ebp
ret
Function at 0x10004e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023c78
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1002f490]
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 ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x10004e9c
xor eax, eax
jmp 0x10005021
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x10004ec5
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x10004ec5
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x10005021
cmp dword [edi + 0x54], 0
je 0x1000501e
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x10004eed
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x10004f13
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.10012782
add esp, 8
cmp eax, 0xffffffff
je 0x1000501e
mov eax, ebx
jmp 0x10005021
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.10005a70
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x10004f30
mov edx, eax
cmp ebx, 0x10
jae 0x10004f3c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x10005016
cmp eax, 1
jg 0x10004fd0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x10004f7c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x10004fa5
cmp ebx, 0x10
jae 0x10004f8b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10014091
add esp, 0x10
cmp esi, eax
jne 0x10005016
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x10005009
test esi, esi
jne 0x10004f30
cmp dword [ebp - 0x1c], 0x20
jae 0x10005016
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.10005b40
jmp 0x10004f25
cmp eax, 3
jne 0x10005016
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.10012782
add esp, 8
cmp eax, 0xffffffff
je 0x10004ffa
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.1000c7c0
mov eax, esi
jmp 0x10005021
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.1000c7c0
mov eax, esi
jmp 0x10005021
lea ecx, [ebp - 0x2c]
call fcn.1000c7c0
mov eax, dword [ebp + 8]
jmp 0x10005021
lea ecx, [ebp - 0x2c]
call fcn.1000c7c0
or eax, 0xffffffff
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.10012773
mov esp, ebp
pop ebp
ret 4
Function at 0x100061b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1002f490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x10006341
cmp byte [ebx + 0x49], 0
je 0x10006341
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x10006335
lea esi, [ebp - 0x2c]
call fcn.10005a70
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10006223
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x1000625c
dec eax
je 0x10006260
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x1000633c
call fcn.1000c7c0
xor al, al
jmp 0x10006343
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10006270
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x1000629d
cmp edi, 0x10
jae 0x1000627f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10014091
add esp, 0x10
cmp esi, eax
jne 0x1000632d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x10006339
test esi, esi
jne 0x10006217
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x1000635e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x1000635e
cmp edi, esi
jae 0x10006316
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10007050
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x10006217
mov ecx, eax
cmp edi, 0x10
jae 0x100062f2
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x1000630d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10006211
test esi, esi
jne 0x100062e8
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x10006325
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x10006211
lea ecx, [ebp - 0x2c]
call fcn.1000c7c0
xor al, al
jmp 0x10006343
lea ecx, [ebp - 0x2c]
call fcn.1000c7c0
mov al, 1
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.10012773
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.100121d3
int3
Function at 0x100068a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023beb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1002f490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10012327
push 4
mov dword [ebp - 4], 0
call fcn.100145bf
mov edi, eax
add esp, 4
test edi, edi
je 0x1000691c
call fcn.10012122
mov dword [edi], eax
call fcn.10011ee1
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.100122e8
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10006912
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10012310
jmp 0x1000691e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
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