joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b770
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
call fcn.0041d690
jmp 0x42d75f
push 0x60
push 0x446bd8
call fcn.00431de4
mov edi, 0x94
mov eax, edi
call fcn.0042d360
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4af780], ecx
mov eax, dword [esi + 4]
mov dword [0x4af78c], eax
mov edx, dword [esi + 8]
mov dword [0x4af790], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4af784], esi
cmp ecx, 2
je 0x42d7bf
or esi, 0x8000
mov dword [0x4af784], esi
shl eax, 8
add eax, edx
mov dword [0x4af788], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42d7fa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d7fa
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42d812
cmp eax, 0x20b
je 0x42d7ff
mov dword [ebp - 0x1c], esi
jmp 0x42d826
cmp dword [ecx + 0x84], 0xe
jbe 0x42d7fa
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42d820
cmp dword [ecx + 0x74], 0xe
jbe 0x42d7fa
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004321c2
pop ecx
test eax, eax
jne 0x42d83a
push 0x1c
call fcn.0042d73b
pop ecx
call fcn.00430989
test eax, eax
jne 0x42d84b
push 0x10
call fcn.0042d73b
pop ecx
call fcn.00433f3e
mov dword [ebp - 4], esi
call fcn.00433d40
test eax, eax
jge 0x42d864
push 0x1b
call fcn.0042d716
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4b0e64], eax
call fcn.00433c1e
mov dword [0x4af5c8], eax
call fcn.00433b7c
test eax, eax
jge 0x42d88a
push 8
call fcn.0042d716
pop ecx
call fcn.00433949
test eax, eax
jge 0x42d89b
push 9
call fcn.0042d716
pop ecx
push 1
call fcn.004333f5
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42d8b1
push eax
call fcn.0042d716
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004338ec
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42d8d2
movzx eax, word [ebp - 0x40]
jmp 0x42d8d5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040b840
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42d8f3
push edi
call fcn.00433522
call fcn.00433544
jmp 0x42d925
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00431e1f
ret

Function at 0x40bc50
Capabilities:
Read .ini file

Disassembly:
push esi
push str..MasterServer.ini
push 0
push str.GETRESTRICTINFO_FROMFILE
push str.FUNCTIONALRESTRICT
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [esi + 0x14c], eax
je 0x40bca0
lea eax, [esi + 0x194]
push 1
push eax
call fcn.004064a0
add esp, 8
push esi
lea ecx, [esi + 0x168]
call fcn.00404b10
push str.Reload_FuncRestrict_from_DB__Broadcast_GameServers
push 1
call fcn.00413a80
add esp, 8
mov eax, 1
pop esi
ret
Function at 0x40bcb0
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
push str..MasterServer.ini
push 0
push str.FORCED_DISCONNECT
mov esi, ecx
push str.LOGIC_VIOLATION_CONTROL
mov dword [esi + 0x158], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str.Reload_Logic_Violation_Control
push 1
mov edi, eax
call fcn.00413a80
add esp, 8
test edi, edi
je 0x40bcf1
or dword [esi + 0x158], 2
pop edi
mov eax, 1
pop esi
ret

Function at 0x4149b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push 0
push str.MAX_ACCEPT_SESSION
push ebx
call ebp
push edi
push 0
push str.MAX_CONNECT_SESSION
push ebx
mov dword [esi + 4], eax
call ebp
push edi
push 0
push str.SEND_BUFFER_SIZE
push ebx
mov dword [esi + 8], eax
call ebp
push edi
push 0
push str.RECV_BUFFER_SIZE
push ebx
mov dword [esi + 0xc], eax
call ebp
push edi
push 0
push str.MAX_PACKET_SIZE
push ebx
mov dword [esi + 0x10], eax
call ebp
push edi
push 0
push str.TIME_OUT
push ebx
mov dword [esi + 0x18], eax
call ebp
push edi
push 0
push str.NUMBER_OF_ACCEPT_THREADS
push ebx
mov dword [esi + 0x14], eax
call ebp
push edi
push 0
push str.NUMBER_OF_CONNECT_THREADS
push ebx
mov dword [esi + 0x20], eax
call ebp
push edi
push 0
push str.NUMBER_OF_IO_THREADS
push ebx
mov dword [esi + 0x24], eax
call ebp
mov edx, dword [esi + 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffe20000
add ecx, 0x200000
dec eax
neg eax
sbb eax, eax
and eax, 0xfffe4000
add eax, 0x20000
cmp edx, eax
pop ebp
ja 0x414a63
mov edx, eax
cmp edx, ecx
mov dword [esi + 0xc], edx
jb 0x414a6c
mov edx, ecx
mov dword [esi + 0xc], edx
mov edx, dword [esi + 0x10]
cmp edx, eax
jbe 0x414a78
mov eax, edx
cmp eax, ecx
mov dword [esi + 0x10], eax
jae 0x414a83
mov dword [esi + 0x10], eax
ret
mov dword [esi + 0x10], ecx
ret
Function at 0x415820
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4398aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi], 0x4429ec
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
push edi
lea edx, [esp + 0xf]
push edx
lea eax, [esp + 0x13]
lea ecx, [esi + 0xa0]
push eax
mov dword [esp + 0x18], esi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov word [esi + 0x4c], bx
mov word [esi + 0x5e], bx
call fcn.00415460
lea edx, [esp + 0xf]
push edx
lea eax, [esp + 0x13]
lea ecx, [esi + 0xc8]
push eax
mov dword [esp + 0x24], ebx
call fcn.00415460
lea ecx, [esi + 0xf0]
mov byte [esp + 0x1c], 1
call fcn.00419ce0
lea ecx, [esi + 0x140]
push ebx
mov byte [esp + 0x20], 2
mov dword [esi + 0xfc], ecx
call fcn.0042e0aa
push eax
call fcn.0042e07b
mov byte [esi + 0x3c], bl
mov byte [esi + 0x4e], bl
lea edi, [esi + 0x100]
add esp, 8
lea ebx, [edi + 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
lea ecx, [edi + 0x40]
push ecx
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
call fcn.0041da20
push edi
call fcn.0041dbb0
mov ecx, dword [esp + 0x18]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x415a10
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x44
mov eax, dword [0x44d998]
xor edx, edx
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], edx
mov dword [esp + 0x25], edx
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x29], edx
mov dword [esp + 9], eax
mov dword [esp + 0x2d], edx
push ebx
mov ebx, dword [esp + 0x4c]
test ebx, ebx
mov dword [esp + 0x11], eax
mov dword [esp + 0x35], edx
mov dword [esp + 0x15], eax
mov dword [esp + 0x39], edx
mov dword [esp + 4], ecx
mov byte [esp + 0xc], 0
mov dword [esp + 0x19], eax
mov byte [esp + 0x20], al
mov dword [esp + 0x3d], edx
jle 0x415b30
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push edi
lea esi, [ecx + 0x60]
dec ebx
push ebx
push str.CONNECTION__d
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.0042cbe6
add esp, 0x10
push esi
push 0x10
lea ecx, [esp + 0x34]
push ecx
push 0
push 0x442ac8
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0
push str.PORT
lea eax, [esp + 0x24]
push eax
call ebp
push esi
push 0
push str.TYPE
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x68], eax
call ebp
push esi
push 0
push str.MANUAL_CONNECT
lea edx, [esp + 0x24]
push edx
mov edi, eax
call ebp
cmp edi, 0xb
mov dword [esp + 0x14], eax
je 0x415b25
cmp edi, 7
je 0x415b25
cmp edi, 0xd
je 0x415b25
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x415afe
cmp edi, 6
je 0x415b25
jmp 0x415b03
cmp edi, 6
jne 0x415b25
mov eax, dword [esp + 0x58]
push eax
lea edx, [esp + 0x30]
push edx
push edi
call fcn.00415980
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x415b25
mov ecx, dword [esp + 0x10]
push eax
call fcn.00414b80
test ebx, ebx
jg 0x415a76
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x44]
pop ebx
call fcn.0042cc6e
add esp, 0x44
ret 4
Function at 0x418d90
Capabilities:
Set current directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x44d998]
push esi
mov dword [esp + 0x20c], eax
push 0x104
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 4]
push 0x5c
push ecx
call fcn.0042e1a0
lea edx, [esp + 0xc]
mov esi, eax
push 0x104
mov eax, edx
push eax
lea ecx, [esp + 0x118]
push ecx
sub esi, edx
call fcn.0042d3e0
add esp, 0x14
lea edx, [esp + 0x108]
push edx
mov byte [esp + esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0x108]
push eax
push str.Current_Work_Directory___s_n
call fcn.0042d9d6
mov ecx, dword [esp + 0x214]
add esp, 8
pop esi
call fcn.0042cc6e
add esp, 0x20c
ret

Function at 0x418e20
Capabilities:
Set current directory

Disassembly:
sub esp, 0x104
mov eax, dword [0x44d998]
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x100], eax
push 0xff
lea eax, [esp + 4]
push eax
push ecx
push 0
call fcn.00418cd0
mov al, byte [esp + 0x10]
add esp, 0x10
test al, al
mov byte [esp + 0xfe], 0
jne 0x418e7b
call fcn.00418d90
mov eax, 1
mov ecx, dword [esp + 0x100]
call fcn.0042cc6e
add esp, 0x104
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x100]
mov eax, 1
call fcn.0042cc6e
add esp, 0x104
ret

Function at 0x418ea0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x120
mov eax, dword [0x44d998]
mov ecx, dword [0x44381c]
mov dword [esp + 0x11c], eax
mov eax, dword [str.RELEASE]
mov dword [esp + 0xc], eax
mov eax, dword [str.UNKNOWN]
xor edx, edx
mov dword [esp], eax
mov eax, dword [esp + 0x128]
mov word [esp + 0x14], dx
mov dword [esp + 0x10], ecx
mov ecx, dword [0x443814]
mov byte [esp + 0x16], dl
dec eax
cmp eax, 3
mov word [esp + 8], dx
mov dword [esp + 4], ecx
mov byte [esp + 0xa], dl
ja case.default.0x418ef8
jmp dword [eax*4 + 0x419004]
push 0xa
push 0x44380c
jmp 0x418f2b
push 0xa
push str.INTRAOFFICE
lea ecx, [esp + 8]
push ecx
jmp 0x418f30
push 0xa
push str.LIVE
lea edx, [esp + 8]
push edx
jmp 0x418f30
push 0xa
push str.TESTLIVE
lea eax, [esp + 8]
push eax
call fcn.0042c682
add esp, 0xc
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x418f57
push 0xa
lea ecx, [esp + 0x10]
push str.DEBUG
push ecx
call fcn.0042c682
add esp, 0xc
mov eax, dword [esp + 0x124]
test eax, eax
mov byte [esp + 0x16], 0
mov byte [esp + 0xa], 0
jle 0x418f7a
cmp eax, 0x20
jge 0x418f7a
mov eax, dword [eax*4 + 0x44c500]
jmp 0x418f7f
mov eax, dword [str.UNKNOWN_SERVER]
movzx edx, word [esp + 0x148]
movzx ecx, word [esp + 0x144]
push edx
movzx edx, word [esp + 0x144]
push ecx
mov ecx, dword [esp + 0x144]
push edx
mov edx, dword [esp + 0x144]
push ecx
mov ecx, dword [esp + 0x144]
push edx
mov edx, dword [esp + 0x144]
push ecx
push edx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
push str._s__s__s__Ver:_u__u__u__Build:__u__World:_u_Channel:_u_ServerID:_u
lea eax, [esp + 0x44]
push pe_nt_image_headers32
push eax
call fcn.0042cbe6
add esp, 0x34
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x11c], 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, dword [esp + 0x11c]
call fcn.0042cc6e
add esp, 0x120
ret
Function at 0x419040
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x44d998]
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
push 0
mov dword [esp + 0x114], eax
lea eax, [esp + 0x10]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419099
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x104]
call fcn.0042cc6e
add esp, 0x108
ret
push esi
push edi
push ebx
push str.FAILED_LOGGING_IO_tHandle___u_:PTR__p_LENGTH__d__r_n
lea ecx, [esp + 0x20]
push pe_nt_image_headers32
push ecx
call fcn.0042cbe6
lea edx, [esp + 0x28]
push edx
call fcn.0042e1cd
mov ecx, dword [esp + 0x12c]
add esp, 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.0042cc6e
add esp, 0x108
ret
Function at 0x41b560
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x439bab
mov eax, dword fs:[0]
push eax
mov eax, 0x2968
mov dword fs:[0], esp
call fcn.0042d360
mov eax, dword [0x44d998]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2984]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x2970], eax
mov ebp, ecx
jne 0x41b5a4
xor al, al
jmp 0x41b738
cmp byte [esp + 0x2988], bl
push edi
jne 0x41b644
push ebx
push 0x80
push 3
push ebx
push 3
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [eax + 0xa]
cmp edi, 0xc00000
jbe 0x41b5fd
push 0xbd
push str.D:Build_China1204ProgramCommonTableData.cpp
push str.paddingFileSize___MaxScriptDataSize
call dword [0x44c638]
add esp, 0xc
xor al, al
jmp 0x41b737
mov ecx, dword [0x4a3d54]
push ebx
lea edx, [esp + 0x14]
push edx
push eax
mov eax, ecx
push eax
push esi
mov dword [ebp], ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
mov ecx, edi
mov edi, dword [ebp]
sub ecx, edx
add edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41b735
lea ecx, [esp + 0x14]
call fcn.00420870
mov eax, dword [esp + 0x2990]
push 5
push esi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x298c], ebx
call fcn.00420980
test eax, eax
setne al
cmp al, bl
jne 0x41b6b1
push esi
push str.File__s__Open_Error
push 1
call fcn.00413a80
push 0xd2
push str.D:Build_China1204ProgramCommonTableData.cpp
push str.__File_Open_Error_
call dword [0x44c638]
add esp, 0x18
lea ecx, [esp + 0x14]
mov dword [esp + 0x2980], 0xffffffff
call fcn.004208b0
xor al, al
jmp 0x41b737
mov ecx, dword [esp + 0x2820]
lea eax, [ecx + 0xa]
cmp eax, 0xc00000
mov edx, ecx
jbe 0x41b6de
push 0xda
push str.D:Build_China1204ProgramCommonTableData.cpp
push str.paddingFileSize___MaxScriptDataSize
call dword [0x44c638]
add esp, 0xc
jmp 0x41b696
mov esi, dword [0x4a3d54]
mov ebx, ecx
shr ecx, 2
mov dword [ebp], esi
mov esi, dword [esp + 0x2824]
mov edi, dword [ebp]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp]
mov ecx, eax
sub ecx, edx
add edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x14]
call fcn.00420950
lea ecx, [esp + 0x14]
mov dword [esp + 0x2980], 0xffffffff
call fcn.004208b0
mov al, 1
pop edi
mov ecx, dword [esp + 0x2974]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2968]
pop ebx
call fcn.0042cc6e
add esp, 0x2974
ret 0xc
Function at 0x41d8c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
push esi
mov esi, dword [0x4a7208]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x41d8d9
call fcn.0041d7f0
mov esi, eax
mov edi, dword [esp + 0x34]
cmp dword [edi], ebx
setne al
cmp al, bl
mov byte [esp + 0x34], al
je 0x41d8f8
cmp byte [esi], 2
je 0x41d8f8
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x24
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [esp + 0x38], bl
je 0x41d967
mov ebp, dword [edi]
cmp ebp, eax
ja 0x41d915
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
cmp ecx, edx
jbe 0x41d937
push 0xf9
push str.D:Build_China1204UtilitySolarDateTime.cpp
push str.send_info.time_stamp_client_1st___time_stamp_client_2nd__send_info.time_stamp_server_1st___send_info.time_stamp_server_2nd
call dword [0x44c638]
add esp, 0xc
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x24
ret
sub ecx, edx
sub ecx, ebp
add ecx, eax
test ecx, 0xfffffffe
jge 0x41d967
push 0x10a
push str.D:Build_China1204UtilitySolarDateTime.cpp
push str.simplex_network_delay_ticks___0
call dword [0x44c638]
add esp, 0xc
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x24
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
xor edx, edx
mov ecx, ebx
mov dword [esi + 0x14], ecx
movzx eax, word [edi + 0xc]
movzx ecx, word [edi + 0xe]
mov ebx, dword [edi + 0x1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
sub eax, 0x76c
mov dword [esp + 0x30], edx
movzx edx, word [edi + 0x12]
dec ecx
mov dword [esp + 0x24], eax
movzx eax, word [edi + 0x14]
mov dword [esp + 0x20], ecx
movzx ecx, word [edi + 0x16]
mov dword [esp + 0x1c], edx
movzx edx, word [edi + 0x18]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
add ecx, ebx
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
call fcn.0042ea07
mov ecx, eax
mov dword [esi + 0x20], ecx
add esp, 4
mov ecx, esi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov dword [esi + 0x24], edx
call fcn.0041da60
pop ebp
pop edi
mov byte [esi], 1
pop esi
mov al, 1
pop ebx
add esp, 0x24
ret
Function at 0x41e700
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x439beb
mov eax, dword fs:[0]
push eax
mov eax, 0x296c
mov dword fs:[0], esp
call fcn.0042d360
mov eax, dword [0x44d998]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x2970], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x41e73f
xor al, al
jmp 0x41e8a9
push esi
mov esi, dword [esp + 0x298c]
push edi
lea edi, [ebp + 0x1c]
xor eax, eax
cmp esi, ebx
mov ecx, 0x41
mov dword [esp + 0x14], edi
rep stosd dword es:[edi], eax
je 0x41e80d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41e765
sub eax, edx
mov dword [esp + 0x10], eax
je 0x41e80d
lea ecx, [esp + 0x18]
call fcn.00420870
mov eax, dword [esp + 0x298c]
push 4
push eax
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x2990], ebx
call fcn.00420980
cmp eax, ebx
je 0x41e7eb
mov eax, dword [esp + 0x2824]
mov dword [ebp + 0x18], eax
inc eax
push eax
call fcn.0042129d
mov ecx, dword [ebp + 0x18]
add esp, 4
inc ecx
mov edx, ecx
shr ecx, 2
mov edi, eax
mov dword [ebp + 0x10], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x18]
mov esi, dword [esp + 0x2828]
mov edi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
mov dword [ebp + 0x14], ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00420950
lea ecx, [esp + 0x18]
mov dword [esp + 0x2984], 0xffffffff
call fcn.004208b0
jmp 0x41e88b
mov ecx, dword [esp + 0x298c]
push ebx
push 0x80
push 3
push ebx
push 3
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41e880
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0x18], eax
inc eax
push eax
call fcn.0042129d
mov ecx, dword [ebp + 0x18]
add esp, 4
inc ecx
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp + 0x10], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push ebx
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push esi
mov dword [ebp + 0x14], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41e884
xor al, al
jmp 0x41e8a7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x298c]
mov ecx, dword [esp + 0x14]
push 0x104
push eax
push ecx
call fcn.0042d3e0
add esp, 0xc
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x2974]
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x296c]
pop ebx
call fcn.0042cc6e
add esp, 0x2978
ret 8
Function at 0x421070
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor ecx, ecx
mov cl, byte [edx]
or eax, 0xffffffff
test cl, cl
je 0x4210a2
push esi
mov esi, eax
and ecx, 0xff
shr esi, 0x18
xor ecx, esi
mov esi, dword [ecx*4 + 0x4454d0]
mov cl, byte [edx + 1]
shl eax, 8
xor eax, esi
inc edx
test cl, cl
jne 0x421080
pop esi
not eax
ret
Function at 0x426300
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x44d998]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp word [esp], 0x202
je 0x426348
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0042cc6e
add esp, 0x194
ret
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 1
call fcn.0042cc6e
add esp, 0x194
ret

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

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
lea eax, [esp + 8]
push eax
call fcn.00427aa0
test al, al
je 0x4271fe
xor ecx, ecx
lea eax, [esi + 0x24]
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov edx, dword [esp + 0x10]
test edx, edx
mov edx, dword [esi + 0x18]
push 0
setne cl
push eax
push 0
lea eax, [esp + 0x10]
push eax
mov dword [esi + 0x38], 1
mov dword [esp + 0x14], 0
inc ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4271fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x4271fe
xor al, al
pop esi
add esp, 0x14
ret
mov al, 1
pop esi
add esp, 0x14
ret

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

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0xc]
push eax
call fcn.00427f90
test al, al
jne 0x42767c
push str._PreRecv__RecvBuffer_Full_
push esi
call fcn.004272d0
add esp, 8
xor al, al
pop esi
add esp, 0x18
ret
mov eax, dword [esp + 0x14]
push ebx
push edi
xor edx, edx
xor ecx, ecx
cmp eax, edx
setne cl
xor edi, edi
lea eax, [esi + 0x40]
push edx
mov ebx, eax
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
push eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [ebx + 0xc], edi
lea edx, [esp + 0x14]
push edx
mov dword [ebx + 0x10], edi
lea eax, [esp + 0x1c]
push eax
inc ecx
mov dword [ebx + 0x14], edi
push ecx
mov dword [ebx + 0x18], edi
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esi + 0x54], 2
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
pop edi
pop ebx
jne 0x4276e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x427675
mov al, 1
pop esi
add esp, 0x18
ret

Function at 0x4283d0
Capabilities:
Suspend thread

Disassembly:
mov ecx, dword [ecx + 0x10]
jmp 0x429d10
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xc]
push esi
xor esi, esi
test eax, eax
jbe 0x429d3a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SuspendThread]
push edi
lea edi, [ebx + 0x10]
mov eax, dword [edi]
push eax
call ebp
mov eax, dword [ebx + 0xc]
inc esi
add edi, 4
cmp esi, eax
jb 0x429d28
pop edi
pop ebp
pop esi
pop ebx
ret