joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d03b
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov dword [ebp - 0x11c], 0
mov dword [timeVal.tv_usec], 0
jmp 0x40d06a
mov eax, dword [timeVal.tv_usec]
mov eax, dword [ebp + eax*4 - 0x118]
cmp dword [ebp + 8], eax
je 0x40d075
add dword [timeVal.tv_usec], 1
mov eax, dword [ebp - 0x11c]
cmp dword [timeVal.tv_usec], eax
jb 0x40d057
mov eax, dword [ebp - 0x11c]
cmp dword [timeVal.tv_usec], eax
jne 0x40d0a7
mov eax, dword [ebp - 0x11c]
cmp eax, 0x3f
ja 0x40d0a7
mov eax, dword [timeVal.tv_usec]
mov edx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x118], edx
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp + 0xc]
mov edx, 0x10624dd3
mov eax, ecx
imul edx
mov eax, edx
sar eax, 6
sar ecx, 0x1f
mov edx, ecx
sub eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, 0x10624dd3
mov eax, ecx
imul edx
mov eax, edx
sar eax, 6
mov edx, ecx
sar edx, 0x1f
sub eax, edx
imul edx, eax, 0x3e8
mov eax, ecx
sub eax, edx
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], 0
js 0x40d0f8
lea eax, [ebp - 0x18]
jmp 0x40d0fd
mov eax, 0
mov edx, dword [ebp + 8]
add edx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WS2_32.dll_select]
call eax
sub esp, 0x14
mov dword [timeVal.tv_sec], eax
cmp dword [timeVal.tv_sec], 0
jle 0x40d15a
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.___WSAFDIsSet_8
sub esp, 8
test eax, eax
je 0x40d15a
mov eax, 1
jmp 0x40d15f
mov eax, 0
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x14], 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_sendto]
call eax
sub esp, 0x18
leave
ret

Function at 0x40d1cc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
leave
ret
Function at 0x40d1fa
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov dword [ebp - 0x11c], 0
mov dword [toval.tv_usec], 0
jmp 0x40d229
mov eax, dword [toval.tv_usec]
mov eax, dword [ebp + eax*4 - 0x118]
cmp dword [ebp + 8], eax
je 0x40d234
add dword [toval.tv_usec], 1
mov eax, dword [ebp - 0x11c]
cmp dword [toval.tv_usec], eax
jb 0x40d216
mov eax, dword [ebp - 0x11c]
cmp dword [toval.tv_usec], eax
jne 0x40d266
mov eax, dword [ebp - 0x11c]
cmp eax, 0x3f
ja 0x40d266
mov eax, dword [toval.tv_usec]
mov edx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x118], edx
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp + 0x14]
mov edx, 0x10624dd3
mov eax, ecx
imul edx
mov eax, edx
sar eax, 6
sar ecx, 0x1f
mov edx, ecx
sub eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x14]
mov edx, 0x10624dd3
mov eax, ecx
imul edx
mov eax, edx
sar eax, 6
mov edx, ecx
sar edx, 0x1f
sub eax, edx
imul edx, eax, 0x3e8
mov eax, ecx
sub eax, edx
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
add eax, 1
mov edx, eax
lea eax, [ebp - 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WS2_32.dll_select]
call eax
sub esp, 0x14
test eax, eax
jle 0x40d330
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.___WSAFDIsSet_8
sub esp, 8
test eax, eax
je 0x40d330
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [toval.tv_sec], eax
mov eax, dword [toval.tv_sec]
jmp 0x40d335
mov eax, 0xffffffff
leave
ret

Function at 0x40d35f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x20]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recvfrom]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
js 0x40d3b1
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
je 0x40d3b6
mov eax, dword [ebp - 0xc]
jmp 0x40d3d5
lea edx, [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x40d9a9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.lseek64
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._read
leave
ret

Function at 0x40f1b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
call dbg.oldfidex
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40f1f5
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dbg.seterror
jmp 0x40f27f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x40f240
mov eax, dword [0x52a774]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40f274
mov eax, dword [0x52a774]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40f274
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dbg.seterror
jmp 0x40f27f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
cmp eax, 0xffffffff
je 0x40f274
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
and eax, 0x40
test eax, eax
je 0x40f274
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
call dbg.rootpath
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._remove
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.freefid
leave
ret
Function at 0x41e890
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x41e8f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x52adf4]
test esi, esi
jle 0x41ea10
mov eax, dword [0x52adf8]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x41e924
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x41e9a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x41e910
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x41ea37
mov eax, dword [0x52adf8]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x52adf8]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x41ea17
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x41e9a0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x41e9b0
add dword [0x52adf4], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x52adf8]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x41e9a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x41e92e
mov eax, dword [0x52adf8]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x41ef50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x52ae10
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x52ae08]
sub esp, 4
test ebx, ebx
je 0x41efa5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x41ef9e
test esi, esi
je 0x41ef9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x41ef80
mov dword [esp], 0x52ae10
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x41f2e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x41f305
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x41f310
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x41f305
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x41f358
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x41f34e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x41f35a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x41f340
xor eax, eax
pop ebx
pop esi
ret

Function at 0x4247c0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x52ae6c], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x52ae70], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x424830
mov dword [esp + 4], 0x4246d0
mov dword [esp], eax
mov dword [0x52ae68], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x4ca0b1
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42481a
Function at 0x424840
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edx, dword [0x4d5cec]
mov eax, dword [esp + 0x40]
test edx, edx
jne 0x424868
mov eax, dword [eax + 8]
test eax, eax
je 0x4248c8
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [eax + 8]
test edi, edi
je 0x4248e0
mov ebx, dword [0x52ae68]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
test ebx, ebx
je 0x424960
mov edx, dword [ebx]
cmp edx, edi
jb 0x4249b0
sub edi, 1
mov eax, dword [ebx + edi*4 + 4]
test eax, eax
jne 0x42485c
mov eax, dword [esp + 0x40]
call fcn.00424720
mov dword [ebx + edi*4 + 4], eax
jmp 0x42485c
mov eax, dword [esp + 0x40]
call fcn.00424720
mov ecx, dword [esp + 0x40]
mov dword [ecx + 8], eax
jmp 0x42485c
mov ebp, dword [0x4d5cec]
test ebp, ebp
je 0x424a26
mov edi, dword [0x4d5d00]
test edi, edi
je 0x424a50
lock add dword [0x52ae6c], 1
jne 0x424a88
mov eax, dword [esp + 0x40]
mov edi, dword [eax + 8]
test edi, edi
je 0x424a35
mov eax, dword [0x4d5cec]
test eax, eax
je 0x42486f
lock sub dword [0x52ae6c], 1
js 0x42486f
mov eax, dword [0x52ae70]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
sub esp, 0xc
jmp 0x42486f
lea eax, [edi + 0x21]
mov dword [esp + 4], 4
lea edx, [edi + 0x20]
mov dword [esp], eax
mov dword [esp + 0x18], edx
call sym._calloc
mov ebx, eax
test eax, eax
je 0x4ca0b6
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov eax, dword [0x52ae68]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4248ab
call ebp
jmp 0x4248ab
lea ecx, [edx + edx]
lea eax, [edi + 0x20]
mov dword [esp], ebx
cmp ecx, edi
mov dword [esp + 0x1c], edx
cmovb ecx, eax
lea eax, [ecx*4 + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
call sym._realloc
mov ebx, eax
test eax, eax
je 0x4ca0b6
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
sub ecx, edx
lea eax, [eax + edx*4 + 4]
shl ecx, 2
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [esp], eax
call sym._memset
jmp 0x42498a
call fcn.004247c0
mov dword [0x4d5d00], 1
mov edx, dword [0x4d5cec]
test edx, edx
jne 0x4248fc
mov eax, dword [esp + 0x40]
mov edi, dword [eax + 8]
test edi, edi
jne 0x42486f
mov eax, dword [0x52ae64]
lea edi, [eax + 1]
mov dword [0x52ae64], edi
mov eax, dword [esp + 0x40]
mov dword [eax + 8], edi
jmp 0x424919
lock add dword [0x4d5d04], 1
je 0x424a09
mov esi, dword [0x4d5d00]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x424a18
lea esi, [esi]
mov dword [esp], 0
call ebx
mov ecx, dword [0x4d5d00]
sub esp, 4
test ecx, ecx
je 0x424a70
jmp 0x424a18
mov eax, dword [0x52ae70]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x42490a
lock sub dword [0x52ae6c], 1
jmp 0x42490a
Function at 0x424df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebx, dword [esp + 0x150]
call sym.__errno
mov dword [eax], 0
test ebx, ebx
je 0x424f70
cmp byte [ebx], 0
je 0x424f38
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x424f80
test al, 0x10
je 0x424f38
lea esi, [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sym.__fullpath
mov dword [esp], esi
call sym._strlen
mov dword [esp + 0x1c], eax
mov ebx, eax
lea eax, [eax + 0x233]
mov dword [esp], eax
call sym._malloc
mov edx, eax
test eax, eax
je 0x424f8f
lea ebp, [eax + 0x22c]
lea eax, [ebx + 1]
cmp eax, 4
jb 0x424f10
mov ecx, dword [esp + eax + 0x28]
mov edi, ebp
mov dword [ebp + eax - 4], ecx
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
cmp byte [edx + 0x22c], 0
je 0x424eba
movzx ecx, byte [edx + ebx + 0x22b]
cmp cl, 0x5c
je 0x424eba
cmp cl, 0x2f
jne 0x424f58
mov eax, dword [esp + 0x1c]
mov ecx, 0x2a
lea ebx, [edx + 0x120]
mov edi, ebx
mov word [ebp + eax], cx
xor eax, eax
mov ecx, 0x41
mov dword [edx + 0x224], 0xffffffff
mov dword [edx + 0x228], 0
mov dword [edx + 0x118], 0
mov dword [edx + 0x11c], 0
rep stosd dword es:[edi], eax
add esp, 0x13c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x424e9b
movzx ecx, byte [esp + 0x2c]
mov byte [ebp], cl
test al, 2
je 0x424e9b
movzx ecx, word [esp + eax + 0x2a]
mov word [ebp + eax - 2], cx
jmp 0x424e9b
call sym.__errno
xor edx, edx
mov dword [eax], 0x14
add esp, 0x13c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x5c
mov dword [esp + 0x1c], eax
mov word [ebp + ebx], si
jmp 0x424eba
call sym.__errno
xor edx, edx
mov dword [eax], 0xe
jmp 0x424f45
call sym.__errno
xor edx, edx
mov dword [eax], 2
jmp 0x424f45
call sym.__errno
xor edx, edx
mov dword [eax], 0xc
jmp 0x424f45
Function at 0x431ec0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], str.msvcrt.dll
mov esi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 4
mov dword [esp + 4], str.rand_s
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
je 0x431f08
mov dword [esp + 0x20], esi
mov dword [dbg.init_rand_s], eax
add esp, 0x14
pop ebx
pop esi
jmp eax
mov dword [esp], str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
sub esp, 4
mov dword [esp + 4], str.SystemFunction036
mov dword [esp], eax
call ebx
mov dword [0x52b924], eax
sub esp, 8
mov eax, dbg.mingw_rand_s
jmp 0x431ef3

Function at 0x4351d0
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
mov ebx, ecx
sub esp, 0x14
mov eax, dword [ecx + 0x20]
mov esi, dword [esp + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._fread
mov edx, 0xffffffff
test eax, eax
jle 0x435208
movzx edx, byte [esi + eax - 1]
mov dword [ebx + 0x24], edx
add esp, 0x14
pop ebx
pop esi
ret 8

Function at 0x435220
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [ecx + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._fwrite
add esp, 0x1c
ret 8

Function at 0x435d80
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x4d78d8], 0
jne 0x435ea6
mov byte [0x4d78d8], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x435e74
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym.___cxa_demangle
mov dword [esp], 2
mov esi, dword [dbg.__acrt_iob_func]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sym._fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x435e64
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4db70d
call sym._fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4c7f3c
jmp 0x4c7f34
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._fputs
jmp 0x435e2a
mov dword [esp], 2
call dword [0x4d5d8c]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sym._fwrite
jmp 0x4c7f2f
mov dword [esp], 2
call dword [0x4d5d8c]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sym._fwrite
call sym._abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4448c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x3c], ecx
lea ebp, [esp + 0x44]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x78]
lea eax, [edx + 0x6c]
mov dword [esp], eax
call method.std::__timepunct_char__const_std::use_facet_std.__timepunct_char____std::locale_const_
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp], esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call fcn.00446310
mov ecx, ebp
sub esp, 0x24
mov esi, eax
mov ebx, edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call method.std::__time_get_state._M_finalize_state_tm_
sub esp, 4
cmp ebx, 0xffffffff
sete dl
test esi, esi
setne al
and al, dl
jne 0x4449d8
cmp dword [esp + 0x38], 0xffffffff
sete al
test edi, edi
je 0x444992
test al, al
jne 0x4449b0
cmp dl, al
jne 0x4449a0
mov eax, dword [esp + 0x84]
or dword [eax], 2
add esp, 0x5c
mov eax, esi
mov edx, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov ecx, dword [edi + 0xc]
xor eax, eax
cmp dword [edi + 8], ecx
jb 0x444992
mov eax, dword [edi]
mov byte [esp + 0x38], dl
mov ecx, edi
call dword [eax + 0x24]
movzx edx, byte [esp + 0x38]
cmp eax, 0xffffffff
sete al
jmp 0x444992
mov ebp, eax
xor edx, edx
mov eax, dword [esi + 0xc]
cmp dword [esi + 8], eax
jb 0x444982
mov eax, dword [esi]
mov byte [esp + 0x3c], dl
mov ecx, esi
call dword [eax + 0x24]
movzx edx, byte [esp + 0x3c]
cmp eax, 0xffffffff
mov eax, 0
cmove edx, ebp
cmove esi, eax
jmp 0x444982