joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x10023470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x10002057
cmp eax, dword [ecx + 0xc7c]
jge 0x10002057
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x10002057
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x812]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x10001ee6
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x10001ee6
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x10001fa3
mov ecx, dword [esi + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x812]
movzx ecx, word [ebp - 0x816]
movzx edx, word [ebp - 0x818]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x10001f6d
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000836e
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10001fa3
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000836e
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call fcn.10012340
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.10009729
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call fcn.10012340
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
lea eax, [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x810]
push ecx
push edx
push eax
lea ecx, [ebp - 0x408]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x408]
add esp, 0x40
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002030
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x81c]
push edx
push eax
lea eax, [ebp - 0x408]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000836e
mov esp, ebp
pop ebp
ret
Function at 0x10002110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x10023470]
xor eax, esp
mov dword [esp + 0x8c], eax
cmp dword [esi + 0x18], 0
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [esp + 0xc], eax
je 0x10002286
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [sym.imp.USER32.dll_BeginPaint]
lea edx, [esp + 0x40]
mov edi, eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0x18]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x14]
push 0xcc0020
push 0
push 0
push ebx
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10]
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp byte [esi + 0x20], 1
jne 0x10002276
push str.Segoe_UI
push 2
push 5
push 0
push 8
push 1
push 0
push 0
push 0
push 0x12c
push 0
push 0
push 0
push 0xe
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esi + 0x120]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea ebx, [esi + 0x21]
mov eax, ebx
lea ecx, [eax + 1]
jmp 0x10002200
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10002200
sub eax, ecx
push eax
mov eax, dword [esi + 0x14]
push ebx
sub eax, 0x25
push eax
push 0x12
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, 0x3e
xor eax, eax
mov dl, byte [eax + str.P03__1fuxyk]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x14], dl
inc eax
and ecx, 0xff
cmp eax, 0x29
jb 0x10002222
lea eax, [esp + 0x14]
push eax
push ebx
mov byte [esp + 0x45], 0
call fcn.10008479
mov eax, ebx
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002253
mov ecx, dword [esi + 0x14]
sub eax, edx
mov edx, dword [esi + 0x10]
push eax
push ebx
sub ecx, 0xf
push ecx
sub edx, 0xdc
push edx
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x94]
pop edi
pop ebx
xor ecx, esp
call fcn.1000836e
mov esp, ebp
pop ebp
ret 4
Function at 0x100022e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x10023470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x10129854]
push esi
push edi
push eax
push 0xff
push 0x100284f9
mov esi, ecx
mov byte [0x100284f8], 1
call fcn.100099d6
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [0x100285f8], eax
test esi, esi
jne 0x10002380
mov ecx, 0x4c
xor eax, eax
jmp 0x10002330
mov dl, byte [eax + 0x100201e8]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x20], dl
inc eax
and ecx, 0xff
cmp eax, 0x1a
jb 0x10002330
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
mov byte [ebp - 6], 0
call dword [sym.imp.USER32.dll_LoadImageA]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], cx
mov byte [ebp - 6], cl
jmp 0x10002434
cmp esi, 1
jne 0x100023c2
mov edi, 0x10020204
sub edi, 0x2e62e9b2
lea esi, [ebp - 0x74]
call fcn.10005fe0
push 0x10
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
xor ecx, ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov word [ebp - 0x5c], cx
jmp 0x10002434
mov edi, 0x8bd80d08
cmp esi, 2
jne 0x10002401
lea esi, [ebp - 0x3c]
call fcn.10006010
push 0x10
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x24], cx
mov byte [ebp - 0x22], cl
jmp 0x10002434
lea esi, [ebp - 0x58]
call fcn.10006010
push 0x10
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x40], cx
mov byte [ebp - 0x3e], cl
mov esi, eax
call fcn.10002590
mov eax, dword [0x100284dc]
mov dword [0x100284e4], 0x808080
test eax, eax
je 0x1000248c
cmp dword [0x10129884], 0
je 0x1000248c
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [0x100284dc]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [0x100284e4]
mov eax, dword [0x100284dc]
push 1
push 0
push edx
push eax
call dword [0x10129884]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000836e
mov esp, ebp
pop ebp
ret 8
Function at 0x10002700
Capabilities:
Create process on windows
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x100
xor edi, edi
push edi
push 0x10129c28
call fcn.10012340
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x10027090]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10129c28], cl
inc eax
cmp eax, 0x100
jl 0x10002720
mov edx, dword [ebp + 8]
push edx
push 1
push 2
push 0x10129c28
push edi
mov ecx, 0x10027608
call fcn.10001e60
mov eax, dword [0x1002828c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_UnregisterClassA]
add esp, 0x14
cmp eax, edi
je 0x10002786
push edi
push edi
push 0x10
push eax
call esi
mov eax, dword [0x10129854]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x1002828c], edi
call ebx
mov eax, dword [0x100283b4]
cmp eax, edi
je 0x100027ab
push edi
push edi
push 0x10
push eax
call esi
mov edx, dword [0x10129854]
mov eax, dword [str.SPLASH]
push edx
push eax
mov dword [0x100283b4], edi
call ebx
mov eax, dword [0x100284dc]
cmp eax, edi
je 0x100027d1
push edi
push edi
push 0x10
push eax
call esi
mov ecx, dword [0x10129854]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x100284dc], edi
call ebx
mov eax, dword [ebp + 8]
push 0x2b39c0
push eax
mov ecx, 2
call fcn.100022e0
mov ecx, 0x100284d8
mov edi, 0x10002660
call fcn.10001b50
mov ecx, dword [0x100284e0]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x100284e0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x100284dc]
test eax, eax
je 0x10002845
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x10129854]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x100284dc], 0
call ebx
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.10001800
Function at 0x100029f0
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.10017150
mov eax, dword [0x10023470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1012861c
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10028604], 0xffffffff
je 0x10002af8
cmp byte [0x10128638], 0
je 0x10002af8
push 0x80000
lea eax, [ebp - 0x80008]
push 0
push eax
call fcn.10012340
add esp, 0xc
push esi
lea ecx, [ebp - 0x80008]
push edi
push ecx
call fcn.1000a1d0
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x80008], 0xc1
jne 0x10002a8c
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
test edi, edi
jle 0x10002ab8
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x10002a72
jmp 0x10002ab8
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
test edi, edi
jle 0x10002ab8
lea esp, [esp]
mov dl, byte [ebp + eax - 0x80004]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80004], dl
inc eax
cmp eax, edi
jl 0x10002aa0
mov ecx, dword [0x10128610]
test ecx, ecx
jle 0x10002b51
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10002b16
push eax
push 0x10024d90
call fcn.10001b00
add esp, 4
push eax
push 0
mov ecx, 0x10027608
call fcn.10001e60
add esp, 0xc
mov esi, 0x10028600
call fcn.100028f0
push 0x1012861c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000836e
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x80008]
push eax
lea ecx, [ecx + 0x100a8610]
push ecx
call fcn.1000a1d0
add esp, 0xc
add dword [0x10128610], esi
push 0x1012861c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1000836e
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10002b33
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [0x10028604]
push 0
push esi
lea edx, [ebp + edi - 0x80008]
push edx
push eax
call ebx
cmp eax, 0xffffffff
je 0x10002b7f
sub esi, eax
add edi, eax
test esi, esi
jg 0x10002b5d
jmp 0x10002b33
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10002bbe
mov ecx, dword [0x10128610]
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10002ba9
push eax
push 0x10024e90
jmp 0x10002ad6
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [ecx + 0x100a8610]
push eax
jmp 0x10002b25
call ebx
push eax
push 0x10024f90
jmp 0x10002ad6
Function at 0x10002f90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10023470]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 0xc
lea eax, [ebp - 0x20]
push eax
xor edi, edi
push ebx
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov dword [ebp - 0x10], 0xff6aff6a
mov dword [ebp - 0xc], 0xffffffff
mov word [ebp - 8], 0xffff
mov byte [ebp - 6], pe_nt_image_headers32
cmp dword [ebp - 0x1c], edi
jbe 0x1000305c
push esi
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
cmp cl, 0xff
je 0x10002ff3
lea edx, [eax + ebx]
cmp byte [edx + edi], cl
jne 0x10003055
inc eax
cmp eax, 0xb
jl 0x10002fe2
mov al, byte [ebx + edi + 1]
test al, al
je 0x10003005
cmp al, 1
jne 0x10003055
mov al, byte [ebx + edi + 3]
test al, al
je 0x10003011
cmp al, 1
jne 0x10003055
mov eax, dword [ebx + edi + 0xb]
lea esi, [ebx + edi + 0xa]
lea ecx, [eax + esi + 5]
cmp ecx, 0x404d70
jne 0x10003055
lea edx, [ebp - 0x14]
push edx
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push ecx
push edx
mov eax, 0x10002f40
sub eax, esi
push 5
sub eax, 5
push esi
mov byte [esi], pe_nt_image_headers32
mov dword [esi + 1], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x10002fe0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1000836e
mov esp, ebp
pop ebp
ret

Function at 0x10003070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10023470]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp ebx, edi
je 0x1000313c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov dword [ebp - 0x10], 0xff6aff6a
mov dword [ebp - 0xc], 0xffffffff
mov word [ebp - 8], 0xffff
mov byte [ebp - 6], 0xff
cmp dword [ebp - 0x1c], edi
jbe 0x1000313c
push esi
jmp 0x100030d0
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
cmp cl, 0xff
je 0x100030e3
lea edx, [eax + ebx]
cmp byte [edx + edi], cl
jne 0x10003135
inc eax
cmp eax, 0xb
jl 0x100030d2
mov al, byte [ebx + edi + 1]
test al, al
je 0x100030f5
cmp al, 1
jne 0x10003135
mov al, byte [ebx + edi + 3]
test al, al
je 0x10003101
cmp al, 1
jne 0x10003135
cmp dword [ebx + edi + 5], 0x404d70
lea esi, [ebx + edi + 5]
jne 0x10003135
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push ecx
push edx
push 4
push esi
mov dword [esi], 0x10002f40
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x100030d0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1000836e
mov esp, ebp
pop ebp
ret
Function at 0x10004200
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c497
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10023470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x100203b8
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov esi, dword [edx + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.10001670
lea edi, [ebx + 4]
push esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.10005a70
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x1000428d
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
mov ecx, esi
call fcn.10001530
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push edi
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.100056c0
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x10129d28]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
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 0x100043f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c2b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10023470]
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 0x1000442c
xor eax, eax
jmp 0x100045b1
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x10004455
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x10004455
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 0x100045b1
cmp dword [edi + 0x54], 0
je 0x100045ae
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x1000447d
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 0x100044a3
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.1000837d
add esp, 8
cmp eax, 0xffffffff
je 0x100045ae
mov eax, ebx
jmp 0x100045b1
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.10004d90
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x100044c0
mov edx, eax
cmp ebx, 0x10
jae 0x100044cc
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 0x100045a6
cmp eax, 1
jg 0x10004560
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x1000450c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x10004535
cmp ebx, 0x10
jae 0x1000451b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10009c01
add esp, 0x10
cmp esi, eax
jne 0x100045a6
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 0x10004599
test esi, esi
jne 0x100044c0
cmp dword [ebp - 0x1c], 0x20
jae 0x100045a6
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.10004df0
jmp 0x100044b5
cmp eax, 3
jne 0x100045a6
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.1000837d
add esp, 8
cmp eax, 0xffffffff
je 0x1000458a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.10003c80
mov eax, esi
jmp 0x100045b1
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.10003c80
mov eax, esi
jmp 0x100045b1
lea ecx, [ebp - 0x2c]
call fcn.10003c80
mov eax, dword [ebp + 8]
jmp 0x100045b1
lea ecx, [ebp - 0x2c]
call fcn.10003c80
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.1000836e
mov esp, ebp
pop ebp
ret 4
Function at 0x100051b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c2e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10023470]
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 0x10005341
cmp byte [ebx + 0x49], 0
je 0x10005341
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x10005335
lea esi, [ebp - 0x2c]
call fcn.10004d90
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10005223
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 0x1000525c
dec eax
je 0x10005260
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x1000533c
call fcn.10003c80
xor al, al
jmp 0x10005343
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10005270
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x1000529d
cmp edi, 0x10
jae 0x1000527f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10009c01
add esp, 0x10
cmp esi, eax
jne 0x1000532d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x10005339
test esi, esi
jne 0x10005217
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x1000535e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x1000535e
cmp edi, esi
jae 0x10005316
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10005900
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x10005217
mov ecx, eax
cmp edi, 0x10
jae 0x100052f2
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 0x1000530d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10005211
test esi, esi
jne 0x100052e8
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x10005325
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x10005211
lea ecx, [ebp - 0x2c]
call fcn.10003c80
xor al, al
jmp 0x10005343
lea ecx, [ebp - 0x2c]
call fcn.10003c80
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.1000836e
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.10007dd9
int3