joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4900cc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416aa0]
call fcn.00404d94
xor eax, eax
push ebp
push 0x490210
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4db26c], 0
jne 0x49011f
mov ecx, dword [0x4dc8c0]
mov dl, 1
mov eax, dword [0x40789c]
call fcn.0040c640
call fcn.00403d90
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d90
mov eax, ebx
call fcn.00404c44
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x490220
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405d18
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404c54
test eax, eax
jle 0x4901b7
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4901b0
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404680
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404668
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408778
test eax, eax
jne 0x4901b0
mov ebx, 0x15
jmp 0x4901bc
mov ebx, 0x10
jmp 0x4901bc
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4db26c]
call fcn.0048ffc8
mov eax, dword [ebp - 8]
call fcn.0048ffc8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405d30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490217
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040441c
lea eax, [ebp - 0x10]
mov edx, dword [0x416aa0]
call fcn.00404e64
ret

Function at 0x498e1c
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
push esi
test dl, dl
je 0x498e2a
add esp, 0xfffffff0
call fcn.00403864
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.00498418
mov byte [esi + 0x34], 1
mov dword [esi + 0x38], 0x64
mov dword [esi + 0x3c], 0x493e0
test byte [esi + 0x1c], 0x10
jne 0x498e7c
call fcn.0040a6e4
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.00498ff8
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x498dac
push eax
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4db3e8], eax
mov eax, esi
test bl, bl
je 0x498e91
call fcn.004038bc
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret
Function at 0x49fe00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a0060
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x49fe63
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0049f8c8
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cf80
cmp al, 1
jne 0x49fe63
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0049fbe0
test al, al
je 0x49ffef
cmp dword [ebp - 8], 0
jge 0x49fe81
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0049f8c8
mov eax, dword [ebp - 0x210]
call fcn.004046b8
cmp ebx, eax
jge 0x49fecb
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0049f8c8
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4dcf00]
and eax, 0xff
bt dword [edx], eax
jae 0x49fecb
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x49fedf
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049fddc
cmp ebx, dword [ebp - 8]
je 0x49ffe1
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x49ff0b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004036fc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4db4cc]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x49ffce
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004036fc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4db4cc]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00473688
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004036fc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4db4cc]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00473688
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ffd5
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4a0042
cmp dword [ebp - 8], 0
jge 0x49fffa
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0049f8c8
mov eax, dword [ebp - 0x218]
call fcn.004046b8
cmp eax, dword [ebp - 8]
jg 0x4a0034
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0049f8c8
mov eax, dword [ebp - 0x21c]
call fcn.004046b8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049fddc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0067
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040441c
ret
Function at 0x4a1868
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
dec eax
test eax, eax
jl 0x4a1913
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
and eax, 0xffff
or eax, 2
mov edx, dword [ebp - 8]
mov dl, byte [edx]
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
xor dl, bl
mov eax, dword [ebp - 8]
mov byte [eax], dl
mov eax, dword [ecx]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
xor al, dl
and eax, 0xff
mov eax, dword [eax*4 + 0x4db65c]
mov edx, dword [ecx]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ecx], eax
mov eax, dword [ecx]
and eax, 0xff
add dword [esi], eax
mov eax, dword [esi]
imul dword [ebp + 8]
inc eax
mov dword [esi], eax
mov eax, dword [edi]
mov edx, dword [esi]
shr edx, 0x18
xor al, dl
and eax, 0xff
mov eax, dword [eax*4 + 0x4db65c]
mov edx, dword [edi]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [edi], eax
inc dword [ebp - 8]
dec dword [ebp - 0xc]
jne 0x4a188d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a3264
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004094d4
mov eax, dword [ebx]
call fcn.004046b8
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4a32aa
mov eax, ebx
mov edx, 0x4a32b8
call fcn.004046c0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b7f18
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov eax, esp
mov edx, 0x94
call fcn.00407288
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 6
jne 0x4b7f4c
cmp dword [esp + 8], 0
jne 0x4b7f4c
cmp dword [esp + 0x10], 2
je 0x4b7f50
xor eax, eax
jmp 0x4b7f52
mov al, 1
add esp, 0x94
ret

Function at 0x4bdf08
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x78]
push eax
call sub.user32.dll_GetWindowTextA
mov edx, esi
mov eax, esp
call fcn.004094d4
add esp, 0x104
pop esi
pop ebx
ret
Function at 0x4c3dd8
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
push 0x104
lea edx, [esp + 4]
push edx
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_GetWindowTextA
mov edx, ebx
mov eax, esp
call fcn.004094d4
add esp, 0x104
pop ebx
ret

Function at 0x4c5334
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004094d4
mov eax, dword [ebx]
call fcn.004046b8
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4c537a
mov eax, ebx
mov edx, 0x4c5388
call fcn.004046c0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c57dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004094d4
mov eax, dword [ebx]
call fcn.004046b8
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4c5822
mov eax, ebx
mov edx, 0x4c5830
call fcn.004046c0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c5834
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004094d4
mov eax, dword [ebx]
call fcn.004046b8
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4c587a
mov eax, ebx
mov edx, 0x4c5888
call fcn.004046c0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c5cf4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004094d4
mov eax, dword [ebx]
call fcn.004046b8
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4c5d3a
mov eax, ebx
mov edx, 0x4c5d48
call fcn.004046c0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c7a8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4c7ac4]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4c7aa2
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4c7ab1
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4c7ac0
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4c843c
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [0x468a98]
call fcn.0040368c
test al, al
je 0x4c847e
mov eax, dword [0x4dccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4c847e
mov edx, dword [0x4dccc4]
xor edx, edx
call fcn.00487c50
push 0
mov eax, dword [0x4dccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x100058f6
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.1000118b
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [0x100243c0], esi
xor edi, edi
mov dword [ebx], eax
cmp dword [0x1001ced4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 0xc], esi
jle 0x10005ad0
mov dword [ebp + 8], 0x1001f5c8
cmp dword [ebp - 0xc], esi
jne 0x10005ad0
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x118]
push 0x5c
push eax
call sub.MSVCRT.dll_strrchr
add esp, 0x10
cmp eax, esi
jne 0x10005979
lea eax, [ebp - 0x118]
push 0x3a
push eax
call sub.MSVCRT.dll_strrchr
cmp eax, esi
pop ecx
pop ecx
je 0x1000597f
mov byte [eax + 1], 0
jmp 0x10005986
mov byte [ebp - 0x118], 0
push 0x100243c8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x10005aae
cmp dword [ebp - 0xc], esi
jne 0x10005aae
test byte [0x100243c8], 0x10
jne 0x10005a98
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x220]
push 0x100243f4
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 4]
call fcn.100011a7
test eax, eax
je 0x10005a98
lea ecx, [ebp - 4]
call fcn.10001225
test eax, eax
je 0x10005a90
cmp dword [0x100243e4], esi
jne 0x10005a90
mov eax, dword [ebx]
mov ecx, dword [0x100243e8]
add ecx, eax
cmp ecx, eax
mov dword [ebx], ecx
jae 0x10005a2b
mov dword [ebx], esi
mov dword [ebp - 0xc], 1
jmp 0x10005a90
cmp dword [0x100243c0], esi
push 0x10
jne 0x10005a41
call sub.MSVCRT.dll_malloc
mov dword [0x100243c0], eax
jmp 0x10005a48
call sub.MSVCRT.dll_malloc
mov dword [edi], eax
mov edi, eax
pop ecx
lea eax, [ebp - 0x220]
push eax
mov dword [edi], esi
call sub.MSVCRT.dll_strlen
mov esi, eax
inc esi
push esi
call sub.MSVCRT.dll_malloc
push esi
lea ecx, [ebp - 0x220]
push ecx
push eax
mov dword [edi + 4], eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax + 0x1001cc80]
add esp, 0x14
inc dword [ebp - 8]
mov dword [edi + 8], eax
mov eax, dword [0x100243e8]
mov dword [edi + 0xc], eax
xor esi, esi
lea ecx, [ebp - 4]
call fcn.10001191
push 0x100243c8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100059a0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add dword [ebp + 8], 0x105
cmp eax, dword [0x1001ced4]
jl 0x10005938
lea ecx, [ebp - 4]
call fcn.100015c3
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000998c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], ebx
jne 0x10009a4f
mov esi, 0x10024570
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x101
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
inc dword [ebp - 4]
mov edi, eax
cmp edi, 0x103
je 0x10009a4d
cmp edi, ebx
jne 0x10009a4f
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
push esi
mov edi, eax
call sub.MSVCRT.dll_strlen
lea eax, [edi + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
push dword [ebp + 0xc]
mov ebx, eax
push str._s_s
push ebx
call sub.MSVCRT.dll_sprintf
push ebx
push dword [ebp + 8]
call fcn.1000998c
push ebx
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x28
test edi, edi
jne 0x10009a4f
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x10009a5f
dec dword [ebp - 4]
xor ebx, ebx
jmp 0x100099c2
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
cmp byte [0x10023708], 0
jne 0x10009a77
push dword [ebp + 0xc]
push str.Error_in_deleting_profile__s_in_the_registry_n
call sub.MSVCRT.dll_printf
pop ecx
pop ecx
push 0xb
pop eax
jmp 0x10009a5a
Function at 0x1000a282
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREPublic_DomainBlat
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000a2ba
push str.Failed_to_open_registry_key_for_Blat_using_default._n
call fcn.100013bb
pop ecx
jmp 0x1000a360
push str._default_
push dword [ebp + 0xc]
mov byte [0x10023708], bl
mov byte [0x10024570], bl
call sub.MSVCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x1000a2ec
push str._all_
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x1000a2fb
push 0x10016317
push dword [ebp + 8]
call fcn.1000a161
pop ecx
pop ecx
push esi
push edi
xor edi, edi
mov esi, 0x10024570
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp - 4]
mov dword [ebp - 8], 0x101
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
inc edi
cmp eax, ebx
jne 0x1000a355
push esi
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x1000a348
push str._all_
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x1000a304
push esi
push dword [ebp + 8]
call fcn.1000a161
pop ecx
pop ecx
jmp 0x1000a304
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000ba51
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10012823
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.1000103b
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push str.CONTENT_LENGTH
call fcn.1000ba06
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.1000c89a
push eax
call sub.MSVCRT.dll_atol
mov edi, dword [ebp + 8]
pop ecx
mov ecx, edi
mov ebx, eax
call fcn.10001048
lea eax, [ebx + 1]
push eax
mov ecx, edi
call fcn.1000b978
mov ecx, edi
call fcn.1000112f
mov ecx, ebx
sub ecx, eax
mov esi, 0x1000
cmp ecx, esi
jae 0x1000bac2
mov ecx, edi
call fcn.1000112f
mov esi, ebx
sub esi, eax
test esi, esi
mov dword [ebp - 0x10], esi
jbe 0x1000baee
push 0
lea eax, [ebp - 0x10]
push eax
push esi
mov ecx, edi
call fcn.10001133
push eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000baee
and dword [ebp - 0x10], eax
mov ecx, edi
call fcn.1000112f
add eax, dword [ebp - 0x10]
mov ecx, edi
push eax
call fcn.10001149
cmp dword [ebp - 0x10], esi
jne 0x1000bb10
mov ecx, edi
call fcn.1000112f
cmp eax, ebx
jb 0x1000baa3
mov ecx, edi
call fcn.10001133
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
mov byte [eax], 0
call fcn.1000102d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1000ff83
Capabilities:
Get hostname

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x1000ff9a
add eax, 0xffffec78
ret
xor eax, eax
ret

Function at 0x10010209
Capabilities:
Initialize winsock library

Disassembly:
and dword [0x1002529c], 0
sub esp, 0x190
push esi
lea eax, [esp + 4]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
cmp byte [0x10024344], 0
mov esi, eax
je 0x1001025a
push ebx
mov bl, byte [0x10023708]
mov byte [0x10023708], 0
call fcn.1000ff9d
push eax
push esi
push str.superDebug:_init_winsock____WSAStartup___returned__i___s__n
call fcn.100013bb
add esp, 0xc
mov byte [0x10023708], bl
pop ebx
mov eax, esi
sub eax, 0x2726
pop esi
je 0x100102a0
sub eax, 0xe
je 0x10010299
sub eax, 0x1f
je 0x10010292
sub eax, 0x18
je 0x1001028b
dec eax
je 0x10010284
mov dword [0x1002529c], 1
xor eax, eax
jmp 0x100102a5
mov eax, 0xfa4
jmp 0x100102a5
mov eax, 0xfa6
jmp 0x100102a5
mov eax, 0xfa8
jmp 0x100102a5
mov eax, 0xfab
jmp 0x100102a5
mov eax, 0xfa5
add esp, 0x190
ret
Function at 0x10010e23
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.1000c89a
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.1000112f
mov ebx, eax
push 6
pop ecx
xor edx, edx
lea eax, [ebx*8 + 5]
div ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], esi
call fcn.1000112f
mov ecx, eax
push 0x48
lea eax, [esi + 0x47]
pop esi
xor edx, edx
div esi
add ecx, dword [ebp - 4]
lea eax, [ecx + eax*2 + 1]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.10001074
xor esi, esi
cmp ebx, 2
mov byte [ebx + edi], 0
mov byte [ebp - 0xc], 0
jbe 0x10010f1f
push 3
xor edx, edx
lea eax, [ebx - 3]
pop ecx
div ecx
inc eax
mov dword [ebp - 4], eax
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
cmp esi, 0x48
jne 0x10010ec7
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
call fcn.100010f2
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x10010ec2
mov ecx, dword [ebp + 0xc]
push 0x1001361c
call fcn.100010f2
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edx, byte [edi + 2]
xor ecx, ecx
mov ch, byte [edi]
sub ebx, 3
add edi, 3
mov cl, byte [edi - 2]
shl ecx, 8
or ecx, edx
mov edx, ecx
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + eax]
mov byte [ebp + esi - 0x54], dl
mov edx, ecx
shr edx, 0xc
and edx, 0x3f
mov dl, byte [edx + eax]
mov byte [ebp + esi - 0x53], dl
inc esi
mov edx, ecx
shr edx, 6
and edx, 0x3f
mov dl, byte [edx + eax]
inc esi
mov byte [ebp + esi - 0x54], dl
and ecx, 0x3f
mov cl, byte [ecx + eax]
inc esi
mov byte [ebp + esi - 0x54], cl
inc esi
dec dword [ebp - 4]
jne 0x10010e9d
jmp 0x10010f24
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
test ebx, ebx
je 0x10010fa2
cmp esi, 0x48
jne 0x10010f52
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
call fcn.100010f2
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x10010f4d
mov ecx, dword [ebp + 0xc]
push 0x1001361c
call fcn.100010f2
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
xor ecx, ecx
mov ch, byte [edi]
mov cl, byte [edi + 1]
mov edi, ecx
shr ecx, 0xa
and ecx, 0x3f
mov cl, byte [ecx + eax]
mov byte [ebp + esi - 0x54], cl
mov ecx, edi
shr ecx, 4
and ecx, 0x3f
mov cl, byte [ecx + eax]
inc esi
mov byte [ebp + esi - 0x54], cl
inc esi
cmp ebx, 2
jne 0x10010f8a
and edi, 0xf
mov al, byte [eax + edi*4]
mov byte [ebp + esi - 0x54], al
jmp 0x10010f95
cmp dword [ebp + 0x14], 0
je 0x10010fa2
mov byte [ebp + esi - 0x54], 0x3d
inc esi
cmp dword [ebp + 0x14], 0
je 0x10010fa2
mov byte [ebp + esi - 0x54], 0x3d
inc esi
test esi, esi
je 0x10010fca
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
mov byte [ebp + esi - 0x54], 0
call fcn.100010f2
cmp dword [ebp + 0x10], 0
je 0x10010fca
mov ecx, dword [ebp + 0xc]
push 0x1001361c
call fcn.100010f2
pop edi
pop esi
pop ebx
leave
ret