joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a81
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1001ea0
call fcn.010021e6
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1014078
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x1005dc8
xor esi, esi
inc esi
mov eax, dword [0x101403c]
cmp eax, esi
je 0x1005de7
mov eax, dword [0x101403c]
test eax, eax
jne 0x1001e5d
mov dword [0x101403c], esi
push 0x1001e98
push 0x1001e8c
call fcn.01002efc
pop ecx
pop ecx
test eax, eax
jne 0x1005df4
mov eax, dword [0x101403c]
cmp eax, esi
jne 0x1001e12
push 0x1001e88
push 0x1001e68
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101403c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001e1f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10144b4], ebx
jne 0x1005e02
push dword [0x101408c]
push dword [0x1014090]
push dword [0x1014088]
call fcn.010016a0
add esp, 0xc
mov dword [0x1014038], eax
cmp dword [0x101402c], ebx
jne 0x1005e54
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov dword [0x1014570], esi
jmp 0x1001dee
call fcn.01003a90
jmp 0x1001d7f
cmp eax, esi
jne 0x1005dd7
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001db5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001da1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001dee
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1005e6e
push 0x10144b4
call fcn.0100c1ac
pop ecx
test eax, eax
je 0x1001e2b
push ebx
push 2
push ebx
call dword [0x10144b4]
jmp 0x1001e2b
cmp dword [0x1014570], ebx
jne 0x1005e62
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1014038]
call fcn.0100227c
ret

Function at 0x1009bb4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x1009bcf
push 0x80004005
call fcn.010097e5
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1009bd1
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100a2bf
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.01009b12
mov edi, eax
cmp edi, esi
je 0x100a331
lea ecx, [ebp - 0x214]
call fcn.01009a9f
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010012fd
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100a34f
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0100a2bf
cmp eax, esi
jne 0x100a39a
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x100a339
lea ecx, [ebp - 0x214]
call fcn.01009a9f
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.01009986
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01009a9f
mov eax, esi
jmp 0x100a321
Function at 0x100b6fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1011947
call fcn.0100bfe7
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x100b756
call fcn.01003252
mov esi, eax
jmp 0x100b85f
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x100b76f
call fcn.01003252
jmp 0x100b851
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x100b765
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x100b7d5
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100b7bb
lea ecx, [ebp - 0x418]
call fcn.0100a25e
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0100a16d
mov eax, esi
call fcn.0100c027
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0100a827
mov dword [ebp - 4], 1
jmp 0x100b803
cmp dword [ebp - 0x418], esi
jne 0x100b812
mov esi, 0x8007000e
jmp 0x100b853
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x100b765
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0100b5c1
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100b7c0
lea ecx, [ebp - 0x418]
call fcn.0100a25e
jmp 0x100b7c0
Function at 0x100d290
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x278
mov eax, 0x1011de1
call fcn.0100bfe7
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov edi, ecx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x224], eax
call ebx
mov eax, dword [edi + 0x9c]
test eax, eax
jne 0x100d2d5
push 6
call ebx
xor eax, eax
call fcn.0100c027
ret 8
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov dword [ebp - 0x220], 0x208
call esi
mov dword [ebp - 0x22c], eax
mov ecx, 0xea
test eax, eax
je 0x100d313
cmp eax, ecx
jne 0x100d32e
cmp dword [ebp - 0x228], 1
je 0x100d331
cmp dword [ebp - 0x228], 7
je 0x100d331
cmp dword [ebp - 0x228], 2
je 0x100d331
push eax
jmp 0x100d2c9
and dword [ebp - 4], 0
cmp dword [ebp - 0x228], 2
jne 0x100d417
cmp eax, ecx
jne 0x100d373
push 0x80010135
lea ecx, [ebp - 0x244]
call fcn.0100c517
mov esi, eax
lea edi, [ebp - 0x284]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10126dc
lea eax, [ebp - 0x284]
push eax
call sub.msvcrt.dll__CxxThrowException
mov ecx, dword [ebp - 0x224]
mov esi, 0x104
push esi
call fcn.0100c93d
push esi
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [eax - 1]
mov dword [ebp - 0x220], eax
cmp ecx, 0x102
ja 0x100d3eb
add eax, eax
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x100d49e
jle 0x100d3c6
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x244]
call fcn.0100c517
mov esi, eax
lea edi, [ebp - 0x254]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10126dc
lea eax, [ebp - 0x254]
jmp 0x100d36d
push 0x80010135
lea ecx, [ebp - 0x244]
call fcn.0100c517
mov esi, eax
lea edi, [ebp - 0x274]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10126dc
lea eax, [ebp - 0x274]
jmp 0x100d36d
cmp eax, ecx
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x224]
jne 0x100d453
shr eax, 1
push eax
call fcn.0100c93d
lea ecx, [ebp - 0x220]
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push dword [ebp - 0x230]
push dword [edi + 0x9c]
call esi
jmp 0x100d3b2
shr eax, 1
push eax
call fcn.0100c93d
lea ecx, [ebp - 0x21c]
push ecx
push dword [ebp - 0x220]
push eax
call fcn.0100517e
test eax, eax
jge 0x100d3ac
push eax
lea ecx, [ebp - 0x244]
call fcn.0100c517
mov esi, eax
lea edi, [ebp - 0x264]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10126dc
lea eax, [ebp - 0x264]
jmp 0x100d36d
or dword [ebp - 4], 0xffffffff
shr dword [ebp - 0x220], 1
mov ecx, dword [ebp - 0x224]
je 0x100d4ba
mov eax, dword [ebp - 0x220]
dec eax
push eax
jmp 0x100d4bc
push 0
call fcn.0100c997
xor eax, eax
inc eax
jmp 0x100d2cd
Function at 0x100df94
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x100644c
push 0x10
xor ebx, ebx
push eax
mov byte [ebp - 0x25], bl
call fcn.0100250e
add esp, 0x10
test eax, eax
jl 0x100e016
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push 8
lea eax, [ebp - 0x24]
push eax
push edi
push 0x80000002
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x14
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x100e016
cmp dword [ebp - 0x2c], 0x14
jne 0x100e016
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0100df67
mov byte [ebp - 0x25], al
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x25]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010012fd
leave
ret 4

Function at 0x100e02f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x100644c
push 0x10
push eax
xor bl, bl
call fcn.0100250e
add esp, 0x10
test eax, eax
jl 0x100e09f
lea eax, [ebp - 0x28]
push eax
push 2
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100e09f
push 0x14
push esi
push 3
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100e096
inc bl
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.010012fd
leave
ret 4
Function at 0x100e0b7
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100dc8d
test al, al
je 0x100e244
push dword [esi + 0x14]
lea ecx, [ebp - 0x16c]
call fcn.0100dc67
push 0x100e268
lea ecx, [ebp - 0x16c]
call fcn.0100df94
test al, al
je 0x100e12d
mov eax, dword [ebp - 0x16c]
cmp eax, dword [esi]
jne 0x100e12d
mov eax, dword [ebp - 0x168]
cmp eax, dword [esi + 4]
jne 0x100e12d
mov eax, dword [ebp - 0x164]
cmp eax, dword [esi + 8]
jne 0x100e12d
mov eax, dword [ebp - 0x15c]
cmp eax, dword [esi + 0x10]
je 0x100e244
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x100e25c
push 0x10
push eax
call fcn.0100250e
add esp, 0x10
test eax, eax
jl 0x100e244
push dword [esi + 0x10]
lea eax, [ebp - 0x44]
push 0x100e254
push 0x10
push eax
call fcn.0100250e
add esp, 0x10
test eax, eax
jl 0x100e244
push edi
xor edi, edi
push edi
push 0x2710
push dword [esi + 8]
push dword [esi + 4]
call fcn.010053c3
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 0x148], edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x100e243
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x17c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x100e243
push 0x80
lea eax, [ebp - 0x144]
push eax
push edi
lea eax, [ebp - 0x164]
push eax
push edi
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
jle 0x100e243
lea eax, [ebp - 0x24]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14c], eax
push 0x10063c0
lea eax, [ebp - 0x144]
push edi
mov dword [ebp - 0x154], 0x1006368
mov dword [ebp - 0x148], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x100e243
push edi
lea eax, [ebp - 0x154]
push eax
push edi
push 4
push edi
push 0x800003f7
push 1
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010012fd
leave
ret
Function at 0x100f5cd
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [ebp + 8], 2
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x100f5f1
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [ebp + 8], 1
je 0x100f636
cmp dword [esi + 0x68], 0
je 0x100f636
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x100f617
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100f609
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
push edi
mov ecx, esi
call fcn.0100f532
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x68]
push edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [esi + 0x6c], edi
test byte [ebp + 8], 8
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
mov edi, 0x100f680
je 0x100f657
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x40
push edi
push eax
call esi
add esp, 0xc
test byte [ebp + 8], 4
je 0x100f66d
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x20
push edi
push eax
call esi
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100fbdd
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x101458c], edi
jne 0x100fcf9
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x100fc44
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x101458c], edi
pop esi
je 0x100fccc
dec eax
jne 0x100fcf9
cmp dword [ebp - 0x11c], 5
jne 0x100fcb9
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x100fcad
dec eax
je 0x100fc9a
dec eax
je 0x100fc80
mov dword [0x101458c], 0x14
jmp 0x100fcf9
cmp word [ebp - 0xc], 1
jb 0x100fc91
mov dword [0x101458c], 0x10
or dword [0x101458c], 4
jmp 0x100fcf9
cmp word [ebp - 0xc], 2
jb 0x100fc91
mov dword [0x101458c], 8
jmp 0x100fc91
mov dword [0x101458c], 4
jmp 0x100fcf9
cmp dword [ebp - 0x11c], 4
ja 0x100fd0b
mov dword [0x101458c], 2
cmp dword [ebp - 0x11c], 4
jne 0x100fcf9
cmp dword [ebp - 0x118], edi
je 0x100fcef
cmp dword [ebp - 0x118], 0xa
je 0x100fcef
cmp dword [ebp - 0x118], 0x5a
jne 0x100fcf9
mov dword [0x101458c], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x101458c]
xor ecx, ebp
pop edi
call fcn.010012fd
leave
ret
mov dword [0x101458c], 0x20
jmp 0x100fcf9
Function at 0x100fd1c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100fd70
push 3
lea eax, [ebp - 0x44]
push 0x100fd80
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.010012fd
leave
ret

Function at 0x100fd8b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x1014590]
jne 0x100fe26
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x100ff18
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100fe25
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x100ffd0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x100fe25
push 3
push dword [esi*8 + 0x100fe38]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x100fe17
inc esi
cmp esi, 0x1c
jae 0x100fe25
jmp 0x100fdf6
mov ax, word [esi*8 + 0x100fe3c]
mov word [0x1014590], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x1014590]
xor ecx, ebp
call fcn.010012fd
leave
ret
Function at 0x4069c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, eax
test edi, edi
jne 0x4069de
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
push ebx
lea ebx, [edx + edx*2]
mov eax, edi
sub eax, ebx
neg eax
sbb eax, eax
neg eax
add eax, edx
cmp eax, 0x3fffffff
jbe 0x406a13
mov ecx, dword [ebp + 0x10]
pop ebx
pop edi
mov dword [ecx], 0xffffffff
mov eax, 0xffffffd6
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [eax*4 + 1]
cmp dword [ebp + 0xc], eax
jae 0x406a30
mov edx, dword [ebp + 0x10]
pop ebx
pop edi
mov dword [edx], eax
mov eax, 0xffffffd6
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
xor edx, edx
test ebx, ebx
je 0x406ab4
dec ebx
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
lea ecx, [ecx]
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
movzx edi, byte [esi + 2]
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
mov ebx, edx
shl eax, 4
sar ebx, 4
add ebx, eax
and ebx, 0x3f
movzx eax, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov eax, edi
sar eax, 6
lea edx, [eax + edx*4]
and edx, 0x3f
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
and edi, 0x3f
mov dl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], dl
add esi, 3
add ecx, 4
dec dword [ebp - 4]
jne 0x406a50
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
cmp edx, edi
jae 0x406b0c
movzx eax, byte [esi]
inc edx
cmp edx, edi
jae 0x406ac6
movzx esi, byte [esi + 1]
jmp 0x406ac8
xor esi, esi
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
mov ebx, esi
sar ebx, 4
shl eax, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
cmp edx, edi
jae 0x406b01
and esi, 0xf
mov dl, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], dl
jmp 0x406b05
mov byte [ecx + 2], 0x3d
add ecx, 3
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0x10]
mov eax, ecx
sub eax, dword [ebp + 8]
pop ebx
mov dword [edx], eax
pop edi
mov byte [ecx], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406b30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor eax, eax
push edi
xor edi, edi
mov dword [ebp - 4], eax
cmp edx, eax
jbe 0x406bb8
xor esi, esi
cmp eax, edx
jae 0x406b5e
jmp 0x406b50
cmp byte [eax + ebx], 0x20
jne 0x406b5c
inc eax
inc esi
cmp eax, edx
jb 0x406b50
cmp eax, edx
je 0x406bb1
mov ecx, edx
sub ecx, eax
cmp ecx, 2
jb 0x406b76
cmp byte [eax + ebx], 0xd
jne 0x406b76
cmp byte [eax + ebx + 1], 0xa
je 0x406bac
mov cl, byte [eax + ebx]
cmp cl, 0xa
je 0x406bac
test esi, esi
jne 0x406bca
cmp cl, 0x3d
jne 0x406b8d
inc edi
cmp edi, 2
ja 0x406bca
cmp cl, 0x7f
ja 0x406bca
movzx ecx, cl
mov cl, byte [ecx + 0x437e18]
cmp cl, 0x7f
je 0x406bca
cmp cl, 0x40
jae 0x406ba9
test edi, edi
jne 0x406bca
inc dword [ebp - 4]
inc eax
cmp eax, edx
jb 0x406b45
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x406bd6
mov edx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [edx], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffffd4
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx + 7]
shr ecx, 3
sub ecx, edi
test esi, esi
je 0x406c82
cmp dword [ebp + 0xc], ecx
jb 0x406c82
xor edx, edx
mov edi, 3
mov dword [ebp - 4], edx
cmp eax, edx
jbe 0x406c71
mov cl, byte [ebx]
cmp cl, 0xd
je 0x406c6a
cmp cl, 0xa
je 0x406c6a
cmp cl, 0x20
je 0x406c6a
movzx ecx, cl
mov cl, byte [ecx + 0x437e18]
xor ebx, ebx
cmp cl, 0x40
sete bl
movzx ecx, cl
and ecx, 0x3f
shl edx, 6
or edx, ecx
mov ecx, dword [ebp - 4]
inc ecx
sub edi, ebx
mov dword [ebp - 4], ecx
cmp ecx, 4
jne 0x406c67
mov dword [ebp - 4], 0
test edi, edi
je 0x406c52
mov ecx, edx
shr ecx, 0x10
mov byte [esi], cl
inc esi
cmp edi, 1
jbe 0x406c5f
mov ecx, edx
shr ecx, 8
mov byte [esi], cl
inc esi
cmp edi, 2
jbe 0x406c67
mov byte [esi], dl
inc esi
mov ebx, dword [ebp + 0x14]
inc ebx
dec eax
mov dword [ebp + 0x14], ebx
jne 0x406c04
sub esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
pop edi
mov dword [edx], esi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
mov eax, 0xffffffd6
pop ebx
mov esp, ebp
pop ebp
ret