joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004da50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010d0a8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
mov edi, edx
je 0x1004db48
cmp dword [esi + 0x14], 8
jb 0x1004da92
mov eax, dword [esi]
jmp 0x1004da94
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
je 0x1004db48
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.1000b440
add esp, 8
push eax
lea ecx, [ebx + 0x74]
mov dword [ebp - 4], 0
call fcn.10004040
or esi, 0xffffffff
mov dword [ebp - 4], esi
cmp dword [ebp - 0x34], 0x10
jb 0x1004dadd
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10065453
add esp, 4
lea edx, [ebp - 0x2c]
push edi
push edx
call fcn.1000b440
add esp, 8
push eax
lea ecx, [ebx + 0x58]
mov dword [ebp - 4], 1
call fcn.10004040
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], 0x10
jb 0x1004db0f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10065453
add esp, 4
push 0
lea edi, [ebp - 0x58]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.100355bb
push ebx
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.1004dd70
test al, al
jne 0x1004db4c
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.100357d8
xor al, al
jmp 0x1004db62
lea edi, [ebp - 0x58]
mov ecx, ebx
call fcn.1004e580
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.100357d8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret

Function at 0x1004dc40
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x14], 8
jb 0x1004dc4c
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 2
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004dc99
cmp dword [esi + 0x14], 8
push ebx
mov bl, 1
jb 0x1004dc71
mov eax, dword [esi]
jmp 0x1004dc73
mov eax, esi
mov edx, dword [ebp - 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1004dc84
xor bl, bl
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
je 0x1004dc99
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x1004e7c0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x10], 0
je 0x1004e880
push ebx
mov ebx, 8
cmp dword [edi + 0x14], ebx
jb 0x1004e7e9
mov eax, dword [edi]
jmp 0x1004e7eb
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
je 0x1004e87f
cmp byte [ebp + 8], 0
je 0x1004e87f
push esi
lea esi, [ebp - 0x20]
call fcn.1004d0c0
push 0x38
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.10066620
add esp, 0xc
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x50], str.open
cmp dword [edi + 0x14], ebx
jb 0x1004e839
mov ecx, dword [edi]
mov dword [ebp - 0x4c], ecx
jmp 0x1004e83c
mov dword [ebp - 0x4c], edi
cmp dword [ebp - 0x10], esi
jne 0x1004e846
mov dword [ebp - 0x48], esi
jmp 0x1004e859
cmp dword [ebp - 0xc], ebx
jb 0x1004e853
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x48], edx
jmp 0x1004e859
lea eax, [ebp - 0x20]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 3
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
cmp dword [ebp - 0xc], ebx
jb 0x1004e87f
mov edx, dword [ebp - 0x20]
push edx
call fcn.10065453
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret 4
Function at 0x1004fda0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10106eb2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10137920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x10127574
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.100339ff
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], 0x10127570
mov ecx, esi
call fcn.1000ff20
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov edx, dword [0x1013b828]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x1004fe72
mov eax, dword [eax]
push 0x40
push 0x22
push eax
mov ecx, esi
call fcn.10043460
test eax, eax
jne 0x1004fe9f
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x1004fe98
or eax, 4
push ebx
push eax
call fcn.100113e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100530b0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp ecx, edx
je 0x100530e3
movsx eax, byte [ecx]
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, esi
rol eax, 0xd
inc ecx
lea esi, [eax + eax*4 - 0x19ab949c]
cmp ecx, edx
jne 0x100530c0
mov eax, 0x4e25
mul esi
mov ecx, esi
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0x1e
imul ecx, ecx, 0x7fffd8ee
mov eax, esi
sub eax, ecx
add eax, 0x2710
pop esi
pop ebp
ret
Function at 0x10053850
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101068e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10137920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
lea edi, [esi + 2]
jae 0x10053892
lea eax, [ebp + 0xc]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x10], ebx
cmp ebx, 0xffffffff
jne 0x100538cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x20], 0x10
jb 0x100539a6
mov ecx, dword [ebp + 0xc]
push ecx
jmp 0x1005399e
lea edx, [ebp - 0x1c]
push edx
push ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x20], eax
call fcn.1006669a
mov ecx, dword [ebp - 0x20]
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 0x24]
push eax
push ecx
push esi
push ebx
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005398e
cmp dword [esi], 5
lea eax, [esi + 0xc]
jne 0x10053972
xor edx, edx
mov edi, 1
cmp dword [esi + 8], edx
jbe 0x10053972
mov ecx, eax
add eax, 6
cmp byte [ebp + 0x2c], 0
je 0x10053942
test eax, eax
je 0x10053951
movzx ebx, word [ecx]
cmp dword [ebp + 0x28], ebx
jne 0x10053951
mov ecx, dword [ecx + 2]
mov edx, dword [eax + 2]
sub edx, ecx
push edx
jmp 0x10053962
test eax, eax
je 0x10053951
mov ebx, dword [eax + 2]
sub ebx, dword [ecx + 2]
cmp ebx, 0x40
je 0x10053959
inc edx
cmp edx, dword [esi + 8]
jb 0x10053920
jmp 0x1005396f
mov ecx, dword [ecx + 2]
mov eax, dword [eax + 2]
sub eax, ecx
push eax
add ecx, esi
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.10003e20
xor edi, edi
mov ebx, dword [ebp - 0x10]
push esi
call fcn.100654af
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x20], 0x10
jb 0x100539a6
mov ecx, dword [ebp + 0xc]
push ecx
jmp 0x1005399e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x20], 0x10
jb 0x100539a6
mov edx, dword [ebp + 0xc]
push edx
call fcn.10065453
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
Function at 0x100539c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101068e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10137920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
mov esi, 0x10
lea ebx, [edi + 2]
cmp dword [ebp + 0x20], esi
jae 0x10053a06
lea eax, [ebp + 0xc]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x10053a3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x20], esi
jb 0x10053b28
mov ecx, dword [ebp + 0xc]
push ecx
jmp 0x10053b20
lea edx, [ebp - 0x1c]
push edx
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x20], eax
call fcn.1006669a
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
add esp, 4
push edi
mov esi, eax
lea eax, [ebp - 0x24]
push eax
push ecx
push esi
push edx
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10053b10
mov ecx, dword [esi]
lea eax, [esi + 9]
cmp ecx, 4
je 0x10053a8a
cmp ecx, 5
jne 0x10053af1
mov edx, dword [esi + 4]
mov ebx, 1
mov dword [ebp - 0x28], ebx
cmp edx, edi
jbe 0x10053af1
lea esp, [esp]
mov ecx, eax
add eax, 6
cmp byte [ebp + 0x2c], 0
je 0x10053ac2
test eax, eax
je 0x10053ad1
movzx ebx, word [ecx]
cmp dword [ebp + 0x28], ebx
jne 0x10053ad1
mov ecx, dword [ecx + 2]
mov eax, dword [eax + 2]
sub eax, ecx
push eax
jmp 0x10053ae4
test eax, eax
je 0x10053ad1
mov ebx, dword [eax + 2]
sub ebx, dword [ecx + 2]
cmp ebx, 0x40
je 0x10053adb
inc edi
cmp edi, edx
jb 0x10053aa0
mov ebx, dword [ebp - 0x28]
jmp 0x10053af1
mov ecx, dword [ecx + 2]
mov edx, dword [eax + 2]
sub edx, ecx
push edx
add ecx, esi
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.10003e20
xor ebx, ebx
push esi
call fcn.100654af
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x20], 0x10
jb 0x10053b28
mov ecx, dword [ebp + 0xc]
push ecx
jmp 0x10053b20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x20], 0x10
jb 0x10053b28
mov edx, dword [ebp + 0xc]
push edx
call fcn.10065453
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
Function at 0x10057bd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10106eb2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10137920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x10127574
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.100339ff
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], 0x10127570
mov ecx, esi
call fcn.1000ff20
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov edx, dword [0x1013b828]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov ecx, dword [ebp + 0xc]
push 2
mov byte [ebp - 4], 2
call fcn.1000fa30
test eax, eax
jne 0x10057cc2
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x10057cbb
or eax, 4
push ebx
push eax
call fcn.100113e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10058a50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0x40
jne 0x10058a75
mov eax, esi
jmp 0x10058afa
jbe 0x10058ab5
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd8], 0x20
call fcn.10059f60
push esi
mov eax, edi
lea esi, [ebp - 0xd0]
call fcn.10059fd0
add esp, 4
lea edi, [ebp - 0x24]
call fcn.1005a070
mov eax, edi
mov edi, dword [ebp - 0xd8]
mov dword [ebp - 0xd4], eax
jmp 0x10058ac1
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xd8], edi
mov esi, 0x40
sub esi, edi
push esi
lea ecx, [ebx + edi + 0x2a0]
push 0x36
push ecx
call fcn.10066620
add esp, 0xc
push esi
lea edx, [ebx + edi + 0x2e0]
push 0x5c
push edx
call fcn.10066620
mov edi, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd4]
add esp, 0xc
test edi, edi
jle 0x10058b18
lea esi, [ebx + 0x2e0]
mov cl, byte [eax]
xor cl, 0x36
mov byte [esi - 0x40], cl
mov dl, byte [eax]
xor dl, 0x5c
mov byte [esi], dl
inc eax
inc esi
dec edi
jne 0x10058b04
mov eax, dword [0x101397b8]
mov dword [ebx + 0x88], eax
mov ecx, dword [0x101397bc]
mov dword [ebx + 0x8c], ecx
mov edx, dword [0x101397c0]
mov dword [ebx + 0x90], edx
mov eax, dword [0x101397c4]
mov dword [ebx + 0x94], eax
mov ecx, dword [0x101397c8]
mov dword [ebx + 0x98], ecx
mov edx, dword [0x101397cc]
mov dword [ebx + 0x9c], edx
mov eax, dword [0x101397d0]
mov dword [ebx + 0xa0], eax
mov ecx, dword [0x101397d4]
lea edx, [ebx + 0x2a0]
mov dword [ebx + 0xa4], ecx
push edx
mov eax, 0x40
mov esi, ebx
mov dword [ebx + 4], 0
mov dword [ebx], 0
call fcn.10059fd0
mov eax, dword [0x101397b8]
lea esi, [ebx + 0xa8]
mov dword [esi + 0x88], eax
mov ecx, dword [0x101397bc]
mov dword [esi + 0x8c], ecx
mov edx, dword [0x101397c0]
mov dword [esi + 0x90], edx
mov eax, dword [0x101397c4]
mov dword [esi + 0x94], eax
mov ecx, dword [0x101397c8]
mov dword [esi + 0x98], ecx
mov edx, dword [0x101397cc]
mov dword [esi + 0x9c], edx
mov eax, dword [0x101397d0]
mov dword [esi + 0xa0], eax
mov ecx, dword [0x101397d4]
lea edx, [ebx + 0x2e0]
add esp, 4
mov dword [esi + 0xa4], ecx
push edx
mov eax, 0x40
mov dword [ebp - 0xd4], esi
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.10059fd0
lea edi, [ebx + 0x150]
mov ecx, 0x2a
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xd4]
add esp, 4
lea edi, [ebx + 0x1f8]
mov ecx, 0x2a
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1006656c
mov esp, ebp
pop ebp
ret
Function at 0x10058cf0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
jne 0x10058d17
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10058d07
lea ecx, [ebp - 0x210]
push 0x101283b4
push ecx
call fcn.1006ab51
add esp, 8
test eax, eax
je 0x10058d51
xor edx, edx
mov word [eax + 2], dx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10058d07
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x214]
xor ecx, ebp
mov dword [esi], edx
mov al, 1
call fcn.1006656c
mov esp, ebp
pop ebp
ret

Function at 0x10058da0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10105cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10137920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x100
call fcn.1006669a
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
push ebx
push eax
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x10], 0x80
mov dword [ebp - 0x14], 0x44
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x10058ead
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10058eab
cmp dword [ebp - 0x14], 0x44
jbe 0x10058e4b
test esi, esi
je 0x10058e37
push esi
call fcn.100654af
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x10]
cmp edi, 0x80
jbe 0x10058e8f
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006669a
mov edi, eax
add esp, 4
test edi, edi
je 0x10058e80
cmp edi, esi
jne 0x10058e80
call fcn.1006aafd
test esi, esi
je 0x10058e8d
push esi
call fcn.100654af
add esp, 4
mov esi, edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
push ebx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
setne bl
test esi, esi
je 0x10058ebd
push esi
call fcn.100654af
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10058f90
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101088cb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0x30]
push edx
mov word [ebp - 0x30], ax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov dword [ebp - 0x94], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10059045
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x74]
call fcn.10058da0
add esp, 4
test al, al
je 0x10059045
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0x74]
call fcn.10058ef0
add esp, 4
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.10009ca0
cmp dword [ebp - 0x7c], 8
jb 0x10059045
mov edx, dword [ebp - 0x90]
push edx
call fcn.10065453
add esp, 4
mov dword [esi], 0
call fcn.10058cf0
test al, al
mov al, 1
jne 0x1005905c
mov dword [esi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret

Function at 0x10059080
Capabilities:
Encode data using xor

Disassembly:
test esi, esi
jne 0x10059087
xor al, al
ret
mov byte [esi], 0
test eax, eax
je 0x10059084
xor cl, cl
inc eax
mov edx, 4
push edi
movzx edi, byte [eax - 1]
movzx ecx, cl
xor edi, ecx
movzx ecx, byte [edi + 0x10123518]
movzx edi, byte [eax]
xor ecx, edi
movzx ecx, byte [ecx + 0x10123518]
movzx edi, byte [eax + 1]
xor ecx, edi
movzx ecx, byte [ecx + 0x10123518]
movzx edi, byte [eax + 2]
xor ecx, edi
movzx ecx, byte [ecx + 0x10123518]
movzx edi, byte [eax + 3]
xor ecx, edi
movzx ecx, byte [ecx + 0x10123518]
movzx edi, byte [eax + 4]
xor ecx, edi
mov cl, byte [ecx + 0x10123518]
add eax, 6
dec edx
jne 0x10059097
xor cl, 0x55
mov byte [esi], cl
mov al, 1
pop edi
ret
Function at 0x10059930
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x180]
mov dword [ebp - 0x16c], 0x67452301
mov dword [ebp - 0x168], 0xefcdab89
mov dword [ebp - 0x164], 0x98badcfe
mov dword [ebp - 0x160], 0x10325476
mov dword [ebp - 0x15c], 0xc3d2e1f0
call fcn.100591e0
call fcn.10059100
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp - 0x164]
mov dword [esi], eax
mov eax, dword [ebp - 0x160]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x15c]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret