joyce8/EMBER2024-capa huggingface dataset:
Function at 0x704660
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x70484e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.005e6f44
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.006ac2c0
test al, al
jne 0x7046cd
xor eax, eax
push ebp
push 0x7046c3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.006ac7b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7046cd
push 0
mov eax, dword [ebp - 4]
call fcn.00409868
push eax
mov eax, dword [0x7a7f30]
call fcn.00409868
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x7046fc
mov eax, dword [0x78bcc8]
mov eax, dword [eax + 0x1c4]
call fcn.00703b9c
push 0x80
mov eax, dword [ebp - 4]
call fcn.00409868
push eax
call sub.kernel32.dll_SetFileAttributesW
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x790634]
push eax
push 0
mov ecx, 0x70485c
mov edx, 0x704860
xor eax, eax
call fcn.00413e64
mov dword [ebp - 8], eax
push 0x703d5c
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowLongW
mov dword [0x7a7f5c], eax
xor eax, eax
push ebp
push 0x704817
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x78bcb4]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.005e6910
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x70487c
call fcn.0042318c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
call fcn.005e67f0
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00409a7c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00703c44
mov dword [ebp - 0xc], eax
call fcn.00703d20
test al, al
jne 0x7047f7
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x7047d5
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x70481e
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DestroyWindow
ret
Function at 0x705c88
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x705f41
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x78bcb4]
mov eax, dword [eax]
mov edx, 0x705f5c
call fcn.005d8fa8
push 5
mov eax, dword [0x78bcb4]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x705f08
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00705bec
call fcn.006fcbdc
lea eax, [ebp - 0x10]
call fcn.005e6dbc
mov eax, dword [ebp - 0x10]
call fcn.00422cb4
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.005e6910
mov edx, dword [ebp - 0x14]
mov eax, 0x7a7f30
call fcn.00408b94
call fcn.00703f2c
lea ecx, [ebp - 0x18]
mov edx, 0x705f7c
mov eax, dword [0x7a7f30]
call fcn.005e59d0
mov edx, dword [ebp - 0x18]
mov eax, 0x7a7f34
call fcn.00408b94
lea ecx, [ebp - 0x1c]
mov edx, 0x705f94
mov eax, dword [0x7a7f30]
call fcn.005e59d0
mov edx, dword [ebp - 0x1c]
mov eax, 0x7a7f38
call fcn.00408b94
push 2
push 0
push 1
mov ecx, dword [0x7a7f30]
mov dl, 1
mov eax, dword [0x5ec58c]
call fcn.005ecee8
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x705de5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x24]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.005ecea8
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.005ece80
cmp dword [ebp - 0xc], 0x67734d49
je 0x705dc0
mov cl, 1
xor edx, edx
mov eax, dword [0x7a7f38]
call fcn.005ee5e4
jmp 0x705dcf
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x7a7f30]
call fcn.005ee5e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x705dec
mov eax, dword [ebp - 4]
call fcn.00406a20
ret
Function at 0x7060d8
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x706215
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
mov ecx, 0x706230
mov edx, ebx
call fcn.00409ad4
mov eax, dword [ebp - 0x25c]
call fcn.00409868
push eax
call sub.kernel32.dll_FindFirstFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x7061ef
xor eax, eax
push ebp
push 0x7061e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x70624c
lea eax, [ebp - 0x22c]
mov ecx, 5
call fcn.00422e34
test eax, eax
jne 0x7061b9
test byte [ebp - 0x258], 0x10
jne 0x7061b9
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00409924
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409ad4
mov esi, dword [ebp - 0x258]
test esi, 1
je 0x7061b1
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 4]
call fcn.00409868
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 4]
call fcn.00422524
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x706149
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7061ef
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x70621c
lea eax, [ebp - 0x260]
mov edx, 2
call fcn.00408814
lea eax, [ebp - 4]
call fcn.004087b4
ret
Function at 0x706258
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x706356
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.004087b4
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.005e5e68
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x706370
call fcn.0042318c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00409ad4
mov eax, dword [ebp - 8]
call fcn.00409868
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x7062f6
test esi, 0x10
jne 0x706326
test esi, 1
je 0x7062f6
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.00409868
push eax
call sub.kernel32.dll_SetFileAttributesW
push 1
mov eax, dword [ebp - 8]
call fcn.00409868
push eax
mov eax, dword [ebp - 0xc]
call fcn.00409868
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x706320
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00408b94
jmp 0x706333
inc edi
cmp edi, 0xa
je 0x706333
inc ebx
cmp ebx, 0x3e8
jne 0x706297
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x70635d
lea eax, [ebp - 0x14]
call fcn.004087b4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408814
ret
Function at 0x7092dc
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov dword [esp], eax
call sub.kernel32.dll_GetCurrentProcessId
mov edi, eax
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esp + 0xc], eax
mov edx, edi
mov eax, 4
call fcn.00708f24
mov esi, eax
cmp esi, 0xffffffff
setne byte [esp + 4]
cmp byte [esp + 4], 0
je 0x709392
mov dword [esp + 0x10], 0x1c
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00708f44
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x709388
cmp edi, dword [esp + 0x1c]
jne 0x709377
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0xc]
je 0x709377
mov eax, dword [esp + 0x18]
push eax
push 0
push 2
call dword [0x7a7fc0]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x709377
push ebp
call sub.kernel32.dll_SuspendThread
mov dword [esp + 8], eax
cmp dword [esp + 8], 0xffffffff
je 0x709371
mov edx, dword [esp + 0x18]
mov eax, dword [esp]
call fcn.0045d104
push ebp
call sub.kernel32.dll_CloseHandle
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00708f68
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x70932e
push esi
call sub.kernel32.dll_CloseHandle
movzx eax, byte [esp + 4]
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x709510
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff9c
mov dword [esp + 4], ecx
mov dword [esp], edx
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jne 0x70954f
mov eax, dword [esp + 4]
push eax
push 0x3000
mov eax, dword [esp + 8]
push eax
push 0
call dword [0x7a7fc8]
mov dword [esp + 8], eax
jmp 0x7096c9
lea eax, [esp + 0x40]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jb 0x7096c9
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
ja 0x7096c9
push 0x1c
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [0x7a7fd4]
test eax, eax
je 0x7096c9
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
cmp ebx, dword [esp + 0x14]
jae 0x709642
push 0x1c
lea eax, [esp + 0x28]
push eax
push ebx
call dword [0x7a7fd4]
test eax, eax
je 0x7096c9
cmp dword [esp + 0x34], 0x10000
jne 0x709634
cmp esi, dword [esp + 0x30]
ja 0x709634
mov eax, dword [esp + 0x30]
cmp eax, dword [esp]
jb 0x709634
mov edi, ebx
test edi, edi
jne 0x7095f4
mov dword [esp + 0x1c], esi
jmp 0x709603
mov ebp, esi
dec ebp
mov eax, ebp
add eax, edi
not ebp
and eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
push eax
push 0x3000
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [0x7a7fc8]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
jne 0x7096c9
add ebx, dword [esp + 0x30]
cmp ebx, dword [esp + 0x14]
jb 0x7095b9
mov ebx, dword [esp + 0xc]
cmp ebx, dword [esp + 0x18]
jbe 0x7096c9
push 0x1c
lea eax, [esp + 0x28]
push eax
push ebx
call dword [0x7a7fd4]
test eax, eax
je 0x7096c9
cmp dword [esp + 0x34], 0x10000
jne 0x7096bf
cmp esi, dword [esp + 0x30]
ja 0x7096bf
mov eax, dword [esp + 0x30]
cmp eax, dword [esp]
jb 0x7096bf
mov edi, ebx
test edi, edi
jne 0x709683
mov dword [esp + 0x20], esi
jmp 0x709692
mov ebp, esi
dec ebp
mov eax, ebp
add eax, edi
not ebp
and eax, ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
push eax
push 0x3000
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [0x7a7fc8]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
jne 0x7096c9
sub ebx, dword [esp + 0x30]
cmp ebx, dword [esp + 0x18]
ja 0x70964c
mov eax, dword [esp + 8]
add esp, 0x64
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x723c80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffff800
mov esi, edx
mov ebx, eax
push 0x400
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040893c
add esp, 0x800
pop esi
pop ebx
ret
Function at 0x4018ca
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x454
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x428]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._recv_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40191f
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Recv_failed._Error_Code:__d_n
call sym._printf
jmp 0x4019fe
cmp dword [ebp - 0xc], 0
jne 0x401936
mov dword [esp], str.Client_disconnected.
call sym._puts
jmp 0x4019fe
lea edx, [ebp - 0x428]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0
lea eax, [ebp - 0x428]
mov dword [esp + 4], eax
mov dword [esp], str.Received_message:__s_n
call sym._printf
lea eax, [ebp - 0xd]
mov ecx, eax
call fcn.0045a790
lea eax, [ebp - 0x28]
lea edx, [ebp - 0xd]
mov dword [esp + 4], edx
lea edx, [ebp - 0x428]
mov dword [esp], edx
mov ecx, eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x440]
lea edx, [ebp - 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.Execute_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea eax, [ebp - 0x28]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea eax, [ebp - 0xd]
mov ecx, eax
call sym.std::allocator_char_::allocator__
lea eax, [ebp - 0x440]
mov ecx, eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov dword [esp], eax
call sym._strlen
mov ebx, eax
lea eax, [ebp - 0x440]
mov ecx, eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
lea eax, [ebp - 0x440]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x4018d4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
jmp 0x401a4b
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401a50
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Start tcp server

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x5d4
call sym.___main
lea eax, [ebp - 0x1a0]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sym._WSAStartup_8
sub esp, 8
test eax, eax
setne al
test al, al
je 0x401aaa
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.WSAStartup_failed._Error_Code:__d_n
call sym._printf
mov eax, 1
jmp 0x401c05
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._socket_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
sete al
test al, al
je 0x401afb
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Socket_creation_failed._Error_Code:__d_n
call sym._printf
call sym._WSACleanup_0
mov eax, 1
jmp 0x401c05
mov word [ebp - 0x1b0], 2
mov dword [ebp - 0x1ac], 0
mov dword [esp], 0x2710
call sym._htons_4
sub esp, 4
mov word [ebp - 0x1ae], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x1b0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._bind_12
sub esp, 0xc
cmp eax, 0xffffffff
sete al
test al, al
je 0x401b80
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Bind_failed._Error_Code:__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
call sym._WSACleanup_0
mov eax, 1
jmp 0x401c05
mov dword [esp + 4], 3
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._listen_8
sub esp, 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._accept_12
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x401bec
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Accept_failed._Error_Code:__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
call sym._WSACleanup_0
mov eax, 1
jmp 0x401c05
mov dword [esp], str.Connection_accepted.
call sym._puts
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.HandleClient_unsigned_int_
jmp 0x401b96
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x40b7c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e804c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4e8044]
sub esp, 4
test ebx, ebx
je 0x40b80b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40b804
test esi, esi
je 0x40b804
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b7e0
mov dword [esp], 0x4e804c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b9f0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40ba40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40bb18
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40ba7e
cmp eax, 4
jne 0x40baa0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40ba8e
cmp edx, 4
je 0x40ba8e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b9f0

Function at 0x40c090
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40c0c0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x40c0e4
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41daf0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a3abc], 0
jne 0x41dbc4
mov byte [0x4a3abc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41dc5e
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41dbba
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a4261
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41dbf1
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41db8b
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41dbb5
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x41dc59
Function at 0x401100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x486c2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push 0x4b4128
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x4012b0
call fcn.00467914
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push 2
lea eax, [esp + 0xc]
push 0x44a
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x28]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.0046761b
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.004678a6
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x401118
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x486c2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push 0x4b4128
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x4012b0
call fcn.00467914
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push 2
lea eax, [esp + 0xc]
push 0x44a
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x28]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.0046761b
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.004678a6
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x4022e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x486d93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CMenu.0
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.00461e90
mov dword [ebx], method.CPtrArray.virtual_0
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.00461e90
or eax, 0xffffffff
push 0x4b4170
mov dword [ebx], method.CPtrArray.virtual_0
push edi
mov dword [esi], 0x48fa9c
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret