joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4376b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x498558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebp
push esi
mov esi, dword [esp + 0x4c]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
xor ebp, ebp
mov dword [esi], ebp
mov dword [esi + 4], ebp
cmp dword [0x4b03ac], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
je 0x437896
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebp
push 0x20000
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], ebp
call fcn.0047be00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
mov byte [edx], 0x2f
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
add ecx, 0xffffffff
push ecx
add edx, 1
push edx
push esi
call fcn.00437220
add esp, 0x10
test eax, eax
je 0x437865
mov eax, dword [esp + 0x10]
add eax, 1
push eax
call fcn.004373e0
add esp, 4
test eax, eax
je 0x437865
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
add edx, 1
push ebp
push edx
call fcn.00448480
add esp, 0xc
test eax, eax
je 0x437865
test byte [esp + 0x1c], 0x10
jne 0x437865
mov eax, dword [esp + 0x10]
add eax, 1
push ebp
push eax
call fcn.004484d0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x437865
mov eax, dword [esp + 0x14]
mov ecx, eax
or ecx, dword [esp + 0x18]
je 0x4377d6
push ebp
lea edx, [esp + 0x1c]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4377d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4377d6
push str.451_Transfer_aborted:_rest_error._r_n
push esi
call fcn.00436e90
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x437873
push esi
call fcn.00436fe0
add esp, 4
test eax, eax
je 0x43785c
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea eax, [esp + 0x58]
push eax
push ecx
push edx
push edi
call ebx
test eax, eax
je 0x437836
mov eax, dword [esp + 0x54]
cmp eax, ebp
je 0x437844
mov ecx, dword [esi + 0x39]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
call fcn.0044a5c0
add esp, 0xc
test eax, eax
je 0x43783d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebp
lea edx, [esp + 0x58]
push edx
push eax
push ecx
push edi
call ebx
test eax, eax
jne 0x437801
push str.451_Transfer_aborted:_read_error._r_n
jmp 0x437849
push str.426_Connection_closed__transfer_aborted._r_n
jmp 0x437849
push str.226_Transfer_complete._r_n
push esi
call fcn.00436e90
add esp, 8
push esi
call fcn.00437200
add esp, 4
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x437873
push str.550_File_not_found._r_n
push esi
call fcn.00436e90
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x48], 0xffffffff
call fcn.0047ca90
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
push str.550_File_not_found._r_n
push esi
call fcn.00436e90
mov ecx, dword [esp + 0x44]
add esp, 8
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x439310
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1a4
push edi
call fcn.004385d0
cmp dword [0x4b0384], 0
mov edi, 1
jne 0x439361
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x43935b
push str.WSAStartup_failed_n
push edi
call fcn.00437ae0
add esp, 8
call fcn.004385d0
xor eax, eax
pop edi
add esp, 0x1a4
ret
mov dword [0x4b0384], edi
push esi
call fcn.00449880
mov esi, eax
test esi, esi
je 0x439383
push esi
call fcn.00452290
push esi
mov dword [0x4b0388], eax
call fcn.004455d0
add esp, 8
jmp 0x439395
push 0x49998a
call fcn.00452290
add esp, 4
mov dword [0x4b0388], eax
mov edx, dword [0x4b1580]
mov ecx, dword [0x4b1484]
push edx
mov dword [0x4b03a0], ecx
call fcn.00452290
mov dword [0x4b038c], eax
mov eax, dword [0x4b115c]
push eax
call fcn.00452290
mov ecx, dword [0x4b14fc]
push ecx
mov dword [0x4b0390], eax
call fcn.00452290
mov edx, dword [0x4b1560]
add esp, 0xc
push 6
push edi
push 2
mov dword [0x4b03a4], eax
mov dword [0x4b03a8], edx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x4ad018], eax
jne 0x439401
push str.socket_failed_n
jmp 0x43949b
movzx eax, word [0x4b1484]
push eax
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [0x4ad018]
push 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x439480
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2740
jne 0x43945f
push 0x30
push str.Failed_to_start_ETP_server
push str.ETP_Port_in_use.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call esi
push eax
push str.bind_failed__d_n
push edi
call fcn.00437ae0
add esp, 0xc
call fcn.004385d0
pop esi
xor eax, eax
pop edi
add esp, 0x1a4
ret
mov eax, dword [0x4ad018]
push bind
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4394b4
push str.listen_failed_n
push edi
call fcn.00437ae0
add esp, 8
call fcn.004385d0
pop esi
xor eax, eax
pop edi
add esp, 0x1a4
ret
mov edx, dword [0x4ad018]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0xc]
push ecx
push 8
push 0xffff
push edx
mov dword [esp + 0x1c], edi
call esi
mov ecx, dword [0x4ad018]
push 4
lea eax, [esp + 0xc]
push eax
push edi
push 0xffff
push ecx
mov dword [esp + 0x1c], edi
call esi
movsx edx, byte [0x4b1525]
mov dword [0x4b0398], edi
mov dword [0x4b03ac], edx
call fcn.00436f60
cmp dword [0x4b039c], 0
jne 0x43951b
call fcn.00430790
mov dword [0x4b039c], edi
push str.ETP_server_online._n
push 0
call fcn.00437ae0
add esp, 8
pop esi
mov eax, edi
pop edi
add esp, 0x1a4
ret
Function at 0x439540
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
cmp dword [0x4b0398], 0
je 0x4395ee
mov eax, dword [0x4b1484]
cmp eax, dword [0x4b03a0]
jne 0x4395c3
mov ecx, dword [0x4b038c]
mov edx, dword [0x4b1580]
push ecx
push edx
call fcn.00402f60
add esp, 8
test eax, eax
jne 0x4395c3
mov eax, dword [0x4b0390]
mov ecx, dword [0x4b115c]
push eax
push ecx
call fcn.00402f60
add esp, 8
test eax, eax
jne 0x4395c3
mov edx, dword [0x4b03a4]
mov eax, dword [0x4b14fc]
push edx
push eax
call fcn.00402f60
add esp, 8
test eax, eax
jne 0x4395c3
mov ecx, dword [0x4b1560]
cmp ecx, dword [0x4b03a8]
jne 0x4395c3
movsx edx, byte [0x4b1525]
cmp edx, dword [0x4b03ac]
je 0x4395ee
mov eax, dword [0x4b177c]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + 4]
push 0x24
push ecx
push edx
push eax
call fcn.00448d30
add esp, 0x10
cmp eax, 6
jne 0x4395ee
call fcn.004385d0
jmp fcn.00439310
ret
Function at 0x43a550
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4981e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov edi, dword [esp + 0x78]
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 2
call fcn.0047cbb0
mov esi, dword [esp + 0x7c]
cmp esi, ebx
je 0x43a5ae
push esi
lea ecx, [esp + 0x18]
call fcn.0047cbb0
mov eax, dword [esp + 0x80]
push eax
lea ecx, [esp + 0x10]
call fcn.0047cbb0
push 0x3c
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.0048a4d0
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
neg esi
sbb esi, esi
and esi, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x43a681
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ShellExecuteExW__:_GetLastError__:__d:_failed_to_execute__s_n
push str.mu::ShellExecuteExUTF8
push 0x33a
push str.d:deveverything_srcmu.h
call fcn.00434250
add esp, 0x18
lea ecx, [esp + 0xc]
mov byte [esp + 0x68], 1
call fcn.0047ca90
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], bl
call fcn.0047ca90
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], 0xffffffff
call fcn.0047ca90
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x68], 1
call fcn.0047ca90
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], bl
call fcn.0047ca90
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], 0xffffffff
call fcn.0047ca90
mov ecx, dword [esp + 0x60]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret
Function at 0x43a6d0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x1000
call fcn.0048aa80
mov eax, dword [esp + 0x1004]
push ebx
mov ebx, dword [esp + 0x1010]
push ebp
mov ebp, dword [esp + 0x1010]
push esi
push edi
push ebx
push ebp
push eax
push str._s__d_:__s__:_Fatal_error:
lea ecx, [esp + 0x20]
push 0x1000
push ecx
call fcn.00452ec0
lea edx, [esp + 0x1038]
push edx
mov ecx, 0x1000
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x30]
push edx
call fcn.004528d0
add esp, 0x24
cmp byte [esp + 0x10], 0
lea eax, [esp + 0x10]
je 0x43a73a
add eax, 1
cmp byte [eax], 0
jne 0x43a732
lea ecx, [esp + 0x10]
sub eax, ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x43a7a1
push esi
mov edx, 0x1000
push str._nLast_Windows_Error__u:
sub edx, edi
push edx
lea eax, [esp + edi + 0x1c]
push eax
call fcn.00452ec0
add esp, 0x10
cmp byte [esp + 0x10], 0
lea eax, [esp + 0x10]
je 0x43a77c
add eax, 1
cmp byte [eax], 0
jne 0x43a774
push 0
lea ecx, [esp + 0x14]
sub eax, ecx
mov edx, 0x1000
sub edx, eax
push edx
lea eax, [esp + eax + 0x18]
push eax
push 0
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x1014]
lea ecx, [esp + 0x1020]
push ecx
push ebx
push ebp
push edx
call fcn.004341c0
push 0x49a6b4
push str.everything_fatal2
push 0x3b
push str.._srceverything.cpp
call fcn.00434250
push 0x1010
push str.Everything_fatal_error
lea eax, [esp + 0x38]
push eax
push 0
call fcn.00448d30
add esp, 0x30
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x43a800
Capabilities:
Accept command line arguments

Disassembly:
mov ecx, dword [0x4b03c0]
sub esp, 0x18
test ecx, ecx
push ebp
push esi
je 0x43a846
mov eax, ecx
cmp byte [eax], 0
je 0x43a81e
add eax, 1
cmp byte [eax], 0
jne 0x43a816
push 0
sub eax, ecx
push 1
push eax
push ecx
call fcn.0047c980
add esp, 0x10
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
push esi
mov ebp, eax
call fcn.004455d0
add esp, 4
jmp 0x43a855
push 0
push str.EVERYTHING_TASKBAR_NOTIFICATION
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebp, eax
test ebp, ebp
je 0x43a91a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp word [eax], 0
mov ecx, eax
je 0x43a879
jmp 0x43a870
add ecx, 2
cmp word [ecx], 0
jne 0x43a870
push edi
lea edx, [esp + 0xc]
push edx
sub ecx, eax
push 0
sar ecx, 1
push ecx
push eax
call fcn.0047bb60
add esp, 0x10
mov edi, eax
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00448da0
mov edx, dword [esp + 0x10]
add edx, 5
push edx
call fcn.00445590
mov esi, eax
mov eax, dword [esp + 0x30]
mov dword [esi], eax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esi + 4]
push edi
push edx
call fcn.00489b40
mov eax, dword [esp + 0x20]
add esp, 0x14
lea edx, [esp + 0x14]
push edx
push 0xbb8
mov byte [esi + eax + 4], 0
mov ecx, dword [esp + 0x14]
push 2
lea eax, [esp + 0x24]
push eax
push 0
push 0x4a
add ecx, 5
push ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push esi
call fcn.004455d0
push edi
call fcn.004455d0
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x43c430
Capabilities:
Create thread

Disassembly:
push ecx
push 0x4b03ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4b040c], 0
jne 0x43c4d2
push esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4b040c], eax
jne 0x43c483
call esi
push eax
push str.Assertion_failed__d
push str.file_info_cache::start
push 0x22
push str.._src_file_info_cache.cpp
call fcn.0043a6d0
add esp, 0x14
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x43c230
push 0
push 0
mov dword [0x4b03e4], 0
call fcn.0048a41e
add esp, 0x18
test eax, eax
mov dword [0x4b03e8], eax
jne 0x43c4cc
call esi
push eax
push str.Assertion_failed__d
push str.file_info_cache::start
push 0x26
push str.._src_file_info_cache.cpp
call fcn.0043a6d0
add esp, 0x14
call fcn.0043bc10
pop esi
push 0x4b03ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ecx
ret
Function at 0x43f290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
mov ecx, dword [0x4b03b4]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
movzx eax, bp
push str.BINARY
push eax
xor ebx, ebx
push ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x43f3a7
mov edx, dword [0x4b03b4]
push edi
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jle 0x43f38f
mov eax, dword [0x4b03b4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
je 0x43f378
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x43f365
mov esi, dword [esp + 0x20]
mov eax, edi
cdq
push 1
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
push edx
push eax
push esi
call fcn.0043e690
movzx ecx, byte [esi + 7]
movzx edx, byte [esi + 6]
movzx eax, byte [esi + 5]
push ebp
push ecx
movzx ecx, byte [esi + 4]
push edx
push eax
push ecx
push str.__d._d._d._d__Sending_resource__d_n
push 0
call fcn.0043f050
mov edx, dword [esi]
push edi
push ebx
push edx
call fcn.0044a5c0
mov esi, dword [esp + 0x60]
add esp, 0x3c
test eax, eax
je 0x43f365
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push str.unable_to_loadresource_n
call fcn.00433c50
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
push edi
push str.bad_resource_size__d_n
call fcn.00433c50
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
push ebp
push str.resource__d_not_found_n
call fcn.00433c50
add esp, 8
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x43f3c0
Capabilities:
Create thread
Get file size

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push ebp
push str.sending_file__s_n
call fcn.00433c50
push 0
push ebp
call fcn.004484d0
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffff
je 0x43f4ae
push edi
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
push eax
push ecx
push esi
call fcn.0043e690
push 8
call fcn.00445590
mov edx, dword [esi]
mov edi, eax
mov dword [edi + 4], edx
mov dword [edi], ebx
movzx eax, byte [esi + 7]
movzx ecx, byte [esi + 6]
movzx edx, byte [esi + 5]
push ebp
push eax
movzx eax, byte [esi + 4]
push ecx
push edx
push eax
push str.__d._d._d._d__Sending_file__s_n
push 0
call fcn.0043f050
lea ecx, [esp + 0x40]
push ecx
push 0
push edi
push 0x43e3d0
push 0
push 0
mov dword [esi], 0xffffffff
call fcn.0048a41e
add esp, 0x4c
test eax, eax
pop edi
jne 0x43f49c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._beginthreadex__:__d:_Failed_to_start__send_db_file_thread._n
push str.http_server_send_file
push 0x5b1
push str.._srchttp_server.cpp
call fcn.00434250
add esp, 0x14
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
push str.not_found_n
call fcn.00433c50
add esp, 4
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x43fe30
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1a4
push edi
call fcn.0043fd20
cmp dword [0x4b0474], 0
mov edi, 1
jne 0x43fe81
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x43fe7b
push str.WSAStartup_failed._n
push edi
call fcn.0043f050
add esp, 8
call fcn.0043fd20
xor eax, eax
pop edi
add esp, 0x1a4
ret
mov dword [0x4b0474], edi
mov ecx, dword [0x4b15ac]
push ecx
call fcn.00452290
mov edx, dword [0x4b1538]
push edx
mov dword [0x4b0488], eax
call fcn.00452290
mov edx, dword [0x4b0488]
mov ecx, edx
add esp, 8
mov dword [0x4b048c], eax
cmp byte [ecx], 0
je 0x43feba
add ecx, edi
cmp byte [ecx], 0
jne 0x43feb3
sub ecx, edx
jne 0x43feda
mov ecx, eax
cmp byte [ecx], 0
je 0x43fecc
add ecx, edi
cmp byte [ecx], 0
jne 0x43fec5
sub ecx, eax
mov dword [0x4b0490], 0
je 0x43fee0
mov dword [0x4b0490], edi
push 6
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x4ad18c], eax
jne 0x43ff12
push str.socket_failed._n
push edi
call fcn.0043f050
add esp, 8
call fcn.0043fd20
xor eax, eax
pop edi
add esp, 0x1a4
ret
movzx eax, word [0x4b1578]
push eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [0x4ad18c]
push 0x10
lea ecx, [esp + 0xc]
push ecx
push edx
mov word [esp + 0x16], ax
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x43ff92
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2740
jne 0x43ff71
push 0x30
push str.Failed_to_start_HTTP_server
push str.HTTP_Port_in_use.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call esi
push eax
push str.bind_failed__d._n
push edi
call fcn.0043f050
add esp, 0xc
call fcn.0043fd20
pop esi
xor eax, eax
pop edi
add esp, 0x1a4
ret
mov eax, dword [0x4ad18c]
push bind
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x43ffb2
push str.listen_failed._n
jmp 0x43fefa
mov edx, dword [0x4ad18c]
push 4
lea ecx, [esp + 8]
push ecx
push edi
push 0xffff
push edx
mov dword [esp + 0x18], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
movsx ecx, byte [0x4b153c]
mov eax, dword [0x4b1578]
mov dword [0x4b047c], edi
mov dword [0x4b0484], eax
mov dword [0x4ad190], ecx
call fcn.0043cc90
cmp dword [0x4b0480], 0
jne 0x440006
call fcn.00430790
mov dword [0x4b0480], edi
push str.HTTP_server_online._n
push 0
call fcn.0043f050
add esp, 8
mov eax, edi
pop edi
add esp, 0x1a4
ret
Function at 0x440020
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
cmp dword [0x4b047c], 0
je 0x4400ad
mov eax, dword [0x4b1578]
cmp eax, dword [0x4b0484]
jne 0x44007c
movsx ecx, byte [0x4b153c]
cmp ecx, dword [0x4ad190]
jne 0x44007c
mov edx, dword [0x4b048c]
mov eax, dword [0x4b1538]
push edx
push eax
call fcn.00402f60
add esp, 8
test eax, eax
jne 0x44007c
mov ecx, dword [0x4b0488]
mov edx, dword [0x4b15ac]
push ecx
push edx
call fcn.00402f60
add esp, 8
test eax, eax
je 0x4400ad
mov eax, dword [0x4b177c]
mov ecx, dword [eax + 0x1b4]
mov edx, dword [eax + 0x1b0]
mov eax, dword [esp + 4]
push 0x24
push ecx
push edx
push eax
call fcn.00448d30
add esp, 0x10
cmp eax, 6
jne 0x4400ad
call fcn.0043fd20
jmp fcn.0043fe30
ret

Function at 0x440f10
Capabilities:
Create thread

Disassembly:
push ecx
push 0x4b04ac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4b04d8], 0
jne 0x440f65
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4b04d8], eax
lea eax, [esp]
push eax
push 0
push 0
push 0x440cf0
push 0
push 0
mov dword [0x4b04c4], 0
call fcn.0048a41e
add esp, 0x18
mov dword [0x4b04d4], eax
call fcn.00440a20
push 0x4b04ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ecx
ret
Function at 0x441500
Capabilities:
Get file system object information

Disassembly:
push ecx
cmp dword [0x4b1718], 0
je 0x441553
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push esi
push edi
lea eax, [esp + 8]
push eax
push 1
push ecx
push edx
call fcn.0047bc70
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push esi
push ecx
push edx
push 1
push 0
push eax
call fcn.00440f80
push esi
mov edi, eax
call fcn.004455d0
add esp, 0x30
mov eax, edi
pop edi
pop esi
pop ecx
ret
add esp, 4
jmp fcn.00440560
Function at 0x4451a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x40
push edi
mov edi, dword [esp + 0x4c]
test edi, edi
mov dword [esp + 8], 0
jle 0x445384
cmp dword [esp + 0x50], 0
jle 0x445384
push esi
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x24]
push eax
push 0
push esi
call fcn.00448480
add esp, 0xc
test eax, eax
je 0x445383
mov eax, edi
cdq
push ebx
mov ebx, dword [esp + 0x44]
cmp ebx, edx
push ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
jl 0x445381
jg 0x445207
cmp ebp, eax
jb 0x445381
push str..tmp
push esi
call fcn.00452f20
push 0x10000
mov dword [esp + 0x24], eax
call fcn.00445590
push 0
push esi
mov edi, eax
call fcn.004484d0
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x44536e
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0x40000000
push ecx
call fcn.00447e10
add esp, 0x14
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x445348
mov eax, dword [esp + 0x5c]
cdq
sub eax, dword [esp + 0x24]
sbb edx, dword [esp + 0x28]
add eax, ebp
adc edx, ebx
push edx
push eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x64]
push edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x64]
push eax
push ebx
push ebp
push str.size__I64d__max_size__d__delta_size__d__skip__I64d_n
call fcn.00433c50
mov edx, dword [esp + 0x40]
add esp, 0x1c
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x14]
push eax
push 1
push edi
push esi
call ebx
test eax, eax
je 0x4452e3
mov edi, edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4452e3
cmp eax, 1
jne 0x4452d2
cmp byte [edi], 0xa
je 0x4452e3
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
push edi
push esi
call ebx
test eax, eax
jne 0x4452c0
push 0
lea edx, [esp + 0x14]
push edx
push 0x10000
push edi
push esi
mov dword [esp + 0x28], 1
call ebx
test eax, eax
je 0x445335
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44533d
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
push edx
call ebp
test eax, eax
je 0x445335
push 0
lea eax, [esp + 0x14]
push eax
push 0x10000
push edi
push esi
call ebx
test eax, eax
jne 0x445305
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], 0
je 0x44536e
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
push 1
push 0
push 1
push edx
push eax
call fcn.00447ec0
add esp, 0x14
push edi
call fcn.004455d0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004455d0
add esp, 8
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x40
ret