joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
xor eax, eax
jne 0x414859
cmp dword [ebp + 0xc], 0
je 0x41486c
mov dword [ebp - 0xc], 1
jmp 0x414873
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x414886
mov eax, 0xd
jmp 0x4148db
xor edx, edx
jne 0x41485d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x414899
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx + 2]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x416f80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
push 0
call fcn.00416eb0
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jg 0x416fe8
jl 0x416fb1
cmp dword [ebp - 0xc], 0
jae 0x416fe8
push 0
call fcn.00416eb0
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jg 0x416fe8
jl 0x416fd3
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1c]
jae 0x416fe8
push str.LOGGING_LIB_internal_error___should_NEVER_happen._Please_report_this_to_the_author_of_the_lib
call fcn.00416e70
add esp, 4
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x4170e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c73ca
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], esi
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.00408360
lea ecx, [esi + 0x18]
call fcn.00413dc0
push str.sa386
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
call fcn.0040bdb0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00416470
test al, al
je 0x4171b8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b2a0
push ecx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.0041bbe0
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00413bd0
lea ecx, [ebp - 0x230]
call fcn.0040a7f0
lea ecx, [ebp + 8]
call fcn.0040a7f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4178f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c759c
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x671330]
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
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], esi
lea eax, [ebp + 0x3c]
mov dword [ebp - 4], 3
push eax
lea ecx, [esi + 4]
mov dword [esi], vtable.deepsoft::trial::CTrialPersist.0
call fcn.00408360
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp + 0x54]
mov ecx, esp
push eax
call fcn.00408360
lea ecx, [esi + 0x1c]
call fcn.004170e0
lea eax, [ebp + 8]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x7c]
call fcn.00408360
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x94]
call fcn.00408360
lea ecx, [esi + 0xac]
call fcn.00413dc0
mov al, byte [ebp + 0x38]
lea ecx, [esi + 4]
mov byte [ebp - 4], 8
mov byte [esi + 0xdc], al
call fcn.00416470
test al, al
je 0x4179e2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 4]
call fcn.00414b50
lea ecx, [ebp + 8]
call fcn.0040a7f0
lea ecx, [ebp + 0x20]
call fcn.0040a7f0
lea ecx, [ebp + 0x3c]
call fcn.0040a7f0
lea ecx, [ebp + 0x54]
call fcn.0040a7f0
mov eax, esi
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.00544286
mov esp, ebp
pop ebp
ret 0x64
Function at 0x41b3a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push 2
push 0
push ebx
mov dword [ebp - 4], ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x41b3c9
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
test esi, esi
jns 0x41b3e7
pop esi
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
jne 0x41b3f3
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
lea eax, [esi + 1]
push 0x5f8c2c
push eax
call fcn.005c6407
mov edi, eax
add esp, 8
test edi, edi
jne 0x41b417
lea eax, [edi - 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push ebx
push esi
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x1c
cmp eax, esi
je 0x41b44f
push edi
call fcn.00544082
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0041c310
push edi
mov esi, eax
call fcn.00544082
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x422d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c84d8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x422eb1
cmp byte [ebx + 0x3d], 0
je 0x422eb1
mov esi, dword [ebx]
call fcn.0040fd50
push eax
mov ecx, ebx
call dword [esi + 0xc]
mov dword [ebp - 0x34], eax
call fcn.0040fd50
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00415ba0
add esp, 8
test al, al
je 0x422de4
xor al, al
jmp 0x422eb3
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00413e40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.00420b60
lea ecx, [ebp - 0x28]
mov edi, dword [eax]
lea eax, [ebp - 0x3c]
push eax
call fcn.00420b60
lea ecx, [ebp - 0x28]
mov esi, dword [eax]
lea eax, [ebp - 0x2c]
push eax
call fcn.004087a0
mov ecx, dword [ebx + 0x38]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x422e4d
sub eax, 1
je 0x422e51
sub eax, 2
je 0x422ea3
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.0040b3b0
mov al, bl
jmp 0x422eb3
mov byte [ebx + 0x3d], 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.00420b60
mov esi, dword [ebp - 0x2c]
sub esi, dword [eax]
je 0x422e85
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00420b60
push dword [ebx + 0x4c]
push esi
push 1
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x422e3f
cmp byte [ebx + 0x3d], 0
je 0x422ea3
test esi, esi
jne 0x422df7
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00413f40
jmp 0x422df7
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.0040b3b0
mov al, bl
jmp 0x422eb3
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret
Function at 0x44f320
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca898
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
push 4
lea ecx, [ebp - 0x14]
call fcn.004029d0
lea ecx, [ebp - 0x14]
call fcn.00404b40
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00404f00
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0040e2a0
push 0
push 0x5e4614
lea ecx, [ebp - 0x14]
call fcn.00473380
test eax, eax
jl 0x44f3de
push 4
lea ecx, [ebp - 0x1c]
call fcn.004029d0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0044f4a0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402d50
push eax
push 0x5e4638
lea ecx, [ebp - 0x14]
call fcn.0047a1e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402d30
push 0
push 0x5e4678
lea ecx, [ebp - 0x14]
call fcn.00473380
test eax, eax
jl 0x44f452
push 4
lea ecx, [ebp - 0x18]
call fcn.004029d0
lea ecx, [ebp - 0x18]
call fcn.00404b40
mov byte [ebp - 4], 2
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00404f00
push eax
push 0
push 0
push 0x802e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0040e2a0
lea ecx, [ebp - 0x18]
call fcn.00402d50
push eax
push 0x5e46dc
lea ecx, [ebp - 0x14]
call fcn.0047a1e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402d30
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404b20
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402d30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret
Function at 0x44f590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 4
lea ecx, [ebp - 0x14]
call fcn.004029d0
lea ecx, [ebp - 0x14]
call fcn.00404b40
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x44f663
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
je 0x44f659
push 0xffffffffffffffff
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
add eax, 1
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
lea ecx, [ebp - 0x14]
call fcn.00473a40
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x10
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00479e90
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.0045d2f0
mov ecx, dword [ebp - 0x28]
or ecx, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402d30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret
Function at 0x473a60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc0ab
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], ecx
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x473b2b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040e050
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00469180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040c680
push str.SoftactivityTSM
mov ecx, dword [ebp + 8]
call fcn.0040e010
push str.config.dat
mov ecx, dword [ebp + 8]
call fcn.0040e010
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret 4

Function at 0x473b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc0ab
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], ecx
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x473c1b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040e050
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00469180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040c680
push str.systsm
mov ecx, dword [ebp + 8]
call fcn.0040e010
push 0x5e41a4
mov ecx, dword [ebp + 8]
call fcn.0040e010
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret 4
Function at 0x473c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc0ab
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], ecx
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x473cee
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040e050
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00469180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040c680
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret 4
Function at 0x479250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x479263
cmp dword [ebp + 0xc], 0
je 0x47927f
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 2
jae 0x47927f
mov eax, 0x7a
jmp 0x47932a
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4792be
mov eax, dword [ebp - 0x10]
jmp 0x47932a
cmp dword [ebp - 8], 7
je 0x4792cb
mov eax, 0xd
jmp 0x47932a
cmp dword [ebp + 0xc], 0
je 0x47931e
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x479317
mov edx, dword [ebp - 0xc]
shr edx, 1
cmp edx, 1
jb 0x479317
mov eax, dword [ebp - 0xc]
shr eax, 1
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
jne 0x479317
mov eax, dword [ebp - 0xc]
shr eax, 1
cmp eax, 1
jbe 0x47931e
mov ecx, dword [ebp - 0xc]
shr ecx, 1
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + ecx*2 - 4]
test eax, eax
je 0x47931e
mov eax, 0xd
jmp 0x47932a
mov ecx, dword [ebp - 0xc]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret 0xc

Function at 0x479340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x479353
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x479396
mov eax, dword [ebp - 0x10]
jmp 0x4793fc
cmp dword [ebp - 8], 1
je 0x4793a9
cmp dword [ebp - 8], 2
je 0x4793a9
mov eax, 0xd
jmp 0x4793fc
cmp dword [ebp + 0xc], 0
je 0x4793f0
cmp dword [ebp - 0xc], 0
je 0x4793df
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4793d6
mov edx, dword [ebp - 0xc]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x4793dd
mov eax, 0xd
jmp 0x4793fc
jmp 0x4793f0
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov eax, dword [ebp - 0xc]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47afa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccb4f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x671330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x47b077
movzx eax, byte [ebp + 8]
test eax, eax
je 0x47afec
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 8
call fcn.00544038
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x47b021
push 8
mov ecx, dword [ebp - 0x14]
call fcn.004029d0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004d2130
mov dword [ebp - 0x18], eax
jmp 0x47b028
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
je 0x47b077
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x5c], 0
je 0x47b057
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0x47ae50
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x5c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x47b7d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
xor eax, eax
jne 0x47b7d9
cmp dword [ebp + 0xc], 0
je 0x47b7ec
mov dword [ebp - 0x18], 1
jmp 0x47b7f3
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jne 0x47b809
mov eax, 0xd
jmp 0x47b88c
xor edx, edx
jne 0x47b7dd
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
mov cx, word [eax]
mov word [ebp - 2], cx
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x47b829
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x20]
sar edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx*2]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx*2]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 1
jne 0x47b81a
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 7
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x47dd90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccfa3
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xec
push ebx
push esi
push edi
mov eax, dword [0x671330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x47de0c
push str.szProcessName__NULL
lea ecx, [ebp - 0x54]
call fcn.0040bdb0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040bfb0
push 0x638098
lea edx, [ebp - 0x3c]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040b3b0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00475940
add esp, 8
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x47de3f
mov eax, dword [ebp - 0x14]
jmp 0x47df27
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x24], eax
jae 0x47de18
jmp 0x47df15
mov dword [ebp - 4], 0xffffffff
jmp 0x47df25
xor eax, eax
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 0x4822c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd248
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x482339
push 0x5e66a8
lea ecx, [ebp - 0x28]
call fcn.0040bdb0
mov dword [ebp - 4], 0
push 0x5e66ac
lea ecx, [ebp - 0x28]
call fcn.00433690
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00433690
lea ecx, [ebp - 0x28]
call fcn.0040beb0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b3b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret