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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x523034]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x51ada0]
xor ecx, ecx
mov edx, dword [ebp + 8]
push esi
push edi
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 8], 0x5e
mov al, byte [ebp - 0x18]
xor byte [ebp + ecx - 0x17], al
inc ecx
cmp ecx, 0x10
jb 0x45a058
push edx
sub esp, 0x18
mov byte [ebp - 7], 0
mov edx, esp
lea edi, [ebp - 0x30]
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x17], 0
jne 0x45a08d
xor ecx, ecx
jmp 0x45a09c
lea ecx, [ebp - 0x17]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45a093
sub ecx, esi
push ecx
lea eax, [ebp - 0x17]
mov ecx, edx
push eax
call fcn.004466b0
push edi
call fcn.0045a3f0
mov ecx, dword [0x534164]
lea eax, [ebp - 0x30]
add ecx, 0x280
add esp, 0x20
cmp ecx, eax
je 0x45a0ce
push 0xffffffffffffffff
push 0
push eax
call fcn.00445e90
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x45a0e3
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00446440
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004aa896
mov esp, ebp
pop ebp
ret

Function at 0x45a100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x523034]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5344d0], 0x10
lea ecx, [ebp - 0x48]
push esi
mov esi, 0x5344bc
mov eax, esi
cmovae eax, dword [0x5344bc]
push ecx
push eax
call fcn.004b62ef
add esp, 8
test eax, eax
je 0x45a148
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa896
mov esp, ebp
pop ebp
ret
cmp dword [0x5344d0], 0x10
push 0
cmovae esi, dword [0x5344bc]
push 0x80
push 3
push 0
push 2
push 2
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x45a182
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa896
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm0, xmmword [str.Y270_1_67507_w__M]
xor ecx, ecx
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 8], 0x3c
nop dword [eax]
mov al, byte [ebp - 0x18]
xor byte [ebp + ecx - 0x17], al
inc ecx
cmp ecx, 0x10
jb 0x45a1a0
mov dl, 1
mov byte [ebp - 7], 0
lea ecx, [ebp - 0x17]
call fcn.00451400
mov ecx, dword [ebp - 4]
test al, al
pop esi
sete al
xor ecx, ebp
call fcn.004aa896
mov esp, ebp
pop ebp
ret
Function at 0x45a1d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x523034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
movzx ecx, word [esi + 0x27e]
cmp cx, word [esi + 0x27c]
jle 0x45a29b
movaps xmm0, xmmword [0x51b020]
xor ecx, ecx
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 8], 0x74
nop word [eax + eax]
mov al, byte [ebp - 0x18]
xor byte [ebp + ecx - 0x17], al
inc ecx
cmp ecx, 0x10
jb 0x45a210
cmp byte [ebp - 0x17], 0
mov byte [ebp - 7], 0
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
jne 0x45a23d
xor ecx, ecx
jmp 0x45a24c
lea ecx, [ebp - 0x17]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45a243
sub ecx, edx
push ecx
lea eax, [ebp - 0x17]
push eax
lea ecx, [ebp - 0x38]
call fcn.004466b0
lea ecx, [esi + 0x280]
lea eax, [ebp - 0x38]
cmp ecx, eax
je 0x45a270
push 0xffffffffffffffff
push 0
push eax
call fcn.00445e90
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x45a285
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00446440
mov byte [esi + 0x258], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa896
mov esp, ebp
pop ebp
ret
mov eax, dword [0x534164]
mov eax, dword [eax]
cmp dword [eax + 4], 0xffffffff
je 0x45a2bd
push 3
lea eax, [ebp - 0x20]
mov word [ebp - 0x1f], cx
mov ecx, dword [esi]
push eax
mov byte [ebp - 0x20], 2
call fcn.00445720
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004aa896
mov esp, ebp
pop ebp
ret
Function at 0x45c620
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x523034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
push esi
push edi
lea ecx, [eax + 2]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], ecx
lea esi, [ebp - 0x124]
lea ecx, [eax + 3]
xor bl, bl
mov dword [ebp - 0x130], ecx
mov edi, 0x10
nop dword [eax]
movzx ecx, bl
lea esi, [esi + 4]
add bl, 4
movzx edx, byte [ecx + eax]
movzx eax, byte [eax + ecx + 1]
shl edx, 8
or edx, eax
mov eax, dword [ebp - 0x12c]
shl edx, 8
movzx eax, byte [eax + ecx]
or edx, eax
mov eax, dword [ebp - 0x130]
shl edx, 8
movzx eax, byte [eax + ecx]
or edx, eax
mov eax, dword [ebp - 0x128]
mov dword [esi - 4], edx
sub edi, 1
jne 0x45c660
lea eax, [ebp - 0x120]
mov ebx, 0x30
nop
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax + 0x30]
mov edi, edx
mov ecx, edx
rol edi, 0xe
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
rol ecx, 0xd
rol edx, 0xf
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 0x45c6b0
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]
nop
mov edx, dword [ebp - 0x1c]
mov edi, ebx
mov esi, dword [ebp - 0x20]
mov eax, ebx
rol eax, 7
mov ecx, ebx
ror edi, 0xb
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 + 0x51aa28]
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
rol eax, 0xa
ror ecx, 0xd
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 0x45c720
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 0x45c7d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aa896
mov esp, ebp
pop ebp
ret
Function at 0x45c7f0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push esi
mov esi, ecx
xor edx, edx
mov eax, dword [esi + 0x40]
cmp eax, 0x38
sbb ecx, ecx
and ecx, 0xfffffff8
add ecx, 0x40
mov byte [eax + esi], 0x80
add eax, 1
adc edx, edx
test edx, edx
ja 0x45c82a
jb 0x45c816
cmp eax, ecx
jae 0x45c82a
mov byte [eax + esi], 0
add eax, 1
adc edx, 0
test edx, edx
jb 0x45c816
ja 0x45c82a
cmp eax, ecx
jb 0x45c816
cmp dword [esi + 0x40], 0x38
jb 0x45c844
mov ecx, esi
call fcn.0045c620
push 0x38
push 0
push esi
call fcn.004ae4d0
add esp, 0xc
mov eax, dword [esi + 0x40]
shl eax, 3
add dword [esi + 0x48], eax
adc dword [esi + 0x4c], 0
movzx eax, byte [esi + 0x48]
mov byte [esi + 0x3f], al
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
shrd ecx, eax, 8
mov byte [esi + 0x3e], cl
mov ecx, dword [esi + 0x48]
shr eax, 8
mov eax, dword [esi + 0x4c]
shrd ecx, eax, 0x10
mov byte [esi + 0x3d], cl
mov ecx, dword [esi + 0x48]
shr eax, 0x10
mov eax, dword [esi + 0x4c]
shrd ecx, eax, 0x18
mov byte [esi + 0x3c], cl
mov cl, 0x20
mov edx, dword [esi + 0x4c]
shr eax, 0x18
mov eax, dword [esi + 0x48]
call fcn.004ea230
mov byte [esi + 0x3b], al
mov cl, 0x28
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x4c]
call fcn.004ea230
mov byte [esi + 0x3a], al
mov ecx, esi
movzx eax, byte [esi + 0x4e]
mov byte [esi + 0x39], al
movzx eax, byte [esi + 0x4f]
mov byte [esi + 0x38], al
pop esi
jmp fcn.0045c620

Function at 0x45d510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
test esi, esi
jne 0x45d51f
xor eax, eax
pop esi
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
not ecx
test edi, edi
je 0x45d562
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
movzx edx, al
mov eax, edx
shr edx, 4
xor eax, ecx
shr ecx, 4
and eax, 0xf
xor ecx, dword [eax*4 + 0x519cb8]
mov eax, ecx
shr ecx, 4
and eax, 0xf
xor edx, eax
xor ecx, dword [edx*4 + 0x519cb8]
sub edi, 1
jne 0x45d530
not ecx
pop edi
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x45ffb0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x523034]
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 0x460145
mov edx, dword [ecx + 0x48]
test edx, edx
je 0x460145
cmp esi, dword [ecx + 0x10]
jae 0x460145
cmp dword [ecx + 0x14], 1
jne 0x460145
mov eax, dword [edx + 0x10]
mov edi, dword [eax + esi*4]
add edi, dword [edx]
je 0x460145
test ebx, ebx
je 0x460145
mov dword [ebx], esi
xorps xmm0, xmm0
mov eax, dword [ecx + 0x48]
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x28], xmm0
mov eax, dword [eax + 0x10]
mov dword [ebp - 8], 0xffffffff
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.004b8942
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.004ae8a0
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
push esi
add eax, 0x2e
add eax, ecx
push eax
lea eax, [ebx + 0x148]
push eax
call fcn.004ae8a0
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.004aa896
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.004aa896
mov esp, ebp
pop ebp
ret
Function at 0x4609c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8008
call fcn.004ab2b0
mov eax, dword [0x523034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov bl, byte [edi]
cmp bl, 0x41
jl 0x4609ea
cmp bl, 0x5a
jle 0x4609f4
cmp bl, 0x61
jl 0x460a06
cmp bl, 0x7a
jg 0x460a06
cmp byte [edi + 1], 0x3a
jne 0x460a06
mov dword [ebp - 0x8008], 1
jmp 0x460a0e
xor eax, eax
mov dword [ebp - 0x8008], eax
push 0x8000
lea eax, [ebp - 0x8004]
push 0
push eax
call fcn.004ae4d0
mov ecx, dword [ebp - 0x8008]
add esp, 0xc
test ecx, ecx
je 0x460a42
mov al, byte [edi + 1]
mov esi, 2
mov byte [ebp - 0x8004], bl
mov byte [ebp - 0x8003], al
mov al, byte [edi + esi]
add edi, esi
test al, al
je 0x460aa5
nop dword [eax + eax]
cmp esi, 0x7fff
jge 0x460aa5
cmp al, 0x2f
je 0x460a60
cmp al, 0x5c
jne 0x460a93
test ecx, ecx
jne 0x460a6a
test esi, esi
jg 0x460a6f
jmp 0x460a93
cmp esi, 2
jle 0x460a93
lea eax, [ebp - 0x8004]
push eax
call fcn.004b6b47
add esp, 4
cmp eax, 0xffffffff
jne 0x460a8d
call fcn.004b6682
cmp dword [eax], 0x11
jne 0x460ab8
mov ecx, dword [ebp - 0x8008]
movzx eax, byte [edi]
inc edi
mov byte [ebp + esi - 0x8004], al
inc esi
mov al, byte [edi]
test al, al
jne 0x460a50
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa896
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.004aa896
mov esp, ebp
pop ebp
ret
Function at 0x46a210
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x523034]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x46a2db
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.00486150
add esp, 0xc
test eax, eax
jne 0x46a2db
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.00486150
add esp, 0xc
test eax, eax
jne 0x46a2db
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x46a264
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00486120
add esp, 0xc
test eax, eax
je 0x46a298
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00486120
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x46a29a
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 0x46a2c6
mov al, byte [esi]
push eax
call fcn.00479520
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 0x46a2a8
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004aa896
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004aa896
add esp, 0x18
ret
Function at 0x475010
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x608], 0
je 0x475054
push esi
push 1
push edi
call fcn.00465e70
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00465e70
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x47508d
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x4f12e8
push 2
push eax
call fcn.004b65b1
push dword [edi + 0x598]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004b65b1
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x475790
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x523034]
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 0x47589e
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x430]
cmp dword [eax + ebx], 0x475350
jne 0x47589e
cmp dword [esi], 0
je 0x475828
test edi, edi
je 0x47589e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.00484940
add esp, 0x14
cmp eax, 0xffffffff
je 0x47589e
test al, 1
je 0x47589e
mov ecx, dword [esi]
test ecx, ecx
jne 0x47587b
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 0x475897
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 0x47589e
add dword [esi + 8], eax
jmp 0x47589e
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 0x475907
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4758d8
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x47590c
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00461840
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.004750a0
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xd44], esi
mov eax, 0x37
jmp 0x475909
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.004aa896
add esp, 0x10c
ret
Function at 0x475d30
Capabilities:
Receive data
Receive data on socket

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

Disassembly:
push ecx
push ebx
push edi
push 0x4f174c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x477b2a
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 0x4f1768
push esi
call fcn.004be7f0
add esp, 8
test eax, eax
je 0x477b72
test ebp, ebp
je 0x477b63
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 0x477b98
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x477b98
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 0x477c4f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x477bb5
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 0x477c45
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x477c45
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x477be7
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 0x477c00
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 0x477c10
test ebp, ebp
je 0x477c3c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x523004]
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 [0x523004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x47d090
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x47d0a4
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 0x47d0b8
xor al, al
ret
push eax
push 0
call fcn.00475c60
add esp, 8
mov al, 1
ret
Function at 0x482e70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x523034]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x483056
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x483044
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x483044
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x483044
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x483044
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x483044
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x483044
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x483044
push ebx
push 0x4f3030
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.004781f0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x482fa2
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x483044
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x483044
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x482ff7
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x482ffc
add ecx, 4
add edx, 4
sub esi, 4
jae 0x482fe6
cmp esi, 0xfffffffc
je 0x483029
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x483044
cmp esi, 0xfffffffd
je 0x483029
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x483044
cmp esi, 0xfffffffe
je 0x483029
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x483044
cmp esi, 0xffffffff
je 0x483029
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x483044
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004aa896
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004aa896
add esp, 0x34
ret