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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50923a
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x53b0f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00423890
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00412f30
movzx ecx, al
test ecx, ecx
je 0x41aba4
mov byte [ebp - 0x99], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00422090
mov al, byte [ebp - 0x99]
jmp 0x41ad1e
push 0x510d6c
lea ecx, [ebp - 0x80]
call fcn.00423890
mov byte [ebp - 4], 1
push 0x510d70
lea ecx, [ebp - 0x64]
call fcn.00423890
mov byte [ebp - 4], 2
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004225b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00422090
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00422090
lea ecx, [ebp - 0x28]
call fcn.00413800
sub eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00417d10
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x41ac17
push 0x510d74
lea ecx, [ebp - 0x28]
call fcn.0041f580
lea ecx, [ebp - 0x28]
call fcn.00413800
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], 0
jmp 0x41ac40
mov edx, dword [ebp - 0xa0]
add edx, 1
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0xa4]
jae 0x41ad02
mov ecx, dword [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00417d10
movzx edx, word [eax]
cmp edx, 0x5c
jne 0x41acfd
mov eax, dword [ebp - 0xa0]
push eax
push 0
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00422890
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xac]
push eax
lea ecx, [ebp - 0x48]
call fcn.00423a50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.00417b10
lea ecx, [ebp - 0x44]
call fcn.00411e30
push eax
call fcn.004cba52
add esp, 4
cmp eax, 2
jne 0x41acf5
mov byte [ebp - 0x9a], 0
lea ecx, [ebp - 0x48]
call fcn.00422090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00422090
mov al, byte [ebp - 0x9a]
jmp 0x41ad1e
lea ecx, [ebp - 0x48]
call fcn.00422090
jmp 0x41ac31
mov byte [ebp - 0x9b], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00422090
mov al, byte [ebp - 0x9b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434475
mov esp, ebp
pop ebp
ret 4
Function at 0x41ae10
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ae6a
push 0
push 0x80
push 3
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x41ae6a
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x41cde0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50959a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x53b0f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x38]
call fcn.004097e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
jmp 0x41ce30
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
call fcn.004137e0
cmp dword [ebp - 0x40], eax
jge 0x41cf66
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040c130
mov dl, byte [eax]
mov byte [ebp - 0x39], dl
movzx eax, byte [ebp - 0x39]
cmp eax, 0x41
jl 0x41ce68
movzx ecx, byte [ebp - 0x39]
cmp ecx, 0x5a
jle 0x41cf05
movzx edx, byte [ebp - 0x39]
cmp edx, 0x61
jl 0x41ce7e
movzx eax, byte [ebp - 0x39]
cmp eax, 0x7a
jle 0x41cf05
movzx ecx, byte [ebp - 0x39]
cmp ecx, 0x30
jl 0x41ce90
movzx edx, byte [ebp - 0x39]
cmp edx, 0x39
jle 0x41cf05
movzx eax, byte [ebp - 0x39]
cmp eax, 0x2e
je 0x41cf05
movzx ecx, byte [ebp - 0x39]
cmp ecx, 0x2d
je 0x41cf05
movzx edx, byte [ebp - 0x39]
cmp edx, 0x5f
je 0x41cf05
movzx eax, byte [ebp - 0x39]
cmp eax, 0x3d
je 0x41cf05
movzx ecx, byte [ebp - 0x39]
cmp ecx, 0x26
je 0x41cf05
movzx edx, byte [ebp - 0x39]
cmp edx, 0x2f
je 0x41cf05
movzx eax, byte [ebp - 0x39]
cmp eax, 0x3f
je 0x41cf05
movzx ecx, byte [ebp - 0x39]
cmp ecx, 0x3a
je 0x41cf05
movzx edx, byte [ebp - 0x39]
cmp edx, 0x3b
je 0x41cf05
movzx eax, byte [ebp - 0x39]
cmp eax, 0x2b
je 0x41cf05
movzx ecx, byte [ebp - 0x39]
cmp ecx, 0x24
je 0x41cf05
movzx edx, byte [ebp - 0x39]
cmp edx, 0x2c
je 0x41cf05
movzx eax, byte [ebp - 0x39]
cmp eax, 0x40
jne 0x41cf17
movzx ecx, byte [ebp - 0x39]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0041f560
jmp 0x41ce27
movzx edx, byte [ebp - 0x39]
cmp edx, 0x20
jne 0x41cf32
push 0x510d50
lea ecx, [ebp - 0x38]
call fcn.0040c910
jmp 0x41ce27
movzx eax, byte [ebp - 0x39]
push eax
push 0x510d54
lea ecx, [ebp - 0x20]
push ecx
call fcn.0041fbd0
add esp, 0xc
push 0x510d58
lea ecx, [ebp - 0x38]
call fcn.0040c910
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x38]
call fcn.0040c910
jmp 0x41ce27
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.004092d0
mov ecx, dword [ebp - 0x44]
or ecx, 1
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040b260
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434475
mov esp, ebp
pop ebp
ret
Function at 0x41fd90
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x41fdc8
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov esp, ebp
pop ebp
ret 4
Function at 0x42f0d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x53b0f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x42f115
push esi
push esi
push esi
push 2
call fcn.00432ff0
xor al, al
jmp 0x42f29b
call fcn.0042e400
push 2
push 0
push esi
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 4], 0xffffffff
call fcn.004d3c52
push esi
call fcn.004d447c
push 0
push 0
push esi
mov edi, eax
call fcn.004d3c52
add esp, 0x1c
test edi, edi
jg 0x42f161
push 0
push 0
push 0
push 0xd
mov ecx, ebx
call fcn.00432ff0
xor al, al
jmp 0x42f29b
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
cmp edi, 0xf
je 0x42f1a3
push 1
push edi
lea ecx, [ebp - 0x28]
call fcn.00430e10
test al, al
je 0x42f1a3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
lea eax, [edi + 1]
push eax
call fcn.00434467
push esi
push 1
push edi
push eax
mov dword [ebp - 0x2c], eax
mov byte [eax], 0
call fcn.004d3746
add esp, 0x14
cmp eax, 1
je 0x42f1e5
push dword [ebp - 0x2c]
call fcn.00434470
add esp, 4
mov ecx, ebx
push 0
push 0
push 0
push 2
call fcn.00432ff0
xor bl, bl
jmp 0x42f284
mov eax, dword [ebp - 0x2c]
mov ecx, eax
mov esi, eax
mov byte [eax + edi], 0
cmp byte [eax], 0
je 0x42f247
mov al, byte [esi]
cmp al, 0xa
jne 0x42f20f
mov eax, esi
sub eax, ecx
inc eax
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00431040
inc esi
mov ecx, esi
jmp 0x42f242
cmp al, 0xd
jne 0x42f241
mov eax, esi
sub eax, ecx
test eax, eax
jle 0x42f225
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00431040
push 0xa
push 1
lea ecx, [ebp - 0x28]
call fcn.00411820
cmp byte [esi + 1], 0xa
lea ecx, [esi + 1]
jne 0x42f23d
lea ecx, [esi + 2]
mov esi, ecx
jmp 0x42f242
inc esi
cmp byte [esi], 0
jne 0x42f1f5
sub esi, ecx
je 0x42f255
push esi
push ecx
lea ecx, [ebp - 0x28]
call fcn.00431040
push dword [ebp - 0x2c]
call fcn.00434470
mov eax, dword [ebx]
lea ecx, [ebp - 0x28]
add esp, 4
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
push dword [ebp + 0xc]
push 0
push ecx
mov ecx, ebx
call dword [eax + 8]
cmp byte [ebx + 0x40], 0
je 0x42f282
xor bl, bl
jmp 0x42f284
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x42f299
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004312e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434475
mov esp, ebp
pop ebp
ret 8
Function at 0x45dc20
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x45dc73
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
push edx
call fcn.0046cf50
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x45dc36
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x467700
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x53b0f8]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
mov esi, dword [esp + 0x124]
push edi
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x120]
push ecx
push eax
mov ebx, dword [eax + ecx*4 + 0x150]
push ebp
call fcn.00467b70
add esp, 0xc
test eax, eax
je 0x467758
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x4677bd
push 0
push dword [esp + 0x128]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x4677bb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x467790
xor edi, edi
mov dword [esi], 0x51
jmp 0x4677bb
push 0x100
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00451d80
push eax
push str.Send_failure:__s
push ebp
call fcn.004673c0
mov dword [ebp + 0x978], ebx
add esp, 0x18
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00434475
add esp, 0x104
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x178]
mov ebx, dword [ecx + edx*4 + 0x150]
add esi, eax
mov eax, dword [ecx + 0x2b8]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x467c2a
cmp dword [ecx + edx*4 + 0x168], 0x467620
jne 0x467c2a
cmp dword [esi], 0
je 0x467bbb
test edi, edi
je 0x467c2a
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00478ea0
add esp, 0x14
cmp eax, 0xffffffff
je 0x467c2a
test al, 1
je 0x467c2a
cmp dword [esi], 0
jne 0x467c13
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x4e8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x53b124]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x467c02
pop edi
pop esi
mov eax, 0x1b
pop ebx
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x467c2a
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1a4], 0
je 0x467ded
push eax
call fcn.00460ab0
add esp, 4
test eax, eax
jne 0x467e0f
xor al, al
ret
mov eax, dword [eax + 0x150]
cmp eax, 0xffffffff
je 0x467dea
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x467e0f
xor al, al
ret
mov al, 1
ret
Function at 0x468070
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x53b0f8]
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 fcn.004a2c70
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 0x4680f7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00451d80
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x468138
push edi
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.00467c30
add esp, 0x10
test al, al
jne 0x468141
call fcn.004e3e7d
mov esi, eax
call fcn.004e3e7d
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push dword [esi]
call fcn.00451d80
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004673c0
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00434475
add esp, 0x188
ret

Function at 0x4688d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x53db5c]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x468921
push 3
push 2
push eax
push eax
push 6
call fcn.00495630
add esp, 0x14
test al, al
je 0x468915
mov dword [0x53db5c], 2
add esp, 0xc
ret
mov dword [0x53db5c], 1
jmp 0x468926
cmp eax, 2
je 0x46896c
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 0x468951
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x46896c
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 0x4696a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x53b0f8]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x730], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x469700
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.00467490
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00434475
add esp, 0x18
ret
push dword [esi + 0x6c8]
mov dword [esp + 0x14], 1
call fcn.00469960
push dword [esi + 0x6cc]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.00469960
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x469777
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.00467490
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.00434475
add esp, 0x18
ret

Function at 0x469790
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x53b0f8]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 4]
push 4
push eax
push 1
push 6
push dword [esp + 0x124]
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4697f5
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00451d80
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.00467490
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00434475
add esp, 0x108
ret
Function at 0x469c60
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x518220
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x469c7a
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 0x51823c
push esi
call fcn.004e8180
add esp, 8
test eax, eax
je 0x469cc2
test ebp, ebp
je 0x469cb3
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 0x469ce8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x469ce8
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 0x469d9f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469d05
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x53b124]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x469d95
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x469d95
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469d37
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 0x469d50
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x469d60
test ebp, ebp
je 0x469d8c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x53b128]
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 [0x53b128]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4717c0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4717dc
cmp dword [esi + 0x78], 0
je 0x4717dc
push 2
push 3
push esi
call fcn.0046d630
add esp, 0xc
push dword [esp + 0xc]
call fcn.00471210
add esp, 4
test esi, esi
je 0x4717fd
cmp dword [esi + 0x78], 0
je 0x4717fd
push 3
push esi
call fcn.0046d670
add esp, 8
pop esi
ret

Function at 0x4718b0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4718c2
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
ret
push esi
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4718e0
xor esi, esi
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret
Function at 0x472090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xc]
cmp byte [eax + 0x28d], 0
je 0x4720a9
mov dword [esp + 4], ecx
jmp fcn.00496df0
mov dword [esp + 4], ecx
jmp fcn.0045ea20
Function at 0x47ae60
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00470dc0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.00506be4
push dword [esp + 0x40]
mov edi, eax
call fcn.00506be4
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x47aef5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.00470dc0
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00470e60
add esp, 0x20
test edx, edx
ja 0x47af19
jb 0x47aee7
cmp eax, 0x3e8
ja 0x47af19
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x47aeb0
test edi, edi
je 0x47af02
push edi
call fcn.004af1be
add esp, 4
test esi, esi
je 0x47af0f
push esi
call fcn.004af1be
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x47af26
push edi
call fcn.004af1be
add esp, 4
test esi, esi
je 0x47af33
push esi
call fcn.004af1be
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x47af40
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 [0x53b0f8]
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 0x47b131
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 0x18], xmm0
push 0x7f000001
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 0x47b11f
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x47b11f
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 0x47b11f
cmp dword [esp + 8], 0x10
jl 0x47b11f
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x47b11f
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x47b11f
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x47b11f
push 1
push esi
call fcn.00494fb0
add esp, 8
test eax, eax
js 0x47b11f
push 0
push 0x2710
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push 1
push eax
mov dword [esp + 0x24], 0x300
call fcn.00478b00
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 0x47b11f
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 0x47b11f
cmp dword [esp + 8], 0x10
jl 0x47b11f
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 0x47b11f
cmp dword [esp + 8], 0x10
jl 0x47b11f
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x47b11f
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x47b11f
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x47b11f
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.00434475
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.00434475
add esp, 0x34
ret