joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401840
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490c39
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
push esi
push edi
mov eax, dword [0x4a8040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov edi, dword [ebx + 8]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
push 3
mov dword [ebp - 0x14], 1
call fcn.0043fc50
add esp, 4
call fcn.0043fa90
mov esi, eax
test esi, esi
je 0x4019c9
push dword [ebx + 0xc]
push 0x2712
push esi
call fcn.00444540
add esp, 0xc
push 0
push 0x40
push esi
call fcn.00444540
add esp, 0xc
push 0
push 0x51
push esi
call fcn.00444540
add esp, 0xc
push dword [ebx + 0x10]
push 0x271f
push esi
call fcn.00444540
add esp, 0xc
push 0xf
push 0x4e
push esi
call fcn.00444540
add esp, 0xc
push 1
push 0x13
push esi
call fcn.00444540
add esp, 0xc
push 0xf
push 0x14
push esi
call fcn.00444540
add esp, 0xc
push 0x401350
push 0x4e2b
push esi
call fcn.00444540
add esp, 0xc
push edi
push 0x2711
push esi
call fcn.00444540
add esp, 0xc
push esi
call fcn.0043fad0
add esp, 4
test eax, eax
je 0x4019c0
push eax
call fcn.004404c0
add esp, 4
lea ecx, [ebp - 0x44]
push eax
call fcn.00402060
push str.._Contact_the_administration_
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004022d0
add esp, 4
mov ecx, eax
push 0x1010
push str.Installer
call fcn.00402000
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x2c]
call fcn.00402010
lea ecx, [ebp - 0x44]
call fcn.00402010
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push esi
call fcn.0043fa50
add esp, 4
call fcn.0043fc10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x4019f0
Capabilities:
Delete file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a8040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], 0
call fcn.0043fa90
mov esi, eax
test esi, esi
je 0x401af4
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
push 0x49e854
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x401a62
push esi
call fcn.0043fa50
add esp, 4
push 0x1010
push str.Download
push str.Unable_to_open_file_
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push ebx
push 0x2712
push esi
call fcn.00444540
push 0
push 0x40
push esi
call fcn.00444540
push 0
push 0x51
push esi
call fcn.00444540
push 0x401480
push 0x4e2b
push esi
call fcn.00444540
push edi
push 0x2711
push esi
call fcn.00444540
push 1
push 0x2d
push esi
call fcn.00444540
add esp, 0x48
push esi
call fcn.0043fad0
push edi
mov ebx, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea eax, [ebp - 8]
push eax
push 0x200002
push esi
call fcn.0043fa70
add esp, 0x14
test ebx, ebx
je 0x401af4
push ebx
call fcn.004404c0
add esp, 4
push 0x1010
push str.Download
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push esi
call fcn.0043fa50
add esp, 4
call fcn.0043fc10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f4f0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406d80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x406de1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x406dc4
cmp edi, 2
jb 0x406dc4
cmp byte [esi], cl
jne 0x406dc4
cmp byte [esi + 1], cl
jne 0x406dc4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x49f1e8]
jmp 0x406d95
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x49f1e8]
test edi, edi
jne 0x406d95
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x406e10
cmp cl, 0x23
jne 0x406df7
cmp byte [esi], cl
jne 0x406df7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x49f1e8]
test cl, cl
jne 0x406de8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x406f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x406f54
mov dword [ebx], 0
mov edx, 0x49ed08
call fcn.00406e20
mov esi, eax
test esi, esi
je 0x407042
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x407038
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x407038
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x407038
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x407038
mov eax, dword [0x591c50]
test eax, eax
je 0x406fcc
inc dword [eax + 0x374]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x407038
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x40701d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x591c50]
add esp, 4
test eax, eax
je 0x40700a
dec dword [eax + 0x374]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x40702f
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413750
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a8040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x591c50]
push ebx
mov dword [ebp - 8], ecx
push esi
mov ebx, dword [eax + 0x1c48]
lea esi, [ebp - 8]
push edi
mov edi, 4
mov ecx, dword [ebx + 0xfc]
mov eax, dword [ebx + 0x104]
mov eax, dword [eax + ecx*4 - 4]
not eax
nop dword [eax + eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x49f1e8]
sub edi, 1
jne 0x413790
not eax
lea ecx, [ebx + 0xfc]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00422e80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f4f0
mov esp, ebp
pop ebp
ret

Function at 0x414100
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a8040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x591c50]
mov ebx, edx
cmp byte [edi + 0x1f5d], 0
jne 0x414154
cmp byte [edi + 0x1f5e], 0
jne 0x414154
push dword [edi + 0x2f80]
lea eax, [ebp - 0x14]
push str.Tooltip__02d
push 0x10
push eax
call fcn.00406d40
add esp, 0x10
test bl, 1
je 0x414275
jmp 0x4141ec
movss xmm1, dword [edi + 0x164c]
lea eax, [ebp - 0x14]
push dword [edi + 0x2f80]
movaps xmm0, xmm1
mulss xmm1, dword [0x4a363c]
push str.Tooltip__02d
mulss xmm0, dword [0x4a3650]
push 0x10
addss xmm1, dword [edi + 0xe8]
push eax
addss xmm0, dword [edi + 0xe4]
mov dword [edi + 0x1cec], 0
mov dword [edi + 0x1cf0], 0
movss dword [edi + 0x1ce8], xmm1
mov dword [edi + 0x1cd4], 1
movss dword [edi + 0x1ce4], xmm0
mov byte [edi + 0x1d0c], 1
movss xmm0, dword [edi + 0x16a8]
mulss xmm0, dword [0x4a357c]
or dword [edi + 0x1cd0], 0x41
movss dword [edi + 0x1d28], xmm0
call fcn.00406d40
add esp, 0x10
mov al, byte [ebp - 0x14]
lea esi, [ebp - 0x13]
or edx, 0xffffffff
test al, al
je 0x414227
or ebx, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x41420e
cmp byte [esi], al
jne 0x41420e
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x49f1e8]
test al, al
jne 0x414200
mov ecx, dword [0x591c50]
not edx
push edx
lea ecx, [ecx + 0x1c30]
call fcn.00407210
test eax, eax
je 0x414275
cmp byte [eax + 0xc3], 0
je 0x414275
mov byte [eax + 0xca], 1
mov byte [eax + 0xe4], 1
lea eax, [ebp - 0x14]
inc dword [edi + 0x2f80]
push dword [edi + 0x2f80]
push str.Tooltip__02d
push 0x10
push eax
call fcn.00406d40
add esp, 0x10
push 0x22c0347
xor edx, edx
lea ecx, [ebp - 0x14]
call fcn.0040fd80
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0048f4f0
mov esp, ebp
pop ebp
ret
Function at 0x4183d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x3030], 0
lea esi, [edi + 0x3034]
je 0x418452
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41840c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00423b50
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00407380
mov edx, dword [esi]
mov ecx, 0x591c4c
push dword [edi + 0x3030]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x303c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00407380
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418830
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
mov dword [ebp - 4], ecx
push esi
lea esi, [ecx + 1]
push edi
test bl, bl
je 0x418878
or edi, 0xffffffff
nop dword [eax]
cmp bl, 0x23
jne 0x41885f
cmp byte [esi], bl
jne 0x41885f
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x49f1e8]
test bl, bl
jne 0x418850
mov ebx, dword [0x591c50]
not eax
mov edi, dword [ebx + 0x3008]
mov esi, edi
neg esi
sbb esi, esi
lea ecx, [edi + 4]
and esi, ecx
je 0x4188b2
cmp dword [esi], eax
je 0x4188c1
mov edx, dword [esi - 4]
mov ecx, dword [ebx + 0x3000]
add edx, esi
add ecx, 4
xor esi, esi
add ecx, edi
cmp edx, ecx
cmovne esi, edx
test esi, esi
jne 0x418893
mov ecx, dword [ebp - 4]
call fcn.00418750
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4188b2
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x42bcda
mov eax, dword [0x591c50]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x42bccd
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x42bd0b
mov eax, dword [0x591c50]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x42bcfe
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42bd3c
mov eax, dword [0x591c50]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x42bd2f
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x42bd89
mov eax, dword [0x591c50]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x42bd7c
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x42bdba
mov eax, dword [0x591c50]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x42bdad
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x42bdeb
mov eax, dword [0x591c50]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x42bdde
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0042e990
Function at 0x43bbb0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
push edi
mov edi, edx
je 0x43bc21
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x43bbf8
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x43bbdf
cmp byte [esi], cl
jne 0x43bbdf
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x49f1e8]
test cl, cl
jne 0x43bbd0
mov ecx, dword [0x591c50]
not eax
cmp dword [ecx + 0x1c84], eax
jne 0x43bc0e
mov dword [ecx + 0x1c88], eax
cmp dword [ecx + 0x1cbc], eax
jne 0x43bc66
pop edi
mov byte [ecx + 0x1cc0], 1
pop esi
pop ebp
ret
mov esi, dword [0x591c50]
xor edx, edx
mov eax, dword [esi + 0x1c48]
mov ecx, dword [eax + 0xfc]
mov eax, dword [eax + 0x104]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.00406d80
add esp, 4
cmp dword [esi + 0x1c84], eax
jne 0x43bc57
mov dword [esi + 0x1c88], eax
cmp dword [esi + 0x1cbc], eax
jne 0x43bc66
mov byte [esi + 0x1cc0], 1
pop edi
pop esi
pop ebp
ret
Function at 0x454800
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 0x722], 0
je 0x45489c
cmp dword [edi + 0x1b0], 0
push esi
je 0x454851
push 1
push edi
call fcn.00444cf0
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
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.00444cf0
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov edx, dword [esp + 0x10]
mov ecx, edx
sub ecx, 0
je 0x454866
sub ecx, 1
je 0x454866
sub ecx, 1
jne 0x454897
push dword [edi + 0x148]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea eax, [edx*2 + 0x495368]
push 1
add eax, edx
push 2
push eax
call esi
push dword [edi + 0x148]
push 1
push dword [esp + 0x30]
push dword [esp + 0x30]
call esi
add esp, 0x20
pop esi
xor eax, eax
pop edi
ret
xor eax, eax
pop edi
ret

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

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4a8040]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 4], eax
xor eax, eax
mov ecx, dword [ebx + 0xc]
push ebp
push esi
mov esi, 0x170
mov edx, dword [ecx + 0x14c]
cmp dword [esp + 0x120], edx
push edi
sete al
lea eax, [eax*4 + 0x148]
mov ebp, dword [eax + ecx]
mov eax, 0x180
cmove esi, eax
mov eax, dword [ecx + 0x2a0]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x454f33
xor eax, eax
cmp dword [esp + 0x124], edx
sete al
lea eax, [eax*4 + 0x160]
cmp dword [eax + ecx], 0x454af0
jne 0x454f33
cmp dword [esi], 0
je 0x454ece
test edi, edi
je 0x454f33
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00466090
add esp, 0x14
cmp eax, 0xffffffff
je 0x454f33
test al, 1
je 0x454f33
mov ecx, dword [esi]
test ecx, ecx
jne 0x454f1c
mov eax, dword [ebx + 0x4e8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x454f67
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x454f33
add dword [esi + 8], eax
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x454fa2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x454f78
xor edi, edi
lea eax, [edi + 0x51]
jmp 0x454fa2
mov ecx, dword [esp + 0x10]
mov eax, 0x1b
mov dword [ecx], 0xffffffff
jmp 0x454fa8
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00440350
push eax
push str.Send_failure:__s
push ebx
call fcn.004548a0
add esp, 0x18
mov dword [ebx + 0x974], esi
mov eax, 0x37
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048f4f0
add esp, 0x10c
ret
Function at 0x4553b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x19c], 0
je 0x4553cd
push eax
call fcn.0044e200
add esp, 4
test eax, eax
jne 0x4553ec
xor al, al
ret
mov eax, dword [eax + 0x148]
cmp eax, 0xffffffff
je 0x4553ca
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4553ca
mov al, 1
ret

Function at 0x455640
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x4a8040]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x190]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x1a4]
push 0x80
push 0
push eax
mov dword [esp + 0x18], 0x80
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4556c7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00440350
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x455707
push edi
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.00455220
add esp, 0x10
test al, al
jne 0x455710
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
mov edi, dword [eax]
call esi
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push edi
call fcn.00440350
push eax
push dword [esi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004548a0
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048f4f0
add esp, 0x188
ret

Function at 0x455ee0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x591834]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x455f31
push 3
push 2
push eax
push eax
push 6
call fcn.00481640
add esp, 0x14
test al, al
je 0x455f25
mov dword [0x591834], 2
add esp, 0xc
ret
mov dword [0x591834], 1
jmp 0x455f36
cmp eax, 2
je 0x455f7c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x455f61
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x455f7c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x468370
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
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x4a8040]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, dword [esp + 0x4c]
push 6
push 1
push 2
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x468562
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x24], xmm0
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push 4
mov word [esp + 0x1e], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x468550
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x468550
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x468550
cmp dword [esp + 8], 0x10
jl 0x468550
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x468550
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x468550
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x468550
push 1
push esi
call fcn.00480fb0
add esp, 8
test eax, eax
js 0x468550
push 0
push 0x2710
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push 1
push eax
mov dword [esp + 0x24], 0x300
call fcn.00465bc0
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x468550
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x468550
cmp dword [esp + 8], 0x10
jl 0x468550
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x468550
cmp dword [esp + 8], 0x10
jl 0x468550
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x468550
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x468550
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x468550
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0048f4f0
add esp, 0x34
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.0048f4f0
add esp, 0x34
ret