joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453900
Capabilities:
Get geographical location

Disassembly:
movsx eax, word [esp + 4]
add eax, 0xfffffff6
push esi
cmp eax, 0x3b
push edi
ja case.default.0x453913
jmp dword [eax*4 + 0x453c1c]
mov edi, 0x4ab414
jmp 0x453bf7
mov edi, 0x4ab408
jmp 0x453bce
mov edi, 0x4ab3fc
jmp 0x453bf7
mov edi, 0x4ab3f4
jmp 0x453bce
mov edi, 0x4a6ca0
jmp 0x453bf7
mov edi, 0x4ab3e8
jmp 0x453bce
mov edi, 0x4ab3dc
jmp 0x453bf7
mov edi, 0x4ab3cc
jmp 0x453bce
mov edi, 0x4ab3c4
jmp 0x453bf7
mov edi, 0x4ab3b8
jmp 0x453bce
mov edi, 0x4ab3a4
jmp 0x453bf7
mov edi, 0x4a6c74
jmp 0x453bce
mov edi, 0x4ab39c
jmp 0x453bf7
mov edi, 0x4ab390
jmp 0x453bce
mov edi, 0x4ab37c
jmp 0x453bf7
mov edi, 0x4ab368
jmp 0x453bce
mov edi, 0x4ab354
jmp 0x453bf7
mov edi, 0x4ab348
jmp 0x453bce
mov edi, 0x4a6c50
jmp 0x453bf7
mov edi, 0x4ab340
jmp 0x453bce
mov edi, 0x4a6c40
jmp 0x453bf7
mov edi, 0x4a6c38
jmp 0x453bce
mov edi, 0x4a6c30
jmp 0x453bf7
mov edi, 0x4ab334
jmp 0x453bce
mov edi, 0x4a6c1c
jmp 0x453bf7
mov edi, 0x4ab324
jmp 0x453bce
cmp word [0x4b3bba], 0
je 0x453a32
mov edi, 0x4ab300
jmp 0x453bf7
mov edi, 0x4ab2ec
jmp 0x453bce
cmp word [0x4b3bba], 0
je 0x453a50
mov edi, 0x4ab2c8
jmp 0x453bf7
mov edi, 0x4ab2b4
jmp 0x453bce
cmp word [0x4b3bba], 0
je 0x453a6e
mov edi, 0x4ab294
jmp 0x453bf7
mov edi, 0x4ab284
jmp 0x453bce
cmp word [0x4b3bba], 0
je 0x453a8c
mov edi, 0x4ab268
jmp 0x453bf7
mov edi, 0x4a6bc8
jmp 0x453bce
mov edi, 0x4ab250
jmp 0x453bf7
mov edi, 0x4ab238
jmp 0x453bce
mov edi, 0x4ab22c
jmp 0x453bf7
mov edi, 0x4ab218
jmp 0x453bce
mov edi, 0x4ab204
jmp 0x453bf7
mov edi, 0x4ab204
jmp 0x453bce
mov edi, 0x4ab1f4
jmp 0x453bf7
mov edi, 0x4ab1e4
jmp 0x453bce
mov edi, 0x4a6b94
jmp 0x453bf7
mov edi, 0x4ab1dc
jmp 0x453bce
mov edi, 0x4ab1d0
jmp 0x453bf7
mov edi, 0x4a6b70
jmp 0x453bce
mov edi, 0x4ab1c4
jmp 0x453bf7
mov edi, 0x4a6b5c
jmp 0x453bce
mov edi, 0x4ab1bc
jmp 0x453bf7
mov edi, 0x4ab1b4
jmp 0x453bce
mov edi, 0x4a6b48
jmp 0x453bf7
mov edi, 0x4ab1a8
jmp 0x453bce
mov edi, 0x4ab198
jmp 0x453bf7
mov edi, 0x4a6b2c
jmp 0x453bce
mov edi, 0x4ab188
jmp 0x453bf7
mov edi, 0x4ab178
jmp 0x453bce
mov edi, 0x4ab16c
jmp 0x453bf7
mov edi, 0x4ab164
jmp 0x453bce
xor eax, eax
mov al, byte [0x4b3bbb]
dec eax
cmp eax, 3
ja case.default.0x453b8a
jmp dword [eax*4 + 0x453d0c]
mov edi, 0x4ab158
jmp 0x453bce
mov edi, 0x4ab150
jmp 0x453bf7
mov edi, 0x4ab148
jmp 0x453bce
mov edi, 0x4ab140
jmp 0x453bf7
mov edi, 0x4a6afc
jmp 0x453bce
mov edi, 0x4a6af0
jmp 0x453bf7
mov edi, 0x4a6ae8
jmp 0x453bce
mov edi, 0x4ab134
jmp 0x453bf7
mov edi, 0x4a6ad4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret 8
mov edi, 0x4a6acc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
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
pop esi
ret 8
Function at 0x480490
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x314
mov eax, dword [0x55b86c]
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0x1c
push eax
call dword [sym.imp.user32.dll_SendMessageA]
push 5
push 0
push 0
push 0x4b0304
push 0x4b02fc
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x4805fe
mov ebp, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
push 0x4b02f4
push connect
call ebp
test eax, eax
jne 0x4805fe
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x220]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x24], 0x104
call esi
mov edi, dword [sym.imp.kernel32.dll_lstrcpyA]
lea edx, [esp + 0x220]
lea eax, [esp + 0x18]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
push ecx
call ebx
lea edx, [esp + 0x18]
push 0x4b02e0
push edx
call dword [sym.imp.kernel32.dll_lstrcatA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 1
push 0
push ecx
push connect
call ebp
test eax, eax
jne 0x4805fe
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x220]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x24], 0x104
call esi
lea edx, [esp + 0x220]
lea eax, [esp + 0x18]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x18]
push 0x4b02d8
push edx
call fcn.00492a70
mov esi, eax
add esp, 8
test esi, esi
jne 0x4805d8
lea eax, [esp + 0x18]
push 0x4b02d4
push eax
call fcn.00492a70
mov esi, eax
add esp, 8
test esi, esi
jne 0x4805d8
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenA]
lea esi, [esp + eax + 0x17]
jmp 0x4805db
mov byte [esi], 0
mov edi, dword [sym.imp.kernel32.dll_lstrcatA]
push 0x4a7110
push esi
call edi
push 0x4b0304
push esi
call edi
lea edx, [esp + 0x18]
push 5
push edx
call dword [sym.imp.kernel32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret
Function at 0x482760
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10c
xor eax, eax
push esi
push edi
mov esi, ecx
push eax
push eax
mov ecx, 0x41
lea edi, [esp + 0x18]
push 3
push eax
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x12c]
push connect
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4828bc
push ebx
push ebp
push 0
push 0
push 0
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x20]
push pe_nt_image_headers32
push edx
push edi
call ebp
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.004828d0
movsx eax, word [esi + 0x934458]
movsx ecx, word [esi + 0x93445a]
imul eax, ecx
lea edx, [eax + eax*4]
shl edx, 1
push edx
call fcn.00491cd3
movsx ecx, word [esi + 0x93445a]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x14]
push 0
push eax
movsx eax, word [esi + 0x934458]
imul eax, ecx
lea edx, [eax + eax*4]
shl edx, 1
push edx
push ebx
push edi
call ebp
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
xor edi, edi
mov eax, ebx
cmp word [esi + 0x93445a], di
jle 0x4828b1
lea ecx, [esi + 0x5780a]
mov dword [esp + 0x10], ecx
xor edx, edx
cmp word [esi + 0x934458], dx
jle 0x48289a
mov bp, word [eax]
add eax, 2
mov word [ecx - 2], bp
mov bp, word [eax]
add eax, 2
mov word [ecx], bp
mov bp, word [eax]
add eax, 2
mov word [ecx + 2], bp
mov bp, word [eax]
add eax, 2
mov word [ecx + 4], bp
test byte [eax], 0x80
je 0x482872
mov byte [ecx + 6], 0
jmp 0x482876
mov byte [ecx + 6], 1
test byte [eax], 0x40
je 0x482881
mov byte [ecx + 7], 1
jmp 0x482885
mov byte [ecx + 7], 0
movsx ebp, word [esi + 0x934458]
add eax, 2
inc edx
add ecx, 0x2f00
cmp edx, ebp
jl 0x482840
movsx edx, word [esi + 0x93445a]
mov ecx, dword [esp + 0x10]
inc edi
add ecx, 0x10
cmp edi, edx
mov dword [esp + 0x10], ecx
jl 0x482835
push ebx
call fcn.00491cc8
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10c
ret 4
Function at 0x488d30
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
xor ecx, ecx
mov al, 1
lea ebx, [ebp + 0x3c]
xor edx, edx
mov esi, ebx
mov dword [ebp], 0x4a232c
mov dword [ebp + 0x4c], ecx
mov dword [ebp + 0x50], ecx
mov byte [ebp + 0x18], al
mov dword [esi], edx
push edi
push ecx
mov dword [esi + 4], edx
mov edi, dword [esp + 0x18]
push ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
lea esi, [ebp + 0x30]
mov byte [ebp + 0x19], dl
mov byte [ebp + 0x34], al
mov dword [esi], ecx
mov eax, dword [esp + 0x20]
movsx ecx, word [esp + 0x28]
mov dword [ebp + 0x20], eax
lea edx, [ecx*8 + 0x18]
push edx
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x28]
push 4
push ecx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, dword [esp + 0x20]
push 0
add edx, 0x64
push 0
push edx
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
push eax
push 4
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [esi]
mov edx, dword [esp + 0x20]
lea ecx, [eax + eax*2 + 0x1b]
lea ecx, [edx + ecx*4]
lea edx, [eax + eax*2]
shl edx, 2
push edx
mov dword [ebp + 0x28], ecx
call fcn.00491cd3
mov esi, dword [esi]
add esp, 4
lea ecx, [esp + 0x18]
mov dword [ebp + 0x4c], eax
lea edx, [esi + esi*2]
push 0
shl edx, 2
push ecx
push edx
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x24]
pop edi
mov byte [ebp + 0x1a], cl
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x48ea20
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
lea eax, [esp + 8]
push eax
push 0x202
call sub.ws2_32.dll_WSAStartup
test eax, eax
je 0x48ea61
mov ecx, dword [0x55b86c]
push 0x30
push 0x4a653c
push 0x4b071c
push ecx
call dword [sym.imp.user32.dll_MessageBoxA]
push 0
call dword [sym.imp.user32.dll_PostQuitMessage]
add esp, 0x198
ret
mov edx, dword [esp + 0x19c]
mov eax, dword [0x55b874]
mov ecx, dword [0x55b86c]
push edx
push eax
push ecx
mov ecx, dword [0x4b7d70]
call fcn.004037b0
test eax, eax
jne 0x48ea93
push eax
call dword [sym.imp.user32.dll_PostQuitMessage]
add esp, 0x198
ret
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x10]
push 8
push edx
call dword [sym.imp.winmm.dll_timeGetDevCaps]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.winmm.dll_timeBeginPeriod]
push 1
push 0
push 0x48ea00
push 0
push 0x3e8
call dword [sym.imp.winmm.dll_timeSetEvent]
mov dword [0x4b7d6c], eax
xor edi, edi
xor eax, eax
mov ebp, 0x3f
mov ecx, 0xffffff01
lea esi, [edi*4]
mov ebx, eax
lea eax, [ecx + edi]
test eax, eax
mov edx, eax
jg 0x48eaf1
mov edx, 1
jmp 0x48eafb
cmp eax, 0x1f
jl 0x48eafb
mov edx, 0x1f
test eax, eax
mov dword [ebx + 0x4b7d74], edx
jg 0x48eb0c
mov eax, 1
jmp 0x48eb12
cmp eax, ebp
jl 0x48eb12
mov eax, ebp
cmp ecx, edi
mov dword [ebx + 0x4d7b74], eax
jge 0x48eb24
mov dword [esi + 0x513c68], edi
jmp 0x48eb3b
cmp ecx, 0x1f
jle 0x48eb35
mov dword [esi + 0x513c68], 0x1f
jmp 0x48eb3b
mov dword [esi + 0x513c68], ecx
cmp ecx, edi
jge 0x48eb47
mov dword [esi + 0x533a68], edi
jmp 0x48eb59
cmp ecx, ebp
jle 0x48eb53
mov dword [esi + 0x533a68], ebp
jmp 0x48eb59
mov dword [esi + 0x533a68], ecx
add ebx, 4
inc ecx
add esi, 0x100
lea edx, [ecx + 0xff]
cmp edx, 0x1fe
jl 0x48eae1
inc edi
mov eax, ebx
cmp edi, 0x40
jl 0x48ead3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret
Function at 0x48f6f0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4a1676
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov eax, dword [0x4b075c]
push esi
push edi
mov edi, dword [esp + 0x34]
push 0
push 0
push 3
mov dword [esp + 0x24], ecx
mov cl, byte [0x4b0760]
push 0
push 0
push connect
push edi
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], cl
mov dword [esp + 0x2c], 0
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp esi, 0xffffffff
mov ebp, eax
je 0x48f75e
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x4a7008
push edi
call fcn.0049274b
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x48f87f
lea esi, [ebp + 1]
push esi
call fcn.00491cd3
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
push ebx
and ecx, 3
push 1
push ebp
push edx
rep stosb byte es:[edi], al
mov dword [esp + 0x28], edx
call fcn.0049275e
push ebx
call fcn.00492564
push 0x114
call fcn.00491cd3
add esp, 0x1c
mov dword [esp + 0x34], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
je 0x48f7db
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push ecx
mov ecx, eax
call fcn.00490ba0
mov edi, eax
mov dword [esp + 0x34], edi
jmp 0x48f7e1
mov dword [esp + 0x34], ebx
mov edi, ebx
mov ecx, edi
mov dword [esp + 0x2c], 0xffffffff
call fcn.00490c00
mov esi, eax
cmp esi, ebx
je 0x48f862
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, dword [sym.imp.kernel32.dll_GetProcessHeap]
lea ebx, [edx + 4]
push 0x18
push 8
call edi
push eax
call ebp
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x2c], 1
je 0x48f830
push 0
push esi
push 0
mov ecx, eax
call fcn.00490220
jmp 0x48f832
xor eax, eax
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
inc eax
add ebx, 4
cmp eax, 0x1f4
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], eax
jge 0x48f85e
mov ecx, dword [esp + 0x34]
call fcn.00490c00
mov esi, eax
test esi, esi
jne 0x48f809
mov edi, dword [esp + 0x34]
test edi, edi
je 0x48f86e
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00491cc8
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x48ff10
Capabilities:
Encode data using xor
Get file size

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push connect
push ebx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
sub esi, 0xa
cmp edi, 0xffffffff
je 0x48ff4d
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x4a7008
push ebx
call fcn.0049274b
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x48ff6b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea edi, [esi + 1]
push edi
call fcn.00491cd3
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
push 0xa
rep stosb byte es:[edi], al
xor eax, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
call fcn.0049275e
push ebp
push 1
push esi
push ebx
call fcn.0049275e
push ebp
call fcn.00492564
add esp, 0x28
xor eax, eax
test esi, esi
jle 0x48ffd2
mov cl, byte [esp + 0x28]
mov dl, byte [eax + ebx]
xor dl, cl
mov byte [eax + ebx], dl
inc eax
cmp eax, esi
jl 0x48ffc5
mov edx, dword [esp + 0x24]
push 0x4a6678
push edx
call fcn.0049274b
mov edi, eax
add esp, 8
test edi, edi
jne 0x48ffff
push ebx
call fcn.00491cc8
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
mov cl, byte [esp + 0x10]
test cl, cl
je 0x490018
lea eax, [esp + 0x10]
xor cl, 0x14
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x49000b
lea eax, [esp + 0x10]
push eax
call fcn.00492900
add esp, 4
cmp eax, esi
je 0x490035
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
push edi
push 1
push esi
push ebx
call fcn.004925e1
push edi
call fcn.00492564
push ebx
call fcn.00491cc8
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4902f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0x20]
push 0x4a6680
push ecx
mov dword [esi + 8], 0
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 0
push connect
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
mov eax, dword [esp + 0x40]
push 0
push 0
push eax
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0x3c]
push 0
push ecx
lea edx, [esp + 0x14]
push 0xe
push edx
push edi
call ebx
mov eax, dword [esp + 0xe]
add eax, 0xfffffff2
push eax
call fcn.00491cd3
mov edx, dword [esp + 0x12]
add esp, 4
lea ecx, [esp + 0x3c]
add edx, 0xfffffff2
push 0
push ecx
push edx
push eax
push edi
mov dword [esi + 8], eax
call ebx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov cx, word [eax + 4]
mov word [esi], cx
mov dx, word [eax + 8]
mov word [esi + 2], dx
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x490403
mov ax, word [eax + 0xe]
cmp ax, 0x18
jne 0x4903be
mov word [esi + 4], 0
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
cmp ax, 8
jne 0x4903d5
mov word [esi + 4], pe_nt_image_headers32
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
cmp ax, 1
jne 0x4903ec
mov word [esi + 4], 2
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
cmp ax, 4
jne 0x4903ad
mov word [esi + 4], 0x10
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
mov ax, word [eax + 0x20]
pop edi
mov word [esi + 4], ax
mov eax, esi
pop esi
pop ebx
add esp, 0x2c
ret 8
Function at 0x491160
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push edi
cmp byte [ebp + 0x10], 1
jne 0x491179
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc
mov eax, dword [ebp + 0x20]
cmp eax, 0xffffffff
je 0x491187
push eax
call sub.ws2_32.dll_closesocket
push 0
push 1
push 2
call sub.ws2_32.dll_socket
cmp eax, 0xffffffff
mov dword [ebp + 0x20], eax
jne 0x4911a5
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc
mov edi, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
mov word [esp + 0x14], 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call sub.ws2_32.dll_inet_addr
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
push ebx
call sub.ws2_32.dll_htons
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x9bc]
mov word [esp + 0x12], ax
mov eax, dword [ebp + 0x20]
push 0x33
push ecx
push edx
push eax
call sub.ws2_32.dll_WSAAsyncSelect
mov edx, dword [ebp + 0x20]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
jne 0x491226
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x491226
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp + 4], eax
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc
mov ecx, dword [ebp + 0x20]
push esi
lea eax, [esp + 0x10]
push 4
push eax
push 0x1002
push 0xffff
push ecx
mov dword [esp + 0x24], 0xa000
call sub.ws2_32.dll_setsockopt
mov eax, dword [ebp + 0x20]
lea edx, [esp + 0x10]
push 4
push edx
push 0x1001
push 0xffff
push eax
call sub.ws2_32.dll_setsockopt
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x30]
pop esi
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x9b8], ecx
mov byte [ebp + 0x10], 2
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x4912b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x24]
cmp al, 0xb
jne 0x491358
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x20]
push 0
push eax
mov eax, dword [esi + 0x14]
add ecx, eax
push ecx
push edx
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x491379
test eax, eax
jne 0x4912ee
mov byte [esi + 0x10], 3
mov eax, 0xffffff81
pop esi
ret
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
sub ecx, eax
add edx, eax
test ecx, ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
jne 0x4913bf
mov ecx, dword [esi + 0x14]
xor eax, eax
mov byte [esi + 0x24], 0xc
mov ax, word [ecx + 1]
add eax, 0xfffffffd
test eax, eax
mov dword [esi + 0x28], eax
jne 0x491336
mov byte [esi + 0x24], 0xb
mov dword [esi + 0x28], 3
mov dword [esi + 0x2c], 0
mov eax, 0xffffff83
pop esi
ret
cmp eax, dword [esi + 0x1c]
jbe 0x4913bf
mov byte [esi + 0x24], 0xb
mov dword [esi + 0x28], 3
mov dword [esi + 0x2c], 0
mov eax, 0xffffff7c
pop esi
ret
cmp al, 0xc
jne 0x49132f
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x20]
push 0
push edx
mov edx, dword [esi + 0x2c]
add eax, edx
push eax
push ecx
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x491396
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x49138f
mov dword [esi + 4], eax
mov eax, 0xffffff7f
pop esi
ret
mov eax, 0xffffff80
pop esi
ret
test eax, eax
jne 0x4913a5
mov byte [esi + 0x10], 3
mov eax, 0xffffff81
pop esi
ret
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
sub edx, eax
add ecx, eax
mov eax, edx
mov dword [esi + 0x28], edx
test eax, eax
mov dword [esi + 0x2c], ecx
je 0x49131d
mov eax, 0xffffff84
pop esi
ret

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

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
movsx eax, word [ebx + 0x9b4]
push edi
mov ecx, dword [ebx + eax*4 + 0x54]
test ecx, ecx
je 0x491422
cmp dword [esp + 0x1c], 1
jne 0x491419
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.004914c0
cmp eax, 0xffffffff
je 0x49149c
neg eax
sbb eax, eax
pop edi
and eax, 6
pop esi
pop ebp
add eax, 0xffffff7a
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
jle 0x49144f
mov ebp, dword [esp + 0x14]
mov edx, dword [ebx + 0x20]
mov eax, edi
sub eax, esi
push 0
lea ecx, [esi + ebp]
push eax
push ecx
push edx
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x491458
add esi, eax
cmp esi, edi
jl 0x491430
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x491473
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebp
mov eax, 0xffffff7f
pop ebx
ret 0xc
cmp dword [esp + 0x1c], 1
jne 0x4914a8
sub edi, esi
add esi, ebp
push edi
push esi
mov ecx, ebx
call fcn.004914c0
cmp eax, 0xffffffff
je 0x49149c
test eax, eax
jne 0x4914a8
pop edi
pop esi
pop ebp
mov eax, 0xffffff7a
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xffffff7e
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xffffff80
pop ebx
ret 0xc
Function at 0x491560
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
movsx eax, word [ebx + 0x9b4]
push edi
mov ebp, dword [ebx + eax*4 + 0x54]
test ebp, ebp
je 0x4916a4
mov edi, dword [ebx + eax*4 + 0x504]
xor esi, esi
test edi, edi
jle 0x4915a5
mov edx, dword [ebx + 0x20]
mov eax, edi
sub eax, esi
push 0
lea ecx, [esi + ebp]
push eax
push ecx
push edx
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x491619
add esi, eax
cmp esi, edi
jl 0x491586
mov edi, esi
movsx eax, word [ebx + 0x9b4]
cmp edi, dword [ebx + eax*4 + 0x504]
jne 0x491632
mov eax, dword [ebx + eax*4 + 0x54]
push eax
call fcn.00491cc8
movsx edx, word [ebx + 0x9b4]
xor ecx, ecx
add esp, 4
mov dword [ebx + edx*4 + 0x54], ecx
movsx eax, word [ebx + 0x9b4]
mov dword [ebx + eax*4 + 0x504], ecx
inc word [ebx + 0x9b4]
movsx edx, word [ebx + 0x9b4]
cmp edx, dword [ebx + 0x9c0]
jl 0x4915fc
mov word [ebx + 0x9b4], cx
movsx eax, word [ebx + 0x9b4]
mov ebp, dword [ebx + eax*4 + 0x54]
cmp ebp, ecx
jne 0x491579
pop edi
pop esi
pop ebp
mov eax, 0xffffff78
pop ebx
ret
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4915a5
mov dword [ebx + 4], eax
mov edi, 0xffffff7f
jmp 0x4915a7
test edi, edi
jge 0x49163d
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
movsx eax, word [ebx + 0x9b4]
mov ecx, dword [ebx + eax*4 + 0x504]
sub ecx, edi
push ecx
call fcn.00491cd3
mov ebp, eax
movsx eax, word [ebx + 0x9b4]
mov ecx, dword [ebx + eax*4 + 0x504]
mov esi, dword [ebx + eax*4 + 0x54]
sub ecx, edi
add esi, edi
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx eax, word [ebx + 0x9b4]
mov ecx, dword [ebx + eax*4 + 0x54]
push ecx
call fcn.00491cc8
movsx edx, word [ebx + 0x9b4]
add esp, 8
mov eax, 0xffffff79
mov dword [ebx + edx*4 + 0x54], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffff78
pop ebx
ret