joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4162f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x416393
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.0040ad50
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.0040a218
add bp, 0x30
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x416318
cmp byte [esp], 0
je 0x416361
mov eax, edi
call fcn.0040a218
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x41639f
mov eax, edi
call fcn.0040a218
push eax
mov eax, edi
call fcn.0040a218
lea eax, [eax + esi*2]
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
pop edx
call fcn.004066ec
mov edx, ebx
mov eax, edi
call fcn.0040ad50
jmp 0x41639f
mov eax, edi
mov edx, 0x4163b4
call fcn.0040a040
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x417398
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x70af8c], 0
jne 0x4173d0
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4173c7
movzx eax, word [esp]
mov word [0x70af8c], ax
jmp 0x4173d0
mov word [0x70af8c], 0x2c
movzx eax, word [0x70af8c]
pop edx
ret
Function at 0x4179a4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4179ac
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x417bbe
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
je 0x4179ef
lea edx, [ebp - 0xc]
mov eax, ebx
call dword [0x70ad18]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040ac94
jmp 0x417b8b
test ebx, 0xc0000000
je 0x417a37
lea edx, [ebp - 0x10]
mov eax, dword [0x70afa4]
call fcn.00417bdc
mov eax, dword [ebp - 0x10]
call fcn.0040a6b0
push eax
lea edx, [ebp - 0x14]
mov eax, dword [0x70ad88]
call fcn.00417bdc
mov eax, dword [ebp - 0x14]
call fcn.0040a6b0
push eax
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x417a37
push ebx
call eax
mov ebx, eax
mov edi, 0x1300
cmp ebx, 0x834
jb 0x417a7c
cmp ebx, 0xbb7
ja 0x417a7c
push 2
push 0
lea edx, [ebp - 0x18]
mov eax, dword [0x70afa0]
call fcn.00417bdc
mov eax, dword [ebp - 0x18]
call fcn.0040a6b0
push eax
call sub.kernel32.dll_LoadLibraryExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x417a81
or edi, 0x800
jmp 0x417a81
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x417b84
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x400
push ebx
mov eax, dword [ebp - 8]
push eax
push edi
call sub.kernel32.dll_FormatMessageW
test eax, eax
je 0x417b24
xor eax, eax
push ebp
push 0x417b1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040ac24
mov eax, dword [esi]
call fcn.0040a150
mov ebx, eax
test ebx, ebx
jbe 0x417b06
mov eax, dword [esi]
movzx edi, word [eax + ebx*2 - 2]
cmp di, 0xd
jne 0x417aed
mov eax, esi
call fcn.0040a218
mov word [eax + ebx*2 - 2], 0x20
jmp 0x417b01
cmp di, 0xa
jne 0x417b01
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.0040afe0
dec ebx
test ebx, ebx
ja 0x417ad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417b67
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LocalFree
ret
lea edx, [ebp - 0x20]
mov eax, dword [0x70afa8]
call fcn.00417bdc
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.0040ac94
push dword [ebp - 0x1c]
push 0x417bd8
lea eax, [ebp - 0x24]
push eax
mov cx, 0x30
mov edx, 1
mov eax, ebx
call fcn.00416d18
push dword [ebp - 0x24]
mov eax, esi
mov edx, 3
call fcn.0040aeb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417b8b
cmp dword [ebp - 8], 0
je 0x417b83
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417bc5
lea eax, [ebp - 0x24]
call fcn.00409c60
lea eax, [ebp - 0x20]
call fcn.00409c84
lea eax, [ebp - 0x1c]
call fcn.00409c60
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00409cf0
ret
Function at 0x417bdc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0040a0dc
mov eax, ebx
call fcn.0040a230
mov eax, dword [ebx]
call fcn.0040a15c
test eax, eax
jle 0x417c0d
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x417c02
pop esi
pop ebx
ret

Function at 0x418f9c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41909d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.0040be58
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x4187a8]
call fcn.0040c074
add esp, 4
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x38]
mov dword [edx + eax*8], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [edx + eax*8 + 4], ecx
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax*8 + 0xc], ecx
test edi, edi
jne 0x41901e
test esi, esi
jle 0x41901e
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + edi*8 - 8]
call fcn.0040a040
jmp 0x41902f
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
lea eax, [edx + eax*8 + 0x10]
mov edx, edi
call fcn.0040a040
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
test esi, esi
jne 0x419087
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x419062
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x10]
call fcn.0040abbc
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x419087
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + 0x10]
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 4]
call fcn.0040a6b0
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4190a4
lea eax, [ebp - 4]
call fcn.00409c84
ret
Function at 0x41bad0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x41bad8
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41bccb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00409c60
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
je 0x41bb32
lea eax, [ebp - 0x20]
mov edx, ebx
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call dword [0x70b010]
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0040ac94
jmp 0x41bc93
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.0040abbc
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41bc93
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040ad50
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41bc93
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x41bcdc
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41bbd1
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
jne 0x41bba3
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x41bbd1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, esi
call fcn.0041b7b4
jmp 0x41bc93
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41bce0
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41bc93
cmp dword [ebp - 0x14], 0
je 0x41bc93
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x41bd20
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00413ea8
mov edx, dword [ebp - 0x14]
movzx edx, word [edx]
call fcn.00413e9c
mov cx, 0x30
mov edx, 8
call fcn.00416bd4
mov eax, dword [ebp - 0x30]
mov ecx, 0x7fffffff
mov edx, 2
call fcn.0040af98
push dword [ebp - 0x2c]
push 0x41bd50
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.0040aeb0
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.0040acc8
mov eax, dword [ebp - 0x24]
call fcn.0040a938
push eax
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41bc93
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
call fcn.0040ac24
mov eax, dword [ebp - 0x34]
mov ebx, dword [0x718194]
mov ebx, dword [ebx]
mov edx, esi
call ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bcd2
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00409cc0
lea eax, [ebp - 0x24]
call fcn.00409ca8
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00409cf0
lea eax, [ebp - 4]
call fcn.00409c60
ret
Function at 0x436e25
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov dword [ebp - 0xa0], 0x70adf2
mov dword [ebp - 0x9c], 0
mov dword [esp], 0
lea eax, [ebp - 0x9c]
mov dword [esp + 4], eax
call fcn.00436d66
mov dword [ebp - 0x98], eax
add esp, 8
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x90], eax
add esp, 0xfffffff8
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00436d66
mov dword [ebp - 0x8c], eax
add esp, 8
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
test eax, eax
je 0x436f87
push eax
mov eax, dword [ebp - 0x84]
jl 0x436ed9
invalid
dec dword [ecx + 0x1be82404]
cld
invalid
dec dword [ecx - 0x3b7c77bb]
add al, 0x8b
inc ebp
mov byte [eax - 0xa37b], cl
dec dword [edi]
mov dh, 0x85
pop esp
invalid
invalid
dec dword [edi]
mov dh, 0xc0
mov edx, dword [ebp - 0x7c]
movzx edx, byte [edx]
movzx edx, dl
cmp eax, edx
je 0x436f35
movzx eax, byte [ebp - 0xa4]
movzx eax, al
mov edx, 1
add edx, dword [ebp - 0x7c]
movzx edx, byte [edx]
movzx edx, dl
cmp eax, edx
je 0x436f35
push eax
mov dword [esp], 0
mov eax, dword [sym.imp.kernel32.dll_ExitProcess]
call eax
push eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call fcn.00436cb6
mov dword [ebp - 0x4c], eax
add esp, 4
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov eax, 4
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x7c]
mov edx, dword [edx]
cmp eax, edx
je 0x436f87
mov eax, dword [ebp - 0x44]
mov edx, 4
add edx, dword [ebp - 0x7c]
mov edx, dword [edx]
cmp eax, edx
je 0x436f87
push eax
mov dword [esp], 0
mov eax, dword [sym.imp.kernel32.dll_ExitProcess]
call eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 4
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x60], eax
add esp, 0xfffffff0
mov dword [esp], 0
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], 4
mov eax, dword [sym.imp.kernel32.dll_VirtualAlloc]
call eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x6c], 0
Function at 0x46f600
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x46f7b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call fcn.0046f534
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x46f792
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x70ffc0], 0
jne 0x46f766
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x14]
call fcn.0046add8
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00416b44
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x46f7d4
call fcn.0040a4e4
mov eax, dword [ebp - 0x2c]
call fcn.0040a6b0
push eax
push 0
push 6
call sub.kernel32.dll_OpenFileMappingA
mov edi, eax
test edi, edi
sete bl
test bl, bl
je 0x46f6da
lea eax, [ebp - 0x38]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00416b44
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x46f7d4
call fcn.0040a4e4
mov eax, dword [ebp - 0x34]
call fcn.0040a6b0
push eax
push 4
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
test edi, edi
jne 0x46f6f5
xor esi, esi
push 0
push 0x46f7ec
push 0x46f7f8
push 0
call sub.user32.dll_MessageBoxA
jmp 0x46f755
test bl, bl
je 0x46f73c
push 0
push 0
push 0
push 0xf001f
push edi
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
push 4
push 0x1000
push 0x28
push 0
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
mov dword [esi], ebx
mov eax, ebx
mov edx, 0x28
call fcn.00413eac
mov eax, dword [esi]
mov dword [eax + 4], edi
add eax, 8
push eax
call sub.kernel32.dll_InitializeCriticalSection
jmp 0x46f755
push 0
push 0
push 0
push 0xf001f
push edi
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
push edi
call sub.kernel32.dll_CloseHandle
test esi, esi
je 0x46f766
mov eax, esi
call fcn.004a7cc0
mov dword [0x70ffc0], esi
cmp dword [0x70ffc0], 0
je 0x46f77c
mov eax, dword [0x70ffc0]
mov eax, dword [eax]
inc dword [eax]
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f799
mov eax, dword [ebp - 8]
call fcn.0046f5ec
ret

Function at 0x47a6a0
Capabilities:
Create thread
Resume thread

Disassembly:
cmp dword [0x70ffec], 0
jne 0x47a733
xor eax, eax
call fcn.0041c0b4
mov dword [0x70ffec], eax
cmp dword [0x70ffec], 0
je 0x47a733
mov eax, 0x47a504
xor ecx, ecx
xor edx, edx
call fcn.0041c5b8
mov dword [0x70fff0], eax
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x710000], eax
push 0x70ffe4
push 4
push 0
push 0x47a54c
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x70ffe8], eax
cmp dword [0x70ffe8], 0
je 0x47a733
mov edx, 0x47a740
mov eax, dword [0x70ffe4]
call fcn.0046b9e0
push 2
mov eax, dword [0x70ffe8]
push eax
call sub.kernel32.dll_SetThreadPriority
mov eax, dword [0x70ffe8]
push eax
call sub.kernel32.dll_ResumeThread
ret
Function at 0x47a77c
Capabilities:
Terminate thread

Disassembly:
push ebx
cmp dword [0x70ffec], 0
je 0x47a84d
mov ebx, dword [0x710000]
xor eax, eax
mov dword [0x710000], eax
push ebx
call sub.kernel32.dll_SetEvent
push ebx
call sub.kernel32.dll_CloseHandle
cmp dword [0x70fffc], 0
je 0x47a7c5
mov ebx, dword [0x70fffc]
xor eax, eax
mov dword [0x70fffc], eax
push ebx
call sub.kernel32.dll_SetEvent
push ebx
call sub.kernel32.dll_CloseHandle
mov dword [0x70fff8], 0xffffffff
mov eax, 0x47a504
xor ecx, ecx
xor edx, edx
call fcn.0041c7e4
push 0x1f4
mov eax, dword [0x70ffe8]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x47a812
push 0
mov eax, dword [0x70ffe8]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x710004], 0
je 0x47a812
mov eax, dword [0x710004]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
mov dword [0x710004], eax
mov eax, dword [0x70ffe8]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x70ffe4]
call fcn.0046b754
xor eax, eax
mov dword [0x70ffe8], eax
xor eax, eax
mov dword [0x70ffe4], eax
xor eax, eax
mov dword [0x70ffec], eax
pop ebx
ret
Function at 0x482694
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.0040a6b0
mov edi, eax
push edi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4826c0
push edi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4826c0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x484b70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
or dword [ebp + 0xc], 0xc11c
cmp byte [0x70f6b0], 0
je 0x484b96
or dword [ebp + 0xc], 0x80000
push 1
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 1
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 1
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], 0x11
lea eax, [ebp - 0x3c]
push eax
push 1
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00484b08
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push esi
lea eax, [ebx + 0x44]
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x18]
mov esi, eax
mov eax, esi
call fcn.0046811c
test al, al
jne 0x484c16
cmp esi, 0x80090318
jne 0x484c1e
test edi, edi
je 0x484c1e
mov byte [ebx + 0x5c], 1
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x484c4e
cmp dword [ebp - 0x24], 0
je 0x484c4e
push 0
mov eax, dword [ebp - 0x24]
push eax
push edi
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
jg 0x484c44
mov esi, 0x80090304
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x40]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x484c62
cmp dword [ebp - 0x18], 0
je 0x484c62
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x40]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x484c70
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffeac
mov edi, edx
mov ebx, eax
mov byte [esp], 0
xor esi, esi
xor eax, eax
mov dword [esp + 8], eax
test edi, edi
je 0x484cf5
mov dword [esp + 0x38], 1
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [0x70f6c4]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
lea eax, [esp + 0x44]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x484e2f
push 0
mov eax, dword [ebx + 0x74]
sub eax, esi
push eax
mov eax, dword [ebx + 0x78]
add eax, esi
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_recv
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jle 0x484e2f
mov eax, dword [esp + 4]
add esi, eax
test esi, esi
sete al
neg al
sbb edi, edi
push 1
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x140], eax
xor eax, eax
mov dword [esp + 0x144], eax
lea eax, [esp + 0x140]
push eax
push 1
mov dword [esp + 0x150], esi
xor eax, eax
mov dword [esp + 0x154], eax
lea eax, [esp + 0x150]
push eax
push 1
mov dword [esp + 0x160], 2
xor eax, eax
mov dword [esp + 0x164], eax
lea eax, [esp + 0x160]
push eax
push 1
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.00484b08
push 0
mov eax, dword [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
lea edx, [ebx + 0x54]
xor ecx, ecx
mov eax, ebx
call fcn.00484b70
mov ebp, eax
sub ebp, 0x80090318
je 0x484e27
sub ebp, 0x7ff6fce8
je 0x484da4
sub ebp, 0x90312
je 0x484dec
sub ebp, 0xe
je 0x484e18
jmp 0x484e2f
cmp dword [esp + 0x30], 5
jne 0x484de6
mov eax, dword [esp + 0x2c]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc
mov dword [ebx + 0x84], eax
mov edx, dword [ebx + 0x84]
mov eax, dword [ebx + 0x78]
add eax, esi
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
call fcn.004066ec
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], 2
mov byte [esp], 1
jmp 0x484e2f
cmp dword [esp + 0x30], 5
jne 0x484e11
mov edx, dword [ebx + 0x78]
mov eax, dword [ebx + 0x78]
add eax, esi
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
call fcn.004066ec
mov esi, dword [esp + 0x2c]
jmp 0x484c8a
xor esi, esi
jmp 0x484c8a
or dword [esp + 8], 0x80
xor edi, edi
jmp 0x484c8a
or edi, 0xffffffff
jmp 0x484c8a
movzx eax, byte [esp]
add esp, 0x154
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x484e40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff88
mov esi, edx
mov ebp, eax
mov bl, 1
mov eax, esi
call fcn.0040a6b0
mov dword [esp], eax
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x44]
call fcn.0040a15c
mov edi, eax
mov dword [esp + 4], 0x400
cmp dword [ebp + 8], 0
je 0x484f9b
mov eax, dword [esp + 4]
cmp eax, dword [ebp + 0x68]
jbe 0x484f9b
mov eax, dword [ebp + 0x68]
mov dword [esp + 4], eax
jmp 0x484f9b
cmp edi, dword [esp + 4]
jbe 0x484e9d
mov esi, dword [esp + 4]
jmp 0x484e9f
mov esi, edi
cmp dword [ebp + 8], 0
je 0x484f80
mov edx, dword [ebp + 0x78]
add edx, dword [ebp + 0x60]
mov eax, dword [esp]
mov ecx, esi
call fcn.004066ec
push 3
mov eax, dword [ebp + 0x78]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x78]
add eax, dword [ebp + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x78]
add eax, dword [ebp + 0x60]
add eax, esi
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x4c]
push eax
push 3
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], esi
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x64]
push eax
push 3
mov dword [esp + 0x7c], 7
mov dword [esp + 0x80], 1
mov dword [esp + 0x84], 6
xor eax, eax
mov dword [esp + 0x88], eax
lea eax, [esp + 0x7c]
push eax
push 3
lea ecx, [esp + 0x30]
lea edx, [esp + 0x24]
mov eax, ebp
call fcn.00484b08
push 0
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [ebp + 0x54]
push eax
mov eax, dword [ebp + 8]
call dword [eax + 0x64]
test eax, eax
jne 0x484f78
push 0
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x24]
add eax, dword [esp + 0x30]
push eax
mov eax, dword [ebp + 0x78]
push eax
mov eax, dword [ebp + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
jg 0x484f7c
xor ebx, ebx
jmp 0x484f96
mov bl, 1
jmp 0x484f96
push 0
push esi
mov eax, dword [esp + 8]
push eax
mov eax, dword [ebp + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
setg bl
add dword [esp], esi
sub edi, esi
test bl, bl
je 0x484fa7
test edi, edi
ja 0x484e91
mov eax, ebx
add esp, 0x78
pop ebp
pop edi
pop esi
pop ebx
ret