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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
push esi
push 0xc3
push edi
call fcn.100113d0
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push esi
push edi
call ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x10023490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x10002007
cmp eax, dword [ecx + 0xc7c]
jge 0x10002007
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x10002007
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 0x10001e96
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x10001e96
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x10001f53
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 0x10001f1d
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000833e
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 0x10001f53
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.1000833e
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call fcn.100113d0
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.10009679
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call fcn.100113d0
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 0x10001fe0
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.1000833e
mov esp, ebp
pop ebp
ret
Function at 0x10002020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x100
push 0
push 0x10129bf8
call fcn.100113d0
mov ecx, dword [ebp + 8]
add esp, 0xc
xor eax, eax
sub ecx, 0x10129bf8
mov dl, byte [ecx + eax + 0x10129bf8]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10129bf8], dl
inc eax
cmp eax, 0x100
jl 0x10002042
mov eax, 0x10129bf8
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 [0x10023490]
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.10008449
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.1000833e
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 [0x10023490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x10129834]
push esi
push edi
push eax
push 0xff
push 0x10028511
mov esi, ecx
mov byte [0x10028510], 1
call fcn.10009926
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [0x10028610], eax
test esi, esi
jne 0x10002380
mov ecx, 0x4c
xor eax, eax
jmp 0x10002330
mov dl, byte [eax + 0x100201e0]
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, 0x100201fc
sub edi, 0x2e62e9b2
lea esi, [ebp - 0x74]
call fcn.10005fb0
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, 0x8bd80d00
cmp esi, 2
jne 0x10002401
lea esi, [ebp - 0x3c]
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 - 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.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 - 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 [0x100284f4]
mov dword [0x100284fc], 0x808080
test eax, eax
je 0x1000248c
cmp dword [0x10129864], 0
je 0x1000248c
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [0x100284f4]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [0x100284fc]
mov eax, dword [0x100284f4]
push 1
push 0
push edx
push eax
call dword [0x10129864]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000833e
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 0x10129bf8
call fcn.100113d0
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x100270a8]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10129bf8], cl
inc eax
cmp eax, 0x100
jl 0x10002720
mov edx, dword [ebp + 8]
push edx
push 1
push 2
push 0x10129bf8
push edi
mov ecx, 0x10027620
call fcn.10001e10
mov eax, dword [0x100282a4]
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 [0x10129834]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x100282a4], edi
call ebx
mov eax, dword [0x100283cc]
cmp eax, edi
je 0x100027ab
push edi
push edi
push 0x10
push eax
call esi
mov edx, dword [0x10129834]
mov eax, dword [str.SPLASH]
push edx
push eax
mov dword [0x100283cc], edi
call ebx
mov eax, dword [0x100284f4]
cmp eax, edi
je 0x100027d1
push edi
push edi
push 0x10
push eax
call esi
mov ecx, dword [0x10129834]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x100284f4], edi
call ebx
mov eax, dword [ebp + 8]
push 0x2b39c0
push eax
mov ecx, 2
call fcn.100022e0
mov ecx, 0x100284f0
mov edi, 0x10002660
call fcn.10001b00
mov ecx, dword [0x100284f8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x100284f8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x100284f4]
test eax, eax
je 0x10002845
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x10129834]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x100284f4], 0
call ebx
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.10001800
Function at 0x100029c0
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.10017120
mov eax, dword [0x10023490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10128634
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1002861c], 0xffffffff
je 0x10002ac8
cmp byte [0x10128650], 0
je 0x10002ac8
push 0x80000
lea eax, [ebp - 0x80008]
push 0
push eax
call fcn.100113d0
add esp, 0xc
push esi
lea ecx, [ebp - 0x80008]
push edi
push ecx
call fcn.1000a1a0
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x80008], 0xc1
jne 0x10002a5c
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
test edi, edi
jle 0x10002a88
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x10002a42
jmp 0x10002a88
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
test edi, edi
jle 0x10002a88
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 0x10002a70
mov ecx, dword [0x10128628]
test ecx, ecx
jle 0x10002b21
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10002ae6
push eax
push 0x10024da8
call fcn.10002020
add esp, 4
push eax
push 0
mov ecx, 0x10027620
call fcn.10001e10
add esp, 0xc
mov esi, 0x10028618
call fcn.100028c0
push 0x10128634
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.1000833e
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x80008]
push eax
lea ecx, [ecx + 0x100a8628]
push ecx
call fcn.1000a1a0
add esp, 0xc
add dword [0x10128628], esi
push 0x10128634
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.1000833e
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10002b03
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [0x1002861c]
push 0
push esi
lea edx, [ebp + edi - 0x80008]
push edx
push eax
call ebx
cmp eax, 0xffffffff
je 0x10002b4f
sub esi, eax
add edi, eax
test esi, esi
jg 0x10002b2d
jmp 0x10002b03
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10002b8e
mov ecx, dword [0x10128628]
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10002b79
push eax
push 0x10024ea8
jmp 0x10002aa6
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [ecx + 0x100a8628]
push eax
jmp 0x10002af5
call ebx
push eax
push 0x10024fa8
jmp 0x10002aa6
Function at 0x10002f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10023490]
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], 0xe8
cmp dword [ebp - 0x1c], edi
jbe 0x1000302c
push esi
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
cmp cl, 0xff
je 0x10002fc3
lea edx, [eax + ebx]
cmp byte [edx + edi], cl
jne 0x10003025
inc eax
cmp eax, 0xb
jl 0x10002fb2
mov al, byte [ebx + edi + 1]
test al, al
je 0x10002fd5
cmp al, 1
jne 0x10003025
mov al, byte [ebx + edi + 3]
test al, al
je 0x10002fe1
cmp al, 1
jne 0x10003025
mov eax, dword [ebx + edi + 0xb]
lea esi, [ebx + edi + 0xa]
lea ecx, [eax + esi + 5]
cmp ecx, 0x404d70
jne 0x10003025
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, 0x10002f10
sub eax, esi
push 5
sub eax, 5
push esi
mov byte [esi], 0xe8
mov dword [esi + 1], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x10002fb0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1000833e
mov esp, ebp
pop ebp
ret

Function at 0x10003040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10023490]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp ebx, edi
je 0x1000310c
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 0x1000310c
push esi
jmp 0x100030a0
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
cmp cl, 0xff
je 0x100030b3
lea edx, [eax + ebx]
cmp byte [edx + edi], cl
jne 0x10003105
inc eax
cmp eax, 0xb
jl 0x100030a2
mov al, byte [ebx + edi + 1]
test al, al
je 0x100030c5
cmp al, 1
jne 0x10003105
mov al, byte [ebx + edi + 3]
test al, al
je 0x100030d1
cmp al, 1
jne 0x10003105
cmp dword [ebx + edi + 5], 0x404d70
lea esi, [ebx + edi + 5]
jne 0x10003105
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], 0x10002f10
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x100030a0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1000833e
mov esp, ebp
pop ebp
ret
Function at 0x100041d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c467
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10023490]
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], 0x100203b0
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.10005a40
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x1000425d
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.10005690
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 [0x10129cf8]
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 0x100043c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c258
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10023490]
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 0x100043fc
xor eax, eax
jmp 0x10004581
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x10004425
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x10004425
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 0x10004581
cmp dword [edi + 0x54], 0
je 0x1000457e
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x1000444d
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 0x10004473
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.1000834d
add esp, 8
cmp eax, 0xffffffff
je 0x1000457e
mov eax, ebx
jmp 0x10004581
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.10004d30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x10004490
mov edx, eax
cmp ebx, 0x10
jae 0x1000449c
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 0x10004576
cmp eax, 1
jg 0x10004530
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x100044dc
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x10004505
cmp ebx, 0x10
jae 0x100044eb
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10009b51
add esp, 0x10
cmp esi, eax
jne 0x10004576
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 0x10004569
test esi, esi
jne 0x10004490
cmp dword [ebp - 0x1c], 0x20
jae 0x10004576
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.10004d90
jmp 0x10004485
cmp eax, 3
jne 0x10004576
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.1000834d
add esp, 8
cmp eax, 0xffffffff
je 0x1000455a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.10003c50
mov eax, esi
jmp 0x10004581
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.10003c50
mov eax, esi
jmp 0x10004581
lea ecx, [ebp - 0x2c]
call fcn.10003c50
mov eax, dword [ebp + 8]
jmp 0x10004581
lea ecx, [ebp - 0x2c]
call fcn.10003c50
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.1000833e
mov esp, ebp
pop ebp
ret 4
Function at 0x10005150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c288
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10023490]
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 0x100052e1
cmp byte [ebx + 0x49], 0
je 0x100052e1
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x100052d5
lea esi, [ebp - 0x2c]
call fcn.10004d30
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x100051c3
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 0x100051fc
dec eax
je 0x10005200
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x100052dc
call fcn.10003c50
xor al, al
jmp 0x100052e3
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10005210
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x1000523d
cmp edi, 0x10
jae 0x1000521f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10009b51
add esp, 0x10
cmp esi, eax
jne 0x100052cd
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x100052d9
test esi, esi
jne 0x100051b7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x100052fe
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x100052fe
cmp edi, esi
jae 0x100052b6
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.100058d0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x100051b7
mov ecx, eax
cmp edi, 0x10
jae 0x10005292
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 0x100052ad
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x100051b1
test esi, esi
jne 0x10005288
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x100052c5
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x100051b1
lea ecx, [ebp - 0x2c]
call fcn.10003c50
xor al, al
jmp 0x100052e3
lea ecx, [ebp - 0x2c]
call fcn.10003c50
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.1000833e
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.10007da9
int3