joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404dc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404dd9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404e14
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404e10
lea ebx, [ebx]
cmp esi, eax
jae 0x404e14
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404e00
cmp esi, eax
jb 0x404e1a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x405770
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44759b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x45fce8]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push esi
push edi
mov eax, dword [0x45fce8]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov esi, dword [esp + 0x150]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov edi, dword [esp + 0x154]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x148], ebx
call edx
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0042fe1b
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x38]
add esp, 4
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
push edx
push eax
mov byte [esp + 0x3c], bl
mov dword [esp + 0x28], ecx
call fcn.0041d671
mov ecx, dword [edi + 0x34]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x148], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405864
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0042fc1f
add esp, 0x13c
ret 8
Function at 0x4066e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 0xc]
push eax
mov esi, ecx
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMUConfig
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x406737
mov edx, dword [esi + 0x43fb4]
mov ecx, dword [esp + 8]
push 4
lea eax, [esp + 8]
push eax
push 4
push 0
push str.WindowMode
mov dword [esp + 0x18], edx
push ecx
jmp 0x4067a5
cmp eax, 2
jne 0x4067ab
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 8]
push eax
push 0
push 0
push str.WindowMode
push ecx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406786
mov edx, dword [esp + 4]
push edx
lea ecx, [esi + 0x43f5c]
call fcn.0040c5b0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x10
ret
mov eax, dword [esi + 0x43fb4]
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push str.WindowMode
mov dword [esp + 0x18], eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x10
ret

Function at 0x406af0
Capabilities:
Connect to http server
Create http request

Disassembly:
push esi
push 0
push 0
push 0
push 0
push str.PATCH_FTP_DOWNLOAD
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 0x3f928], eax
jne 0x406b2d
push 0x86
mov ecx, 0x46d410
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
call fcn.00405e20
add esp, 4
xor eax, eax
pop esi
ret
push 0
push 0x8000000
push 1
lea ecx, [esi + 0x3fa9c]
push ecx
movzx ecx, word [esi + 0x3fa68]
lea edx, [esi + 0x3fa6a]
push edx
push ecx
lea edx, [esi + 0x3f968]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0x3f960], eax
jne 0x406b8e
push 0x87
mov ecx, 0x46d410
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
call fcn.00405e20
mov eax, dword [esi + 0x3f928]
add esp, 4
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop esi
ret
mov dword [esi + 0x3faf0], 0
mov eax, 1
pop esi
ret
Function at 0x406f60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x128
mov eax, dword [0x45fce8]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
push edi
push 0x117
lea eax, [esp + 0x19]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x20], 0
call fcn.00431410
add esp, 0xc
lea esi, [edi + 0x43a84]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x14]
mov eax, esi
sub edx, esi
jmp 0x406fb0
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x406fb0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406fc1
sub eax, edx
cmp byte [eax + edi + 0x43a83], 0x5c
lea eax, [esp + 0x14]
jne 0x407011
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x406fe0
mov ecx, dword [str.config.ini]
mov edx, dword [0x44c228]
mov dword [eax], ecx
mov cx, word [0x44c22c]
mov dword [eax + 4], edx
mov dl, byte [0x44c22e]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
jmp 0x407038
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407014
mov ecx, dword [0x44c218]
mov edx, dword [0x44c21c]
mov dword [eax], ecx
mov ecx, dword [0x44c220]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
movzx edx, byte [edi + 0x3fafa]
movzx eax, byte [edi + 0x3faf9]
movzx ecx, byte [edi + 0x3faf8]
push edx
push eax
push ecx
lea edx, [esp + 0x14]
push str._d._02d._02d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp dword [0x4610ec], 1
jne 0x4070be
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push ecx
push str.TestVersion
push str.LOGIN
call esi
cmp dword [0x4610e8], 0
jne 0x4070e1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc]
push eax
push str.Version
push str.LOGIN
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0042fc1f
add esp, 0x128
ret
cmp dword [0x4610e8], 0
jne 0x4070e1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc]
push edx
push str.Version
push str.LOGIN
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
xor ecx, esp
call fcn.0042fc1f
add esp, 0x128
ret
Function at 0x4077f0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x330
mov eax, dword [0x45fce8]
xor eax, esp
mov dword [esp + 0x32c], eax
push esi
push 0x44c214
push str.patch.log
call fcn.0042f845
mov esi, eax
add esp, 8
test esi, esi
jne 0x407833
pop esi
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.0042fc1f
add esp, 0x330
ret
push ebx
push ebp
push edi
lea eax, [esp + 0x134]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
call fcn.0043224d
add esp, 4
test eax, eax
jne 0x4078f6
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
lea esp, [esp]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x17]
push edx
push str._c__s_n
push esi
call fcn.00432230
add esp, 0x10
cmp byte [esp + 0x13], 0x46
jne 0x4078bc
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x240]
push str._sTemp_s
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x238]
push eax
call ebp
test eax, eax
je 0x407927
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call ebx
test eax, eax
je 0x4078e5
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
call fcn.0043224d
add esp, 4
test eax, eax
je 0x407870
push esi
call fcn.0042f705
push str.patch.log
call fcn.004320c9
add esp, 8
mov ecx, dword [esp + 0x33c]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
mov eax, 1
call fcn.0042fc1f
add esp, 0x330
ret
push esi
call fcn.0042f705
add esp, 4
jmp 0x407909
Function at 0x407a90
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x12c
mov eax, dword [0x45fce8]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push edi
push 0x117
lea eax, [esp + 0x1d]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x24], 0
call fcn.00431410
add esp, 0xc
lea esi, [edi + 0x43a84]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x18]
mov eax, esi
sub edx, esi
jmp 0x407ae0
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x407ae0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407af1
sub eax, edx
cmp byte [eax + edi + 0x43a83], 0x5c
lea eax, [esp + 0x18]
jne 0x407b41
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407b10
mov ecx, dword [str.config.ini]
mov edx, dword [0x44c228]
mov dword [eax], ecx
mov cx, word [0x44c22c]
mov dword [eax + 4], edx
mov dl, byte [0x44c22e]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
jmp 0x407b68
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407b44
mov ecx, dword [0x44c218]
mov edx, dword [0x44c21c]
mov dword [eax], ecx
mov ecx, dword [0x44c220]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x18]
push edx
push 0xa
lea eax, [esp + 0x14]
push eax
push str.0.0.0
push str.Version
push str.LOGIN
call esi
lea ecx, [esp + 0xc]
push 0x44c078
push ecx
call fcn.00431526
add esp, 8
test eax, eax
jne 0x407ba7
mov byte [esp + 0xa], al
jmp 0x407bb4
push eax
call fcn.0043149b
add esp, 4
mov byte [esp + 0xa], al
push 0x44c078
push 0
call fcn.00431526
add esp, 8
test eax, eax
jne 0x407bcd
mov byte [esp + 8], al
jmp 0x407bda
push eax
call fcn.0043149b
add esp, 4
mov byte [esp + 8], al
push 0x44c078
push 0
call fcn.00431526
add esp, 8
test eax, eax
jne 0x407bf3
mov byte [esp + 9], al
jmp 0x407c00
push eax
call fcn.0043149b
add esp, 4
mov byte [esp + 9], al
lea edx, [esp + 0x18]
push edx
push 0xa
lea eax, [esp + 0x14]
push eax
push str.0.0.0
push str.TestVersion
push str.LOGIN
call esi
lea ecx, [esp + 0xc]
push 0x44c078
push ecx
call fcn.00431526
add esp, 8
test eax, eax
pop edi
pop esi
jne 0x407c3b
mov byte [esp + 3], al
jmp 0x407c48
push eax
call fcn.0043149b
add esp, 4
mov byte [esp + 3], al
push ebx
push 0x44c078
push 0
call fcn.00431526
add esp, 8
test eax, eax
jne 0x407c60
xor bl, bl
jmp 0x407c6b
push eax
call fcn.0043149b
add esp, 4
mov bl, al
push 0x44c078
push 0
call fcn.00431526
add esp, 8
test eax, eax
jne 0x407c82
xor al, al
jmp 0x407c8b
push eax
call fcn.0043149b
add esp, 4
mov dl, byte [esp + 7]
cmp byte [esp + 6], dl
jne 0x407cbc
cmp byte [esp + 4], bl
jne 0x407cbc
cmp byte [esp + 5], al
jne 0x407cbc
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0042fc1f
add esp, 0x12c
ret
mov ecx, dword [esp + 0x12c]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0042fc1f
add esp, 0x12c
ret
Function at 0x407ce0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x128
mov eax, dword [0x45fce8]
xor eax, esp
mov dword [esp + 0x124], eax
push 0
lea eax, [esp + 0x24]
push str..Temp._c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
xor eax, eax
add esp, 0xc
lea edx, [esp]
lea ecx, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
mov dword [esp + 4], eax
mov dword [esp + 8], 3
mov dword [esp + 0xc], ecx
mov word [esp + 0x14], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push str..Temp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0042fc1f
add esp, 0x128
ret
Function at 0x408150
Capabilities:
Create process on windows
Encode data using xor

Disassembly:
sub esp, 0x224
mov eax, dword [0x45fce8]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
xor ebx, ebx
push 0xff
lea eax, [esp + 0x2d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x34], bl
call fcn.00431410
add esp, 0xc
cmp dword [0x4610ec], 1
jne 0x408293
mov ecx, esi
call fcn.00407a90
test eax, eax
je 0x4081e4
mov al, 0x65
mov byte [esp + 0xd], al
mov byte [esp + 0xf], al
mov byte [esp + 8], 0x6d
mov byte [esp + 9], 0x61
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0x2e
mov byte [esp + 0xe], 0x78
mov byte [esp + 0x10], bl
xor eax, eax
jmp 0x4081d0
mov cl, byte [esp + eax + 8]
mov byte [esp + eax + 0x28], cl
add eax, 1
cmp cl, bl
jne 0x4081d0
jmp 0x4082d0
mov al, 0x73
mov cl, 0x34
mov byte [esp + 0x1e], al
mov byte [esp + 0x21], al
mov byte [esp + 8], 0xb6
mov byte [esp + 9], 0x48
mov byte [esp + 0xa], 0x15
mov byte [esp + 0xb], 0xc4
mov byte [esp + 0xc], 0xec
mov byte [esp + 0xd], 0x62
mov byte [esp + 0xe], bl
mov byte [esp + 0xf], 0x99
mov byte [esp + 0x10], 0x7d
mov byte [esp + 0x11], 0x16
mov byte [esp + 0x12], 0xf3
mov byte [esp + 0x13], 0x8f
mov byte [esp + 0x14], cl
mov byte [esp + 0x18], 0xdb
mov byte [esp + 0x19], 0x29
mov byte [esp + 0x1a], 0x7c
mov byte [esp + 0x1b], 0xaa
mov byte [esp + 0x1c], 0x98
mov byte [esp + 0x1d], 7
mov byte [esp + 0x1f], 0xed
mov byte [esp + 0x20], 0x53
mov byte [esp + 0x22], 0x8b
mov byte [esp + 0x23], 0xea
mov byte [esp + 0x24], cl
xor eax, eax
jmp 0x408270
mov cl, byte [esp + eax + 0x18]
xor byte [esp + eax + 8], cl
add eax, 1
cmp eax, 0xd
jb 0x408270
xor eax, eax
mov cl, byte [esp + eax + 8]
mov byte [esp + eax + 0x28], cl
add eax, 1
cmp cl, bl
jne 0x408282
jmp 0x4082d0
mov al, 0x65
mov byte [esp + 0xd], al
mov byte [esp + 0xf], al
mov byte [esp + 8], 0x6d
mov byte [esp + 9], 0x61
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0x2e
mov byte [esp + 0xe], 0x78
mov byte [esp + 0x10], bl
xor eax, eax
mov cl, byte [esp + eax + 8]
mov byte [esp + eax + 0x28], cl
add eax, 1
cmp cl, bl
jne 0x4082c1
push 0x4610d0
lea edx, [esp + 0x12c]
push str.connect__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, 0x461398
call fcn.0040b880
mov ecx, esi
call fcn.00406ba0
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 5
push ebx
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x34]
push ecx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0xb
ja case.0x40832b.303
movzx edx, byte [eax + 0x408394]
jmp dword [edx*4 + 0x408384]
push ebx
push 0x10
push 0x83
jmp 0x40834e
push ebx
push 0x10
push 0x84
jmp 0x40834e
push ebx
push 0x10
push 0x85
mov ecx, 0x46d410
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
call fcn.0041fd6a
mov eax, dword [esi + 0x20]
push ebx
push ebx
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x228]
pop esi
pop ebx
xor ecx, esp
call fcn.0042fc1f
add esp, 0x224
ret
Function at 0x40b690
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jle 0x40b6c1
push esi
mov esi, dword [esp + 0xc]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx + edx*2]
mov edx, ecx
sub edx, eax
mov al, byte [edx + 0x45d3d0]
xor byte [ecx + esi], al
add ecx, 1
cmp ecx, edi
jl 0x40b6a0
pop esi
pop edi
ret

Function at 0x40b710
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x45fce8]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
lea eax, [esp + 4]
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40b749
push 0
push str.Error
push 0x8d
jmp 0x40b795
mov ax, word [esp + 4]
cmp al, 2
jne 0x40b783
cmp ah, al
jne 0x40b783
movzx ecx, word [esp + 0x18a]
mov dword [esi + 8], 0
mov dword [esi + 4], ecx
mov eax, 1
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0042fc1f
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
push str.Error
push 0x8e
mov ecx, 0x46d410
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0042fc1f
add esp, 0x194
ret

Function at 0x40b7d0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x84
mov eax, dword [0x45fce8]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
push 0
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x40b84f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x8f
mov ecx, 0x46d410
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push str.Error
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0042fc1f
add esp, 0x84
ret 4
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x84]
mov dword [esi], edx
pop esi
xor ecx, esp
mov eax, 1
call fcn.0042fc1f
add esp, 0x84
ret 4
Function at 0x40b8a0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x45fce8]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
push edi
mov edi, dword [esp + 0x20]
jne 0x40b8f0
push eax
push str.Error
push 0x90
mov ecx, 0x46d410
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0042fc1f
add esp, 0x14
ret 0xc
cmp dword [esi + 8], 0xffffffff
jne 0x40b8fc
push eax
call fcn.0040b7d0
mov eax, dword [esp + 0x24]
push eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [esp + 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b95e
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40b946
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0042fc1f
add esp, 0x14
ret 0xc
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00430de0
add esp, 0xc
mov edx, dword [esp + 0x28]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push 0x10
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x40b996
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0042fc1f
add esp, 0x14
ret 0xc
mov ecx, dword [esi + 8]
push 0x10
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40b9b9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40b977
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0042fc1f
add esp, 0x14
ret 0xc
Function at 0x40bae0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push edi
xor edi, edi
cmp eax, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x40baff
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
push ebp
mov ebp, dword [esp + 0x14]
push 0
push ebx
push ebp
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40bb46
test eax, eax
je 0x40bbaa
mov ecx, dword [esp + 0x18]
sub ecx, eax
add edi, eax
test ecx, ecx
mov dword [esp + 0x18], ecx
jle 0x40bbaa
mov edx, dword [esi + 8]
push 0
mov eax, ebx
sub eax, edi
push eax
lea ecx, [edi + ebp]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40bb14
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x40bb77
push ebx
call edi
push eax
push str.send__
push esi
call fcn.0040ba00
add esp, 0x10
mov ecx, esi
call fcn.0040b880
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov eax, dword [esi + 0x100c]
lea ecx, [eax + ebx]
cmp ecx, 0x1000
jg 0x40bb67
mov edi, dword [esp + 0x18]
push edi
lea edx, [eax + esi + 0xc]
push ebp
push edx
call fcn.00430de0
add dword [esi + 0x100c], edi
add esp, 0xc
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret 8

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

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x100c], edi
jle 0x40bc05
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esi + 0x100c]
mov edx, dword [esi + 8]
push 0
sub eax, edi
push eax
lea ecx, [esi + edi + 0xc]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x40bc0e
test eax, eax
jle 0x40bc2e
sub dword [esi + 0x100c], eax
add edi, eax
cmp dword [esi + 0x100c], 0
jg 0x40bbd5
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x40bc05
call edi
push eax
push str.FD_WRITE_send__
push esi
call fcn.0040ba00
add esp, 0xc
mov ecx, esi
call fcn.0040b880
pop edi
pop esi
xor eax, eax
pop ebx
ret