joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4218a0
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x443350]
push ebx
mov ebx, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov ecx, dword [eax]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
mov edx, dword [eax + 4]
push esi
push edi
mov dword [ebx + 0xc], edx
jb 0x421a01
cmp ecx, 0x38
jbe 0x4218ea
mov dword [ebp + 0xc], 0x38
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebx + 0x10]
mov ecx, 0x12
mov esi, 0x436e98
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x58]
mov ecx, 0x400
mov esi, 0x436ee0
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c]
xor eax, eax
mov esi, edx
mov dword [esp + 0x10], 0x12
nop
xor edx, edx
mov dword [esp + 0xc], 4
lea ebx, [ebx]
movzx edi, byte [ecx]
shl edx, 8
or edx, edi
mov edi, dword [ebp + 0xc]
inc ecx
inc eax
cmp eax, edi
jne 0x421957
xor eax, eax
lea ecx, [esp + 0x1c]
dec dword [esp + 0xc]
jne 0x421940
mov edi, dword [esi]
xor edi, edx
mov edx, dword [esp + 0x10]
mov dword [esi], edi
add esi, 4
dec edx
mov dword [esp + 0x10], edx
jne 0x421930
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
lea esi, [ebx + 0x10]
mov edi, edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00421260
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi], edx
add esi, 4
inc edi
mov dword [esi], eax
inc edi
add esi, 4
cmp edi, 0x12
jb 0x421980
lea eax, [ebx + 0x58]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 4
mov esi, dword [esp + 0xc]
xor edi, edi
lea ebx, [ebx]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00421260
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi], edx
add esi, 4
inc edi
mov dword [esi], eax
inc edi
add esi, 4
cmp edi, 0x100
jl 0x4219c0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add ecx, 0x400
dec eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
jne 0x4219b4
mov ecx, dword [esp + 0x54]
mov eax, ebx
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x423b10
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x488e80]
test eax, eax
jne 0x423b23
call fcn.00423a80
mov eax, dword [0x488e80]
mov ecx, dword [eax + 0x58]
test ecx, ecx
push esi
push edi
lea edi, [eax + 0x58]
mov esi, eax
jne 0x423b61
mov dword [eax + 0x24], 0
lea eax, [esi + 0x5c]
push eax
push 0
push esi
push 0x423570
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
mov dword [esi + 0x60], eax
je 0x423b5c
mov dword [edi], 1
mov eax, dword [0x488e80]
test eax, eax
pop edi
pop esi
jne 0x423b71
call fcn.00423a80
mov eax, dword [0x488e80]
ret
Function at 0x4243a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe58
mov eax, dword [0x443350]
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
xor esi, esi
mov ecx, 0x200
lea edi, [ebp - 0x814]
rep stosd dword es:[edi], eax
lea ecx, [ebx + 0x158]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xe64], ebx
mov dword [ebp - 0xe58], esi
mov dword [ebp - 0xe5c], esi
call fcn.00425e30
lea esp, [esp]
mov al, byte [ebx + 0x54]
test al, al
je 0x424437
mov ecx, dword [ebx + 0x40]
push esi
push 0x640
lea eax, [ebp - 0xe54]
push eax
push ecx
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jg 0x424450
mov byte [ebx + 0x54], 0
mov ebx, dword [ebx + 0x3c]
cmp ebx, esi
je 0x424437
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebp - 0xe54]
push eax
lea ecx, [ebx + 0x158]
call fcn.00425fd0
mov dword [ebp - 0xe58], esi
lea esp, [esp]
push 0
push 0
push 0
lea ecx, [ebp - 0xe58]
push ecx
push 0x800
lea edx, [ebp - 0x814]
push edx
lea ecx, [ebx + 0x158]
call fcn.00426090
test eax, eax
je 0x4245dd
mov al, byte [ebx + 0x54]
test al, al
je 0x4245dd
jmp 0x4244b0
mov eax, dword [ebx + 0xf0]
cmp eax, dword [ebx + 0xec]
je 0x4244fa
mov ecx, dword [ebx + 0xe4]
mov edi, dword [ecx + eax*4]
inc eax
cdq
idiv dword [ebx + 0xe8]
mov eax, dword [ebx + 0xf8]
test eax, eax
mov dword [ebp - 0xe60], edi
mov dword [ebx + 0xf0], edx
je 0x424511
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x424511
cmp byte [eax], 0
je 0x424511
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x424511
mov al, byte [ebx + 0x54]
test al, al
je 0x42450b
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4244b0
mov edi, dword [ebp - 0xe60]
mov al, byte [ebx + 0x54]
test al, al
je 0x4245dd
mov dx, word [ebp - 0xe58]
mov word [edi + 0x800], dx
movzx ecx, word [ebp - 0xe58]
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0x814]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0xe5c]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0xe5c], eax
movzx ecx, word [ebx + 0x60]
mov eax, dword [ebp - 0xe5c]
xor edx, edx
div ecx
cmp dx, word [ebx + 8]
jae 0x4245bc
movzx ecx, word [ebx + 0xa]
movzx edx, dx
imul ecx, edx
mov edx, dword [ebx + 0xc]
shl ecx, 5
mov esi, dword [ecx + edx + 8]
add ecx, edx
lea eax, [esi + 1]
cdq
idiv dword [ecx + 4]
cmp edx, dword [ecx + 0xc]
je 0x4245bc
test esi, esi
mov eax, dword [ecx]
mov edi, dword [ebp - 0xe60]
mov dword [eax + esi*4], edi
mov dword [ecx + 8], edx
jl 0x4245bc
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x424470
mov dl, byte [ecx + 0x10]
test dl, dl
je 0x424470
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x424470
mov al, byte [ebx + 0x54]
test al, al
je 0x424470
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x424552
mov dword [ebp - 4], 0xffffffff
xor esi, esi
jmp 0x424400
Function at 0x4245f0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x54]
test al, al
je 0x4246d5
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_send]
push edi
jmp 0x424610
mov eax, dword [esi + 0x134]
cmp eax, dword [esi + 0x130]
je 0x4246d7
mov ecx, dword [esi + 0x128]
mov ebx, dword [ecx + eax*4]
inc eax
cdq
idiv dword [esi + 0x12c]
mov eax, dword [esi + 0x13c]
test eax, eax
mov dword [esi + 0x134], edx
je 0x424656
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x424656
cmp byte [eax], 0
je 0x424656
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
movzx eax, word [ebx + 0x800]
xor edi, edi
test eax, eax
jle 0x424683
push 0
sub eax, edi
push eax
mov eax, dword [esi + 0x40]
lea edx, [edi + ebx]
push edx
push eax
call ebp
test eax, eax
jl 0x424683
add edi, eax
movzx eax, word [ebx + 0x800]
cmp edi, eax
jl 0x424663
mov ecx, dword [esi + 0x118]
lea eax, [ecx + 1]
cdq
idiv dword [esi + 0x114]
cmp edx, dword [esi + 0x11c]
je 0x4246c7
mov eax, dword [esi + 0x110]
mov dword [eax + ecx*4], ebx
mov eax, dword [esi + 0x120]
test eax, eax
mov dword [esi + 0x118], edx
je 0x4246c7
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4246c7
cmp byte [eax], 0
je 0x4246c7
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, byte [esi + 0x54]
test al, al
jne 0x424610
pop edi
pop ebp
pop ebx
pop esi
ret
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4246c7
Function at 0x4252e0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x432660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov eax, dword [0x443350]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x19c], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x24]
mov dword [esi], 0x437f90
push eax
mov dword [esp + 0x10], esi
mov dword [esi + 4], 0x437fbc
call edi
xor ebx, ebx
mov word [esi + 8], bx
mov word [esi + 0xa], bx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
lea eax, [esi + 0x68]
push eax
mov dword [esp + 0x1b0], ebx
mov dword [esi], 0x438048
mov dword [esi + 4], 0x438040
call edi
lea eax, [esi + 0x80]
push eax
call edi
lea eax, [esi + 0x98]
push eax
call edi
lea eax, [esi + 0xb0]
push eax
call edi
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
lea eax, [esi + 0x140]
push eax
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x134], ebx
call edi
lea ecx, [esi + 0x158]
mov byte [esp + 0x1ac], 5
call fcn.00425ce0
xor eax, eax
lea ecx, [esi + 0x16c]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov byte [esi + 0x54], bl
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
lea eax, [esi + 0x44]
xor edx, edx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x10c], ebx
mov ecx, eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
lea edx, [esp + 0x10]
push edx
push 0x202
mov word [eax], 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x1a4]
mov dword [esi + 0x64], ebx
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x198]
pop ebx
call fcn.00426448
add esp, 0x1a4
ret
Function at 0x42681b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x4381a0
call fcn.00426a98
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x42685b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42685b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x426873
cmp eax, 0x20b
je 0x426860
mov dword [ebp - 0x1c], edi
jmp 0x426887
cmp dword [ecx + 0x84], 0xe
jbe 0x42685b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x426881
cmp dword [ecx + 0x74], 0xe
jbe 0x42685b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x488f48], 0xffffffff
or dword [0x488f4c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x488eac]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x488ea8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x488f44], eax
call fcn.00426b02
call fcn.00426ba2
cmp dword [0x443380], edi
jne 0x4268e7
push fcn.00426ba2
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00426b90
push 0x443044
push 0x443040
call sub.MSVCR71.dll__initterm
push 0x426b46
call fcn.00426544
mov eax, dword [0x488ea4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x488ea0]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x42693b
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x44303c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x426965
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x426a1f
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x4269d4
cmp ax, di
je 0x42697b
cmp dword [ebp - 0x20], edi
jne 0x4269d4
mov ax, word [esi]
cmp ax, di
je 0x426990
cmp ax, 0x20
ja 0x426990
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x42697b
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x4269ac
movzx eax, word [ebp - 0x54]
jmp 0x4269af
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.004039a0
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x4269cc
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x426a19
cmp ax, 0x22
jne 0x4269e5
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x426965
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00426ad3
ret
Function at 0x4273b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x7c
mov eax, dword [0x443350]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x20]
push esi
push eax
call fcn.0040ca30
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0040d340
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0040d400
mov eax, dword [esp + 0xa4]
add esp, 0x18
mov byte [esp + 4], 0x30
mov byte [esp + 5], 0x31
mov byte [esp + 6], 0x32
mov byte [esp + 7], 0x33
mov byte [esp + 8], 0x34
mov byte [esp + 9], 0x35
mov byte [esp + 0xa], 0x36
mov byte [esp + 0xb], 0x37
mov byte [esp + 0xc], 0x38
mov byte [esp + 0xd], 0x39
mov byte [esp + 0xe], 0x61
mov byte [esp + 0xf], 0x62
mov byte [esp + 0x10], 0x63
mov byte [esp + 0x11], 0x64
mov byte [esp + 0x12], 0x65
mov byte [esp + 0x13], 0x66
xor esi, esi
lea esp, [esp]
movzx ecx, byte [esp + esi + 0x14]
mov edx, ecx
shr edx, 4
movzx edx, byte [esp + edx + 4]
mov byte [eax], dl
and ecx, 0xf
movzx ecx, byte [esp + ecx + 4]
mov byte [eax + 1], cl
movzx ecx, byte [esp + esi + 0x15]
add eax, 1
mov edx, ecx
shr edx, 4
movzx edx, byte [esp + edx + 4]
mov byte [eax + 1], dl
and ecx, 0xf
movzx ecx, byte [esp + ecx + 4]
add eax, 1
mov byte [eax + 1], cl
movzx ecx, byte [esp + esi + 0x16]
add eax, 1
mov edx, ecx
shr edx, 4
movzx edx, byte [esp + edx + 4]
mov byte [eax + 1], dl
add eax, 1
and ecx, 0xf
movzx ecx, byte [esp + ecx + 4]
mov byte [eax + 1], cl
movzx ecx, byte [esp + esi + 0x17]
add eax, 1
mov edx, ecx
shr edx, 4
movzx edx, byte [esp + edx + 4]
add eax, 1
and ecx, 0xf
movzx ecx, byte [esp + ecx + 4]
mov byte [eax], dl
add eax, 1
mov byte [eax], cl
add esi, 4
add eax, 1
cmp esi, 0x10
jl 0x427450
mov ecx, dword [esp + 0x7c]
pop esi
call fcn.00426448
add esp, 0x7c
ret
Function at 0x42a9d0
Capabilities:
Access peb ldr_data
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x432803
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov eax, dword [0x443350]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x1a0], eax
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x43d2b0
xor ebx, ebx
mov dword [esp + 0x1b0], ebx
lea ecx, [esi + 0xc]
mov dword [esi], 0x43d2dc
call fcn.0042b6a0
mov byte [esp + 0x1b0], 1
lea edi, [esi + 0x48]
mov ecx, edi
call fcn.0040dee0
mov byte [esp + 0x1b0], 2
lea ebp, [esi + 0x4c]
mov ecx, ebp
call fcn.0040dee0
mov byte [esp + 0x1b0], 3
mov eax, 5
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], eax
mov byte [esp + 0x1b0], 4
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], eax
mov byte [esp + 0x1b0], al
lea eax, [esi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x1b0], 6
lea eax, [esi + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x1b0], 7
lea eax, [esi + 0x20]
mov dword [esi + 4], ebx
mov dword [esi + 8], 0xffffffff
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov word [eax], 2
lea eax, [esp + 0x14]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push 1
mov ecx, edi
call fcn.0040a800
push ebx
push 1
mov ecx, ebp
call fcn.0040a800
mov dword [esi + 0x44], ebx
mov dword [esp + 0x1b0], 0xffffffff
mov ecx, dword [esp + 0x1a8]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x198]
pop ebx
call fcn.00426448
add esp, 0x1a4
ret
Function at 0x42ac40
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ioctlsocket]
push esi
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
mov ebx, 1
push eax
mov dword [esp + 0x18], ebx
call ebp
test eax, eax
jne 0x42ac8f
mov eax, dword [esi + 8]
push 0x10
lea edx, [esi + 0x20]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x42ac9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x42ac9b
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x42ad49
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x12c]
push edx
mov dword [esp + 0x134], eax
mov dword [esp + 0x30], eax
push 0
inc eax
push eax
mov dword [esp + 0x138], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 0x7a120
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x42ad49
mov ecx, dword [esi + 8]
lea eax, [esp + 0x20]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x42ad49
mov eax, dword [esi + 8]
lea edx, [esp + 0x124]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42ad37
mov edx, dword [esi + 8]
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push edx
mov edi, ebx
mov dword [esp + 0x28], 0
call ebp
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x28
mov dword [esp + 0x10], eax
jl 0x42aca2
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
Function at 0x42b020
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x614
mov eax, dword [0x443350]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x60c], ebx
xor edi, edi
mov dword [ebp - 0x604], edi
mov dword [ebp - 0x608], edi
xor esi, esi
mov dword [ebp - 0x600], esi
lea ebx, [ebx]
mov al, byte [ebx + 0x30]
test al, al
je 0x42b0b4
mov dword [ebp - 4], edi
push edi
push 0x5e8
lea eax, [ebp - 0x5fc]
push eax
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x610], eax
cmp eax, edi
jg 0x42b0d6
mov byte [ebx + 0x30], 0
mov ebx, dword [ebx + 4]
cmp ebx, edi
je 0x42b0ad
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 0xc]
push eax
lea eax, [ebp - 0x5fc]
push eax
call fcn.0042c0a0
cmp esi, edi
jne 0x42b138
mov dword [ebp - 0x620], 0x802
push 0x802
call fcn.00423bf9
add esp, 4
mov edx, eax
mov dword [ebp - 0x61c], edx
cmp edx, edi
je 0x42b11c
mov ecx, 0x200
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x42b11e
xor edx, edx
mov esi, edx
mov dword [ebp - 0x600], esi
xor edi, edi
cmp esi, edi
jne 0x42b138
mov dword [ebp - 4], 0xffffffff
jmp 0x42b070
mov dword [ebp - 0x604], edi
mov edi, edi
lea ecx, [ebp - 0x608]
push ecx
lea edx, [ebp - 0x604]
push edx
push 0x800
push esi
lea ecx, [ebx + 0xc]
call fcn.0042b900
cmp eax, 1
jne 0x42b206
mov ax, word [ebp - 0x604]
mov word [esi + 0x800], ax
lea edi, [ebx + 0x98]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [ebx + 0x68]
call fcn.0042ad60
lea ecx, [ebx + 0x48]
call fcn.0040a880
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x600], 0
mov dword [ebp - 0x614], 0x802
push 0x802
call fcn.00423bf9
add esp, 4
mov edx, eax
mov dword [ebp - 0x618], edx
test edx, edx
je 0x42b1d4
mov ecx, 0x200
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x42b1d6
xor edx, edx
mov esi, edx
mov dword [ebp - 0x600], esi
test esi, esi
jne 0x42b140
mov dword [ebp - 4], 0xffffffff
xor edi, edi
jmp 0x42b070
mov dword [ebp - 4], 0xffffffff
xor edi, edi
jmp 0x42b070
Function at 0x42b340
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4328a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0
lea ecx, [ecx]
mov al, byte [ebx + 0x30]
test al, al
je 0x42b466
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x42b396
push 0xffffffffffffffff
lea ecx, [ebx + 0x4c]
call fcn.0040a850
lea edi, [ebx + 0x50]
mov eax, dword [edi]
mov dword [ebp - 0x24], eax
lea esi, [ebx + 0x80]
push esi
test eax, eax
jle 0x42b40f
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
call fcn.0042add0
mov edi, eax
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x42b3fa
cmp dword [ebx + 8], 0xffffffff
je 0x42b3fa
xor esi, esi
mov dword [ebp - 0x18], esi
movzx eax, word [edi + 0x800]
cmp esi, eax
jge 0x42b3fa
push 0
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x42b3fa
add esi, eax
jmp 0x42b3ce
mov dword [ebp - 0x2c], edi
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x42b396
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x42b427
lea ecx, [ebx + 0x4c]
call fcn.0040a890
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
jmp 0x42b370
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ecc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xdc
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 4]
mov edx, ecx
mov cl, byte [eax + 0x81]
xor ebx, ebx
cmp cl, bl
push esi
mov esi, dword [esp + 0xec]
jne 0x42ecfe
mov cl, byte [esi]
cmp byte [eax + 0x10], cl
jge 0x42ecf2
mov eax, dword [eax + 8]
jmp 0x42ecf6
mov edx, eax
mov eax, dword [eax]
cmp byte [eax + 0x81], bl
je 0x42ece8
cmp edx, dword [ebp + 4]
je 0x42ed0e
mov al, byte [esi]
cmp al, byte [edx + 0x10]
jge 0x42ed8f
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
push edi
mov byte [esp + 0x44], cl
xor eax, eax
mov byte [esp + 0x14], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov ecx, 0xc
lea edi, [esp + 0x45]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov al, byte [esi]
mov byte [esp + 0x7c], al
mov ecx, 0x1a
lea esi, [esp + 0x14]
lea edi, [esp + 0x84]
mov dword [esp + 0x78], ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x7c]
push ecx
push edx
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
call fcn.0042ea90
mov eax, dword [eax]
pop edi
pop esi
pop ebp
add eax, 0x18
pop ebx
add esp, 0xdc
ret 4
pop esi
pop ebp
lea eax, [edx + 0x18]
pop ebx
add esp, 0xdc
ret 4