joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e7be0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4e7cb3
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
xor edi, edi
cmp ecx, 7
mov eax, 0
jbe 0x4e7ca0
movdqa xmm2, xmmword [0x524980]
mov edi, ecx
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
and edi, 0xfffffff8
nop
movd xmm3, dword [esi + eax]
movd xmm4, dword [esi + eax + 4]
movd xmm5, dword [edx + eax]
movd xmm6, dword [edx + eax + 4]
add eax, 8
cmp edi, eax
punpcklbw xmm3, xmm0
punpcklbw xmm4, xmm0
punpcklbw xmm5, xmm0
punpcklbw xmm6, xmm0
punpcklwd xmm3, xmm0
punpcklwd xmm5, xmm0
punpcklwd xmm4, xmm0
punpcklwd xmm6, xmm0
pxor xmm5, xmm3
pxor xmm6, xmm4
pand xmm5, xmm2
pand xmm6, xmm2
por xmm0, xmm5
por xmm1, xmm6
jne 0x4e7c20
por xmm1, xmm0
cmp edi, ecx
pshufd xmm0, xmm1, 0x4e
por xmm0, xmm1
pshufd xmm1, xmm0, 0xe5
por xmm1, xmm0
movd eax, xmm1
je 0x4e7cb5
nop word cs:[eax + eax]
nop dword [eax]
movzx ebx, byte [edx + edi]
xor bl, byte [esi + edi]
inc edi
movzx ebx, bl
or eax, ebx
cmp ecx, edi
jne 0x4e7ca0
jmp 0x4e7cb5
xor eax, eax
pop esi
pop edi
pop ebx
ret

Function at 0x4e7cc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4e7cf1
mov edx, dword [esp + 8]
mov eax, 0x811c9dc5
nop word cs:[eax + eax]
nop dword [eax]
movzx esi, byte [edx]
inc edx
xor esi, eax
imul eax, esi, 0x1000193
dec ecx
jne 0x4e7ce0
pop esi
ret
mov eax, 0x811c9dc5
pop esi
ret

Function at 0x4e91a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4e925a
cmp dword [edi + 4], 0
je 0x4e925a
push 0
call sym.fastboot.exe_CRYPTO_get_thread_local
add esp, 4
mov esi, eax
test eax, eax
je 0x4e9269
cmp dword [edi + 4], 0
je 0x4e92a6
xor ebx, ebx
xor ebp, ebp
mov dword [esp], edi
jmp 0x4e9210
mov eax, dword [edi + ebx + 8]
inc ebp
mov dword [esi + ebx + 8], eax
movzx eax, word [edi + ebx + 0xc]
mov edi, dword [esp]
mov word [esi + ebx + 0xc], ax
add ebx, 0x10
mov eax, dword [edi + 4]
cmp ebp, eax
jae 0x4e9266
mov edi, dword [edi]
push dword [esi + ebx + 4]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov dword [esi + ebx + 4], 0
mov dword [esi + ebx], 0
mov dword [esi + ebx + 0xc], 0
mov dword [esi + ebx + 8], 0
mov eax, dword [edi + ebx]
mov dword [esi + ebx], eax
mov eax, dword [edi + ebx + 4]
test eax, eax
je 0x4e91f0
push eax
call sym.fastboot.exe_OPENSSL_strdup
add esp, 4
mov dword [esi + ebx + 4], eax
jmp 0x4e91f0
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp sym.fastboot.exe_ERR_clear_error
dec eax
jmp 0x4e92ab
push 0x10c
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4e92bb
mov esi, eax
push 0x10c
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
push 0x4e92d0
push esi
push 0
call sym.fastboot.exe_CRYPTO_set_thread_local
add esp, 0xc
test eax, eax
jne 0x4e91cf
jmp 0x4e92bb
mov eax, 0xffffffff
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], 0xf
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4ed490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, ecx
sub edx, eax
je 0x4ed4ea
movsx edi, byte [eax]
cmp edi, 0x4a
je 0x4ed519
cmp edi, 0x4c
je 0x4ed4f8
cmp edi, 0x58
jne 0x4ed4ea
inc eax
mov ecx, esi
mov dword [esi], eax
call fcn.004efc30
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x4ed66e
mov edx, dword [esi]
cmp edx, dword [esi + 4]
je 0x4ed66e
cmp byte [edx], 0x45
jne 0x4ed66e
inc edx
mov eax, ecx
mov dword [esi], edx
jmp 0x4ed66e
mov ecx, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004eb6d0
cmp edx, 2
jb 0x4ed5d3
cmp byte [eax + 1], 0x5a
jne 0x4ed5d3
add eax, 2
mov ecx, esi
mov dword [esi], eax
call fcn.004ead30
jmp 0x4ed4c0
inc eax
lea edi, [esi + 0x14]
mov dword [esi], eax
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 8]
sar edx, 2
mov dword [esp], edx
mov dword [esp + 8], edi
cmp eax, ecx
jne 0x4ed57c
jmp 0x4ed581
push eax
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
test eax, eax
mov dword [esi + 8], eax
je 0x4ed676
mov eax, ebp
sar ebp, 1
sar eax, 2
lea ecx, [ebx + ebp*4]
lea ebp, [ebx + eax*4]
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ecx
lea eax, [ebp + 4]
mov dword [esi + 0xc], eax
mov dword [ebp], edi
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x4ed581
cmp byte [eax], 0x45
je 0x4ed5e8
mov ecx, esi
call fcn.004ed490
test eax, eax
je 0x4ed5e1
mov ebp, dword [esi + 0xc]
mov edi, eax
cmp ebp, dword [esi + 0x10]
jne 0x4ed56a
mov ecx, dword [esi + 8]
sub ebp, ecx
cmp dword [esp + 8], ecx
lea eax, [ebp + ebp]
jne 0x4ed540
mov dword [esp + 4], ecx
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4ed676
mov ebx, eax
test ebp, ebp
je 0x4ed5ce
push ebp
push dword [esp + 8]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov dword [esi + 8], ebx
jmp 0x4ed557
mov ecx, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004f0e60
xor eax, eax
jmp 0x4ed66e
inc eax
mov ebp, dword [esp]
mov ecx, esi
mov dword [esi], eax
mov edx, dword [esi + 8]
shl ebp, 2
add edx, ebp
push dword [esi + 0xc]
call fcn.004f5840
add esp, 4
add ebp, dword [esi + 8]
mov edi, eax
mov ebx, edx
mov dword [esi + 0xc], ebp
mov ebp, dword [esi + 0x116c]
mov ecx, dword [ebp + 4]
lea eax, [ecx + 0x10]
cmp eax, 0xff8
jb 0x4ed644
push 0x1000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4ed676
mov dword [eax], ebp
xor ecx, ecx
mov ebp, eax
mov dword [eax + 4], 0
mov dword [esi + 0x116c], eax
add ecx, 0x10
mov dword [ebp + 4], ecx
mov ecx, dword [esi + 0x116c]
mov edx, dword [ecx + 4]
mov dword [ecx + edx - 4], 0x101011c
mov dword [ecx + edx - 8], 0x527b44
lea eax, [ecx + edx - 8]
mov dword [ecx + edx + 4], ebx
mov dword [ecx + edx], edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00475380
nop dword [eax + eax]
Function at 0x4f2db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
je 0x4f2e8e
cmp ecx, 1
je 0x4f2e8e
cmp byte [eax], 0x64
jne 0x4f2e8e
movsx ecx, byte [eax + 1]
cmp ecx, 0x58
je 0x4f2f35
cmp ecx, 0x78
je 0x4f2e9c
cmp ecx, 0x69
jne 0x4f2e8e
add eax, 2
mov ecx, esi
mov dword [esi], eax
call fcn.004f5e60
xor edi, edi
test eax, eax
je 0x4f2fd2
mov ecx, esi
mov ebx, eax
call fcn.004f2db0
test eax, eax
je 0x4f2fd2
mov edi, dword [esi + 0x116c]
mov ebp, eax
mov ecx, dword [edi + 4]
lea eax, [ecx + 0x20]
cmp eax, 0xff8
jb 0x4f2e59
push 0x1000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4f2fdc
mov dword [eax], edi
xor ecx, ecx
mov edi, eax
mov dword [eax + 4], 0
mov dword [esi + 0x116c], eax
add ecx, 0x20
mov dword [edi + 4], ecx
mov eax, dword [esi + 0x116c]
mov ecx, dword [eax + 4]
mov dword [eax + ecx - 0x14], 0x1010141
mov dword [eax + ecx - 0x18], 0x526ff4
mov dword [eax + ecx - 0x10], ebx
mov dword [eax + ecx - 0xc], ebp
lea edi, [eax + ecx - 0x18]
mov byte [eax + ecx - 8], 0
jmp 0x4f2fd2
mov ecx, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004efc30
add eax, 2
mov ecx, esi
mov dword [esi], eax
call fcn.004efc30
xor edi, edi
test eax, eax
je 0x4f2fd2
mov ecx, esi
mov ebx, eax
call fcn.004f2db0
test eax, eax
je 0x4f2fd2
mov edi, dword [esi + 0x116c]
mov ebp, eax
mov ecx, dword [edi + 4]
lea eax, [ecx + 0x20]
cmp eax, 0xff8
jb 0x4f2f00
push 0x1000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4f2fdc
mov dword [eax], edi
xor ecx, ecx
mov edi, eax
mov dword [eax + 4], 0
mov dword [esi + 0x116c], eax
add ecx, 0x20
mov dword [edi + 4], ecx
mov eax, dword [esi + 0x116c]
mov ecx, dword [eax + 4]
mov dword [eax + ecx - 0x14], 0x1010141
mov dword [eax + ecx - 0x18], 0x526ff4
mov dword [eax + ecx - 0x10], ebx
mov dword [eax + ecx - 0xc], ebp
lea edi, [eax + ecx - 0x18]
mov byte [eax + ecx - 8], 1
jmp 0x4f2fd2
add eax, 2
mov ecx, esi
mov dword [esi], eax
call fcn.004efc30
xor edi, edi
test eax, eax
je 0x4f2fd2
mov ecx, esi
mov ebx, eax
call fcn.004efc30
test eax, eax
je 0x4f2fd2
mov ecx, esi
mov ebp, eax
call fcn.004f2db0
test eax, eax
je 0x4f2fd2
mov edi, dword [esi + 0x116c]
mov ecx, dword [edi + 4]
lea edx, [ecx + 0x20]
cmp edx, 0xff8
jb 0x4f2fa3
mov dword [esp], eax
push 0x1000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4f2fdc
mov dword [eax], edi
mov dword [eax + 4], 0
mov dword [esi + 0x116c], eax
mov edi, eax
mov eax, dword [esp]
xor ecx, ecx
add ecx, 0x20
mov dword [edi + 4], ecx
mov edx, dword [esi + 0x116c]
mov ecx, dword [edx + 4]
lea edi, [edx + ecx - 0x18]
mov dword [edx + ecx - 0x14], 0x1010142
mov dword [edx + ecx - 0x18], 0x527060
mov dword [edx + ecx - 0x10], ebx
mov dword [edx + ecx - 0xc], ebp
mov dword [edx + ecx - 8], eax
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00475380
nop word cs:[eax + eax]
nop dword [eax + eax]
Function at 0x4fc368
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x536464
call fcn.004fc182
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, 0xbab1f0ed
jne 0x4fc394
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
jg 0x4fc3d6
mov dword [esp], 2
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call eax
mov dword [esp + 0x10], 0x28
mov dword [esp + 0xc], str._work_src_mingw_toolchain_mingw_mingw_w64_v6.x_mingw_w64_libraries_winpthreads_src_rwlock.c
mov dword [esp + 8], str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov dword [esp + 4], str.Assertion_failed:___s___file__s__line__d_n
mov dword [esp], eax
call fcn.00477500
mov dword [esp], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax + 4]
sub edx, 1
mov dword [eax + 4], edx
mov dword [esp], 0x536464
call fcn.004fc1e0
mov eax, dword [ebp + 0xc]
leave
ret
Function at 0xd16d70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8bf000]
push edi
jmp 0xd16d8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xd16d91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd16d80
mov eax, 1
add ebx, ebx
jne 0xd16da3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xd16db4
jne 0xd16dd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd16dd3
dec eax
add ebx, ebx
jne 0xd16dc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xd16d98
add ebx, ebx
jne 0xd16dcf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xd16e25
xor ecx, ecx
sub eax, 3
jb 0xd16deb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xd16e5a
sar eax, 1
mov ebp, eax
jmp 0xd16df6
add ebx, ebx
jne 0xd16df6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd16dc4
inc ecx
add ebx, ebx
jne 0xd16e04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd16dc4
add ebx, ebx
jne 0xd16e11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xd16e06
jne 0xd16e22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xd16e06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xd16e44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xd16e36
jmp 0xd16d86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xd16e44
add edi, ecx
jmp 0xd16d86
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xd16e62
cmp byte [edi], 0x11
jne 0xd16e62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xd16e67
lea edi, [esi + 0x90f000]
mov eax, dword [edi]
or eax, eax
je 0xd16edf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11538a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + str.c_x_a2]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xd16e94
mov ecx, edi
jns 0xd16ec3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1153a28]
or eax, eax
je 0xd16ed9
mov dword [ebx], eax
add ebx, 4
jmp 0xd16eb1
call dword [esi + 0x1153a38]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xd16f10
cmp al, 0xef
ja 0xd16f03
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xd16ee5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xd16ef2
mov ebp, dword [esi + 0x1153a2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xd16f44
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x401e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x689640]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00812c16
add esp, 0xc
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x22c], 0x103
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x218]
cmp dword [eax + 0x14], 7
jbe 0x401ea4
mov dword [ebp - 0x21c], 1
jmp 0x401eae
mov dword [ebp - 0x21c], 0
mov cl, byte [ebp - 0x21c]
mov byte [ebp - 0x20d], cl
movzx edx, byte [ebp - 0x20d]
test edx, edx
je 0x401edf
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x234], ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x230]
push ecx
push 0
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401f48
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0070c31c
mov edx, dword [ebp - 0x214]
or edx, 1
mov dword [ebp - 0x214], edx
mov eax, dword [ebp + 8]
jmp 0x401f67
push 0x60ed90
mov ecx, dword [ebp + 8]
call fcn.0070c31c
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00817892
mov esp, ebp
pop ebp
ret

Function at 0x4022f0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [ebp + 0xc]
call fcn.0077a3d8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x14], 7
jbe 0x40232d
mov dword [ebp - 0xc], 1
jmp 0x402334
mov dword [ebp - 0xc], 0
mov dl, byte [ebp - 0xc]
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
test eax, eax
je 0x402350
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x402377
mov dword [ebp - 0x14], 1
jmp 0x40237e
mov dword [ebp - 0x14], 0
movzx eax, byte [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4063d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4063f4
xor eax, eax
jmp 0x406474
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40640b
xor eax, eax
jmp 0x406474
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x406457
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x406457
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40642e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x406463
xor eax, eax
jmp 0x406474
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x406471
xor eax, eax
jmp 0x406474
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x407350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4590
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x689640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], 0
push 0x60f518
lea ecx, [ebp - 0x234]
call fcn.0070c31c
mov dword [ebp - 4], 0
push 0x20a
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.00812c16
add esp, 0xc
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x407400
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0070c31c
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00727fe6
lea ecx, [ebp - 0x24c]
call fcn.0070a853
lea edx, [ebp - 0x234]
push edx
mov ecx, dword [ebp + 8]
call fcn.0073f2c2
mov eax, dword [ebp - 0x250]
or eax, 1
mov dword [ebp - 0x250], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.0070a853
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.00817892
mov esp, ebp
pop ebp
ret
Function at 0x4092b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f47bd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x689640]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov dword [ebp - 0x14], eax
mov edx, 0x41
mov word [ebp - 0x10], dx
cmp dword [ebp - 0x14], 0
je 0x40934e
mov eax, dword [ebp - 0x14]
and eax, 1
je 0x409338
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a8e0
mov edx, dword [ebp - 0x14]
shr edx, 1
mov dword [ebp - 0x14], edx
mov ax, word [ebp - 0x10]
add ax, 1
mov word [ebp - 0x10], ax
jmp 0x40931e
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040ce20
mov edx, dword [ebp - 0x1c]
or edx, 1
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00410000
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x40c740
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4b80
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x689640]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
push 8
call fcn.00438512
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40c822
mov dword [ebp - 4], 0
push 1
call fcn.00535101
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
jmp 0x40c829
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x34], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040f4e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x414090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f53bd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x689640]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.0073d01d
add esp, 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x48]
or eax, dword [ebp - 0x44]
jne 0x414132
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00415ad0
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0079252e
mov eax, dword [ebp + 8]
jmp 0x41422e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 7
jbe 0x414150
mov dword [ebp - 0x24], 1
jmp 0x414157
mov dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x414173
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
push 0x60f7f8
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00596226
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4141c2
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp + 8]
call fcn.00415ad0
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0079252e
mov eax, dword [ebp + 8]
jmp 0x41422e
lea ecx, [ebp - 0xe]
push ecx
mov edx, dword [ebp - 0x48]
push edx
lea ecx, [ebp - 0x54]
call fcn.004154a0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], eax
xor ecx, ecx
shl ecx, 0
mov edx, dword [ebp - 0x3c]
add ecx, dword [edx]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.005939f1
add esp, 0x10
mov eax, dword [ebp - 0x20]
push eax
call fcn.00812a52
add esp, 4
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00415ad0
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0079252e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret