joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452bf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5080c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, cl
mov ecx, dword [0x517ad0]
push ebx
push esi
push edi
cmp dword [ecx + 0x18], 0
je 0x452da6
movzx esi, al
lea eax, [esi + 1]
cmp dword [ecx + 0x100], eax
jb 0x452da6
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], esi
add ecx, 0xfc
push eax
call fcn.00456950
cmp dword [eax + 0x28], 0
jbe 0x452da6
mov ecx, dword [0x517ad0]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], esi
lea ecx, [ecx + 0xfc]
call fcn.00456950
add eax, 0x18
mov byte [ebp - 6], 0
mov ch, 8
mov dword [ebp - 0x40], eax
mov dl, 0x6d
mov byte [ebp - 0xc], ch
xor dl, ch
mov byte [ebp - 6], 0
mov al, 0x27
mov byte [ebp - 9], dl
mov edx, dword [0x517ad0]
mov cl, 0x66
mov ah, al
mov bl, 0x7f
xor al, ch
xor cl, ch
xor bl, ch
mov byte [ebp - 0xa], cl
mov esi, dword [edx + 0x18]
xor ah, ch
add edx, 8
mov byte [ebp - 0xb], al
lea ecx, [ebp - 0xb]
mov byte [ebp - 8], bl
mov byte [ebp - 7], ah
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452ca3
mov eax, accept
sub ecx, edi
sub eax, esi
cmp eax, ecx
jb 0x452db7
cmp dword [edx + 0x14], 0xf
jbe 0x452cc3
mov edx, dword [edx]
push ecx
lea eax, [ebp - 0xb]
push eax
push esi
push edx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x3c]
call fcn.0044c3c0
push dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
call fcn.00448770
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x10], 0
movups xmm0, xmmword [eax]
push 5
push 0
movups xmmword [ebp - 0x24], xmm0
push 0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x14], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 0xf
cmova eax, dword [ebp - 0x24]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xf
jbe 0x452d64
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x452d5a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452dbc
push ecx
push edx
call fcn.004abdca
add esp, 8
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
cmp ecx, 0xf
jbe 0x452da6
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x452d9c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452dbc
push ecx
push edx
call fcn.004abdca
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004abb31
mov esp, ebp
pop ebp
ret
call fcn.00443a50
call fcn.004b4061
int3
Function at 0x454570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5080c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 3
mov edi, ecx
call fcn.004610e0
add esp, 4
call fcn.00460e70
xorps xmm0, xmm0
mov esi, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
test esi, esi
je 0x4546cd
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push eax
push 0x2712
push esi
call fcn.00465500
add esp, 0xc
push 0
push 0x40
push esi
call fcn.00465500
add esp, 0xc
push 0
push 0x51
push esi
call fcn.00465500
add esp, 0xc
push 0x454510
push 0x4e2b
push esi
call fcn.00465500
add esp, 0xc
push edi
push 0x2711
push esi
call fcn.00465500
add esp, 0xc
push 1
push 0x29
push esi
call fcn.00465500
add esp, 0xc
push esi
call fcn.00460eb0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4546c4
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00448960
call fcn.00458cb0
push ebx
call fcn.00461b10
movaps xmm0, xmmword [0x5036a0]
add esp, 4
movups xmmword [ebp - 0x24], xmm0
mov edx, eax
xor ecx, ecx
movaps xmm0, xmmword [str.ls67_x]
movups xmmword [ebp - 0x14], xmm0
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x1e
jb 0x454661
sub esp, 0x18
mov byte [ebp - 5], 0
mov ebx, esp
lea ecx, [ebp - 0x23]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x28], eax
push edx
sub esp, 0x18
mov edx, esp
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4546a0
sub ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x23]
push ecx
push eax
mov ecx, edx
call fcn.00444da0
push ebx
call fcn.004597c0
add esp, 0x20
call fcn.00458cb0
push esi
call fcn.00460e30
add esp, 4
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x4546fd
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4546f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454710
push ecx
push edx
call fcn.004abdca
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004abb31
mov esp, ebp
pop ebp
ret
call fcn.004b4061
int3
Function at 0x455370
Capabilities:
Create process on windows
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5080c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5183ac], 2
jne 0x4554c4
push ebx
mov byte [ebp - 0x10], 0x78
mov al, 0x37
xor al, byte [ebp - 0x10]
mov cl, 8
xor cl, byte [ebp - 0x10]
mov bh, 0x1d
mov byte [ebp - 0xf], al
mov ah, 0x17
mov byte [ebp - 0xe], cl
mov dl, 0xc
mov cl, byte [ebp - 0x10]
mov ch, 0x16
mov byte [ebp - 0x35], 0
xor ah, cl
mov al, byte [ebp - 0x35]
mov dh, 0x56
xor al, cl
mov byte [ebp - 0x36], bh
mov byte [ebp - 7], al
mov bl, 0x11
mov al, byte [ebp - 0x36]
xor dl, cl
push 9
push 0
xor al, cl
mov byte [ebp - 0xb], ah
push 0
mov byte [ebp - 6], al
xor bl, cl
lea eax, [ebp - 0xf]
mov byte [ebp - 5], 0
push eax
push 0
xor ch, cl
mov dword [0x518458], 1
xor dh, cl
mov dword [0x5183ac], 1
xor bh, cl
mov byte [ebp - 0xd], dl
push 0
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xa], ch
mov byte [ebp - 9], dh
mov byte [ebp - 8], bh
mov byte [ebp - 5], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 2
jne 0x4554bb
movaps xmm0, xmmword [0x503450]
mov al, 0xc
mov byte [ebp - 0x1c], 0x40
mov cl, 0x21
xor al, byte [ebp - 0x1c]
mov ch, 0x28
mov byte [ebp - 0x1b], al
mov dl, 0x35
mov al, byte [ebp - 0x1c]
mov bl, 0x2e
mov ah, 0x23
mov byte [ebp - 0x13], 0
mov dh, 0x25
mov byte [ebp - 0x13], 0
mov bh, 0x32
mov dword [ebp - 0x24], 0x776c767f
xor cl, al
mov word [ebp - 0x20], 0x377d
xor ch, al
mov byte [ebp - 0x1a], cl
xor dl, al
mov byte [ebp - 0x16], ch
xor bl, al
mov byte [ebp - 0x19], dl
xor ah, al
mov byte [ebp - 0x18], bl
xor dh, al
mov byte [ebp - 0x17], ah
xor bh, al
mov byte [ebp - 0x15], dh
mov byte [ebp - 0x14], bh
xor ecx, ecx
movups xmmword [ebp - 0x34], xmm0
mov byte [ebp - 0x1e], 0
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0x15
jb 0x455485
push 0x40
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x1e], 0
push eax
lea eax, [ebp - 0x33]
push eax
push dword [0x517af8]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004abb31
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004abb31
mov esp, ebp
pop ebp
ret
Function at 0x4596d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5080c0]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x503770]
xor ecx, ecx
mov edx, dword [ebp + 8]
push esi
push edi
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 8], 0x2b
mov al, byte [ebp - 0x18]
xor byte [ebp + ecx - 0x17], al
inc ecx
cmp ecx, 0x10
jb 0x4596f8
push edx
sub esp, 0x18
mov byte [ebp - 7], 0
mov edx, esp
lea ecx, [ebp - 0x17]
xorps xmm0, xmm0
lea edi, [ebp - 0x30]
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x459730
sub ecx, esi
lea eax, [ebp - 0x17]
push ecx
push eax
mov ecx, edx
call fcn.00444da0
push edi
call fcn.004597c0
mov ecx, dword [0x517ad0]
lea eax, [ebp - 0x30]
add ecx, 0x280
add esp, 0x20
cmp ecx, eax
je 0x459772
cmp dword [ebp - 0x1c], 0xf
push dword [ebp - 0x20]
cmova eax, dword [ebp - 0x30]
push eax
call fcn.004449f0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x4597a2
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x459798
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4597b4
push ecx
push edx
call fcn.004abdca
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004abb31
mov esp, ebp
pop ebp
ret
call fcn.004b4061
int3
Function at 0x45c700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5080c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x128], ecx
lea esi, [ebp - 0x124]
xor bl, bl
mov edi, 0x10
nop dword [eax]
movzx eax, bl
lea esi, [esi + 4]
add ecx, eax
add bl, 4
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
mov ecx, dword [ebp - 0x128]
shl edx, 8
or edx, eax
mov dword [esi - 4], edx
sub edi, 1
jne 0x45c730
lea eax, [ebp - 0x120]
mov ebx, 0x30
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax + 0x30]
mov edi, edx
mov ecx, edx
ror edi, 0x12
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 0x11
ror edx, 0x13
xor edx, ecx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [eax + 0x1c]
add edi, dword [eax - 8]
mov dword [eax + 0x38], edi
sub ebx, 1
jne 0x45c772
mov ebx, dword [ebp - 0x128]
add ebx, 0x50
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], 0x40
movups xmm0, xmmword [ebx]
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [ebp - 0x14], xmm0
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov edi, ebx
mov esi, dword [ebp - 0x20]
mov eax, ebx
ror eax, 0xb
mov ecx, ebx
ror edi, 0x19
not ecx
and ecx, dword [ebp - 0xc]
xor edi, eax
mov eax, ebx
ror eax, 6
xor edi, eax
mov eax, dword [ebp - 0x10]
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 0x128]
add edi, ecx
add dword [ebp - 0x128], 4
add edi, dword [eax + 0x502fa0]
add edi, dword [ebp + eax - 0x124]
add edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, edx
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
add ebx, edi
mov eax, esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov ecx, eax
mov dword [ebp - 0x20], eax
ror eax, 0xd
ror ecx, 0x16
xor ecx, eax
mov eax, dword [ebp - 0x24]
ror eax, 2
xor ecx, eax
mov eax, esi
or eax, edx
and esi, edx
and eax, dword [ebp - 0x24]
add ecx, edi
or eax, esi
add eax, ecx
sub dword [ebp - 0x12c], 1
mov dword [ebp - 0x24], eax
jne 0x45c7e1
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x24]
mov ebx, dword [ebp - 0x130]
mov edx, 8
nop dword [eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
add dword [ebx], eax
lea ebx, [ebx + 4]
sub edx, 1
jne 0x45c890
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004abb31
mov esp, ebp
pop ebp
ret
Function at 0x45ff10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5080c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
test ecx, ecx
je 0x46009b
mov edx, dword [ecx + 0x48]
test edx, edx
je 0x46009b
cmp esi, dword [ecx + 0x10]
jae 0x46009b
cmp dword [ecx + 0x14], 1
jne 0x46009b
mov eax, dword [edx + 0x10]
mov edi, dword [eax + esi*4]
add edi, dword [edx]
je 0x46009b
test ebx, ebx
je 0x46009b
mov dword [ebx], esi
xorps xmm0, xmm0
mov eax, dword [ecx + 0x48]
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0xffffffff
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi*4]
mov dword [ebx + 4], eax
movzx eax, word [edi + 4]
mov word [ebx + 8], ax
movzx eax, word [edi + 6]
mov word [ebx + 0xa], ax
movzx eax, word [edi + 8]
mov word [ebx + 0xc], ax
movzx eax, word [edi + 0xa]
mov word [ebx + 0xe], ax
movzx ecx, word [edi + 0xe]
movzx edx, word [edi + 0xc]
mov eax, ecx
shr eax, 9
add eax, 0x50
mov dword [ebp - 0x14], eax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov dword [ebp - 0x1c], ecx
dec eax
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, 0xb
mov dword [ebp - 0x20], eax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], edx
call fcn.004b84cf
mov dword [ebx + 0x10], eax
mov esi, 0x103
mov dword [ebx + 0x14], edx
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 0
movzx eax, word [edi + 0x24]
mov word [ebx + 0x30], ax
mov eax, dword [edi + 0x26]
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x2a]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
movzx eax, word [edi + 0x1c]
cmp eax, esi
cmovb esi, eax
lea eax, [edi + 0x2e]
push esi
push eax
lea eax, [ebx + 0x44]
push eax
call fcn.004ad470
mov byte [ebx + esi + 0x44], 0
mov esi, 0xff
movzx eax, word [edi + 0x20]
cmp eax, esi
cmovb esi, eax
mov dword [ebx + 0x40], esi
movzx ecx, word [edi + 0x1e]
movzx eax, word [edi + 0x1c]
add ecx, edi
add eax, 0x2e
push esi
add eax, ecx
push eax
lea eax, [ebx + 0x148]
push eax
call fcn.004ad470
add esp, 0x1c
mov byte [ebx + esi + 0x148], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004abb31
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004abb31
mov esp, ebp
pop ebp
ret
Function at 0x460a40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x800c
call fcn.004ac4d0
mov eax, dword [0x5080c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ecx]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x800c], ecx
mov byte [ebp - 0x8005], al
push edi
cmp al, 0x41
jl 0x460a72
cmp al, 0x5a
jle 0x460a78
sub al, 0x61
cmp al, 0x19
ja 0x460a88
cmp byte [ecx + 1], 0x3a
lea edi, [ecx + 1]
jne 0x460a8b
mov ebx, 1
jmp 0x460a8d
lea edi, [ecx + 1]
xor ebx, ebx
push 0x8000
lea eax, [ebp - 0x8004]
push 0
push eax
call fcn.004ad0a0
add esp, 0xc
test ebx, ebx
je 0x460ac1
mov al, byte [ebp - 0x8005]
mov esi, 2
mov byte [ebp - 0x8004], al
movzx eax, byte [edi]
mov byte [ebp - 0x8003], al
mov edi, dword [ebp - 0x800c]
add edi, esi
cmp byte [edi], 0
je 0x460b1f
nop
cmp esi, 0x7fff
jge 0x460b1f
mov al, byte [edi]
cmp al, 0x2f
je 0x460ae2
cmp al, 0x5c
jne 0x460b0f
test ebx, ebx
jne 0x460aec
test esi, esi
jg 0x460af1
jmp 0x460b0f
cmp esi, 2
jle 0x460b0f
lea eax, [ebp - 0x8004]
push eax
call fcn.004b63ea
add esp, 4
cmp eax, 0xffffffff
jne 0x460b0f
call fcn.004b5ec7
cmp dword [eax], 0x11
jne 0x460b32
mov al, byte [edi]
inc edi
mov byte [ebp + esi - 0x8004], al
inc esi
cmp byte [edi], 0
jne 0x460ad0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004abb31
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004abb31
mov esp, ebp
pop ebp
ret
Function at 0x46a350
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x5080c0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x46a41b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.00486290
add esp, 0xc
test eax, eax
jne 0x46a41b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.00486290
add esp, 0xc
test eax, eax
jne 0x46a41b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x46a3a4
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00486260
add esp, 0xc
test eax, eax
je 0x46a3d8
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00486260
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x46a3da
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x46a406
mov al, byte [esi]
push eax
call fcn.00479650
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x46a3e8
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004abb31
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004abb31
add esp, 0x18
ret
Function at 0x4758c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5080c0]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x128]
mov ecx, dword [ebx + 0x424]
cmp edx, ecx
push esi
sete al
mov esi, 0x440
push edi
lea eax, [eax*4 + 0x420]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x450
cmove esi, eax
mov eax, dword [ebx + 0x540]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4759ce
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x430]
cmp dword [eax + ebx], 0x475480
jne 0x4759ce
cmp dword [esi], 0
je 0x475958
test edi, edi
je 0x4759ce
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.00484a80
add esp, 0x14
cmp eax, 0xffffffff
je 0x4759ce
test al, 1
je 0x4759ce
mov ecx, dword [esi]
test ecx, ecx
jne 0x4759ab
mov eax, dword [ebx]
mov eax, dword [eax + 0x90c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x4759c7
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4759ce
add dword [esi + 8], eax
jmp 0x4759ce
mov dword [esi + 4], 0
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x475a37
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x475a08
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x475a3c
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00461960
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.004751d0
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xd44], esi
mov eax, 0x37
jmp 0x475a39
xor eax, eax
mov dword [ebp], edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004abb31
add esp, 0x10c
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x46c], 0
je 0x475e7d
push eax
call fcn.0046e9a0
add esp, 4
test eax, eax
jne 0x475e9c
xor al, al
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x475e7a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x475e7a
mov al, 1
ret
Function at 0x477c40
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x4db65c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x477c5a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x4db678
push esi
call fcn.004be3e0
add esp, 8
test eax, eax
je 0x477ca2
test ebp, ebp
je 0x477c93
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x477cc8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x477cc8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x477d7f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x477ce5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x477d75
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x477d75
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x477d17
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x477d30
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x477d40
test ebp, ebp
je 0x477d6c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x508004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x508004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x47d1d0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x47d1e4
mov eax, dword [eax]
mov eax, dword [eax + 0x78]
mov al, byte [eax + 0xe7]
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x47d1f8
xor al, al
ret
push eax
push 0
call fcn.00475d90
add esp, 8
mov al, 1
ret