joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf8863f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x100c068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x108], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push ebx
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x10c], esi
call fcn.00f6a1ad
mov dword [ebp - 0x11c], eax
pop ecx
test eax, eax
jne 0xf886b4
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00f4afef
push eax
push ebx
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push edi
call fcn.00f5bb15
add esp, 0x1c
push 0x4d
pop esi
jmp 0xf88800
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
jne 0xf886f9
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00f4afef
push eax
push ebx
push str.schannel:_failed_to_open_CA_file__s:__s
jmp 0xf886a3
lea ecx, [ebp - 0x124]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0xf8873b
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00f4afef
push eax
push ebx
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push edi
call fcn.00f5bb15
add esp, 0x1c
push 0x4d
pop esi
jmp 0xf887f4
cmp dword [ebp - 0x120], esi
mov esi, dword [ebp - 0x124]
jl 0xf88765
mov eax, 0x100000
jg 0xf88754
cmp esi, eax
jbe 0xf88765
push eax
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push edi
call fcn.00f5bb15
add esp, 0xc
jmp 0xf88733
lea eax, [esi + 1]
push eax
call dword [0x100c090]
pop ecx
mov ecx, eax
mov dword [ebp - 0x108], ecx
test ecx, ecx
jne 0xf88780
push 0x1b
jmp 0xf88735
test esi, esi
je 0xf887dc
mov edx, dword [ebp - 0x10c]
and dword [ebp - 0x110], 0
lea eax, [ebp - 0x110]
push 0
push eax
mov eax, esi
sub eax, edx
push eax
lea eax, [edx + ecx]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xf88837
cmp dword [ebp - 0x110], 0
mov ecx, dword [ebp - 0x108]
je 0xf8882f
mov edx, dword [ebp - 0x10c]
add edx, dword [ebp - 0x110]
mov dword [ebp - 0x10c], edx
cmp edx, esi
jb 0xf8878a
push edi
push ebx
push esi
push ecx
push dword [ebp - 0x118]
mov byte [esi + ecx], 0
call fcn.00f883d8
add esp, 0x14
mov esi, eax
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x108]
call dword [0x100c094]
mov eax, dword [ebp - 0x11c]
pop ecx
test eax, eax
je 0xf8881e
push eax
call fcn.00f9304c
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00f49793
leave
ret
mov esi, dword [ebp - 0x10c]
jmp 0xf887dc
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00f4afef
push eax
push ebx
push str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0xf8872a
Function at 0xf8a20a
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, 0x28
mov eax, dword [0x100c068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
inc ebx
push 0xf0000040
push ebx
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push 0
push eax
mov dword [ebp - 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0xf8a252
xor al, al
jmp 0xf8a2e4
push 0x14
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00f8fdb0
lea eax, [ebp - 0xc]
mov word [ebp - 0x18], 0x208
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.00f8a2f3
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.00f8da91
add esp, 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0xf8a2ac
xor bl, bl
jmp 0xf8a2d7
push 8
push edi
push esi
call fcn.00f8f2b0
add esp, 0xc
lea eax, [ebp - 0x1c]
push dword [ebp - 0x1c]
push eax
push esi
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00f49793
leave
ret
Function at 0xf8c12c
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x11
push str.WWW_Authenticate:
push esi
call fcn.00f6014a
mov edi, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0xf8c15a
mov ebx, dword [edi + 0xe0]
cmp ebx, 0x191
je 0xf8c17c
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.00f6014a
add esp, 0xc
test eax, eax
je 0xf8c1c0
mov ebx, dword [edi + 0xe0]
cmp ebx, 0x197
jne 0xf8c1c0
push esi
call fcn.00f62ab6
mov esi, eax
pop ecx
test esi, esi
jne 0xf8c191
push 0x1b
pop eax
jmp 0xf8c344
cmp ebx, 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.00f643aa
push esi
mov edi, eax
call dword [0x100c094]
add esp, 0x10
test edi, edi
je 0xf8c342
mov eax, edi
jmp 0xf8c344
push 0xf
mov ebx, str.Content_Length:
push ebx
push esi
call fcn.00f6014a
add esp, 0xc
test eax, eax
je 0xf8c21b
mov ecx, dword [edi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0xf8c1f7
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.00f5bbc5
jmp 0xf8c2a2
mov eax, dword [ebp + 0x10]
add eax, 0x208
push eax
push 0xa
push 0
push ebx
call fcn.00f9fed0
pop ecx
add eax, esi
push eax
call fcn.00f6a401
add esp, 0x10
jmp 0xf8c342
push 5
mov ebx, str.close
push ebx
push 0xb
push str.Connection:
push esi
call fcn.00f62a2e
add esp, 0x14
test al, al
jne 0xf8c338
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00f6014a
add esp, 0xc
test eax, eax
je 0xf8c2aa
mov ecx, dword [edi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0xf8c268
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
jmp 0xf8c1ec
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00f62a2e
add esp, 0x14
test al, al
je 0xf8c342
push str.CONNECT_responded_chunked
push edi
call fcn.00f5bbc5
mov eax, dword [ebp + 0x10]
push edi
mov byte [eax + 0x214], 1
call fcn.00f847ec
add esp, 0xc
jmp 0xf8c342
push 5
push ebx
push 0x11
push str.Proxy_Connection:
push esi
call fcn.00f62a2e
add esp, 0x14
test al, al
jne 0xf8c338
push 7
push str.HTTP_1.
push esi
call fcn.00fa07f0
add esp, 0xc
test eax, eax
jne 0xf8c342
mov al, byte [esi + 7]
cmp al, 0x30
je 0xf8c2e0
cmp al, 0x31
jne 0xf8c342
cmp byte [esi + 8], 0x20
jne 0xf8c342
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0xf8c342
mov dl, byte [esi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0xf8c342
mov bl, byte [esi + 0xb]
mov al, bl
sub al, 0x30
cmp al, 9
ja 0xf8c342
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0xf8c312
cmp al, 0x39
jle 0xf8c342
movsx eax, cl
imul ecx, eax, 0xa
movsx eax, dl
add ecx, eax
movsx eax, bl
imul ecx, ecx, 0xa
add eax, 0xffffeb30
add eax, ecx
mov dword [edi + 0xe0], eax
mov dword [edi + 0xd6c], eax
jmp 0xf8c342
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x215], 1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0xf8d78a
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x100c090]
mov edi, eax
pop ecx
test edi, edi
je 0xf8d877
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0xf8d7f6
push ecx
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
call dword [esi + 8]
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0xf8d7fc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push ecx
call dword [esi]
push dword [edi + 8]
call dword [esi]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
pop ecx
test eax, eax
je 0xf8d86f
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 4]
push 1
mov al, byte [eax]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov ecx, dword [ebp - 4]
push 1
mov al, byte [ecx]
xor al, 0x5c
inc ecx
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov dword [ebp - 4], ecx
call dword [esi + 4]
add esp, 0x18
sub ebx, 1
jne 0xf8d814
mov ebx, dword [ebp - 8]
jmp 0xf8d86f
push 1
push 0xfc92a1
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0xfc92a2
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0xf8d851
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 0x18
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xf8d8f5
lea eax, [esi + 4]
push eax
push edi
push edi
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0xf8da91
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0xf8dadf
push edi
mov edi, dword [ebp + 8]
mov cl, byte [esi + edi]
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
and dl, 2
movzx ecx, cl
cmp dl, 2
cmovb ecx, eax
mov byte [esi + edi], cl
inc esi
cmp esi, dword [ebp + 0xc]
jb 0xf8daa0
pop edi
pop esi
pop ebp
ret
Function at 0xf8dae2
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0xf0000040
xor edi, edi
lea eax, [ebp - 0xc]
push 1
push edi
push edi
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xf8db1c
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x8002
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push dword [ebp + 0x10]
call fcn.00f5d2d2
pop ecx
push edi
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 4], 0x10
jne 0xf8db60
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 8], edi
je 0xf8db6e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xc], edi
je 0xf8db7d
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
leave
ret

Function at 0xfabbd2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00fab892

Function at 0xfaf33c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00faf1bb

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x137e370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x137e38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x13a7074
push ecx
mov edi, eax
call fcn.01392198
mov esi, eax
add esp, 8
test esi, esi
jne 0x137e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0139202e
push esi
call fcn.01391fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x1381850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x13818ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x13ac720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x13818ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.013921e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x13818ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x13ac720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x138192a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.01393082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x1381957
mov word [eax], si
add eax, 2
push eax
call fcn.01393030
add esp, 4
jmp 0x1381959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x13818ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x13818b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x1381ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1382080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x13820c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x13a7458
push ecx
call fcn.013921e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.013921e1
add esp, 0x10
jmp 0x13820d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0139220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.01391dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.01382050
mov eax, dword [0x13ac728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x138213b
push esi
call fcn.01381fb0
add esp, 4
mov dword [0x13ac728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x138214c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.01381ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x1385440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x13854b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x138548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1385471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x138547e
add edx, ecx
cmp ebx, edx
jb 0x138548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1385467
xor ecx, ecx
jmp 0x13854a2
test eax, eax
jne 0x1385492
xor ecx, ecx
jmp 0x13854a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.013853c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x13858f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1385921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x1385946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x138596e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x1385993
push ecx
push esi
call fcn.013854c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x1386c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x1386c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x1386c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x1386c38
add edx, eax
cmp ebx, edx
jb 0x1386c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x1386c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x1386c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x1386c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x1386cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1386c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x1386ca8
add edx, ecx
cmp ebx, edx
jb 0x1386cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1386c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x1386f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.01393145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x1386ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1386fdd
lea eax, [esp + 0x18]
push eax
jmp 0x1386fe2
push 0x13ac720
call fcn.01392fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x1386fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x1386f40
push 4
push ecx
push eax
call fcn.0139343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x1387310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.01393145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x13873ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x138738d
lea eax, [esp + 0x18]
push eax
jmp 0x1387392
push 0x13ac720
call fcn.01392fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x1387360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x1386f40
push 4
push ecx
push eax
call fcn.0139343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x1388f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x1388fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1388fcf
push ebx
push edi
push 0x13ac770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x1388fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x13ac770
push esi
call ebx
test eax, eax
je 0x1388fae
mov ebp, 3
cmp dword [0x13ac774], ebp
jne 0x1388faa
push 0x3e8
call edi
push 0x13ac770
push esi
call ebx
test eax, eax
jne 0x1388f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x1388fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x1388fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret