joyce8/EMBER2024-capa huggingface dataset:
Function at 0x881000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x881131
push esi
call fcn.00884145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00873080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x881131
push 0
push ebp
call fcn.008733a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00873260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x88108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.008732f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x881121
push 0x899918
push edi
call fcn.008823f0
push eax
push ebx
push esi
call fcn.00880f60
push 0x8998f8
push edi
call fcn.008823f0
push eax
push ebx
push esi
call fcn.00880f60
push 0x8998d8
push edi
call fcn.008823f0
push eax
push ebx
push esi
call fcn.00880f60
push 0x8998c0
push edi
call fcn.008823f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00880f60
push 0x8998a0
push edi
call fcn.008823f0
push eax
push ebx
push esi
call fcn.00880f60
push 0x899888
push edi
call fcn.008823f0
push eax
push ebx
push esi
call fcn.00880f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x8821b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00882140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00882140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00882140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00882140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x882bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x882c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x89487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x882c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x882c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401850
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMUConfig
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4018ba
mov edi, dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push 0x10
push 0xc9
mov ecx, 0x44c0d8
call edi
push eax
push 0xc8
mov ecx, 0x44c0d8
call edi
push eax
mov ecx, esi
call fcn.0042ca15
push 0
mov ecx, esi
call fcn.0042e578
pop edi
pop esi
add esp, 0xc
ret
push ebx
lea edx, [esp + 0x10]
push ebp
lea edi, [esi + 0x134]
push edx
push 0x40
mov ecx, edi
mov dword [esp + 0x1c], 0x40
call fcn.0042f0cb
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0x446124
push eax
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40191b
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
mov ecx, edi
lea edx, [eax + 1]
push edx
push eax
call fcn.0042f054
push eax
mov eax, dword [esp + 0x18]
push 1
push 0
push 0x446124
push eax
call ebp
mov ecx, esi
mov dword [esp + 0x14], 4
call fcn.00401e00
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edi, [esi + 0x138]
push ecx
push edi
push 0
push 0
push str.SoundOnOff
push edx
call ebx
test eax, eax
je 0x40195d
mov eax, dword [esp + 0x10]
push 4
push edi
push 4
push 0
push str.SoundOnOff
push eax
call ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edi, [esi + 0x13c]
push ecx
push edi
push 0
push 0
push str.MusicOnOff
push edx
call ebx
test eax, eax
je 0x401990
mov eax, dword [esp + 0x10]
push 4
push edi
push 4
push 0
push str.MusicOnOff
push eax
call ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edi, [esi + 0x150]
push ecx
push edi
push 0
push 0
push str.Resolution
push edx
call ebx
test eax, eax
je 0x4019c3
mov eax, dword [esp + 0x10]
push 4
push edi
push 4
push 0
push str.Resolution
push eax
call ebp
cmp dword [edi], 0
jne 0x4019ce
mov dword [edi], 1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
add esi, 0x154
push ecx
push esi
push 0
push 0
push str.ColorDepth
push edx
call ebx
test eax, eax
je 0x401a01
mov eax, dword [esp + 0x10]
push 4
push esi
push 4
push 0
push str.ColorDepth
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret
Function at 0x4041d0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4370cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push esi
mov esi, dword [esp + 0x134]
lea ecx, [esp + 4]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x12c], 0
call dword [edx + 0x4c]
lea eax, [esp + 8]
push eax
call fcn.0042a7f6
mov eax, dword [eax]
mov esi, dword [esp + 0x138]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 4]
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0xc]
mov byte [esp + 0x1c], 0
push edx
push eax
mov dword [esp + 0x18], ecx
call fcn.0042fe71
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
mov dword [esp + 0x12c], 0xffffffff
call fcn.0042edf5
mov ecx, dword [esp + 0x124]
pop esi
mov dword fs:[0], ecx
add esp, 0x12c
ret 8
Function at 0x405180
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push esi
mov esi, ecx
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMUConfig
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x4051d7
mov edx, dword [esi + 0x43e94]
mov ecx, dword [esp + 8]
lea eax, [esp + 4]
push 4
push eax
push 4
push 0
push str.WindowMode
mov dword [esp + 0x18], edx
push ecx
jmp 0x405245
cmp eax, 2
jne 0x40524b
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
lea eax, [esp + 4]
push edx
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 0x405226
mov edx, dword [esp + 4]
lea ecx, [esi + 0x43e54]
push edx
call fcn.0040aaa0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x10
ret
mov eax, dword [esi + 0x43e94]
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push 4
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
mov esi, ecx
push str.PATCH_FTP_DOWNLOAD
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 0x3f8e0], eax
jne 0x406b2d
push 0x86
mov ecx, 0x44c0d8
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
call fcn.00404c60
add esp, 4
xor eax, eax
pop esi
ret
push 0
push 0x8000000
lea ecx, [esi + 0x3fa54]
push 1
lea edx, [esi + 0x3fa22]
push ecx
mov cx, word [esi + 0x3fa20]
push edx
lea edx, [esi + 0x3f920]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0x3f918], eax
jne 0x406b8e
push 0x87
mov ecx, 0x44c0d8
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
call fcn.00404c60
mov eax, dword [esi + 0x3f8e0]
add esp, 4
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop esi
ret
mov dword [esi + 0x3faa8], 0
mov eax, 1
pop esi
ret
Function at 0x408b00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x124
mov al, byte [0x44be70]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov byte [esp + 0x1c], al
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ebx, [ebp + 0x43a3c]
push ebx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.config.ini
cmp byte [ecx + ebp + 0x43a3b], 0x5c
je 0x408b7e
mov edi, 0x446248
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [ebp + 0x3fab2]
mov ecx, ebx
and ecx, 3
xor edx, edx
mov dl, byte [ebp + 0x3fab0]
push eax
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
lea eax, [esp + 0x14]
mov cl, byte [ebp + 0x3fab1]
push ecx
push edx
push str._d._02d._02d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x44bf54]
add esp, 0x14
cmp eax, 1
jne 0x408c1f
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push edx
push str.TestVersion
push str.LOGIN
call esi
mov eax, dword [0x44bf50]
test eax, eax
jne 0x408c42
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.Version
push str.LOGIN
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov eax, dword [0x44bf50]
test eax, eax
jne 0x408c42
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push str.Version
push str.LOGIN
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
Function at 0x409560
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x32c
push ebx
push ebp
push esi
push edi
push 0x446244
push str.patch.log
call fcn.0041a544
mov esi, eax
add esp, 8
test esi, esi
jne 0x40958d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret
lea eax, [esp + 0x134]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test byte [esi + 0xc], 0x10
jne 0x409638
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 ecx, [esp + 0x30]
lea edx, [esp + 0x13]
push ecx
push edx
push str._c__s_n
push esi
call fcn.0041affd
mov al, byte [esp + 0x23]
add esp, 0x10
cmp al, 0x46
jne 0x409609
lea eax, [esp + 0x30]
lea ecx, [esp + 0x134]
push eax
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 0x40965b
push 1
push 0
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
call ebx
test eax, eax
je 0x409632
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]
test byte [esi + 0xc], 0x10
je 0x4095bc
push esi
call fcn.0041a496
push str.patch.log
call fcn.0041ab7c
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret
push esi
call fcn.0041a496
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret
Function at 0x409a70
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x128
mov al, byte [0x44be70]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov byte [esp + 0x20], al
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ebx, [ebp + 0x43a3c]
push ebx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.config.ini
cmp byte [ecx + ebp + 0x43a3b], 0x5c
je 0x409aee
mov edi, 0x446248
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x18]
push 0xa
push ecx
push str.0.0.0
push str.Version
push str.LOGIN
call esi
lea edx, [esp + 0x14]
push 0x4461d8
push edx
call fcn.0041a9f8
add esp, 8
test eax, eax
jne 0x409b52
mov byte [esp + 0x12], al
jmp 0x409b5f
push eax
call fcn.0041a9ed
add esp, 4
mov byte [esp + 0x12], al
push 0x4461d8
push 0
call fcn.0041a9f8
add esp, 8
test eax, eax
jne 0x409b78
mov byte [esp + 0x10], al
jmp 0x409b85
push eax
call fcn.0041a9ed
add esp, 4
mov byte [esp + 0x10], al
push 0x4461d8
push 0
call fcn.0041a9f8
add esp, 8
test eax, eax
jne 0x409b9e
mov byte [esp + 0x11], al
jmp 0x409bab
push eax
call fcn.0041a9ed
add esp, 4
mov byte [esp + 0x11], al
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
push 0xa
push ecx
push str.0.0.0
push str.TestVersion
push str.LOGIN
call esi
lea edx, [esp + 0x14]
push 0x4461d8
push edx
call fcn.0041a9f8
add esp, 8
test eax, eax
jne 0x409be4
mov byte [esp + 0x13], al
jmp 0x409bf1
push eax
call fcn.0041a9ed
add esp, 4
mov byte [esp + 0x13], al
push 0x4461d8
push 0
call fcn.0041a9f8
add esp, 8
test eax, eax
jne 0x409c08
xor bl, bl
jmp 0x409c13
push eax
call fcn.0041a9ed
add esp, 4
mov bl, al
push 0x4461d8
push 0
call fcn.0041a9f8
add esp, 8
test eax, eax
jne 0x409c2a
xor al, al
jmp 0x409c33
push eax
call fcn.0041a9ed
add esp, 4
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x12]
cmp dl, cl
jne 0x409c5b
cmp byte [esp + 0x10], bl
jne 0x409c5b
cmp byte [esp + 0x11], al
jne 0x409c5b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x128
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
Function at 0x409c70
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x124
push edi
push 0
lea eax, [esp + 0x28]
push str..Temp._c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10]
add esp, 0xc
rep stosd dword es:[edi], eax
lea edx, [esp + 4]
lea ecx, [esp + 0x24]
stosw word es:[edi], ax
push edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], ecx
mov word [esp + 0x18], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push str..Temp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
add esp, 0x124
ret

Function at 0x409da0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jle 0x409dd0
push ebx
push esi
mov esi, dword [esp + 0x10]
mov eax, ecx
mov ebx, 3
cdq
idiv ebx
mov bl, byte [ecx + esi]
mov al, byte [edx + 0x446530]
xor bl, al
mov byte [ecx + esi], bl
inc ecx
cmp ecx, edi
jl 0x409db1
pop esi
pop ebx
pop edi
ret

Function at 0x409e20
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
mov esi, ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x409e4b
push 0
push str.Error
push 0x8d
jmp 0x409e92
mov ax, word [esp + 4]
cmp al, 2
jne 0x409e80
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x409e80
mov edx, dword [esp + 0x18a]
mov dword [esi + 8], 0
and edx, 0xffff
mov eax, 1
mov dword [esi + 4], edx
pop esi
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
push str.Error
push 0x8e
mov ecx, 0x44c0d8
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 0x190
ret

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

Disassembly:
sub esp, 0x80
push esi
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x409f13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x8f
mov ecx, 0x44c0d8
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
lea ecx, [esp + 4]
push 0
push str.Error
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 0x80
ret 4
mov edx, dword [esp + 0x88]
mov eax, 1
mov dword [esi], edx
pop esi
add esp, 0x80
ret 4
Function at 0x409f50
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx]
test eax, eax
jne 0x409f86
push eax
push str.Error
push 0x90
mov ecx, 0x44c0d8
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
cmp dword [ebx + 8], 0xffffffff
jne 0x409f94
push eax
mov ecx, ebx
call fcn.00409eb0
mov eax, dword [esp + 0x20]
mov word [esp + 8], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x409ff4
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x409fd7
pop esi
mov eax, 2
pop ebx
add esp, 0x10
ret 0xc
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
push edi
lea edi, [esp + 0x10]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
push 0x10
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x40a021
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
mov eax, dword [ebx + 8]
lea edx, [esp + 8]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40a058
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40a058
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 0xc
Function at 0x40a070
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 8]
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
cmp eax, 0xffffffff
mov ebp, esi
jne 0x40a08f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, edi
push 0
push eax
mov eax, dword [ebx + 8]
lea edx, [edi + ecx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40a0c3
test eax, eax
je 0x40a144
sub ebp, eax
add edi, eax
test ebp, ebp
jle 0x40a144
jmp 0x40a08f
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x40a0f4
push esi
call edi
push eax
push str.send__
push ebx
call fcn.0040a1f0
add esp, 0x10
mov ecx, ebx
call fcn.00409f30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [ebx + 0x100c]
lea ecx, [eax + esi]
cmp ecx, 0x1000
jle 0x40a115
mov ecx, ebx
call fcn.00409f30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov esi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
lea edi, [eax + ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x100c]
pop edi
add eax, ebp
pop esi
mov dword [ebx + 0x100c], eax
pop ebp
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8

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

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x100c]
test eax, eax
jle 0x40a19c
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esi + 0x100c]
mov edx, dword [esi + 8]
sub eax, edi
push 0
lea ecx, [esi + edi + 0xc]
push eax
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x40a1a5
test eax, eax
jle 0x40a1c5
mov ecx, dword [esi + 0x100c]
add edi, eax
sub ecx, eax
mov eax, ecx
mov dword [esi + 0x100c], ecx
test eax, eax
jg 0x40a167
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 0x40a19c
call edi
push eax
push str.FD_WRITE_send__
push esi
call fcn.0040a1f0
add esp, 0xc
mov ecx, esi
call fcn.00409f30
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40a200
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, 0x1000
push edi
mov eax, dword [esi + 0x2010]
push 0
sub ecx, eax
lea edx, [eax + esi + 0x1010]
mov eax, dword [esi + 8]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov eax, dword [esi + 0x2014]
test eax, eax
je 0x40a243
lea ecx, [esi + 0x1010]
push edi
push ecx
mov ecx, esi
call fcn.0040a1e0
test edi, edi
jne 0x40a251
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
cmp edi, 0xffffffff
jne 0x40a28a
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
jne 0x40a26f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
call edi
push eax
push str.recv__
push esi
call fcn.0040a1f0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esi + 0x2010]
add edx, edi
mov eax, edx
mov dword [esi + 0x2010], edx
cmp eax, 3
jge 0x40a2a9
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
ret
xor ebp, ebp
lea edi, [esi + 0x1010]
mov cl, byte [edi + ebp]
lea eax, [edi + ebp]
cmp cl, 0xc1
jne 0x40a2c7
xor ebx, ebx
mov bl, byte [esi + ebp + 0x1011]
jmp 0x40a2df
cmp cl, 0xc2
jne 0x40a362
xor ebx, ebx
xor edx, edx
mov bl, byte [eax + 1]
mov dl, byte [eax + 2]
shl ebx, 8
add ebx, edx
test ebx, ebx
jle 0x40a30c
cmp ebx, dword [esi + 0x2010]
jg 0x40a322
push ebx
push eax
mov ecx, esi
call fcn.0040a380
mov ecx, dword [esi + 0x2010]
add ebp, ebx
sub ecx, ebx
mov eax, ecx
mov dword [esi + 0x2010], ecx
test eax, eax
jle 0x40a36c
jmp 0x40a2b1
push ebx
push str.size
push esi
call fcn.0040a1f0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
test ebp, ebp
jle 0x40a36c
mov ecx, dword [esi + 0x2010]
cmp ecx, 1
jge 0x40a346
push str.m_nRecvBufLen
push esi
call fcn.0040a1f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, ecx
lea esi, [esi + ebp + 0x1010]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x2010], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret