joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10045150
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp ebx, 0x20
jbe 0x10045174
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
call esi
cmp eax, 1
jne 0x1004519b
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push 2
call esi
cmp eax, 1
je 0x100451a3
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100451d9
cmp ebx, 0x20
je 0x100451d9
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
mov edi, eax
call esi
mov ecx, 0x20
or edx, 0xffffffff
sub ecx, ebx
xor eax, edi
shl edx, cl
pop edi
test edx, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, dword [ebp - 8]
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100451f0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1007d820]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
mov dword [ebp - 0x28], ecx
mov ecx, 0x80
push edi
cmove ebx, ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
mov edi, ebx
and ebx, 7
push 0x17
shr edi, 3
call esi
cmp eax, 1
jne 0x10045250
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
push 0x17
call esi
cmp eax, 1
jne 0x10045250
cmp edi, 0x10
jg 0x10045250
jne 0x10045263
test ebx, ebx
je 0x10045267
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x100452b7
mov esi, edi
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x14]
sub esi, 4
jb 0x10045285
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1004528a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10045274
cmp esi, 0xfffffffc
je 0x100452b7
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10045250
cmp esi, 0xfffffffd
je 0x100452b7
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10045250
cmp esi, 0xfffffffe
je 0x100452b7
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10045250
cmp esi, 0xffffffff
je 0x100452b7
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10045250
test ebx, ebx
je 0x100452dd
movzx eax, byte [ebp + edi - 0x24]
mov ecx, 8
movzx edx, byte [ebp + edi - 0x14]
sub ecx, ebx
xor edx, eax
mov eax, 0xff
shl eax, cl
test eax, edx
je 0x10045250
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100631a7
mov esp, ebp
pop ebp
ret
Function at 0x100486e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, 0x2b
test edi, edi
je 0x1004876e
mov ebx, dword [ebp + 0xc]
mov edx, dword [0x1007ec3c]
jmp 0x10048700
mov esi, 4
cmp edi, esi
cmovb esi, edi
cmp byte [0x1007ec38], 0
jne 0x1004873f
push 2
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 2
jne 0x1004876e
mov eax, dword [ebp + 0x10]
mov edx, dword [0x1007ec3c]
jmp 0x10048758
imul edx, edx, 0x41c64e6d
add edx, 0x3039
mov eax, edx
mov dword [0x1007ec3c], edx
rol eax, 0x10
xor ecx, ecx
test esi, esi
je 0x1004876a
lea esp, [esp]
mov byte [ebx], al
dec edi
inc ebx
shr eax, 8
dec esi
jne 0x10048760
test edi, edi
jne 0x10048700
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x10048780
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
dec edi
je 0x100487fa
mov ecx, dword [0x1007ec3c]
mov ebx, 0x3e
lea ebx, [ebx]
cmp byte [0x1007ec38], 0
jne 0x100487ce
push 2
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jne 0x10048804
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x1007ec3c]
jmp 0x100487e5
imul ecx, ecx, 0x41c64e6d
add ecx, 0x3039
mov eax, ecx
mov dword [0x1007ec3c], ecx
rol eax, 0x10
cmp eax, 0xfffffffc
jae 0x100487a0
xor edx, edx
div ebx
mov al, byte [edx + 0x10008c00]
mov byte [esi], al
inc esi
dec edi
jne 0x100487a0
pop edi
mov byte [esi], 0
xor eax, eax
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret

Function at 0x100488a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.10058530
push dword [ebp + 8]
movdqu xmm0, xmmword [eax]
movdqu xmmword [ebp - 0x10], xmm0
call fcn.1007a0f9
push dword [ebp + 0xc]
mov edi, eax
call fcn.1007a0f9
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 0x1004892d
lea eax, [ebp - 0x20]
push eax
call fcn.10058530
movdqu xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movdqu xmmword [ecx], xmm0
mov ecx, esp
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
call fcn.100585d0
add esp, 0x20
test edx, edx
ja 0x10048950
jb 0x1004891b
cmp eax, 0x3e8
ja 0x10048950
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x100488e2
test edi, edi
je 0x1004893a
push edi
call fcn.10065690
add esp, 4
test esi, esi
je 0x10048947
push esi
call fcn.10065690
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x1004895d
push edi
call fcn.10065690
add esp, 4
test esi, esi
je 0x1004896a
push esi
call fcn.10065690
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004a9a0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1004a9bb
cmp dword [edi], 0
jne 0x1004a9cd
test esi, esi
je 0x1004a9c4
cmp dword [esi], 0
jne 0x1004a9cd
test ebx, ebx
je 0x1004aa16
cmp dword [ebx], 0
je 0x1004aa16
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.10058460
add esp, 0xc
test ebx, ebx
je 0x1004a9e8
cmp dword [ebx], 0
jne 0x1004a9ea
xor ebx, ebx
test esi, esi
je 0x1004a9f3
cmp dword [esi], 0
jne 0x1004a9f5
xor esi, esi
test edi, edi
je 0x1004a9fe
cmp dword [edi], 0
jne 0x1004aa00
xor edi, edi
push eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov eax, ecx
mov edx, dword [ebp + 0x1c]
or eax, edx
mov dword [ebp - 4], edx
je 0x1004aa62
test edx, edx
jg 0x1004aa4f
jl 0x1004aa2f
test ecx, ecx
jae 0x1004aa44
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jl 0x1004aa5b
jg 0x1004aa4f
cmp ecx, 0xffffffff
jb 0x1004aa5b
mov ecx, 0xfffffffe
mov dword [ebp - 4], 0
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004f110
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1004f138
mov eax, 0x1b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1004f165
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
call fcn.100605f0
add esp, 4
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
call fcn.1004f050
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10054d50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x1000bc20
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10054d70
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x1000bc2c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x1000bc3c
push esi
mov dword [ebp - 8], ebx
call fcn.10067b4e
add esp, 8
test eax, eax
je 0x10054dbc
test ebx, ebx
je 0x10054dac
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10054de5
push 0x1000bc40
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10054de5
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x10054e90
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054e01
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x1007c2d8]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10054e86
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10054e86
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054e32
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054e50
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10054e60
mov eax, dword [ebp - 8]
test eax, eax
je 0x10054e7d
push 8
push 0
push ebx
call eax
jmp 0x10054e84
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x1007c2dc]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10054f00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1007d820]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x10054f59
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10054f46
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10054f40
shr eax, 8
cmp al, 2
je 0x10054f59
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x1000bbc4
call fcn.10054d50
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x1007ec50], eax
test eax, eax
je 0x10054f90
push 0x1000bbd4
push eax
call edi
mov ecx, dword [0x1007ec40]
test eax, eax
cmovne ecx, eax
mov dword [0x1007ec40], ecx
push 0x1000bbe4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x10054fc8
push 0x1000bbec
push esi
call edi
push 0x1000bbfc
push esi
mov dword [0x1007ec44], eax
call edi
push 0x1000bc10
push esi
mov dword [0x1007ec48], eax
call edi
mov dword [0x1007ec4c], eax
push 3
push 2
push 0
push 0
push 6
call fcn.10060340
push 3
push 2
push 0
test al, al
push 2
push 6
setne byte [0x1007fc11]
call fcn.10060340
add esp, 0x28
test al, al
setne byte [0x1007fc10]
push 0x1007fc18
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100631a7
mov esp, ebp
pop ebp
ret

Function at 0x10056120
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0
mov byte [ebp + 0xa], cl
lea ecx, [ebp + 8]
push 3
mov eax, dword [esi + 0x18]
push ecx
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10056168
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1000bfe8
push esi
call fcn.10021300
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push 0x1000c004
push esi
call fcn.10055a30
add esp, 0x10
pop esi
pop ebx
pop ebp
ret
Function at 0x100562c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0x1f
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jne 0x1005641c
push edi
lea ecx, [eax + 0x1cc4]
lea edi, [eax + 0x1ec4]
mov dword [edi], ecx
cmp ecx, edi
jae 0x100562fb
mov byte [ecx], 0xff
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x10056306
mov byte [ecx], 0xfa
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x10056311
mov byte [ecx], 0x1f
inc dword [edi]
movzx eax, word [eax + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x1caa]
push eax
call esi
mov ecx, dword [ebp + 8]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x10056345
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1005634f
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10056359
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10056363
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1005636e
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10056379
mov byte [eax], 0xf0
inc dword [edi]
mov esi, dword [ebp - 4]
mov eax, dword [edi]
mov dword [esi + 0x1ec8], eax
lea ecx, [esi + 0x1cc4]
sub eax, ecx
mov dword [edi], ecx
sub eax, 2
push eax
lea eax, [esi + 0x1cc6]
push eax
push 0x3e
push ebx
call fcn.10055b30
add esp, 0x10
lea eax, [esi + 0x1cc4]
push 0
push 3
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x100563d9
call edi
push eax
push 0x1000bfe8
push ebx
call fcn.10021300
add esp, 0xc
push 4
lea eax, [esi + 0x1cc7]
push eax
push ebx
call fcn.10056180
add esp, 0xc
lea eax, [esi + 0x1ccb]
push 0
push 2
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x1005641b
call edi
push eax
push 0x1000bfe8
push ebx
call fcn.10021300
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100573b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x1007d820]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x90], esi
mov eax, dword [esi + 0x18]
mov edi, dword [eax + 0x2d0]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x13c]
push ebx
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [edi + 0x134], eax
cmp dword [edi + 0x130], ebx
jne 0x10057442
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.100640c0
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x130], eax
cmp dword [edi + 0x134], 4
jge 0x10057473
push 0x1000c630
push esi
call fcn.10021300
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x148]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [edi + 0xc], edx
add edx, 0xfffffffd
cmp edx, 3
ja case.default.0x10057498
jmp dword [edx*4 + 0x100575dc]
cmp dword [edi + 0x134], 4
jle case.0x10057498.4
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [edi + 0x144]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x10057498.4
mov eax, dword [edi + 0x134]
add eax, 0xfffffffc
push eax
lea eax, [ecx + 4]
push eax
push 1
push esi
call fcn.1004b820
mov ebx, eax
add esp, 0x10
test ebx, ebx
je case.0x10057498.4
push 5
push edi
call fcn.10057e40
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x134]
lea eax, [ecx + 4]
mov edx, ecx
mov dword [ebp - 0x8c], eax
add esi, 0xfffffffc
push esi
push dword [ebp - 0x8c]
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
mov dword [edi + 8], ecx
call fcn.10057f80
add esp, 8
cmp eax, esi
mov esi, dword [ebp - 0x90]
jae case.0x10057498.4
push dword [ebp - 0x8c]
push 0x1000c64c
push esi
call fcn.100213c0
jmp 0x100575a5
mov eax, dword [edi + 0x134]
add eax, 0xfffffffe
push eax
lea eax, [ecx + 2]
push eax
push edi
call fcn.10057160
mov ebx, eax
add esp, 0xc
test ebx, ebx
je case.0x10057498.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
push 0x1000c65c
push 0x100020cc
push esi
call fcn.10021300
add esp, 0xc
push esi
call fcn.10047980
add esp, 4
test eax, eax
je 0x10057460
push 5
push edi
call fcn.10057e40
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.100631a7
mov esp, ebp
pop ebp
ret
Function at 0x10057e40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x10057e50
jmp dword [edx*4 + 0x10057ea4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10057910
mov dword [ebp + 8], eax
pop ebp
jmp fcn.100575f0
mov dword [ebp + 8], eax
pop ebp
jmp fcn.100580b0
push 0x1000c5ec
push 0x100020cc
push ecx
call fcn.100213c0
add esp, 0xc
xor eax, eax
pop ebp
ret
push 0x1000c5fc
push 0x100020cc
push ecx
call fcn.10021300
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x1005f5b0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1007d820]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
cmp esi, 4
jae 0x1005f5e8
pop esi
mov eax, 0x16
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
push edi
inc ebx
sub esi, 2
push 0x1000124c
push ebx
call fcn.10063aa0
add esp, 8
cmp esi, eax
je 0x1005f6b4
mov dword [ebp - 0x48], eax
add eax, ebx
mov dword [ebp - 0x4c], eax
cmp byte [eax], 0x25
jne 0x1005f6cd
push 2
lea esi, [eax + 1]
xor edi, edi
push 0x1000d2c8
push esi
call fcn.10064a00
add esp, 0xc
test eax, eax
jne 0x1005f63d
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x1005f63d
cmp cl, 0x5d
cmovne esi, eax
mov al, byte [esi]
test al, al
je 0x1005f6cd
lea ecx, [ebp - 0x14]
sub ecx, esi
lea esp, [esp]
cmp al, 0x5d
je 0x1005f665
cmp edi, 0xf
jge 0x1005f665
mov byte [ecx + esi], al
inc edi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1005f650
test edi, edi
je 0x1005f6cd
cmp byte [esi], 0x5d
jne 0x1005f6cd
cmp edi, 0x10
jae 0x1005f73f
lea eax, [ebp - 0x14]
mov byte [ebp + edi - 0x14], 0
push eax
call dword [0x1007c2e4]
mov ecx, dword [ebp - 0x50]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x1005f6a9
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
mov word [eax], 0x5d
lea eax, [ebp - 0x14]
mov byte [esi + ebx], 0
push eax
push ebx
lea edi, [esi + ebx]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x1005f6e3
pop edi
pop esi
mov eax, 0x16
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
push 0x2e
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x1005f729
lea edx, [ebp - 0x44]
lea ecx, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x1005f700
sub edx, ecx
cmp edx, esi
jae 0x1005f729
lea ecx, [ebp - 0x44]
mov esi, ebx
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x1005f716
lea edi, [edx + ebx]
mov byte [edi + 1], al
mov ecx, dword [ebp - 4]
xor eax, eax
mov byte [edi], 0x5d
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100631a7
mov esp, ebp
pop ebp
ret
call fcn.10063365
int3

Function at 0x100605d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100703f6
Function at 0x10075d6e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007d820]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10069e58
mov dword [ebp - 0x14], eax
cmp dword [0x1007fb3c], esi
jne 0x10075e61
push 0x800
push esi
push 0x10011b1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10075dee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10075f41
push esi
push esi
push 0x10011b1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10075f41
push 0x10011b34
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10075f41
push eax
call ebx
push 0x10011b40
push edi
mov dword [0x1007fb3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10011b50
push edi
mov dword [0x1007fb40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10011b64
push edi
mov dword [0x1007fb44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1007fb4c], eax
test eax, eax
je 0x10075e5e
push 0x10011b80
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1007fb48], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10075e86
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10075e79
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10075e9b
push 4
pop eax
jmp 0x10075f43
cmp dword [ebp - 0x14], esi
je 0x10075e9b
push dword [0x1007fb3c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10075e80
mov eax, dword [0x1007fb48]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10075ef9
cmp dword [0x1007fb4c], edi
je 0x10075ef9
push eax
call ebx
push dword [0x1007fb4c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10075ef9
test eax, eax
je 0x10075ef9
call ecx
test eax, eax
je 0x10075eee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10075eee
test byte [ebp - 8], 1
jne 0x10075ef9
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10075f29
mov eax, dword [0x1007fb40]
cmp eax, edi
je 0x10075f26
push eax
call ebx
test eax, eax
je 0x10075f26
call eax
mov esi, eax
test esi, esi
je 0x10075f26
mov eax, dword [0x1007fb44]
cmp eax, edi
je 0x10075f26
push eax
call ebx
test eax, eax
je 0x10075f26
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1007fb3c]
call ebx
test eax, eax
je 0x10075f41
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10075f43
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100631a7
mov esp, ebp
pop ebp
ret