joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9ca5f0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 8]
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
push dword [edi + 0x98]
lea esi, [edi + 0xbc]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x9ca632
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push dword [ebp + 0xc]
call fcn.009cac00
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.009ca9a0
push dword [edi + 0xec]
cmp dword [edi], 5
lea eax, [edi + 0xbc]
push eax
push dword [edi + 0x120]
lea eax, [edi + 0xf0]
mov ecx, 0xa20aa4
push eax
push dword [edi + 0x98]
mov eax, str.QUIC
cmovne eax, ecx
push eax
push str._s_socket__d_connected:___s:_d_______s:_d_
push ebx
push esi
call fcn.0099c540
push 1
push dword [edi + 0x98]
call fcn.009d4800
add esp, 0x34
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9ca7a0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
jne 0x9ca7c4
push dword [ecx + 0x14]
lea eax, [ecx + 0x18]
push eax
push dword [ecx + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0xa330c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx]
push 0
push dword [ebp + 0x10]
mov eax, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x9ca860
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x9ca82b
mov dword [edi], 0x51
jmp 0x9ca85d
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.009ade70
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.0099c400
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x934], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [ebp + 0x10]
push str.nw_in_read_len_zu______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.0099c540
mov ecx, dword [ebp - 4]
add esp, 0x18
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00986a63
mov esp, ebp
pop ebp
ret
Function at 0x9ca9a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0xa330c0]
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 [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x1e8]
test dword [eax + 0x44], 0x800
jne 0x9caac0
push 0x80
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.009db2f0
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x9caa51
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.009ade70
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0099c400
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00986a63
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.0099d2d0
add esp, 0x10
test al, al
jne 0x9caac0
push edi
call fcn.009e5e78
mov esi, dword [eax]
call fcn.009e5e78
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.009ade70
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0099c400
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00986a63
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00986a63
mov esp, ebp
pop ebp
ret

Function at 0x9cad10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xa330c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x6db], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x9cad6d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.0099c4c0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00986a63
mov esp, ebp
pop ebp
ret
push dword [esi + 0x678]
mov dword [ebp - 0x10], 1
call fcn.0099e470
push dword [esi + 0x67c]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.0099e470
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x9caddd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.0099c4c0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00986a63
mov esp, ebp
pop ebp
ret
Function at 0x9cadf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0xa330c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x9cae52
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009ade70
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.0099c4c0
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00986a63
mov esp, ebp
pop ebp
ret
Function at 0x9d84e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x9d8513
push 0x2e
push edi
call fcn.009ddae0
add esp, 8
test eax, eax
je 0x9d8511
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x9d8830
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xa330c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9d88c2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0x208
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x6601
push edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x10], 8
call fcn.009d8920
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.009dac50
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x9d88d4
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00986a63
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00986a63
mov esp, ebp
pop ebp
ret
Function at 0x9d9df0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0xa33178]
mov esi, eax
add esp, 4
test esi, esi
jne 0x9d9e1d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push edi
lea edi, [ebx + 4]
cmp eax, dword [ebx + 0x10]
jbe 0x9d9e68
mov eax, dword [ebx]
push ecx
call eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebx + 0xc]
push dword [esi + 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebx + 8]
call eax
mov eax, dword [ebx + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x9d9e6e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 4]
mov eax, dword [ebx]
call eax
push dword [esi + 8]
mov eax, dword [ebx]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x9d9ed1
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
nop
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x9d9e90
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
lea edi, [eax + 4]
jmp 0x9d9ed4
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x10]
jae 0x9d9f08
nop dword [eax]
mov eax, dword [edi]
push 1
push 0xa23b69
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0xa23b6a
push dword [esi + 8]
call eax
mov eax, dword [ebp + 8]
inc ebx
add esp, 0x18
cmp ebx, dword [eax + 0x10]
jb 0x9d9ee0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x9d9f70
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x9d9f95
mov eax, 0x1b
pop esi
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9d9fc5
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
mov eax, 2
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x9dac50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9dac9c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9dac62
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9dad00
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9dad52
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9dad58
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f3245
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f2f05

Function at 0x9f803f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f7ebe

Function at 0x9fd5f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9fd61d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9fd61d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43674f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44b650]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004366e4
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00420fa0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43679e
cmp dword [ebp - 0x1c], 5
jb 0x4367b6
jmp 0x4367b2
cmp dword [ebp - 0x10], 1
jne 0x4367b6
cmp dword [ebp - 0x1c], 4
ja 0x4367b2
jne 0x4367b6
cmp dword [ebp - 0x18], 0
jbe 0x4367b6
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43fcb4
call fcn.004365b8
test eax, eax
jge 0x4367d7
mov byte [0x44cb80], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421b6f
add ebp, 0x78
leave
ret

Function at 0x408ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor dword [ebx], 0x3b
mov ecx, dword [ebp - 0x6c]
xor dword [ebx + 0x788910ee], ecx
clc
pushfd
dec ebp
or dword [edx], ebp
mov eax, dword [esi]
push es
cmp dword [eax], eax
lea edx, [ebp - 4]
mov dword [ebp - 0xc], eax
push 0
push edx
mov edx, dword [ecx + 4]
lea eax, [ebp - 0xc]
push 1
push eax
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCRT.dll_modf]
cmp eax, 0x35
jne 0x408b2a
sub al, 0x57
push edi
mov edi, dword [0xacc1d8]
inc ebp
xlatb
or eax, eax
jne 0x408b15
mov dword [esi], eax
pop edi
wait
je 0x408afd
pop ebp
ret 0x87
call edi
mov dword [esi], 0
pop edi
add eax, 0xa3b80
test byte [ebx + 0xcc25de5], cl
add byte [ebx + 0x627fc7d], cl
mov edi, dword [ebp - 4]
daa
push es
xor edx, esi
pop esi
mov esp, ebp
in eax, 0xc2
or al, 0
xor byte [eax - 0xee16f83], dl
nop
nop
push ebp
jnp 0x408b2f
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
jnp 0x408ad6
std
cmpsd dword [esi], dword es:[edi]
push 0
push 0xffffffffffffff8e
clc
push 0
mov eax, dword [esi]
push edx
ficom word [ebp + 8]
mov dword [ebp - 0x10], eax
inc ebp
cld
mov dword [ebp - 0xc], ecx
imul ecx, dword [ebx + 0x4d8dfe42], 0x51016af0
push eax
mov dword [ebp - 4], 0xef0d
mov dword [ebp - 8], 0xc00000
call dword [0x40c1ce]
cmp eax, 0xffffffff
jne 0x408c06
or al, 0x8b
cmp eax, 0x7840c1d8
call edi
test eax, eax
jne 0x408b9e
mov dword [esi], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x790c
call edi
mov dword [esi], 0
movsb byte es:[edi], byte [esi]
add eax, 0xafc80
pop esi
mov esp, ebp
pop ebp
ret
salc
add eax, 0x20fc80
pop esi
mov eax, dword [esi - 1]
ret
Function at 0x100016b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b760
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1018c880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0x14]
add ecx, 0x18
add ecx, eax
xor edx, edx
mov eax, dword [esi]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], ecx
movzx eax, word [eax + 6]
cmp edx, eax
jge 0x1000176d
cmp dword [ecx + 0x10], 0
push 0x10054bec
je 0x1000177f
jmp 0x10001796
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], 0x36
call fcn.10003402
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x43
call fcn.10003402
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
push dword [eax + 0x10]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x18]
push eax
call dword [0x1004c018]
mov dword [ebp - 0x1c], eax
mov eax, 0x100017d0
ret

Function at 0x10001830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push edi
xor edi, edi
test ebx, ebx
jle 0x10001883
mov dword [ebp + 0xc], 0x6d9
push esi
nop dword [eax + eax]
mov eax, dword [ebp + 0x10]
mov esi, ecx
movsx eax, byte [edi + eax]
cdq
idiv dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add dl, 0x4f
xor byte [eax + ecx], dl
mov eax, 0xcccccccd
mul ecx
inc ecx
shr edx, 2
lea eax, [edx + edx*4]
lea edx, [edi + 1]
xor edi, edi
cmp esi, eax
cmovne edi, edx
cmp ecx, ebx
jl 0x10001850
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001890
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b780
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1018c880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx eax, word [ecx + 0x14]
add ecx, 0x18
add ecx, eax
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp edx, eax
jge 0x100019c7
mov esi, dword [ecx + 0x24]
mov eax, esi
mov edi, esi
shr eax, 0x1d
shr edi, 0x1e
mov ebx, esi
and eax, 1
shr ebx, 0x1f
and edi, 1
test esi, 0x2000000
jne 0x100019d9
jmp 0x10001922
lea eax, [edi + eax*2]
lea eax, [ebx + eax*2]
mov eax, dword [eax*4 + 0x1018c850]
mov dword [ebp - 0x20], eax
test esi, 0x4000000
je 0x10001942
or eax, 0x200
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100019f5
jmp 0x10001a11
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10054bec
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], 0x4b
call fcn.10003402
push 0x10054bec
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x10
call fcn.10003402
push 0x10054bec
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
mov dword [ebp - 0x2c], 0xf
call fcn.10003402
int3
Function at 0x100298f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
mov eax, 0x80000002
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], eax
je 0x10029c9
cmp word [ebx], di
je 0x10029c9
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x10029c9
xor eax, eax
jmp 0x1002ab6
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1001548
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002aa1
push esi
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
mov esi, 0x1001528
push esi
push dword [ebp - 4]
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002a97
mov eax, dword [ebp - 8]
inc eax
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
je 0x1002a97
push 7
pop ebx
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1000ffff
push esi
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1002a8a
cmp dword [ebp - 0x10], ebx
jne 0x1002a8a
mov esi, dword [ebp - 0x14]
cmp word [esi], di
je 0x1002a8a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, 0x1001508
push edi
call ebx
push eax
push edi
push esi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x1002a81
push esi
call ebx
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x1002a5f
jmp 0x1002a88
mov dword [ebp - 0x18], 1
xor edi, edi
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_free]
mov ebx, dword [ebp + 8]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp ebx, edi
je 0x1002ab3
cmp word [ebx], di
je 0x1002ab3
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
pop edi
pop ebx
leave
ret 4
Function at 0x1003652
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x100b27c]
and dword [ebp - 0xdc], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0xd8]
push eax
push 0x68
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x10036a8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100369a
call esi
mov dword [ebp - 0xdc], eax
jmp 0x10036fa
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1003692
lea ecx, [eax + 1]
mov eax, dword [ebp + 8]
cmp ecx, eax
jbe 0x10036be
mov dword [ebp - 0xdc], 0x80070057
jmp 0x10036fa
push edi
mov ecx, eax
xor eax, eax
cmp word [ebp - 0xd8], ax
mov edi, ebx
rep stosw word es:[edi], ax
lea esi, [ebp - 0xd8]
pop edi
je 0x10036fa
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x10036f1
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
add ebx, 8
add esi, 8
cmp word [esi], 0
jne 0x10036d8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xdc]
pop esi
pop ebx
call fcn.01007865
leave
ret 8

Function at 0x100374a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
jne 0x1003762
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp + 8], eax
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10037e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 3
je 0x10037df
cmp ebx, 2
je 0x10037df
cmp ebx, 5
jne 0x100378c
xor esi, esi
jmp 0x1003803
test ebx, ebx
mov esi, ebx
jle 0x100379e
and esi, 0xffff
or esi, 0x80070000
cmp ebx, 0x15
jne 0x10037c2
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 3
pop ecx
jle 0x10037c2
cmp word [edi + eax*2 - 2], 0x5c
jne 0x10037c2
cmp word [edi + eax*2 - 4], 0x3a
jne 0x10037c2
xor esi, esi
test esi, esi
jge 0x1003803
cmp dword [ebp + 0x10], 0
je 0x1003803
push edi
push 0x23
push ebx
push 0
push dword [ebp + 8]
call fcn.010075fa
add esp, 0x14
jmp 0x1003803
xor esi, esi
inc esi
jmp 0x1003803
test al, 0x10
jne 0x1003803
cmp dword [ebp + 0x10], esi
je 0x10037fe
push edi
push 0x14
push esi
push 0x10
push dword [ebp + 8]
call fcn.010075fa
add esp, 0x14
mov esi, 0x80004005
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc