joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3afc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp byte [0x89048a], 0
mov byte [ebp - 4], dl
mov dword [ebp - 0xc], ecx
jne 0x4a3b15
xor eax, eax
leave
ret
push ebx
push esi
lea ecx, [ebp - 8]
call fcn.004a2600
mov ecx, eax
call fcn.004a0ff9
mov ecx, eax
call fcn.00482127
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 8]
inc bl
call fcn.004a0c7d
test bl, bl
je 0x4a3b7f
push 0
lea ecx, [ebp - 8]
call fcn.004a2600
mov ecx, eax
call fcn.004a0ff9
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 8]
mov esi, eax
call fcn.004a0c7d
test esi, esi
jne 0x4a3b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a3b7f
test eax, eax
je 0x4a3b7f
xor eax, eax
jmp 0x4a3cf1
cmp byte [ebp - 0xc], 0
mov eax, dword [0x88c8e4]
mov ecx, dword [0x88c8e0]
mov edx, dword [0x88dd40]
jne 0x4a3bb0
cmp byte [ebp - 4], 0
jne 0x4a3bc2
cmp eax, dword [0x88dc2c]
jg 0x4a3bb6
jl 0x4a3bba
cmp ecx, dword [0x88dc28]
jae 0x4a3bb6
jmp 0x4a3bba
cmp byte [ebp - 4], 0
jne 0x4a3bc2
test edx, edx
je 0x4a3bc2
push 2
pop eax
jmp 0x4a3cf1
add ecx, 0x258
push 0
pop esi
adc eax, esi
mov dword [0x88dc28], ecx
mov dword [0x88dc2c], eax
cmp edx, esi
je 0x4a3bec
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x88dd40], esi
jne 0x4a3bdc
call fcn.0047cfd9
lea ecx, [ebp - 0x34]
call fcn.0040c16d
lea ecx, [ebp - 0x34]
call fcn.0049662e
call fcn.0047cff8
push 0x52bea8
lea ecx, [ebp - 8]
call fcn.004a0fd9
lea edx, [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.004a2619
lea ecx, [ebp - 8]
call fcn.004a0c7d
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x34]
xor bl, bl
call fcn.004a2653
test eax, eax
jne 0x4a3c39
inc bl
cmp dword [0x88de2c], 0
push edi
mov edi, 0x50fa3c
je 0x4a3cd6
call fcn.0047cfd9
lea ecx, [ebp - 0x24]
call fcn.0040c16d
mov eax, dword [0x88de24]
push dword [eax + esi*4]
lea eax, [ebp - 0x14]
push 0x52be98
push eax
call fcn.004a1618
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 8]
call fcn.004a2619
lea ecx, [ebp - 0x14]
call fcn.004a0c7d
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x88de24]
mov ecx, dword [eax + esi*4]
call fcn.00419add
call fcn.0047cff8
lea edx, [ebp - 8]
lea ecx, [ebp - 0x24]
call fcn.004a2653
test eax, eax
jne 0x4a3cae
mov bl, 1
lea ecx, [ebp - 0x24]
call fcn.0040baef
lea ecx, [ebp - 8]
call fcn.004a0c7d
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
call fcn.0040ba32
inc esi
cmp esi, dword [0x88de2c]
jne 0x4a3c4c
lea ecx, [ebp - 0x10]
call fcn.004a0c7d
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], edi
call fcn.0040ba32
xor eax, eax
test bl, bl
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a50f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call fcn.00482781
lea ecx, [ebp - 4]
call fcn.004a0e93
xor esi, esi
cmp dword [ebp - 0xc], edi
jbe 0x4a5196
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi*4]
mov ecx, dword [eax]
mov edx, 0x51d43c
call fcn.0049fc6f
test al, al
je 0x4a5190
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi*4]
push dword [eax]
push dword [ebp + 8]
push 0x510a5c
call fcn.0049f9e2
add esp, 0xc
push eax
lea ecx, [ebp - 4]
call fcn.004a0c86
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
mov dword [ebp - 8], eax
push 0x4a2890
lea eax, [ebp - 8]
push eax
call fcn.004a4e02
test al, al
jne 0x4a5190
lea ecx, [ebp - 4]
call fcn.004a0ff9
push eax
call fcn.00466ca2
add esp, 4
lea ecx, [ebp - 4]
call fcn.004a0ff9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4a511e
lea ecx, [ebp - 4]
call fcn.004a0c7d
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc], edi
call fcn.004a0bd2
pop edi
pop esi
leave
ret 8
Function at 0x4a99cf
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ecx + 0x19c]
push edi
mov edi, dword [ecx + 0x1a4]
mov dword [ebp - 8], ecx
jmp 0x4a99fd
mov eax, dword [esi]
push 0x52cd98
push eax
call sub.msvcrt.dll__strcmpi
pop ecx
pop ecx
test eax, eax
je 0x4a9a12
add esi, 0xc
dec edi
jns 0x4a99e7
mov ecx, dword [ebp + 8]
push 0x52cd20
call fcn.004a0fd9
jmp 0x4a9b63
push ebx
xor edx, edx
xor ecx, ecx
call fcn.0048245f
lea ecx, [ebp - 4]
mov edi, eax
call fcn.004a0e93
mov eax, dword [esi + 8]
xor ebx, ebx
cmp byte [ebp + 0x14], bl
je 0x4a9a38
mov ecx, dword [esi + 4]
call fcn.004b687a
mov edx, dword [esi + 4]
push eax
mov ecx, edi
call fcn.004b9462
test al, al
je 0x4a9b2b
push 0x28
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4a9a62
mov ecx, esi
call fcn.004ba443
jmp 0x4a9a64
xor esi, esi
mov eax, dword [ebp - 8]
add eax, 0x1f8
push eax
mov ecx, esi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], ebx
call fcn.004ba47e
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], ebx
call fcn.004a0e93
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x4a9a9c
call fcn.0049e604
jmp 0x4a9a9e
xor eax, eax
cmp dword [ebp + 0x18], ebx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x14]
push ecx
setne cl
lea ecx, [ecx + ecx + 1]
push ecx
push ebx
push eax
push ebx
push esi
push 0x4a90b1
push ebx
push dword [ebp + 0x10]
mov ecx, edi
call fcn.00426e8f
test eax, eax
jne 0x4a9b0d
lea ecx, [ebp + 0x14]
call fcn.004a0ff9
push eax
push edi
push 0x52ccd8
call fcn.004263e6
add esp, 0xc
lea ecx, [ebp + 0x14]
call fcn.004a0ff9
push eax
lea eax, [ebp + 0x18]
push 0x52ccac
push eax
call fcn.004a1618
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 4]
call fcn.004a101e
lea ecx, [ebp + 0x18]
call fcn.004a0c7d
jmp 0x4a9b1a
push edi
push 0x52cc60
call fcn.004263e6
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp + 0x14]
call fcn.004a0c7d
jmp 0x4a9b45
push edi
push 0x52cc10
call fcn.004263e6
pop ecx
pop ecx
push 0x52cbd8
lea ecx, [ebp - 4]
call fcn.004a101e
mov dl, 1
mov ecx, edi
call fcn.00479b79
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.004a1682
lea ecx, [ebp - 4]
call fcn.004a0c7d
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret 0x14
Function at 0x4adca5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x44]
mov eax, ebx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4adcbc
sub eax, edi
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
mov eax, 0xbb7
sub eax, edi
push eax
lea eax, [ebx + edi]
push eax
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [ebp - 8]
je 0x4adcf1
mov byte [ebp - 1], 1
test eax, eax
jne 0x4adcf5
mov byte [ebp - 1], 0
add edi, eax
mov byte [edi + esi + 0x44], 0
mov eax, dword [ebp - 8]
add dword [esi + 0xc], eax
push 0xa
push ebx
adc dword [esi + 0x10], 0
call sub.msvcrt.dll_strchr
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4add27
push 0xd
push ebx
call sub.msvcrt.dll_strchr
pop ecx
pop ecx
mov edi, eax
jmp 0x4addef
mov eax, edi
sub eax, esi
sub eax, 0x44
push eax
push 0
push ebx
lea ecx, [ebp - 0xc]
call fcn.004a0e45
jmp 0x4add41
cmp al, 0x20
jae 0x4add47
inc edi
mov al, byte [edi]
test al, al
jne 0x4add3c
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4add4c
sub eax, ecx
inc eax
push eax
push edi
push ebx
call sub.msvcrt.dll_memmove
push 0xa
push ebx
call sub.msvcrt.dll_strchr
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4add7d
push 0xd
push ebx
call sub.msvcrt.dll_strchr
pop ecx
mov edi, eax
pop ecx
test edi, edi
setne al
movzx eax, al
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [esi + 0x34]
call fcn.004495ab
lea ecx, [esi + 0x34]
call fcn.004492bf
fmul qword [0x5140d8]
call fcn.00401030
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
test eax, eax
je 0x4adde7
xor ecx, ecx
call fcn.0047a82b
mov ecx, eax
mov eax, dword [ebp + 8]
sub ecx, dword [eax + 0x14]
sbb edx, dword [eax + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
fild qword [ebp - 0x14]
lea ecx, [esi + 0x34]
fstp qword [ebp - 0x1c]
call fcn.004492bf
fdiv qword [0x511510]
fdivr qword [ebp - 0x1c]
call fcn.00401030
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0xc]
call fcn.004a0c7d
test edi, edi
jne 0x4add27
cmp byte [ebp - 1], 0
jne 0x4adcb7
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4ade7c
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x4ade94
mov al, 1
jmp 0x4ae048
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x4aded5
lea ecx, [esi + 0x34]
call fcn.004492bf
fcomp qword [0x511510]
fnstsw ax
test ah, 0x44
jnp 0x4aded5
mov eax, dword [ebp + 8]
cmp byte [eax], 6
je 0x4adece
or dword [eax + 8], 0xffffffff
mov byte [eax], 3
push dword [0x895e78]
lea ecx, [eax + 0x28]
call fcn.004a101e
xor al, al
jmp 0x4ae047
push edi
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 8]
mov ecx, esi
push edi
test eax, eax
jne 0x4ae034
call fcn.004adca5
push dword [esi + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
or dword [esi + 0x30], 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
mov dword [edi + 8], eax
push dword [esi + 8]
call ebx
and dword [esi + 8], 0
cmp dword [edi + 8], 0
jne 0x4adfba
lea ecx, [esi + 0x24]
call fcn.004a0ff9
push eax
lea ecx, [esi + 0x20]
call fcn.004a0ff9
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4adf50
mov byte [edi], 6
mov dword [edi + 4], 0x3e8
jmp 0x4adf9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 0x400
lea edx, [ebp - 0x804]
mov ecx, ebx
mov byte [edi], 3
mov dword [edi + 8], ebx
call fcn.004b922b
push ebx
lea eax, [ebp - 0x804]
push eax
push dword [0x8965c8]
lea eax, [ebp + 8]
push eax
call fcn.004a1618
add esp, 0x10
push dword [eax]
lea ecx, [edi + 0x28]
call fcn.004a101e
lea ecx, [ebp + 8]
call fcn.004a0c7d
cmp byte [0x890489], 0
je 0x4ae030
lea ecx, [esi + 0x2c]
call fcn.004a0ff9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4ae030
lea ecx, [esi + 0x20]
mov byte [edi], 3
call fcn.004a0ff9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x3c
push esi
lea ecx, [ebp + 8]
call fcn.004a1664
lea ecx, [ebp + 8]
lea esi, [edi + 0x28]
call fcn.004a0e99
mov ecx, eax
call fcn.0049e604
push eax
mov ecx, esi
call fcn.004a101e
lea ecx, [ebp + 8]
call fcn.004a0c7d
mov ecx, esi
call fcn.004a1005
test eax, eax
jne 0x4ae030
push 0x512b50
push dword [ebp - 4]
lea eax, [ebp + 8]
push dword [0x895e74]
push eax
call fcn.004a1618
add esp, 0x10
push dword [eax]
mov ecx, esi
call fcn.004a101e
lea ecx, [ebp + 8]
call fcn.004a0c7d
xor al, al
jmp 0x4ae046
mov byte [edi], 1
call fcn.004adca5
cmp dword [esi + 0x14], ebx
je 0x4ae044
mov byte [edi], 2
mov al, 1
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4ae8f9
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
push dword [ebx + 4]
xor edi, edi
lea esi, [ebp - 0x10]
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call fcn.004ae584
test al, al
jne 0x4ae936
xor bl, bl
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], edi
call fcn.004a0bd2
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
xor esi, esi
cmp dword [ebp - 8], edi
jbe 0x4ae971
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4ae96b
xor edi, edi
mov byte [ebp - 1], 0
test esi, esi
jle 0x4ae96b
mov eax, dword [ebp - 0x10]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc edi
cmp edi, esi
jl 0x4ae95a
inc esi
cmp esi, dword [ebp - 8]
jb 0x4ae93d
xor edi, edi
xor esi, esi
cmp dword [ebp - 8], edi
jbe 0x4ae98c
mov eax, dword [ebp - 0x10]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x4ae97a
cmp byte [ebp - 1], 0
je 0x4ae995
inc dword [ebx + 0x14]
mov bl, byte [ebp - 1]
jmp 0x4ae924

Function at 0x4ae99a
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x14], ebx
jne 0x4ae9c1
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], ebx
call fcn.004a0bd2
jmp 0x4aea05
push esi
push dword [edi + 4]
lea esi, [ebp - 0xc]
call fcn.004ae584
test al, al
je 0x4ae9f9
xor esi, esi
cmp dword [ebp - 4], ebx
jbe 0x4ae9f6
mov eax, dword [ebp - 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 4]
jb 0x4ae9d8
dec dword [edi + 0x14]
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], ebx
call fcn.004a0bd2
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4aff57
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 4], 0x80
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4affaa
push esi
push edi
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.0049ca78
mov edi, dword [ebp + 0x18]
push 5
pop ecx
lea esi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x4b07ab
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x19c
push ebx
push esi
mov esi, dword [ebp + 0x78]
movzx eax, word [esi + 0x10]
push eax
mov dword [ebp + 0x60], ecx
mov byte [ebp - 0xb6], 0
mov byte [ebp - 0xb5], 0
mov byte [ebp - 0xb7], 0
mov byte [ebp - 0xb8], 0
call dword [sym.imp.WS2_32.dll_htons_1]
cmp dword [ebp + 0x7c], 0
movzx ebx, ax
mov dword [ebp + 0x78], ebx
je 0x4b0830
mov eax, dword [ebp + 0x7c]
mov byte [ebp - 0xb5], 3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b07fe
sub eax, edx
mov ebx, eax
push ebx
push dword [ebp + 0x7c]
lea eax, [ebp - 0xb3]
push eax
mov byte [ebp - 0xb4], bl
call sub.msvcrt.dll_memcpy
mov ax, word [ebp + 0x78]
add esp, 0xc
mov word [ebp + ebx - 0xb3], ax
jmp 0x4b086e
mov ecx, esi
call fcn.0040cb36
test al, al
je 0x4b0854
mov eax, dword [esi + 0xc]
mov byte [ebp - 0xb5], 1
mov dword [ebp - 0xb4], eax
mov word [ebp - 0xb0], bx
jmp 0x4b086e
push edi
mov byte [ebp - 0xb5], 4
lea edi, [ebp - 0xb4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebp - 0xa4], bx
pop edi
lea eax, [ebp - 0xb8]
mov ecx, eax
mov dword [ebp + 0x54], eax
call fcn.004b009e
mov ecx, dword [ebp + 0x60]
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x5c], eax
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp - 0x138]
push eax
add ecx, 0xe8
call fcn.004729f6
xor esi, esi
push esi
push esi
push dword [ebp + 0x78]
lea eax, [ebp - 0x138]
push eax
push esi
lea eax, [ebp + 0x7c]
push eax
push 2
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x7c], esi
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, esi
mov esi, eax
jne 0x4b08d4
mov esi, dword [ebp + 0x7c]
or eax, 0xffffffff
cmp esi, eax
je 0x4b08f4
lea ecx, [ebp - 0xb8]
call fcn.004b009e
mov ecx, eax
cmp esi, ecx
jg 0x4b08f0
xor eax, eax
jmp 0x4b08f4
mov eax, esi
sub eax, ecx
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14
Function at 0x4b0a62
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea edi, [ebx + 0x28]
push edi
mov ecx, esi
call fcn.0049cbd8
test al, al
je 0x4b0a88
cmp word [esi + 0x10], 0
jne 0x4b0b86
cmp dword [ebx + 4], 0xffffffff
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
je 0x4b0a9c
push 0
mov ecx, ebx
call fcn.0047dc20
push 0
push 0
push 2
lea ecx, [ebx + 0x28]
call fcn.0040cb36
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
mov ecx, ebx
call fcn.0047f197
cmp dword [ebx + 4], 0xffffffff
je 0x4b0b86
mov esi, dword [ebp + 8]
push esi
mov ecx, ebx
call fcn.0047d526
cmp eax, 0xffffffff
jne 0x4b0afa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov ecx, edi
call fcn.0047d0ac
push eax
push edi
push esi
push 0x52e920
call fcn.004263e6
add esp, 0x10
jmp 0x4b0b0c
cmp word [esi + 0x10], 0
jne 0x4b0b0c
mov ecx, ebx
call fcn.0047cf3f
mov word [ebx + 0x38], ax
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1002
mov edi, 0xffff
push edi
push dword [ebx + 4]
mov dword [ebp - 4], 0x200000
call esi
cmp eax, 0xffffffff
jne 0x4b0b4b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 4]
push 0x52e8f0
call fcn.004263aa
add esp, 0xc
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push edi
push dword [ebx + 4]
mov dword [ebp - 4], 0x200000
call esi
cmp eax, 0xffffffff
jne 0x4b0b7f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 4]
push 0x52e8c4
call fcn.004263aa
add esp, 0xc
mov ecx, ebx
call fcn.0047dbf5
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4b3140
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
push 2
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4b3179
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x52f0e0
push 1
call fcn.004b2f5a
add esp, 0xc
xor al, al
jmp 0x4b3280
push edi
lea ecx, [ebp - 4]
push ecx
xor edi, edi
push 0x8004667e
inc edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x4b319b
xor al, al
jmp 0x4b327f
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push dword [esi]
call ebx
test eax, eax
je 0x4b31cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x52f09c
push edi
call fcn.004b2f5a
jmp 0x4b320f
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push 0x76c
mov word [ebp - 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons_1]
mov word [ebp - 0x1a], ax
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4b3214
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x52f074
push 1
call fcn.004b2e04
add esp, 0xc
jmp 0x4b326b
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push 0x52f064
call edi
push 0x524d7c
mov dword [ebp - 0xc], eax
call edi
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
xor edi, edi
push edi
push dword [esi]
call ebx
test eax, eax
je 0x4b326f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x52f010
push 1
call fcn.004b2f5a
add esp, 0xc
or dword [0x88e13c], 0xffffffff
mov byte [0x88e13a], 1
mov dword [0x88e148], edi
xor al, al
jmp 0x4b327e
push 0x52eff0
push edi
call fcn.004b2e04
pop ecx
pop ecx
mov al, 1
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4b3283
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 1
xor ebx, ebx
push ebx
push 2
push 2
mov esi, ecx
call fcn.0047f197
mov eax, dword [esi + 4]
push dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.0047d526
test eax, eax
je 0x4b32cc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x52f238
push 1
call fcn.004b2f5a
add esp, 0xc
xor al, al
jmp 0x4b335f
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x10]
push eax
push 9
push ebx
push dword [esi + 4]
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
je 0x4b32fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x52f1c0
push 1
call fcn.004b2f5a
add esp, 0xc
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push dword [esi + 4]
mov dword [ebp - 4], 0xff
call edi
test eax, eax
je 0x4b332d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x52f178
push 1
call fcn.004b2f5a
add esp, 0xc
push 4
lea eax, [ebp - 4]
push eax
push 0xa
push ebx
push dword [esi + 4]
mov dword [ebp - 4], 0xff
call edi
pop edi
test eax, eax
je 0x4b335d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x52f128
push 1
call fcn.004b2f5a
add esp, 0xc
mov al, 1
pop esi
pop ebx
leave
ret 4
Function at 0x4b3365
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x24], ax
mov eax, 0x6c07
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x22], ax
call dword [sym.imp.WS2_32.dll_htonl_1]
lea ecx, [ebp + 8]
mov dword [ebp - 0x20], eax
call fcn.004a0e93
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4b33b7
push 0x52f370
lea ecx, [ebp + 8]
call fcn.004a0eb9
jmp 0x4b34db
xor ebx, ebx
inc ebx
cmp esi, ebx
je 0x4b33c7
cmp esi, 2
je 0x4b33c7
push 0
jmp 0x4b33aa
test byte [0x88e17c], bl
jne 0x4b33ea
or dword [0x88e17c], ebx
mov ecx, 0x88e168
call fcn.004828ce
push 0x50e4ae
call fcn.00501866
pop ecx
xor cl, cl
call fcn.0042db1e
push 0x52f364
push 0x51c1dc
push 0x512b50
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push 0x52f358
push eax
call fcn.004a15fa
add esp, 0x14
lea ecx, [ebp - 4]
call fcn.004b2616
lea ecx, [ebp + 0xc]
call fcn.004b2fb1
cmp byte [0x56b7ea], 0
mov eax, dword [0x56b810]
jne 0x4b3437
mov eax, dword [0x88f870]
push eax
call fcn.004b25a3
push eax
lea ecx, [ebp - 0x38]
call fcn.0049ca27
cmp esi, ebx
mov esi, 0x52f34c
je 0x4b3454
mov esi, 0x52f340
lea ecx, [ebp - 0xc]
call fcn.004a0e99
push eax
lea ecx, [ebp - 4]
call fcn.004a0ff9
push eax
lea ecx, [ebp + 0xc]
call fcn.004a0e99
push eax
push esi
push 0x52f33c
lea ecx, [ebp - 8]
call fcn.004a0e99
push eax
mov ecx, 0x88e174
call fcn.004a0e99
push eax
mov ecx, 0x88e16c
call fcn.004a0e99
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push 0x52f288
push eax
call fcn.004a15fa
add esp, 0x2c
push dword [eax]
lea ecx, [ebp + 8]
call fcn.004a0eb9
lea ecx, [ebp - 0x10]
call fcn.004a0c7d
lea ecx, [ebp + 0xc]
call fcn.004a0c7d
lea ecx, [ebp - 4]
call fcn.004a0c7d
lea ecx, [ebp - 8]
call fcn.004a0c7d
lea ecx, [ebp - 0xc]
call fcn.004a0c7d
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
lea ecx, [ebp + 8]
call fcn.004a0ea5
push eax
lea ecx, [ebp + 8]
call fcn.004a0e99
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
lea ecx, [ebp + 8]
setg bl
call fcn.004a0c7d
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8