joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44dc60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8280
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x635f14]
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, edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
mov bl, 0x5a
mov dword [ebp - 0x2c], edx
mov byte [ebp - 0x30], bl
nop word [eax + eax]
movsx ecx, bl
mov eax, 1
sub ecx, 0x41
shl eax, cl
test edx, eax
je 0x44ddc4
push dword [ebp - 0x30]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
push 1
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.00454cc0
push 0x62ceb4
lea edx, [ebp - 0x58]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004573d0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x44dd58
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x1000
jb 0x44dd4f
test cl, 0x1f
jne 0x44ddee
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x44ddee
sub ecx, eax
cmp ecx, 4
jb 0x44ddee
cmp ecx, 0x23
ja 0x44ddee
mov ecx, eax
push ecx
call fcn.00581966
add esp, 4
push dword [ebp - 0x34]
mov edx, esi
mov dword [ebp - 0x44], 0xf
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x48], 0
push dword [ebp - 0x3c]
mov byte [ebp - 0x58], 0
push dword [ebp - 0x40]
push edi
call fcn.0044d630
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44ddc1
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x44ddb8
test cl, 0x1f
jne 0x44ddee
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x44ddee
sub ecx, eax
cmp ecx, 4
jb 0x44ddee
cmp ecx, 0x23
ja 0x44ddee
mov ecx, eax
push ecx
call fcn.00581966
add esp, 4
mov edx, dword [ebp - 0x2c]
dec bl
mov byte [ebp - 0x30], bl
cmp bl, 0x41
jge 0x44dcc0
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.00581392
mov esp, ebp
pop ebp
ret
call fcn.0058a785
int3
Function at 0x44e610
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x635f14]
xor eax, esp
mov dword [esp + 0x2c], eax
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
mov eax, 0x4414
movq qword [esp + 0x10], xmm0
mov word [esp + 0x10], ax
lea eax, [esp]
movaps xmmword [esp], xmm0
push eax
mov word [esp + 0x20], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 3
mov dword [esp + 0xc], str.C:_Recycle.Bin
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x44e681
mov edx, str.Recycle_Bin_emptied_successfully.
mov ecx, 0x6380e0
call fcn.00456e00
jmp 0x44e69c
push eax
push ecx
mov edx, str.Failed_to_empty_Recycle_Bin._Error_code:
mov ecx, 0x6381f8
call fcn.00456e00
add esp, 4
mov ecx, eax
call fcn.00453160
push eax
call fcn.004570b0
mov ecx, dword [esp + 0x30]
add esp, 4
xor ecx, esp
call fcn.00581392
mov esp, ebp
pop ebp
ret

Function at 0x44ec80
Capabilities:
Delete user account

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x635f14]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
push str.test1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.NETAPI32.dll_NetUserDel]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00581392
mov esp, ebp
pop ebp
ret
Function at 0x455260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9be8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x635f14]
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
cmp dword [ebx + 0x38], 0
je 0x4553cb
cmp byte [ebx + 0x3d], 0
je 0x4553cb
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4552b9
xor al, al
jmp 0x4553cd
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00454cc0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x455323
sub eax, 1
je 0x455327
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x45537d
xor bl, bl
jmp 0x45537f
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x45535f
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.0058ad9a
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x45531f
cmp byte [ebx + 0x3d], 0
je 0x45537d
test esi, esi
jne 0x4552e4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00454f00
jmp 0x4552de
mov bl, 1
cmp edx, 0x10
jb 0x4553c7
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x4553be
test byte [ebp - 0x28], 0x1f
je 0x45539a
call fcn.0058a785
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x4553a6
call fcn.0058a785
sub eax, ecx
cmp eax, 4
jae 0x4553b2
call fcn.0058a785
cmp eax, 0x23
jbe 0x4553bc
call fcn.0058a785
mov eax, ecx
push eax
call fcn.00581966
add esp, 4
mov al, bl
jmp 0x4553cd
mov al, 1
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.00581392
mov esp, ebp
pop ebp
ret
Function at 0x4568a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8086
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x635f14]
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.005815c7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0058033c
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 0x474b40
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 0x474cba
push esi
push edi
cmp edx, 8
jb 0x474c90
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 0x474bdc
cmp ecx, esi
jae 0x474c90
cmp edi, ebx
ja 0x474be8
cmp ecx, ebx
jae 0x474c90
cmp edi, ebp
ja 0x474bf4
cmp ecx, ebp
jae 0x474c90
lea ecx, [edx - 1]
lea ecx, [esi + ecx*4]
cmp esi, ebx
ja 0x474c06
cmp ecx, ebx
jae 0x474c90
cmp esi, ebp
ja 0x474c12
cmp ecx, ebp
jae 0x474c90
mov ecx, edx
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x474c21
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 0x474c30
cmp eax, edx
jge 0x474cb8
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 0x474c94
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x475580
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x24
call fcn.00581be0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ecx
test byte [edi + 0x10], 4
mov eax, dword [edi + 4]
lea ebp, [eax - 1]
je 0x4755bb
push edi
call fcn.00475ab0
add esp, 4
mov esi, eax
jmp 0x4755d6
test eax, eax
jne 0x4755c3
xor esi, esi
jmp 0x4755d6
mov eax, dword [edi]
push dword [eax + ebp*4]
call fcn.00475010
add esp, 4
shl ebp, 5
lea esi, [eax + ebp]
lea eax, [esi + 7]
cdq
and edx, 7
add edx, eax
sar edx, 3
cmp dword [esp + 0x48], ebx
jne 0x47561b
mov ebx, dword [edi + 0xc]
lea eax, [edx*8]
mov ecx, ebx
neg ecx
sbb ecx, ecx
and ecx, 0xff
mov dword [esp + 0x14], ecx
cmp eax, esi
jne 0x475613
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 0x10], eax
jmp 0x47561d
mov eax, ebx
mov dword [esp + 0x10], eax
jmp 0x47561d
xor eax, eax
mov esi, dword [esp + 0x40]
cmp esi, 0xffffffff
jne 0x47565b
lea esi, [edx + eax]
mov dword [esp + 0x40], esi
mov ecx, dword [edi + 8]
shl ecx, 2
test ecx, ecx
jne 0x475704
test esi, esi
je 0x475791
push esi
push ecx
push dword [esp + 0x44]
call fcn.00584440
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
add eax, edx
cmp esi, eax
jge 0x47562d
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x30], eax
movups xmmword [esp + 0x20], xmm0
mov edx, dword [esp + 0x20]
psrldq xmm0, 4
movd ecx, xmm0
mov dword [esp + 0x24], ecx
test ecx, ecx
jle 0x4756a2
lea eax, [edx + ecx*4]
nop dword [eax + eax]
cmp dword [eax - 4], 0
lea eax, [eax - 4]
jne 0x47569e
dec ecx
test ecx, ecx
jg 0x475690
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x2c]
xor ebp, ebp
test ecx, ecx
cmove eax, ebp
test byte [edi + 0x10], 4
mov dword [esp + 0x2c], eax
lea ebp, [ecx - 1]
je 0x4756c9
lea eax, [esp + 0x20]
push eax
call fcn.00475ab0
add esp, 4
jmp 0x4756e1
test ecx, ecx
jne 0x4756d1
xor eax, eax
jmp 0x4756e1
push dword [edx + ebp*4]
call fcn.00475010
shl ebp, 5
add esp, 4
add eax, ebp
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [esp + 0x10]
cmp esi, eax
jge 0x47562d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret
cmp dword [esp + 0x44], 1
mov eax, dword [esp + 0x3c]
jne 0x475719
mov dword [esp + 0x48], 1
jmp 0x475724
dec eax
mov dword [esp + 0x48], 0xffffffff
add eax, esi
mov dword [esp + 0x38], eax
xor ebp, ebp
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 4]
shl eax, 2
test esi, esi
je 0x475791
neg eax
mov dword [esp + 0x10], esi
mov esi, eax
mov eax, dword [edi]
mov edx, ebp
shr edx, 2
mov ecx, ebp
and ecx, 3
shl ecx, 3
mov edx, dword [eax + edx*4]
mov eax, esi
shr eax, 0x1f
neg al
shr edx, cl
and dl, al
mov eax, dword [esp + 0x38]
xor dl, byte [esp + 0x14]
add bl, dl
cmp bl, dl
mov byte [eax], bl
sbb ebx, ebx
add eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
neg ebx
mov eax, ebp
inc esi
sub eax, dword [esp + 0x1c]
shr eax, 0x1f
add ebp, eax
sub dword [esp + 0x10], 1
jne 0x475743
mov esi, dword [esp + 0x40]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x47c3c0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x636e80], 0
jne 0x47c459
push 0x190
push 0
push 0x636e88
mov dword [0x636e80], 1
call fcn.00584440
add esp, 0xc
push 0x636e88
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x47c459
call fcn.0046b260
push str.BIO_sock_init
push 0x99
push str.crypto_bio_bio_sock.c
call fcn.0046b2b0
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0046b2e0
call fcn.0046b260
push str.BIO_sock_init
push 0x9b
push str.crypto_bio_bio_sock.c
call fcn.0046b2b0
push 0
push 0x7a
push 0x20
call fcn.0046b2e0
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x47c460
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 0x47c4b5
call fcn.0046b260
push str.BIO_socket_ioctl
push 0xf7
push str.crypto_bio_bio_sock.c
call fcn.0046b2b0
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0046b2e0
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x47c4c0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.00581be0
mov eax, dword [0x635f14]
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 0x47c5ad
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x47c521
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00581392
add esp, 0x110
ret
push 0
call fcn.0058b69f
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x47c554
jl 0x47c53a
cmp esi, eax
jae 0x47c554
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00581392
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.00581392
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.00581392
add esp, 0x110
ret
Function at 0x47e040
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.00581be0
mov eax, dword [0x635f14]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x637144], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x47db00
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x47ddd0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0047dab0
jne 0x47e19b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x47e191
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0058d374
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0058d3ce
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 0x47e10f
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x47e156
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0058d374
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0058d3ce
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x47e18d
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x47e18a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x47e18a
inc esi
cmp esi, 3
jl 0x47e158
mov eax, dword [esp + 0x14]
mov dword [0x634308], eax
mov eax, dword [esp + 0x1c]
mov dword [0x634310], eax
mov eax, dword [esp + 0x24]
mov dword [fcn.0047dab0], eax
jmp 0x47e18d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x637144], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x634308]
call fcn.00581392
add esp, 0x230
ret 4

Function at 0x47e450
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 0x47e4df
cmp word [ebx + 8], 2
push ebp
push esi
jne 0x47e4b2
cmp word [ebx + 0xa], 4
jne 0x47e4b2
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x47e4b2
mov ebp, dword [esp + 0x1c]
push dword [eax]
push dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
call fcn.0047e370
mov dword [edi], eax
test eax, eax
je 0x47e4d3
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x47e490
push 0x400
push dword [ebx]
push 0x401
push dword [esp + 0x30]
call fcn.0058d4e8
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.0x47e4ef.11001
jmp dword [eax*4 + 0x47e514]
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 0x480930
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.00581be0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.00480610
mov ebx, eax
push ebx
push esi
call fcn.00480520
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4809b9
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 0x480993
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.004805b0
push esi
call fcn.00480700
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4809b9
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.00480610
mov ebx, eax
push ebx
push esi
call fcn.00480520
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x480a28
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 0x480a0e
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.004805b0
push esi
call fcn.00480700
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x4809b1
push esi
call fcn.00480700
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x483d10
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.004cf460
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.00584820
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x483de6
call fcn.0046b260
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.0046b2b0
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.0046b2e0
add esp, 0x14
call fcn.0058ae6b
cmp dword [eax], 2
je 0x483db9
call fcn.0058ae6b
cmp dword [eax], 6
je 0x483db9
call fcn.0046b260
push str.BIO_new_file
push 0x4d
push str.crypto_bio_bss_file.c
call fcn.0046b2b0
push edi
push 0x80002
push 0x20
call fcn.0046b2e0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
call fcn.0046b260
push str.BIO_new_file
push 0x4b
push str.crypto_bio_bss_file.c
call fcn.0046b2b0
push 0
push 0x80
push 0x20
call fcn.0046b2e0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x5c8608
call fcn.0045d8c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x483e08
push edi
call fcn.005875dc
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.0045d1f0
push edi
push ebx
push 0x6a
push esi
call fcn.0045d220
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x49aa20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00581be0
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [eax]
test esi, esi
jns 0x49aa40
mov dword [eax], 0xffffffff
pop esi
add esp, 0x14
ret
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x30]
test esi, esi
je 0x49aa6c
mov ecx, dword [esp + 0x38]
test edi, edi
je 0x49aa6c
mov al, byte [esi + ecx]
dec edi
xor al, byte [ebp]
inc esi
mov byte [ebx], al
inc ebp
inc ebx
and esi, 0xf
jne 0x49aa57
mov edx, dword [esp + 0x40]
cmp edi, 0x10
jb 0x49ab05
mov ecx, dword [esp + 0x38]
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, edi
shr eax, 4
mov dword [esp + 0x10], eax
shl eax, 4
add ebx, eax
add ebp, eax
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x18]
jmp 0x49aab4
mov ecx, dword [esp + 0x38]
push dword [esp + 0x34]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x49aae7
mov eax, dword [esp + 0x38]
mov edx, 0xf
sub edx, esi
add eax, esi
shr edx, 2
inc edx
mov ecx, dword [eax + ebp]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
mov dword [ebx + eax - 4], ecx
sub edx, 1
jne 0x49aad5
mov edx, dword [esp + 0x40]
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x10], 1
jne 0x49aab0
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test edi, edi
je 0x49ab37
push dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
push eax
push eax
call edx
mov eax, dword [esp + 0x44]
add esp, 0xc
sub ebp, eax
sub ebx, eax
lea ecx, [esi + eax]
add esi, edi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edi, 1
jne 0x49ab25
mov eax, dword [esp + 0x3c]
pop edi
pop ebp
pop ebx
mov dword [eax], esi
pop esi
add esp, 0x14
ret