joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3e90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x11ff398]
xor edx, edx
cmp eax, edx
jne 0x4c3eb6
xor eax, eax
mov byte [eax + 0x11ff298], al
inc eax
cmp eax, 0x100
jl 0x4c3e9e
mov dword [0x11ff398], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x11ff298
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4c3f47
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4c3f1a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4c3ee8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4c3fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4c4013
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4c3ffa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ca9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f973e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004cb2e0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x11b2ad4
call fcn.004ea1eb
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4caa53
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ea1eb
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4caa4c
push 0
mov ecx, eax
call fcn.004c1ac0
mov dword [esi + 0xc], eax
jmp 0x4caa55
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4caa55
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4ec878
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ec8b0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ea905
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ea8dd
jmp 0x4ec8bc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4edf6a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4edfac
call fcn.004f3a41
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4edfac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4edfa3
xor eax, eax
jmp 0x4edfb4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004edfba
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f3f71
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f3f9f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f3fbd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f3ed7
jmp 0x4f3fbd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f3fbd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f3ed7
test edi, edi
mov eax, edi
jne 0x4f3fa7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10002c2c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
lea eax, [ebp - 0x404]
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov esi, ecx
push edi
push dword [ebp + 0x14]
push 0x404
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 5
jl 0x10002c96
mov cx, word [ebp - 0x402]
cmp cx, word [esi + 0x34f48]
jne 0x10002c96
lea esi, [eax - 4]
push esi
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov cx, word [ebp - 0x404]
add esp, 0xc
and dword [edi + 4], 0
mov eax, esi
mov word [edi + 2], cx
jmp 0x10002cae
push str.CnCNet5:_recvfrom_returned_invalid_data__n
push 0xffffffffffffffff
push 0
push 0
push 2
call fcn.10008864
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
leave
ret 0x18

Function at 0x10002cb4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x400]
push edi
push dword [ebp + 0xc]
mov esi, ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x18]
add esp, 0xc
mov ax, word [esi + 0x34f48]
mov word [ebp - 0x404], ax
mov ax, word [ecx + 2]
push dword [ebp + 0x1c]
mov word [ebp - 0x402], ax
mov ax, word [esi + 0x34f50]
push ecx
push dword [ebp + 0x14]
mov word [ecx + 2], ax
mov eax, dword [esi + 0x34f4c]
mov dword [ecx + 4], eax
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop esi
leave
ret 0x18
Function at 0x10002ea4
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov ebx, ecx
mov al, byte [edx]
mov byte [esp + 0xb], al
mov al, byte [edx + 1]
mov byte [esp + 0xa], al
mov al, byte [edx + 2]
mov byte [esp + 9], al
mov al, byte [edx + 3]
mov byte [esp + 8], al
mov al, byte [edx + 4]
mov byte [esp + 0x17], al
mov al, byte [edx + 5]
mov byte [esp + 0x16], al
mov al, byte [edx + 6]
mov byte [esp + 0x15], al
mov al, byte [edx + 7]
mov byte [esp + 0x14], al
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
push esi
push edi
mov dword [esp + 0x14], 8
mov esi, dword [ebp]
lea ebp, [ebp + 8]
xor esi, eax
mov eax, esi
mov dword [esp + 0x10], esi
shr eax, 0x10
mov edx, esi
movzx eax, al
shr edx, 0x18
mov edi, dword [ebx + eax*4 + 0x494]
mov eax, esi
add edi, dword [ebx + edx*4 + 0x94]
shr eax, 8
movzx eax, al
xor edi, dword [ebx + eax*4 + 0x894]
movzx eax, byte [esp + 0x10]
add edi, dword [ebx + eax*4 + 0xc94]
xor edi, dword [ebp - 4]
xor edi, ecx
mov eax, edi
mov edx, edi
shr eax, 0x10
mov ecx, edi
movzx eax, al
shr edx, 0x18
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + eax*4 + 0x494]
add eax, dword [ebx + edx*4 + 0x94]
mov edx, edi
shr edx, 8
movzx edx, dl
xor eax, dword [ebx + edx*4 + 0x894]
movzx edx, byte [esp + 0x1c]
add eax, dword [ebx + edx*4 + 0xc94]
xor eax, esi
sub dword [esp + 0x14], 1
jne 0x10002efb
mov ebx, dword [ebp]
mov edx, dword [ebp + 4]
xor ebx, eax
mov eax, dword [esp + 0x20]
xor edx, edi
mov ecx, edx
mov dword [esp + 0x1c], edx
shr ecx, 0x18
pop edi
mov byte [eax], cl
lea ecx, [eax + 1]
mov eax, edx
mov dword [esp + 0xc], ebx
shr eax, 0x10
mov byte [ecx], al
mov al, byte [esp + 0x18]
mov byte [ecx + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [ecx + 3], al
mov eax, ebx
shr eax, 0x10
shr edx, 8
pop esi
shr ebx, 8
mov byte [ecx + 4], al
mov al, byte [esp + 8]
pop ebp
mov byte [ecx + 5], bl
mov byte [ecx + 1], dl
mov byte [ecx + 6], al
pop ebx
pop ecx
pop ecx
ret 0xc
Function at 0x10002fe5
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0xc], 8
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
push esi
lea ebx, [ebp + 8]
push edi
mov ecx, dword [eax]
mov dword [esp + 0x10], ebx
mov eax, dword [ebx - 4]
xor eax, edx
mov edx, eax
mov esi, eax
shr edx, 0x10
movzx edx, dl
shr esi, 0x18
mov edi, dword [ebp + edx*4 + 0x494]
mov edx, eax
add edi, dword [ebp + esi*4 + 0x94]
shr edx, 8
movzx edx, dl
xor edi, dword [ebp + edx*4 + 0x894]
movzx edx, al
add edi, dword [ebp + edx*4 + 0xc94]
xor ecx, edi
xor ecx, dword [ebx]
mov edx, ecx
mov esi, ecx
shr edx, 0x10
mov ebx, ecx
movzx edx, dl
shr esi, 0x18
shr ebx, 8
mov edx, dword [ebp + edx*4 + 0x494]
add edx, dword [ebp + esi*4 + 0x94]
movzx esi, bl
mov ebx, dword [esp + 0x10]
add ebx, 8
mov dword [esp + 0x10], ebx
xor edx, dword [ebp + esi*4 + 0x894]
movzx esi, cl
add edx, dword [ebp + esi*4 + 0xc94]
xor edx, eax
sub dword [esp + 0x14], 1
jne 0x10003008
mov eax, dword [ebp + 0x48]
xor eax, ecx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [ebp + 0x44]
mov ecx, dword [esp + 0x18]
xor eax, edx
pop ebp
pop ebx
mov dword [ecx], eax
pop ecx
pop ecx
ret 8
Function at 0x100030b0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
cmp byte [0x100d5818], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
jne 0x10003125
cmp byte [0x100d4cf9], 0
jne 0x10003125
cmp dword [esp + 0x24], 0x38
jle 0x10003125
push 0
push 0x100d4cfb
push 0x100d4cfa
push 0x100d4cf9
push 0x1008bc38
push 0x46
push str.D:_aViniferaVinifera_srccore_blowfish.cpp
push str.length___MAX_KEY_LENGTH
push 0
call fcn.10006081
add esp, 0x24
cmp byte [0x100d4cfa], 0
je 0x1000310b
int3
cmp byte [0x100d4cfb], 0
jne 0x1000311d
cmp byte [0x100d581a], 0
je 0x10003125
xor ecx, ecx
inc ecx
call fcn.100750ee
push 0x48
mov esi, 0x1008abf0
lea ebx, [edi + 4]
push esi
push ebx
mov dword [esp + 0x24], ebx
call sub.VCRUNTIME140.dll_memcpy
push 0x48
lea eax, [edi + 0x4c]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
push 0x1000
lea eax, [edi + 0x94]
push 0x1008ac38
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
cmp dword [esp + 0x20], 0
je 0x1000326b
cmp dword [esp + 0x24], 0
je 0x1000326b
push ebp
push 4
mov dword [esp + 0x14], ebx
xor edi, edi
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x18], 0x12
pop ebp
mov eax, edi
cdq
idiv dword [esp + 0x28]
lea eax, [edi + 1]
movzx ecx, byte [edx + ebx]
cdq
idiv dword [esp + 0x28]
lea eax, [edi + 2]
shl ecx, 8
movzx esi, byte [edx + ebx]
cdq
or esi, ecx
idiv dword [esp + 0x28]
lea eax, [edi + 3]
shl esi, 8
add edi, 4
movzx ecx, byte [edx + ebx]
cdq
or ecx, esi
idiv dword [esp + 0x28]
shl ecx, 8
movzx eax, byte [edx + ebx]
or eax, ecx
mov ecx, dword [esp + 0x10]
xor dword [ecx], eax
add ecx, ebp
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], ecx
jne 0x1000318b
mov edi, dword [esp + 0x18]
and dword [esp + 0x28], 0
and dword [esp + 0x24], 0
mov ebx, dword [esp + 0x1c]
lea esi, [edi + 0x90]
mov dword [esp + 0x14], 9
lea eax, [esp + 0x24]
mov ecx, edi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10002fe5
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [ebx], ecx
add ebx, ebp
mov dword [ebx], eax
add ebx, ebp
mov dword [esi], ecx
sub esi, ebp
mov dword [esi], eax
sub esi, ebp
sub dword [esp + 0x14], 1
jne 0x100031ff
lea esi, [edi + 0x98]
mov ebx, 0x80
lea eax, [esp + 0x24]
mov ecx, edi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10002fe5
mov eax, dword [esp + 0x28]
mov dword [esi - 4], eax
mov eax, dword [esp + 0x24]
mov dword [esi], eax
add esi, 8
sub ebx, 1
jne 0x1000323a
sub ebp, 1
jne 0x10003235
xor eax, eax
inc eax
pop ebp
jmp 0x1000326d
xor al, al
mov byte [edi], al
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x10003775
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
rdtsc
mov dword [esp + 0x14], ecx
mov esi, 0x1016e168
push edi
mov ecx, esi
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 0x14], edx
xor ebx, ebx
call fcn.1007cc7a
mov ebp, eax
mov ecx, esi
jmp 0x100037ab
rdtsc
mov edi, eax
mov ebx, edx
mov ecx, 0x1016e168
call fcn.1007cc7a
mov esi, eax
sub esi, ebp
cmp esi, 0xc8
jb 0x100037a0
sub edi, dword [esp + 0x10]
push 0
sbb ebx, dword [esp + 0x18]
push 5
push ebx
push edi
call fcn.100850a0
mov ecx, dword [esp + 0x18]
push 0
mov dword [ecx], eax
imul eax, esi, 0x3e8
mov dword [ecx + 4], edx
push eax
push ebx
push edi
call fcn.10084ff0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10005576
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebx, ecx
mov ecx, edi
mov dword [esp + 0x28], ebx
mov eax, dword [edi]
call dword [eax + 0x78]
mov esi, dword [edi]
mov ebp, eax
mov ecx, edi
mov dword [esp + 0x34], ebp
call dword [esi + 0x7c]
mov esi, eax
mov dword [esp + 0x30], eax
imul esi, ebp
lea eax, [esi + esi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebp, eax
mov dword [esp + 0x30], ebp
pop ecx
test ebp, ebp
jne 0x100055be
xor al, al
jmp 0x100056f0
lea eax, [esi + esi]
mov ecx, edi
push eax
mov eax, dword [edi]
push 0
push 0
call dword [eax + 0x58]
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
call dword [eax + 0x5c]
imul eax, esi, 3
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
and dword [esp + 0x14], 0
mov edi, eax
mov dword [esp + 0x1c], edi
pop ecx
test esi, esi
jle 0x1000566a
mov ebx, dword [esp + 0x10]
lea eax, [edi + 2]
mov dword [esp + 0x20], 0x1f
mov edi, eax
mov dword [esp + 0x24], 0x3f
movzx ecx, word [ebp]
lea ebp, [ebp + 2]
mov eax, ecx
shr eax, 0xb
imul eax, eax, 0xff
push 0x3f
cdq
idiv dword [esp + 0x24]
pop edx
mov byte [edi - 2], al
mov eax, ecx
shr eax, 5
and eax, edx
imul eax, eax, 0xff
push 0x1f
cdq
idiv dword [esp + 0x28]
mov byte [edi - 1], al
movzx eax, cl
pop ecx
and eax, ecx
imul eax, eax, 0xff
cdq
idiv ecx
inc ebx
mov byte [edi], al
lea edi, [edi + 3]
cmp ebx, esi
jl 0x10005611
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
and dword [esp + 0x10], 0
lea edx, [esp + 0x14]
and dword [esp + 0x14], 0
lea ecx, [esp + 0x10]
push 8
push 2
push dword [esp + 0x38]
push dword [esp + 0x40]
push edi
call fcn.10062248
mov edx, dword [ebx]
mov ecx, ebx
push 2
mov edi, eax
call dword [edx + 0x1c]
push dword [esp + 0x14]
mov edx, dword [ebx]
mov ecx, ebx
push dword [esp + 0x14]
call dword [edx + 0x30]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
push dword [esp + 0x10]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
push dword [esp + 0x1c]
call esi
push ebp
call esi
add esp, 0xc
test edi, edi
je 0x100056ee
mov ecx, edi
call fcn.100622d9
push eax
push edi
push str.lodepng_encode_error__u:__s_n
push 0xffffffffffffffff
push 0
push 0
push 3
call fcn.10008864
add esp, 0x1c
jmp 0x100055b7
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x10005884
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x16c
push ebx
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [esp + 0x180]
mov esi, ebp
push dword [edi + esi*4]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
mov dword [esp + esi*4 + 0x40], eax
inc esi
pop ecx
cmp esi, 0x10
jb 0x1000589d
push 0x40
lea ecx, [esp + 0x48]
pop edx
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx - 8]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
rol eax, 1
mov dword [ecx + 0x34], eax
sub edx, 1
jne 0x100058b7
mov esi, dword [esp + 0x184]
lea edi, [esp + 0x28]
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x1c]
push ebp
call fcn.10005705
mov ecx, dword [esp + 0x10]
mov esi, eax
push ebp
call fcn.1000578c
add esi, eax
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x1c]
mov edx, ebx
mov ecx, eax
rol ecx, 5
add esi, ecx
mov ecx, eax
add esi, dword [esp + ebp*4 + 0x3c]
add esi, dword [esp + 0x14]
mov dword [esp + 0x14], ebx
mov eax, esi
mov ebx, edi
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x18]
rol edi, 0x1e
inc ebp
mov dword [esp + 0x18], ecx
cmp ebp, 0x50
jb 0x100058ff
mov ebx, dword [esp + 0x184]
mov eax, ecx
add dword [ebx + 8], edi
add dword [ebx], esi
add dword [ebx + 4], eax
mov eax, dword [esp + 0x24]
add dword [ebx + 0xc], eax
add dword [ebx + 0x10], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 8
Function at 0x1000657f
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
call fcn.10006548
call fcn.1000652c
mov esi, fcn.1000adca
push esi
call sub.VCRUNTIME140.dll__set_purecall_handler
pop ecx
mov edx, esi
mov ecx, 0x6b51e5
call fcn.10005d86
mov esi, 0x10007942
push esi
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x10007935
call sub.VCRUNTIME140.dll__set_se_translator
pop ecx
mov edx, esi
mov ecx, 0x5ff7d0
call fcn.10005d86
mov edx, fcn.1000a6e2
mov ecx, 0x496350
call fcn.10005d86
mov esi, 0xde
mov ecx, 0x49551c
mov edx, esi
call fcn.10007847
mov edx, esi
mov ecx, 0x495577
call fcn.10007847
xor ebx, ebx
mov edi, 0x100cfee0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.Running_cleanup_on_debug_folder..._n
push 0xffffffffffffffff
push ebx
push ebx
push 1
mov byte [0x100e7984], 1
call fcn.10008864
push str._files_older_than_5_days_will_be_removed__n
push 0xffffffffffffffff
push ebx
push ebx
push 1
call fcn.10008864
add esp, 0x28
mov edx, edi
push str.DEBUG_
push 5
pop esi
mov ecx, esi
call fcn.10069de4
push str.STACK_
mov edx, edi
mov ecx, esi
call fcn.10069de4
push str.EXCEPT_
mov edx, edi
mov ecx, esi
call fcn.10069de4
push str.CRASHDUMP_
mov edx, edi
mov ecx, esi
call fcn.10069de4
push str.MINIDUMP_
mov edx, edi
mov ecx, esi
call fcn.10069de4
push str.DEBUG_.ZIP
mov edx, edi
mov ecx, esi
call fcn.10069de4
pop edi
pop esi
mov byte [0x100e7984], bl
pop ebx
ret
Function at 0x1000845b
Capabilities:
Set console window title

Disassembly:
push ecx
push ecx
cmp byte [0x100e7a3c], 0
jne 0x10008478
push 0x100085b3
call fcn.10085448
pop ecx
mov byte [0x100e7a3c], 1
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 0
call edi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
push eax
push 0x1008d0b0
push str.CONIN_
call esi
push 1
call edi
push eax
mov ebx, 0x1008d0bc
mov ebp, str.CONOUT_
push ebx
push ebp
call esi
push 2
call edi
push eax
push ebx
push ebp
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x30
mov ebp, 0x80
mov edi, 0xc0000000
push 0
push ebp
push 3
push 0
push 3
push edi
push str.CONOUT_
call esi
push 0
push ebp
push 3
xor ebp, ebp
mov ebx, eax
push ebp
push 3
push edi
push str.CONIN_
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov edi, eax
push ebx
push 0xfffffffffffffff5
call esi
push ebx
push 0xfffffffffffffff4
call esi
push edi
push 0xfffffffffffffff6
call esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x100e7a38], eax
test eax, eax
je 0x100085ac
cmp eax, 0xffffffff
je 0x100085ac
push 0x3c
push 0x52
pop esi
push esi
push ebp
xor edx, edx
mov ecx, eax
call fcn.100085d8
mov eax, 0x1000
mov word [esp + 0x14], si
mov word [esp + 0x16], ax
push dword [esp + 0x14]
push dword [0x100e7a38]
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebp
push eax
push dword [0x100e7a38]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x100085ac
mov eax, dword [esp + 0x10]
or eax, 4
push eax
push dword [0x100e7a38]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0x1000859a
push 0xa
push dword [0x100e7a38]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push str.Vinifera_Debug_Console
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov byte [0x100e7986], 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x10008bc9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x10008c17
cmp byte [esi + 0x3d], bl
je 0x10008c17
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10008c47
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x10008c1e
sub eax, 1
je 0x10008c21
dec eax
sub eax, 1
jne 0x10008c47
mov byte [esi + 0x3d], bl
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10008c3f
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10008c47
cmp byte [esi + 0x3d], bl
sete al
jmp 0x10008c19
xor al, al
jmp 0x10008c19

Function at 0x10008ebb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x4c], ebx
je 0x10008f37
push esi
call fcn.10008dbb
cmp dword [edi + 0x38], ebx
je 0x10008f19
cmp byte [edi + 0x3d], bl
je 0x10008f19
mov eax, dword [edi]
mov ecx, edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x10008eee
mov al, bl
jmp 0x10008f1b
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x10008f67
sub eax, 1
je 0x10008f6a
dec eax
sub eax, 1
jne 0x10008eea
mov byte [edi + 0x3d], bl
mov al, 1
push dword [edi + 0x4c]
movzx esi, al
neg esi
sbb esi, esi
and esi, edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
neg eax
pop ecx
sbb ebx, ebx
not ebx
and ebx, esi
pop esi
mov ecx, edi
mov byte [edi + 0x48], 0
mov byte [edi + 0x3d], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
and dword [edi + 0x4c], 0
mov eax, ebx
mov ecx, dword [0x100e7a60]
mov edx, dword [0x100e7a64]
and dword [edi + 0x38], 0
mov dword [edi + 0x40], ecx
mov dword [edi + 0x44], edx
pop edi
pop ebx
leave
ret
mov byte [edi + 0x3d], bl
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x10008f8c
push dword [edi + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x10008eea
cmp byte [edi + 0x3d], bl
sete al
jmp 0x10008f1b