joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418dd8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49e442
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
lea ebp, [esi + 8]
push edi
mov ecx, ebp
mov dword [esp + 0x10], esi
call fcn.004902d0
xor edi, edi
mov dword [ebp + 4], eax
mov dword [ebp + 8], edi
lea ebx, [esi + 0x14]
mov ecx, ebx
mov dword [esp + 0x1c], edi
call fcn.004902d0
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 1
call fcn.004281f0
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
lea ecx, [esi + 0x2c]
mov byte [esp + 0x1c], 2
call fcn.004281f0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 3
call fcn.004281f0
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 4
call fcn.004902d0
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edi
lea ecx, [esi + 0x88]
mov byte [esp + 0x1c], 5
call fcn.00418c60
mov eax, 0x3f800000
mov ecx, ebp
mov dword [esi], 1
mov dword [esi + 4], 2
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], 3
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x1ac], eax
mov dword [esi + 0x1b0], eax
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x6c], 0x44160000
mov dword [esi + 0x78], 0x44960000
mov dword [esi + 0x84], 0x44e10000
call fcn.00443d00
mov ecx, ebx
call fcn.00443d00
lea ecx, [esi + 0x20]
call fcn.00443d00
lea ecx, [esi + 0x2c]
call fcn.00443d00
lea ecx, [esi + 0x38]
call fcn.00443d00
lea ecx, [esi + 0x44]
call fcn.00443d00
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41cbf0
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x381c
call fcn.0047f090
mov eax, dword [0x4d2084]
xor eax, esp
push ebx
push esi
mov esi, dword [esp + 0x382c]
mov dword [esp + 0x3820], eax
mov eax, dword [esp + 0x3828]
push eax
xor ebx, ebx
lea ecx, [esp + 0x24]
push str.SELECT_Idx_MasterID_MasterName_PrenticeID_PrenticeName_UNIX_TIMESTAMP_FinishTime__CreditToAdd_FinishOnlineTime_FROM_T_MasterPrentice_WHERE_Idx_d
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2c], bl
call fcn.0047f034
add esp, 0xc
push 1
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
jne 0x41cc72
mov ecx, dword [0x52f0ec]
push str._CMasterPrenticeMgr::DB_RemoveMasterPrentice__Can_NOT_Push_to_DB__n
push ecx
call fcn.0048dda0
add esp, 8
xor al, al
jmp 0x41cd5e
mov edx, dword [esp + 8]
push edx
call sub.LIBMYSQL.dll_mysql_num_rows
cmp eax, 1
jne 0x41cc6b
push ebp
push edi
push ebx
lea ebp, [esi + 0xc]
push 0x4aa28a
mov ecx, ebp
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.004018c0
push ebx
lea ecx, [esi + 0x28]
push 0x4aa28a
call fcn.004018c0
mov eax, dword [esp + 0x10]
push eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
call sub.LIBMYSQL.dll_mysql_fetch_row
mov edi, eax
mov ecx, dword [edi]
push ecx
call fcn.0047f1bd
mov dword [esi], eax
mov edx, dword [edi + 4]
push edx
call fcn.0047f1bd
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
add esp, 8
cmp ecx, ebx
je 0x41ccfb
mov eax, ecx
lea edx, [eax + 1]
mov dword [esp + 0x14], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41cce7
sub eax, dword [esp + 0x14]
push eax
push ecx
mov ecx, ebp
call fcn.004018c0
mov eax, dword [edi + 0xc]
push eax
call fcn.0047f1bd
mov dword [esi + 8], eax
mov ebp, dword [edi + 0x10]
add esp, 4
cmp ebp, ebx
je 0x41cd29
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41cd16
sub eax, edx
push eax
push ebp
lea ecx, [esi + 0x28]
call fcn.004018c0
mov ecx, dword [edi + 0x14]
push ecx
call fcn.0047f1bd
mov dword [esi + 0x44], eax
mov edx, dword [edi + 0x18]
push edx
call fcn.0047f1bd
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x1c]
push eax
call fcn.0047f1bd
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov dword [esi + 0x48], eax
call sub.LIBMYSQL.dll_mysql_free_result
pop edi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x3820]
pop esi
pop ebx
xor ecx, esp
call fcn.0047ece2
add esp, 0x381c
ret 8
Function at 0x41cd80
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x381c
call fcn.0047f090
mov eax, dword [0x4d2084]
mov ecx, dword [esp + 0x3820]
xor eax, esp
push ebx
push esi
mov esi, dword [esp + 0x3830]
mov dword [esp + 0x3820], eax
mov eax, dword [esp + 0x382c]
push eax
push ecx
xor ebx, ebx
lea edx, [esp + 0x28]
push str.SELECT_Idx_MasterID_MasterName_PrenticeID_PrenticeName_UNIX_TIMESTAMP_FinishTime__CreditToAdd_FinishOnlineTime_FROM_T_MasterPrentice_WHERE_MasterID_d_AND_PrenticeID_d_LIMIT_1
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x30], bl
call fcn.0047f034
add esp, 0x10
push 1
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
jne 0x41ce0a
mov edx, dword [0x52f0ec]
push str._CMasterPrenticeMgr::DB_RemoveMasterPrentice__Can_NOT_Push_to_DB__n
push edx
call fcn.0048dda0
add esp, 8
xor al, al
jmp 0x41cef8
mov eax, dword [esp + 8]
push eax
call sub.LIBMYSQL.dll_mysql_num_rows
cmp eax, 1
jne 0x41ce03
push ebp
push edi
push ebx
lea ebp, [esi + 0xc]
push 0x4aa28a
mov ecx, ebp
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.004018c0
push ebx
lea ecx, [esi + 0x28]
push 0x4aa28a
call fcn.004018c0
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
call sub.LIBMYSQL.dll_mysql_fetch_row
mov edi, eax
mov edx, dword [edi]
push edx
call fcn.0047f1bd
mov dword [esi], eax
mov eax, dword [edi + 4]
push eax
call fcn.0047f1bd
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
add esp, 8
cmp ecx, ebx
je 0x41ce94
mov eax, ecx
lea edx, [eax + 1]
mov dword [esp + 0x14], edx
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41ce80
sub eax, dword [esp + 0x14]
push eax
push ecx
mov ecx, ebp
call fcn.004018c0
mov eax, dword [edi + 0xc]
push eax
call fcn.0047f1bd
mov dword [esi + 8], eax
mov ebp, dword [edi + 0x10]
add esp, 4
cmp ebp, ebx
je 0x41cec3
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41ceb0
sub eax, edx
push eax
push ebp
lea ecx, [esi + 0x28]
call fcn.004018c0
mov ecx, dword [edi + 0x14]
push ecx
call fcn.0047f1bd
mov dword [esi + 0x44], eax
mov edx, dword [edi + 0x18]
push edx
call fcn.0047f1bd
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x1c]
push eax
call fcn.0047f1bd
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov dword [esi + 0x48], eax
call sub.LIBMYSQL.dll_mysql_free_result
pop edi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x3820]
pop esi
pop ebx
xor ecx, esp
call fcn.0047ece2
add esp, 0x381c
ret 0xc
Function at 0x42bc70
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x3818
call fcn.0047f090
mov eax, dword [0x4d2084]
xor eax, esp
push ebx
push esi
push edi
mov edi, dword [esp + 0x3828]
push edi
mov ecx, 0x4d8ac8
mov dword [esp + 0x3824], eax
call fcn.0042b870
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x42bcc2
mov edi, dword [esi + 0x25c]
push ebx
call fcn.0047f0fc
sub eax, dword [esi + 0x2b4]
add esp, 4
cmp eax, ebx
jle 0x42bd32
add edi, eax
jmp 0x42bd32
push edi
lea eax, [esp + 0x24]
push str.SELECT__OnlineTime__FROM__user__WHERE__ID____d
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2c], bl
call fcn.0047f034
add esp, 0xc
push 1
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
je 0x42bd0d
mov eax, dword [esp + 0xc]
push eax
call sub.LIBMYSQL.dll_mysql_num_rows
test eax, eax
jne 0x42bd11
xor eax, eax
jmp 0x42bd3a
mov ecx, dword [esp + 0xc]
push ecx
call sub.LIBMYSQL.dll_mysql_fetch_row
mov edx, dword [eax]
push edx
call fcn.0047f135
mov edi, eax
mov eax, dword [esp + 0x10]
add esp, 4
push eax
call sub.LIBMYSQL.dll_mysql_free_result
cmp edi, ebx
jge 0x42bd38
xor edi, edi
mov eax, edi
mov ecx, dword [esp + 0x3820]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047ece2
add esp, 0x3818
ret 4
Function at 0x42c010
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49f41d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], eax
push ebx
lea edx, [edi + 0x10]
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004017d0
mov eax, dword [edi + 0x2c]
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov dword [esi + 0x2c], eax
push ebx
lea edx, [edi + 0x30]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov dword [esp + 0x28], ebx
mov byte [ecx + 4], bl
call fcn.004017d0
mov eax, dword [edi + 0x4c]
lea ecx, [edi + 0x50]
push ecx
lea ecx, [esi + 0x50]
mov byte [esp + 0x20], 1
mov dword [esi + 0x4c], eax
call fcn.0042af60
mov dl, byte [edi + 0xd4]
push 0xffffffffffffffff
lea ecx, [esi + 0xd8]
mov byte [esi + 0xd4], dl
push ebx
lea eax, [edi + 0xd8]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x28], 2
mov byte [ecx + 4], bl
call fcn.004017d0
push 0xffffffffffffffff
lea ecx, [esi + 0xf4]
push ebx
lea edx, [edi + 0xf4]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x28], 3
mov byte [ecx + 4], bl
call fcn.004017d0
lea ecx, [esi + 0x110]
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x110]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
mov byte [esp + 0x24], 4
mov byte [ecx + 4], bl
push eax
call fcn.004017d0
mov ecx, dword [edi + 0x12c]
mov dword [esi + 0x12c], ecx
mov dl, byte [edi + 0x130]
mov ecx, dword [esp + 0x14]
pop edi
mov byte [esi + 0x130], dl
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x42ed70
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, ecx
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
xor edx, edx
mov dx, word [ebx + 0x14]
push ebp
push esi
mov word [ebx], 2
push edx
call sub.WS2_32.dll_htons
mov word [ebx + 2], ax
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x42edb5
cmp dword [ebx + 0x30], 0x10
jb 0x42eda9
mov eax, dword [ebx + 0x1c]
jmp 0x42edac
lea eax, [ebx + 0x1c]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
lea ebp, [ebx + 4]
jne 0x42ee00
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x42eddf
cmp dword [ebx + 0x30], 0x10
jb 0x42edd2
mov eax, dword [ebx + 0x1c]
jmp 0x42edd5
lea eax, [ebx + 0x1c]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x42ede5
pop esi
pop ebp
xor al, al
pop ebx
ret
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov esi, dword [eax]
mov edx, ecx
push edi
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp]
push eax
call sub.WS2_32.dll_inet_ntoa
mov ecx, eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x42ee10
sub ecx, esi
push ecx
push eax
lea ecx, [ebx + 0x34]
call fcn.004018c0
pop esi
pop ebp
mov dword [ebx + 0x10], 0x10
mov al, 1
pop ebx
ret
Function at 0x430ed0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x49f77b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ecx
push edi
mov dword [esp + 8], esi
mov byte [esi + 0xc], cl
mov dword [esi + 0x68], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
xor edx, edx
lea eax, [esi + 0x48]
mov edi, eax
mov dword [edi], edx
mov dword [edi + 4], edx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
xor eax, eax
lea edx, [esi + 0x58]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [esp + 0x14], ecx
mov word [esi + 2], cx
mov ecx, esi
call fcn.0042ee30
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x431ea0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49f8f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edi
mov dword [esp + 0xc], esi
mov byte [esi + 4], bl
lea edi, [esi + 0x24]
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.004902d0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x30]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.004283c0
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov byte [eax + 0x11], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x431eb7
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49f8f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edi
mov dword [esp + 0xc], esi
mov byte [esi + 4], bl
lea edi, [esi + 0x24]
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.004902d0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x30]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.004283c0
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov byte [eax + 0x11], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x431f20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49f913
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov eax, dword [edi + 0x34]
mov ecx, dword [eax]
lea esi, [edi + 0x30]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x28], 1
call fcn.00430460
mov ecx, dword [esi + 4]
push ecx
call fcn.0047e60d
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea esi, [edi + 0x24]
add esp, 4
mov ecx, esi
call fcn.00443d00
mov edx, dword [esi + 4]
push edx
call fcn.0047e60d
mov dword [esi + 4], ebx
mov eax, dword [edi + 0x18]
add esp, 4
cmp eax, 0x10
jb 0x431fa0
mov eax, dword [edi + 4]
push eax
call fcn.0047e60d
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4359b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49fcf5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x4afa60
xor ebx, ebx
mov dword [esi + 0x24], 0xf
mov dword [esi + 0x20], ebx
push edi
mov dword [esp + 0xc], esi
mov byte [esi + 0x10], bl
mov dword [esp + 0x18], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
lea edi, [esi + 0x48]
mov ecx, edi
mov byte [esp + 0x18], 2
call fcn.004281d0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea ecx, [esi + 0x5c]
mov byte [esp + 0x18], 3
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
call fcn.00437da0
lea ecx, [esi + 0x110]
mov byte [esp + 0x18], 4
call fcn.00436b40
lea ecx, [esi + 0x13c]
mov byte [esp + 0x18], 5
call fcn.00436b40
mov ecx, dword [esp + 0x10]
mov byte [esi + 0x168], bl
mov dword [esi + 0x178], ebx
mov dword [esi + 0x17c], ebx
mov dword [esi + 0x174], ebx
mov dword [esi + 4], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x436540
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
push edi
jne 0x436560
push 0x1b
push str..gw_thread_win32.cpp
push str.m_handle___0
call fcn.0048df80
add esp, 0xc
cmp dword [esi + 0xc], 1
je 0x436571
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 4], eax
jne 0x436585
push 0x1c
push str..gw_thread_win32.cpp
push str.m_state___STOP___IsThread__
call fcn.0048df80
add esp, 0xc
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 8]
test eax, eax
je 0x4365bf
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x14]
pop edi
mov dword [esi + 0xc], 1
mov dword [esi + 8], 0
pop esi
pop ebx
ret 4

Function at 0x4372b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4d2084]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [0x4f6dc0]
test eax, eax
push ebx
push esi
mov esi, ecx
jne 0x4372e0
call sub.WINMM.dll_timeGetTime
mov dword [0x4f6dc0], eax
mov dword [0x4f6dd4], eax
mov ebx, dword [esp + 0x1a4]
xor ecx, ecx
mov ch, bl
lea eax, [esp + 8]
push eax
mov cl, byte [esp + 0x1a4]
push ecx
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x437313
mov edx, dword [0x52f0ec]
add esi, 0x2c
push esi
push str._s:_WSAStartup_error_n
push edx
jmp 0x437356
mov ax, word [esp + 8]
movzx ecx, al
cmp ecx, ebx
jne 0x437346
movzx edx, ah
cmp edx, dword [esp + 0x1a0]
jne 0x437346
mov eax, dword [0x52f0f8]
add esi, 0x2c
push esi
push str._s:_WSAStartup_ok_n
push eax
call fcn.0048dda0
add esp, 0xc
mov al, 1
jmp 0x437365
mov ecx, dword [0x52f0ec]
add esi, 0x2c
push esi
push 0x4afda8
push ecx
call fcn.0048dda0
add esp, 0xc
call fcn.0048dc76
xor al, al
mov ecx, dword [esp + 0x198]
pop esi
pop ebx
xor ecx, esp
call fcn.0047ece2
add esp, 0x194
ret 8
Function at 0x437750
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ecx, ecx
lea edx, [esp + 4]
push edx
push ecx
push ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push ecx
inc eax
push eax
mov dword [esp + 0x20], 1
call sub.WS2_32.dll_select
test eax, eax
jle 0x4377a5
mov eax, dword [esi + 4]
lea edx, [esp + 0xc]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4377a5
mov al, 1
pop esi
add esp, 0x10c
ret
xor al, al
pop esi
add esp, 0x10c
ret

Function at 0x4377b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ecx, ecx
lea edx, [esp + 4]
push edx
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
push ecx
inc eax
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 1
call sub.WS2_32.dll_select
test eax, eax
jle 0x437805
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x437805
mov al, 1
pop esi
add esp, 0x10c
ret
xor al, al
pop esi
add esp, 0x10c
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.004377b0
test al, al
jne 0x4378a2
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0x10
push eax
mov eax, dword [esi + 4]
push 0
push ecx
push edx
push eax
call sub.WS2_32.dll_sendto
mov esi, eax
cmp esi, 0xffffffff
jne 0x4378d7
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4378d7
or eax, esi
pop esi
ret 0xc
mov eax, esi
pop esi
ret 0xc

Function at 0x4378e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
lea edx, [esp + 4]
push edx
mov esi, ecx
mov eax, dword [esi + 4]
xor ecx, ecx
lea edx, [esp + 0x10]
push edx
push ecx
mov dword [esp + 0x1c], eax
push ecx
inc eax
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 1
call sub.WS2_32.dll_select
test eax, eax
jle 0x437953
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x437953
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [0x52f0f8]
push eax
add esi, 0x2c
push esi
push str._s:_Socket_except_error___d_n
push edx
call fcn.0048dda0
add esp, 0x10
mov al, 1
pop esi
add esp, 0x10c
ret
xor al, al
pop esi
add esp, 0x10c
ret

Function at 0x437970
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
mov ecx, dword [esi + 4]
push 0x8004667e
push ecx
mov dword [esp + 0x10], 1
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x4379b2
mov edx, dword [0x52f0ec]
push eax
add esi, 0x2c
push esi
push str._s:_set_nonblocking_mode_failed_IOCTLSOCKET___d
push edx
call fcn.0048dda0
add esp, 0x10
xor al, al
pop esi
pop ecx
ret
mov al, 1
pop esi
pop ecx
ret
Function at 0x437ba0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
call fcn.004377b0
test al, al
jne 0x437bb2
xor eax, eax
pop esi
ret 8
mov eax, dword [esp + 8]
mov ecx, dword [esi + 4]
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
push eax
push ecx
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x437be0
call sub.WS2_32.dll_WSAGetLastError
sub eax, 0x2733
neg eax
pop edi
sbb eax, eax
pop esi
ret 8
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
add edx, edi
mov dword [esi + 0xc], edx
add ecx, edi
mov dword [esi + 0x14], ecx
mov edx, dword [0x4f6dc4]
mov ecx, dword [0x4f6dcc]
add edx, edi
add ecx, edi
pop edi
mov dword [0x4f6dc4], edx
mov dword [0x4f6dcc], ecx
pop esi
ret 8

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

Disassembly:
push esi
mov esi, ecx
call fcn.00437750
test al, al
jne 0x437c32
xor eax, eax
pop esi
ret 8
mov eax, dword [esp + 8]
mov ecx, dword [esi + 4]
push ebx
push edi
mov edi, dword [esp + 0x14]
push 0
push edi
push eax
push ecx
call sub.WS2_32.dll_recv
mov ebx, eax
test ebx, ebx
je 0x437c60
cmp ebx, 0xffffffff
jne 0x437c69
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x437c69
pop edi
pop ebx
or eax, 0xffffffff
pop esi
ret 8
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x18]
add eax, edi
mov dword [esi + 0x10], eax
add edx, edi
mov dword [esi + 0x18], edx
mov eax, dword [0x4f6dd0]
mov ecx, dword [0x4f6dc8]
add eax, edi
add ecx, edi
pop edi
mov dword [0x4f6dd0], eax
mov eax, ebx
pop ebx
mov dword [0x4f6dc8], ecx
pop esi
ret 8

Function at 0x437cd0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push eax
mov dword [esi + 4], eax
mov dword [esp + 0x14], 1
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x437d10
mov edx, dword [0x52f0ec]
push eax
add esi, 0x2c
push esi
push str._s:_set_nonblocking_mode_failed_IOCTLSOCKET___d
push edx
call fcn.0048dda0
add esp, 0x10
mov al, 1
pop esi
ret 4