joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4500b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be490
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x64ef14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0057ffe5
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0057e0f2
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x450a20
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x64ef14]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x450a91
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.0057ffc6
mov esp, ebp
pop ebp
ret

Function at 0x450ab0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x64ef14]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x450b49
push 0x38
lea eax, [ebp - 0x244]
mov dword [ebp - 0x248], 0x3c
push 0
push eax
call fcn.00599040
add esp, 0xc
mov dword [ebp - 0x23c], 0x643fb8
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x22c], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x450b49
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ffc6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0057ffc6
mov esp, ebp
pop ebp
ret
Function at 0x450fd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bebc1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x64ef14]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
xor esi, esi
mov eax, dword [0x6444d8]
mov dword [ebp - 0x18], eax
mov ax, word [0x6444dc]
mov word [ebp - 0x14], ax
mov eax, 1
mov ecx, esi
shl eax, cl
test ebx, eax
je 0x4510ae
lea eax, [esi + 0x41]
mov dword [ebp - 0x20], 0
mov word [ebp - 0x18], ax
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x451074
sub eax, edx
lea ecx, [ebp - 0x30]
sar eax, 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00452d40
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00453a40
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0044f0e0
inc esi
cmp esi, 0x1a
jl 0x451046
mov eax, edi
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.0057ffc6
mov esp, ebp
pop ebp
ret 4
Function at 0x452a90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
push edi
cmp edx, 8
jb 0x452ab3
mov esi, dword [eax]
jmp 0x452ab5
mov esi, eax
lea edi, [ecx + ecx]
mov edx, 0x811c9dc5
xor ecx, ecx
test edi, edi
je 0x452ad4
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x452ac3
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
and ecx, edx
mov eax, dword [esi + ecx*8]
lea edx, [ecx + ecx]
mov edi, dword [esi + edx*4]
lea esi, [esi + edx*4]
mov ecx, dword [ebx + 4]
add esi, 4
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
cmp edi, ecx
jne 0x452afc
mov edx, ecx
jmp 0x452b00
mov edx, dword [esi]
mov edx, dword [edx]
cmp eax, edx
je 0x452be9
cmp dword [ebp - 0x10], 8
lea edx, [eax + 8]
jb 0x452b18
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebx]
jmp 0x452b1b
mov edi, dword [ebp + 0xc]
cmp dword [edx + 0x14], 8
lea ebx, [edx + 0x10]
jb 0x452b26
mov edx, dword [edx]
mov ebx, dword [ebx]
cmp ebx, dword [ebp - 0xc]
jne 0x452b66
test ebx, ebx
je 0x452b47
mov si, word [edx]
cmp si, word [edi]
jne 0x452b59
add edx, 2
add edi, 2
sub ebx, 1
jne 0x452b31
mov esi, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
nop
cmp dword [ebp - 8], ecx
jne 0x452b6d
mov esi, ecx
jmp 0x452b71
mov esi, dword [ebp - 4]
sbb edx, edx
and edx, 0xfffffffe
add edx, 1
je 0x452b47
mov eax, dword [eax]
mov edi, dword [ebp - 8]
jmp 0x452af4
mov esi, dword [esi]
mov esi, dword [esi]
cmp eax, esi
je 0x452bcf
cmp dword [eax + 0x1c], 8
lea edi, [eax + 8]
lea esi, [edi + 0x10]
jb 0x452b83
mov edi, dword [edi]
cmp dword [edx + 0x14], 8
jb 0x452b8d
mov ebx, dword [edx]
jmp 0x452b8f
mov ebx, edx
mov edx, dword [ebp - 0xc]
cmp edx, dword [esi]
mov edx, dword [ebp + 0xc]
jne 0x452bcf
mov esi, dword [edx + 0x10]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x452bc8
mov si, word [ebx]
cmp si, word [edi]
jne 0x452bbe
add ebx, 2
add edi, 2
sub dword [ebp - 0x10], 1
jne 0x452ba3
mov eax, dword [eax]
mov esi, dword [ebp - 4]
jmp 0x452b50
sbb esi, esi
and esi, 0xfffffffe
add esi, 1
jne 0x452bcf
mov eax, dword [eax]
mov esi, dword [ebp - 4]
jmp 0x452b50
mov edx, dword [ebp - 0x14]
cmp edx, eax
je 0x452be9
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x454b10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 8
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x454b2b
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x454b47
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x454b36
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x454b7d
cmp dword [ecx], edi
jne 0x454b75
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x454b85
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x454b85
cmp dword [ecx], edi
jne 0x454b88
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.0044f0e0
push edi
call fcn.00580018
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x455450
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x64ef14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.00599040
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x455595
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45558e
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
push edi
call fcn.00580623
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 8]
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x455515
test cl, cl
je 0x455511
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x455515
add esi, 2
add eax, 2
test cl, cl
jne 0x4554f5
xor eax, eax
jmp 0x45551a
sbb eax, eax
or eax, 1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x455535
push ebx
call edi
mov esi, dword [ebp - 0x228]
mov dword [ebp - 0x234], esi
jmp 0x45553b
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4554b1
test esi, esi
je 0x455595
push esi
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x455595
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
test eax, eax
jne 0x455577
call edi
jmp 0x455595
call edi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ffc6
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057ffc6
mov esp, ebp
pop ebp
ret 4
Function at 0x45c110
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.00580860
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ecx, dword [eax + 0x64]
mov ebp, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x28]
mov edx, dword [ecx + 0x70]
mov dword [esp + 0x1c], ecx
test edx, edx
je 0x45c176
test edi, edi
je 0x45c156
nop
cmp edx, 0x40
jae 0x45c156
mov al, byte [edx + ecx + 0x30]
inc edx
xor al, byte [ebx]
inc ebx
mov byte [ebp], al
inc ebp
sub edi, 1
jne 0x45c140
mov dword [ecx + 0x70], edx
test edi, edi
je 0x45c22c
cmp edx, 0x40
jne 0x45c176
mov dword [ecx + 0x70], 0
add dword [ecx + 0x20], 1
jne 0x45c176
inc dword [ecx + 0x24]
mov eax, edi
lea edx, [ecx + 0x20]
and eax, 0x3f
mov dword [esp + 0x14], edx
sub edi, eax
mov dword [esp + 0xc], eax
mov eax, dword [edx]
push esi
cmp edi, 0x40
jb 0x45c1d9
mov esi, edi
shr esi, 6
add eax, esi
mov dword [esp + 0x14], eax
cmp eax, esi
jae 0x45c1a9
sub esi, eax
mov dword [esp + 0x14], 0
push edx
push ecx
shl esi, 6
push esi
push ebx
push ebp
call fcn.00401600
mov edx, dword [esp + 0x2c]
add esp, 0x14
mov eax, dword [esp + 0x14]
sub edi, esi
mov ecx, dword [esp + 0x20]
add ebx, esi
add ebp, esi
mov dword [edx], eax
test eax, eax
jne 0x45c1d4
inc dword [ecx + 0x24]
cmp edi, 0x40
jae 0x45c190
cmp dword [esp + 0x10], 0
je 0x45c22b
push 0x40
lea edi, [ecx + 0x30]
push 0
push edi
call fcn.00599040
push dword [esp + 0x24]
mov esi, dword [esp + 0x30]
push esi
push 0x40
push edi
push edi
call fcn.00401600
mov eax, dword [esp + 0x30]
add esp, 0x20
xor edx, edx
test eax, eax
je 0x45c228
sub ebx, ebp
mov esi, eax
lea ecx, [edx + ebp]
mov al, byte [ebx + ecx]
xor al, byte [edi + edx]
inc edx
mov byte [ecx], al
cmp edx, esi
jb 0x45c210
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x70], eax
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x4654b0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.00580860
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.00465190
mov ebx, eax
push ebx
push esi
call fcn.004650a0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x465539
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x465513
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.00465130
push esi
call fcn.00465280
mov edi, eax
add esp, 0x10
test edi, edi
je 0x465539
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.00465190
mov ebx, eax
push ebx
push esi
call fcn.004650a0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4655a8
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x46558e
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.00465130
push esi
call fcn.00465280
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x465531
push esi
call fcn.00465280
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4690d0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x6512d8], 0
jne 0x469169
push 0x190
push 0
push 0x6512e0
mov dword [0x6512d8], 1
call fcn.00599040
add esp, 0xc
push 0x6512e0
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x469169
call fcn.00461410
push str.BIO_sock_init
push 0x99
push str.crypto_bio_bio_sock.c
call fcn.00461460
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00461490
call fcn.00461410
push str.BIO_sock_init
push 0x9b
push str.crypto_bio_bio_sock.c
call fcn.00461460
push 0
push 0x7a
push 0x20
call fcn.00461490
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x469170
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x4691c5
call fcn.00461410
push str.BIO_socket_ioctl
push 0xf7
push str.crypto_bio_bio_sock.c
call fcn.00461460
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00461490
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x4691d0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.00580860
mov eax, dword [0x64ef14]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0x3f
ja 0x4692bd
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x469231
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0057ffc6
add esp, 0x110
ret
push 0
call fcn.0059d807
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x469264
jl 0x46924a
cmp esi, eax
jae 0x469264
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0057ffc6
add esp, 0x110
ret
sub esi, eax
mov dword [esp + 0x18], edi
xor ecx, ecx
mov dword [esp + 0x14], 1
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
test ebp, ebp
mov dword [esp + 0x10], esi
push 0
lea eax, [esp + 0x1c]
cmovne eax, ecx
test ebp, ebp
push eax
lea eax, [esp + 0x20]
cmove eax, ecx
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0057ffc6
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.0057ffc6
add esp, 0x110
ret
Function at 0x46ade0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.00580860
mov eax, dword [0x64ef14]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x65159c], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x46a8a0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x46ab70
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0046a850
jne 0x46af3b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x46af31
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0059dfd9
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0059e033
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x46aeaf
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x46aef6
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0059dfd9
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0059e033
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x46af2d
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x46af2a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x46af2a
inc esi
cmp esi, 3
jl 0x46aef8
mov eax, dword [esp + 0x14]
mov dword [0x64d360], eax
mov eax, dword [esp + 0x1c]
mov dword [0x64d368], eax
mov eax, dword [esp + 0x24]
mov dword [fcn.0046a850], eax
jmp 0x46af2d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x65159c], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x64d360]
call fcn.0057ffc6
add esp, 0x230
ret 4

Function at 0x46b1f0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x14]
push ebx
push edi
mov edi, dword [esp + 0x20]
push dword [esp + 0xc]
mov dword [edi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x46b27f
cmp word [ebx + 8], 2
push ebp
push esi
jne 0x46b252
cmp word [ebx + 0xa], 4
jne 0x46b252
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x46b252
mov ebp, dword [esp + 0x1c]
push dword [eax]
push dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
call fcn.0046b110
mov dword [edi], eax
test eax, eax
je 0x46b273
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x46b230
push 0x400
push dword [ebx]
push 0x401
push dword [esp + 0x30]
call fcn.0059e14d
add esp, 0x10
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
ret 0x18
pop esi
pop ebp
pop edi
mov eax, 8
pop ebx
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x46b28f.11001
jmp dword [eax*4 + 0x46b2b4]
pop edi
mov eax, 0x2af9
pop ebx
ret 0x18
pop edi
mov eax, 0x2afa
pop ebx
ret 0x18
pop edi
mov eax, 0x2afb
pop ebx
ret 0x18
Function at 0x46bfd0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.0049a350
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.005991a0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x46c0a6
call fcn.00461410
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.00461460
add esp, 0xc
push esi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.00461490
add esp, 0x14
call fcn.0059c332
cmp dword [eax], 2
je 0x46c079
call fcn.0059c332
cmp dword [eax], 6
je 0x46c079
call fcn.00461410
push str.BIO_new_file
push 0x4d
push str.crypto_bio_bss_file.c
call fcn.00461460
push edi
push 0x80002
push 0x20
call fcn.00461490
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
call fcn.00461410
push str.BIO_new_file
push 0x4b
push str.crypto_bio_bss_file.c
call fcn.00461460
push 0
push 0x80
push 0x20
call fcn.00461490
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x5c30e4
call fcn.00457fb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x46c0c8
push edi
call fcn.0059d460
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.004578d0
push edi
push ebx
push 0x6a
push esi
call fcn.00457900
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x477a40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
lea edx, [eax - 1]
not eax
shr edx, 0x1f
shr eax, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 4]
dec edx
xor eax, ecx
mov dword [esp + 0xc], edx
and eax, edx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, edx
and eax, edx
pshufd xmm3, xmm0, 0
xor ecx, eax
mov dword [ebp + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, edx
mov edx, dword [esp + 0x18]
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
test edx, edx
jle 0x477bba
push esi
push edi
cmp edx, 8
jb 0x477b90
mov esi, dword [ebp]
lea ecx, [edx - 1]
mov edi, dword [ebx]
lea ebp, [edx - 1]
lea ebp, [esi + ebp*4]
cmp edi, ebp
lea ecx, [edi + ecx*4]
mov ebp, dword [esp + 0x18]
ja 0x477adc
cmp ecx, esi
jae 0x477b90
cmp edi, ebx
ja 0x477ae8
cmp ecx, ebx
jae 0x477b90
cmp edi, ebp
ja 0x477af4
cmp ecx, ebp
jae 0x477b90
lea ecx, [edx - 1]
lea ecx, [esi + ecx*4]
cmp esi, ebx
ja 0x477b06
cmp ecx, ebx
jae 0x477b90
cmp esi, ebp
ja 0x477b12
cmp ecx, ebp
jae 0x477b90
mov ecx, edx
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x477b21
dec ecx
or ecx, 0xfffffff8
inc ecx
mov dword [esp + 0x18], edx
sub dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
nop dword [eax]
movups xmm1, xmmword [esi + eax*4]
movups xmm0, xmmword [edi + eax*4]
movaps xmm2, xmm1
pxor xmm2, xmm0
pand xmm2, xmm3
movaps xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [esi + eax*4], xmm0
movups xmm0, xmmword [edi + eax*4]
pxor xmm2, xmm0
movups xmmword [edi + eax*4], xmm2
movups xmm1, xmmword [esi + eax*4 + 0x10]
movups xmm0, xmmword [edi + eax*4 + 0x10]
movaps xmm2, xmm1
pxor xmm2, xmm0
pand xmm2, xmm3
movaps xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [esi + eax*4 + 0x10], xmm0
movups xmm0, xmmword [edi + eax*4 + 0x10]
pxor xmm2, xmm0
movups xmmword [edi + eax*4 + 0x10], xmm2
add eax, 8
cmp eax, ecx
jl 0x477b30
cmp eax, edx
jge 0x477bb8
mov ecx, dword [ebp]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [esp + 0x14]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x20]
jl 0x477b94
pop edi
pop esi
pop ebp
pop ebx
ret