joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49e3b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ca09c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CSoftwareInterface.0
mov eax, dword [esi + 0x30]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
je 0x495c48
push eax
call fcn.004728c7
add esp, 4
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x34]
cmp eax, edi
je 0x495c5b
push eax
call fcn.004728c7
add esp, 4
mov dword [esi + 0x34], edi
mov eax, dword [esi + 0x38]
cmp eax, edi
je 0x495c6b
push eax
call fcn.004728c7
add esp, 4
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x495c7e
push eax
call fcn.004728c7
add esp, 4
mov dword [esi + 0x20], edi
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x495c91
push eax
call fcn.004728c7
add esp, 4
mov dword [esi + 0x1c], edi
mov ecx, dword [esi + 0x80]
cmp ecx, edi
je 0x495cb8
call fcn.0041f6c0
mov ecx, dword [esi + 0x80]
cmp ecx, edi
je 0x495cb2
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x80], edi
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00442bf0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x496010
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4960c9
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4960c9
push esi
lea eax, [esp + 0x10]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x18], eax
jbe 0x4960bd
push eax
call fcn.00472897
mov esi, eax
add esp, 4
test esi, esi
jne 0x49605c
pop esi
pop edi
mov eax, 0x8007000e
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x18]
push esi
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4960b4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4a497c
push esi
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4960b4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4960b4
mov ecx, dword [eax + 8]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 0xc]
push esi
mov dword [ebx], edx
call fcn.004728c7
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.004728c7
add esp, 4
pop esi
pop edi
mov eax, 0x80004005
pop ebx
add esp, 8
ret
pop edi
mov eax, 0x80070057
pop ebx
add esp, 8
ret
Function at 0x497750
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfile
push reloc.OLEAUT32.dll_SysReAllocString
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x49777e
or eax, esi
pop esi
add esp, 0x10
ret
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.EnableFirewall
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4977b6
cmp dword [esp + 0xc], 4
jne 0x4977b6
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 4]
test eax, eax
je 0x4977c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x497870
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push edi
lea eax, [esp + 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.HTTP_shellopencommand
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x49789c
xor eax, eax
pop edi
add esp, 0xc
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0x4a0305
push eax
call esi
test eax, eax
jne 0x4978ea
cmp dword [esp + 0xc], 1
jne 0x4978ea
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0x4a0305
push ecx
call esi
mov edi, 1
mov eax, dword [esp + 8]
test eax, eax
pop esi
je 0x4978fa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 0xc
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
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
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401caa
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
mov byte [ebp - 0x4c], al
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
jne 0x401ccd
mov eax, 1
jmp 0x401da4
movzx eax, byte [0x16e40a2]
cmp al, byte [ebp - 0x4c]
jbe 0x401ce3
mov eax, 1
jmp 0x401da4
mov dword [ebp - 0x3c], 0x16e40a3
mov dword [ebp - 0x38], 0x100
movzx eax, byte [ebp - 0x4c]
mov byte [ebp - 0x34], al
mov eax, dword [0x16e41a4]
mov dword [ebp - 0x30], eax
call dbg.ITime_MilliSecondsSinceStart
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0x5c
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401d38
mov eax, dword [ebp - 0x18]
add eax, 1
jmp 0x401d3b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 9], 0
movzx eax, byte [ebp - 9]
xor eax, 1
test al, al
je 0x401d8d
mov dword [ebp - 0x10], 0
jmp 0x401d85
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
shl eax, 5
add eax, 0x4ab088
mov eax, dword [eax]
mov dword [esp + 4], dbg.Log_FormatLog
lea edx, [ebp - 0x3c]
mov dword [esp], edx
call eax
test al, al
je 0x401d81
mov byte [ebp - 9], 1
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x401d56
cmp byte [ebp - 9], 0
je 0x401da0
mov eax, dword [0x16e41a4]
add eax, 1
mov dword [0x16e41a4], eax
movzx eax, byte [ebp - 9]
leave
ret

Function at 0x403fbd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
movzx eax, byte [0x5035c0]
xor eax, 1
test al, al
jne 0x4040a8
mov eax, dword [0x5035a0]
test eax, eax
jne 0x4040ab
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym._QueryPerformanceFrequency_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
fild qword [ebp - 0x38]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fld qword [0x4ab1b8]
fdivp st(1)
fnstcw word [ebp - 0x22]
movzx eax, word [ebp - 0x22]
mov ah, 0xc
mov word [ebp - 0x24], ax
fldcw word [ebp - 0x24]
fistp qword [ebp - 0x30]
fldcw word [ebp - 0x22]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [0x5035b0], eax
mov dword [esp], 0x5035b8
call sym._QueryPerformanceCounter_4
sub esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x5035a0
mov dword [esp + 8], dbg.SystemTick_Thread@4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [0x5035a0], eax
mov eax, dword [0x5035a0]
test eax, eax
jne 0x4040ac
mov dword [esp + 0xc], str.Failed_to_start_thread
mov dword [esp + 8], 0x65
mov dword [esp + 4], str.SWRoboticCoreWin32HALSystemTickSystemTick.c
mov dword [esp], 3
call dbg.ILog_Add
jmp 0x4040ac
nop
jmp 0x4040ac
nop
leave
ret
Function at 0x4104d0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x16e3654
call sym._EnterCriticalSection_4
mov ebx, dword [0x16e364c]
sub esp, 4
test ebx, ebx
je 0x41051b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x410514
test esi, esi
je 0x410514
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4104f0
mov dword [esp], 0x16e3654
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x410700
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x410750
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x410828
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x41078e
cmp eax, 4
jne 0x4107b0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x41079e
cmp edx, 4
je 0x41079e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00410700

Function at 0x410ee0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x410f10
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x410f34
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x422bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4aab1c], 0
jne 0x422c84
mov byte [0x4aab1c], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x422d1e
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x422c7a
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4bb931
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x422cb1
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x422c4b
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x422c75
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x422d19
Function at 0x456a00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x808
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x804], eax
mov ecx, dword [esp + 0x810]
mov eax, dword [esp + 0x80c]
mov dword [esp], ecx
movzx ecx, word [eax]
push esi
push edi
mov edi, eax
test cx, cx
je 0x456a71
movzx edx, cx
add eax, 4
movzx ecx, dx
cmp ecx, 0x5c
je 0x456a44
cmp ecx, 0x2f
jne 0x456a62
cmp word [eax - 2], 0x2e
jne 0x456a62
cmp word [eax], 0x2e
jne 0x456a62
movzx ecx, word [eax + 2]
cmp ecx, 0x5c
je 0x456a5f
cmp ecx, 0x2f
jne 0x456a62
lea edi, [eax + 4]
movzx ecx, word [eax - 2]
add eax, 2
movzx edx, cx
test cx, cx
jne 0x456a37
cmp word [edi], 0
je 0x456b07
jmp 0x456a80
cmp word [edi], 0
mov esi, edi
je 0x456a92
cmp word [edi + 2], 0x3a
jne 0x456a92
lea esi, [edi + 4]
cmp word [esi], 0x5c
jne 0x456ac6
cmp word [esi + 2], 0x5c
jne 0x456ac6
lea edx, [esi + 4]
push 0x5c
push edx
call fcn.004b1c12
add esp, 8
test eax, eax
je 0x456ac6
add eax, 2
push 0x5c
push eax
call fcn.004b1c12
add esp, 8
test eax, eax
je 0x456ac6
lea esi, [eax + 2]
movzx eax, word [esi]
mov ecx, esi
test ax, ax
je 0x456af7
movzx eax, ax
movzx edx, ax
cmp edx, 0x5c
je 0x456ae0
cmp edx, 0x2f
jne 0x456ae5
lea esi, [ecx + 2]
jmp 0x456aeb
cmp ax, 0x2e
jne 0x456af7
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x456ad3
cmp esi, edi
je 0x456b07
cmp word [esi], 0
mov edi, esi
jne 0x456a80
cmp word [edi], 0x2e
jne 0x456b1e
cmp word [edi + 2], 0x2e
jne 0x456b1e
cmp word [edi + 4], 0
jne 0x456b1e
add edi, 4
mov esi, dword [esp + 8]
test esi, esi
je 0x456b4f
push 0x400
push edi
lea eax, [esp + 0x14]
push eax
call fcn.004709a0
lea eax, [esp + 0xc]
mov edx, esi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x456b40
mov ecx, dword [esp + 0x80c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004b102c
add esp, 0x808
ret 8
Function at 0x46a560
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x5394c8], 0
push ebx
push esi
jne 0x46a5b4
cmp byte [0x5394c4], 0
jne 0x46a5b4
push 0x4cb614
call dword [0x4c7390]
mov dword [0x5394c0], eax
test eax, eax
je 0x46a5ad
mov esi, dword [0x4c73d0]
push 0x4cb600
push eax
call esi
mov dword [0x5394c8], eax
mov eax, dword [0x5394c0]
push 0x4cb5e8
push eax
call esi
mov dword [0x5394cc], eax
mov byte [0x5394c4], 1
cmp byte [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
je 0x46a626
cmp dword [0x5394c8], 0
je 0x46a681
test bl, 0xf
jne 0x46a681
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
add ebx, ebx
push ebx
push ecx
push esi
call fcn.004b1530
add esp, 0xc
push 0
push ebx
push esi
call dword [0x5394c8]
test eax, eax
jne 0x46a6b4
push 0x4cb648
mov ecx, 0x508304
call fcn.0042d150
mov ecx, 0x508304
call fcn.0042cce0
push 2
mov ecx, 0x508304
call fcn.0042d410
pop esi
pop ebx
ret 0x10
cmp dword [0x5394cc], 0
je 0x46a681
test bl, 0xf
jne 0x46a681
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
add ebx, ebx
push ebx
push edx
push esi
call fcn.004b1530
add esp, 0xc
push 0
push ebx
push esi
call dword [0x5394cc]
test eax, eax
jne 0x46a6b4
push 0x4cb62c
mov ecx, 0x508304
call fcn.0042d150
mov ecx, 0x508304
call fcn.0042cce0
push 2
mov ecx, 0x508304
call fcn.0042d410
pop esi
pop ebx
ret 0x10
call dword [0x4c71d0]
xor edx, edx
test ebx, ebx
jbe 0x46a6b4
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
sub esi, ecx
push edi
jmp 0x46a6a0
lea edi, [eax + edx + 0x4b]
xor di, word [esi + ecx]
inc edx
mov word [ecx], di
add ecx, 2
cmp edx, ebx
jb 0x46a6a0
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x46f830
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret 4
Function at 0x46ff20
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret 4
Function at 0x4c2e64
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
inc esi
mov al, byte [esi]
test al, al
jne 0x4c2e7b
mov eax, esi
jmp 0x4c2f55
cmp byte [ebp + 0xc], 0x51
push ebx
push edi
je 0x4c2f5a
cmp byte [ebp + 0xc], 0x71
je 0x4c2f5a
xor edx, edx
xor edi, edi
cmp al, 0x3f
jne 0x4c2ea3
cmp byte [esi + 1], 0x3d
je 0x4c2f45
movzx ecx, al
mov cl, byte [ecx + 0x749152a8]
inc esi
cmp cl, 0x40
mov byte [ebp + edx + 0xc], cl
jb 0x4c2ebf
cmp al, 0x3d
jne 0x4c2eca
cmp edx, 1
jbe 0x4c2eca
inc edx
cmp al, 0x3d
jne 0x4c2eca
cmp edx, 1
jbe 0x4c2eca
inc edi
cmp edx, 4
jne 0x4c2f3b
cmp edi, 3
jae 0x4c2ef5
mov cl, byte [ebp + 0xc]
xor eax, eax
mov al, byte [ebp + 0xd]
shr al, 4
shl cl, 2
or al, cl
push eax
push dword [ebp + 0x10]
call fcn.004b633c
test eax, eax
jl 0x4c2fdc
cmp edi, 2
mov bl, byte [ebp + 0xe]
jae 0x4c2f1d
mov cl, byte [ebp + 0xd]
xor eax, eax
mov al, bl
shr al, 2
shl cl, 4
or al, cl
push eax
push dword [ebp + 0x10]
call fcn.004b633c
test eax, eax
jl 0x4c2fdc
cmp edi, 1
jae 0x4c2f39
shl bl, 6
or bl, byte [ebp + 0xf]
push ebx
push dword [ebp + 0x10]
call fcn.004b633c
test eax, eax
jl 0x4c2fdc
xor edx, edx
mov al, byte [esi]
test al, al
jne 0x4c2e95
cmp byte [esi], 0x3f
jne 0x4c2f4b
inc esi
cmp byte [esi], 0x3d
jne 0x4c2f51
inc esi
mov eax, esi
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
cmp al, 0x3f
jne 0x4c2f64
cmp byte [esi + 1], 0x3d
je 0x4c2f45
inc esi
cmp al, 0x3d
mov byte [ebp + 0xc], al
jne 0x4c2fba
xor eax, eax
mov al, byte [esi]
test al, al
mov edi, esi
je 0x4c2f81
push eax
call fcn.004bb37c
mov bl, al
inc esi
jmp 0x4c2f84
or bl, 0xff
xor eax, eax
mov al, byte [esi]
test al, al
je 0x4c2f95
push eax
call fcn.004bb37c
inc esi
jmp 0x4c2f97
or al, 0xff
cmp bl, 0xff
je 0x4c2fa8
cmp al, 0xff
je 0x4c2fa8
shl bl, 4
or bl, al
push ebx
jmp 0x4c2fc5
push 0x3d
push dword [ebp + 0x10]
call fcn.004b633c
test eax, eax
jl 0x4c2fdc
mov esi, edi
jmp 0x4c2fd1
cmp al, 0x5f
jne 0x4c2fc2
push 0x20
jmp 0x4c2fc5
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.004b633c
test eax, eax
jl 0x4c2fdc
mov al, byte [esi]
test al, al
jne 0x4c2f5a
jmp 0x4c2f45
xor eax, eax
jmp 0x4c2f53
Function at 0x1001c16
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x1001cd1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, 0x10011ac
push edi
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call esi
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x1001ccf
push dword [ebp + 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1001c87
mov dword [ebp + 0xc], 8
jmp 0x1001cc1
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x1001cc1
push dword [ebp + 8]
push dword [ebp - 8]
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, ebx
jne 0x1001cc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
cmp dword [ebp - 8], ebx
je 0x1001ccf
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
cmp dword [ebp - 4], ebx
pop ebx
je 0x1001ce0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
leave
ret 0xc
Function at 0x100210d
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1004004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001220
push 0x80000002
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1002214
mov dword [ebp - 0x214], esi
push ebx
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x104
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x214]
mov edi, eax
cmp edi, esi
jne 0x10021f4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.01001c16
mov ebx, dword [ebp - 0x218]
mov edi, eax
cmp edi, esi
jne 0x1002208
push esi
push 1
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
je 0x1002200
push ebx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [ebp - 0x218], esi
jmp 0x1002169
cmp edi, 0x103
jne 0x1002213
xor edi, edi
jmp 0x1002213
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp ebx, esi
je 0x1002213
push ebx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
pop ebx
cmp dword [ebp - 0x210], esi
je 0x1002228
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01002a47
leave
ret 4