joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435db0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x435e05
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x102
jne 0x435dee
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x435e26
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, dword [eax]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x435e46
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov esp, ebp
pop ebp
ret 4

Function at 0x4381a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e7cd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x55f904]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00403890
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00438510
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00438590
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00438430
mov dword [ebp - 0x20], 0x4385d0
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00438420
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.00502fb5
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x43823f
lea ecx, [ebp - 0x14]
call fcn.004383f0
jmp 0x438250
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.004ece17
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00438430
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x43a3c0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e915
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x55f904]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x3c], ecx
push 0
push 0
push 0
push 0
push 0x549fb0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [ebp - 0x44]
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0
jne 0x43a425
push 0
mov ecx, dword [ebp - 0x44]
call fcn.0043a790
xor al, al
jmp 0x43a4fb
lea ecx, [ebp - 0x40]
call fcn.00405b20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405b20
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0043ab20
add esp, 0x10
movzx edx, al
test edx, edx
jne 0x43a48d
push 1
mov ecx, dword [ebp - 0x44]
call fcn.0043a790
mov byte [ebp - 0x45], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004032c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004032c0
mov al, byte [ebp - 0x45]
jmp 0x43a4fb
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.00403290
mov ecx, dword [ebp - 0x44]
mov dx, word [ebp - 0x4c]
mov word [ecx + 0x1c], dx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x20
call fcn.00403290
push 8
push str.https:__
mov ecx, dword [ebp + 8]
call fcn.00403230
push eax
call fcn.00503c38
add esp, 0xc
test eax, eax
jne 0x43a4d9
mov ecx, dword [ebp - 0x44]
mov byte [ecx + 0x38], 1
mov byte [ebp - 0x46], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004032c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004032c0
mov al, byte [ebp - 0x46]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004edf30
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43a940
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push eax
push 0
push 3
push 0
push 0
movzx ecx, word [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403230
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x43a985
xor al, al
jmp 0x43a987
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43aa40
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x20000013
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x43aa7b
xor al, al
jmp 0x43aac4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x20000005
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x43aac2
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x43ab20
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x55f904]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
push 0
lea eax, [ebp - 0x204]
push eax
call fcn.004f0080
add esp, 0xc
push 0x3c
push 0
lea ecx, [ebp - 0x240]
push ecx
call fcn.004f0080
add esp, 0xc
mov dword [ebp - 0x240], 0x3c
lea edx, [ebp - 0x204]
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x22c], 0xff
mov dword [ebp - 0x210], 1
lea eax, [ebp - 0x240]
push eax
push 0
mov ecx, dword [ebp + 0x14]
call fcn.00403220
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00403230
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x43abaf
xor al, al
jmp 0x43abdc
mov ecx, dword [ebp - 0x230]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004071c0
mov edx, dword [ebp + 0xc]
mov ax, word [ebp - 0x228]
mov word [edx], ax
mov ecx, dword [ebp - 0x214]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004071c0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edf30
mov esp, ebp
pop ebp
ret
Function at 0x43fd90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x55f904]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x5685e0], ecx
inc eax
cmp eax, 0x100
jb 0x43fda5
cmp eax, 0x800
jae 0x43fe73
nop dword [eax]
mov edx, dword [eax*4 + 0x5681e0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x5685e0]
mov dword [eax*4 + 0x5685e0], edx
inc eax
cmp eax, 0x800
jb 0x43fe50
lea ecx, [ebp - 0x24]
mov dword [0x5685d4], 0x441b50
call fcn.00441d30
test eax, eax
je 0x43ff4f
mov ecx, dword [ebp - 0x14]
mov edx, ecx
shr edx, 8
mov eax, ecx
mov edi, edx
and eax, 0xf00
and edi, 0xff000
and edx, 0xf00
and ecx, 0xf0
or edi, eax
or edx, ecx
shr edi, 8
shr edx, 4
xor ecx, ecx
mov eax, 0x54a0d8
xor esi, esi
mov ebx, dword [ebp - 0x20]
cmp dword [eax - 8], ebx
jne 0x43feda
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x18]
jne 0x43feda
cmp dword [eax], ebx
je 0x43fef7
add esi, 0xc
inc ecx
add eax, 0xc
cmp esi, 0x24
jb 0x43fec3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edf30
mov esp, ebp
pop ebp
ret
sub ecx, 0
je 0x43ff25
sub ecx, 1
je 0x43ff14
sub ecx, 1
jne 0x43ff4f
cmp edi, 6
jb 0x43ff4f
jne 0x43ff45
cmp edx, 0xf
jb 0x43ff4f
jmp 0x43ff45
cmp edi, 5
jb 0x43ff4f
jne 0x43ff45
cmp edx, 6
jb 0x43ff4f
cmp edx, 0xa
jmp 0x43ff43
cmp edi, 6
jb 0x43ff4f
jne 0x43ff45
cmp edx, 0x1c
je 0x43ff4f
cmp edx, 0x26
je 0x43ff4f
cmp edx, 0x27
je 0x43ff4f
cmp edx, 0x35
je 0x43ff4f
cmp edx, 0x36
je 0x43ff4f
mov dword [0x5685d4], 0x441bf0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004edf30
mov esp, ebp
pop ebp
ret
Function at 0x444c50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x444c72
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 8], 5
push ebx
lea ebx, [edx - 4]
add ebx, ecx
mov dword [ebp - 8], ebx
nop
lea eax, [edi + ecx]
cmp eax, ebx
jae 0x444c99
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x444c96
inc eax
cmp eax, ebx
jb 0x444c87
mov ecx, dword [ebp - 4]
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ecx
sub edi, ecx
cmp eax, ebx
jae 0x444d8f
cmp edx, 2
jbe 0x444d41
xor esi, esi
movzx ebx, byte [eax + 4]
lea ecx, [ebx + 1]
test cl, 0xfe
jne 0x444d78
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
shl ebx, 8
or ebx, ecx
mov ecx, dword [ebp + 8]
add ecx, edi
sub ebx, ecx
test esi, esi
je 0x444d11
and esi, 6
mov edx, ebx
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x444d0f
mov edx, 0x100
shl edx, cl
mov ecx, dword [ebp + 8]
dec edx
xor ebx, edx
add ecx, edi
sub ebx, ecx
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov ecx, dword [ebp - 4]
mov byte [eax + 4], bl
mov eax, 5
mov ebx, dword [ebp - 8]
add edi, eax
jmp 0x444c80
mov ecx, edx
shr esi, cl
test esi, esi
je 0x444cb6
cmp esi, 4
ja 0x444d6a
cmp esi, 3
je 0x444d6a
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x444cb6
mov ecx, dword [ebp - 4]
or esi, 8
shr esi, 1
inc edi
jmp 0x444c80
mov ebx, dword [ebp - 8]
or esi, 8
mov ecx, dword [ebp - 4]
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x444c80
mov eax, dword [ebp + 0xc]
mov ecx, edx
shr esi, cl
xor ecx, ecx
cmp edx, 2
pop ebx
cmovbe ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44e860
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x44e90f
push esi
call fcn.0046b380
add esp, 4
test al, al
jne 0x44e90f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x44e887
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004750d0
add esp, 0xc
test eax, eax
je 0x44e8bb
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004750d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x44e8bd
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x44e8ee
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.00464050
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x44e8d0
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x460ac0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x527144
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x460ada
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 0x527160
push esi
call fcn.004fc950
add esp, 8
test eax, eax
je 0x460b22
test ebp, ebp
je 0x460b13
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 0x460b48
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x460b48
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 0x460bff
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460b65
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 0x460bf5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x460bf5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460b97
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 0x460bb0
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 0x460bc0
test ebp, ebp
je 0x460bec
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x55f004]
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 [0x55f004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x465840
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x56470c]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x465891
push 3
push 2
push eax
push eax
push 6
call fcn.00495230
add esp, 0x14
test al, al
je 0x465885
mov dword [0x56470c], 2
add esp, 0xc
ret
mov dword [0x56470c], 1
jmp 0x465896
cmp eax, 2
je 0x4658dc
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 0x4658c1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x4658dc
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 0x466370
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x55f904]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x4664a8
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x2b4]
test dword [eax + 0x48], 0x800
jne 0x4664a8
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push 0
push eax
call fcn.004f0080
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x466436
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00445980
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0045d0c0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004edf30
add esp, 0x188
ret
lea eax, [esi + 0xfc]
push eax
lea eax, [esi + 0xca]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.0045f600
add esp, 0x10
test al, al
jne 0x4664a8
call fcn.004f8f8d
mov esi, dword [eax]
call fcn.004f8f8d
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00445980
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0045d0c0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004edf30
add esp, 0x188
ret
mov ecx, dword [esp + 0x190]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004edf30
add esp, 0x188
ret
Function at 0x46b530
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x46b577
mov eax, dword [esi + 0x88]
cmp byte [eax + 0x164], 0
jne 0x46b56b
push 0
call fcn.0046b530
add esp, 4
test al, al
mov eax, dword [esi + 0x88]
setne cl
inc cl
mov byte [eax + 0x164], cl
mov eax, dword [esi + 0x88]
cmp byte [eax + 0x164], 2
pop esi
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x46b58c
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret

Function at 0x46c2a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x55f904]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
push edi
xor edi, edi
mov dword [esp + 8], eax
cmp byte [eax + 0x6b2], 0
je 0x46c482
cmp byte [ebp + 0x18], 0
push ebx
lea ebx, [ebp + 0x18]
je 0x46c481
lea eax, [esp + 0x30]
push eax
push ebx
push 2
call fcn.0047bf90
add esp, 0xc
test eax, eax
jg 0x46c481
lea eax, [esp + 0x34]
push eax
push ebx
push 0x17
call fcn.0047bf90
add esp, 0xc
test eax, eax
jg 0x46c481
cmp byte [ebx], 0
mov eax, str._none_
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp]
cmovne eax, ebx
mov ebp, dword [esp + 0x14]
push eax
push str.Host__s:_d_was_resolved.
push ebp
call fcn.0045d190
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.0044f830
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.0044f830
add esp, 0x20
test esi, esi
je 0x46c3f4
lea edx, [edi + 0x10]
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x46c368
cmp ecx, 2
jne 0x46c3e9
xor eax, eax
mov byte [esp + 0x48], 0
cmp ecx, 2
lea ebx, [esp + 0x14]
cmovne eax, edx
add ebx, eax
sub ecx, 2
je 0x46c397
sub ecx, 0x15
jne 0x46c3af
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x46c3a7
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call fcn.004941a0
add esp, 0x10
push ebx
call fcn.0044d820
add esp, 4
test eax, eax
je 0x46c3ce
push 2
push 0x526810
push ebx
call fcn.0044f7f0
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x46c414
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.0044f790
mov edi, eax
add esp, 8
test edi, edi
jne 0x46c414
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x46c357
lea eax, [esp + 0x24]
push eax
call fcn.0044d820
add esp, 4
test eax, eax
je 0x46c424
lea eax, [esp + 0x24]
push eax
call fcn.0044d770
add esp, 4
jmp 0x46c429
push str.too_many_IP__cannot_show
push ebp
call fcn.0045d190
add esp, 8
jmp 0x46c469
mov eax, str._none_
push eax
push str.IPv6:__s
push ebp
call fcn.0045d190
lea eax, [esp + 0x20]
push eax
call fcn.0044d820
add esp, 0x10
test eax, eax
je 0x46c455
lea eax, [esp + 0x14]
push eax
call fcn.0044d770
add esp, 4
jmp 0x46c45a
mov eax, str._none_
push eax
push str.IPv4:__s
push ebp
call fcn.0045d190
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.0044f800
lea eax, [esp + 0x28]
push eax
call fcn.0044f800
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
xor ecx, esp
call fcn.004edf30
add esp, 0x6c
ret
Function at 0x475820
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0046a7b0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.0050b077
push dword [esp + 0x40]
mov edi, eax
call fcn.0050b077
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 0x4758b5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.0046a7b0
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.0046a860
add esp, 0x20
test edx, edx
ja 0x4758d9
jb 0x4758a7
cmp eax, 0x3e8
ja 0x4758d9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x475870
test edi, edi
je 0x4758c2
push edi
call fcn.004f8968
add esp, 4
test esi, esi
je 0x4758cf
push esi
call fcn.004f8968
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x4758e6
push edi
call fcn.004f8968
add esp, 4
test esi, esi
je 0x4758f3
push esi
call fcn.004f8968
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x475df0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x475f81
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x475f6c
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475e4e
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475e40
sub eax, edx
lea ecx, [eax + 1]
jmp 0x475e50
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x475e61
lea ebp, [eax + 0xe]
jmp 0x475e6d
cmp eax, 0x17
jne 0x475f0e
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x475f0e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x475f0e
cmp eax, ebp
jb 0x475f0e
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x475f5d
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.004f0450
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x475efa
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.004f0450
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x475f0a
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x475e32
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x475f2e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x475f68
test ebx, ebx
je 0x475f4d
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x55f004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x475f36
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x475f1d
test ebx, ebx
jne 0x475f78
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x478140
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.004f0080
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret