joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10068300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100b600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10068330
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007df89
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10068360
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10068360
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007df89
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10068436
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10068389
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10068395
movsx eax, bl
jmp 0x100683cd
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x100683f7
sub eax, 1
je 0x100683f7
sub eax, 2
jne 0x10068436
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007df89
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10068415
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10068436
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x10068436
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007df89
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007df89
mov esp, ebp
pop ebp
ret 4
Function at 0x10077e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100b600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10077eec
cmp byte [esi + 0x3d], 0
je 0x10077eec
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10077eda
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 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 0x10077ea1
sub eax, 1
je 0x10077ea5
sub eax, 2
jne 0x10077eda
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007df89
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10077ec3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10077eda
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007df89
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007df89
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1007df89
mov esp, ebp
pop ebp
ret

Function at 0x1007b4c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 3
xor eax, eax
mov dl, byte [edi + eax - 0x2dde7edd]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1007b4ee
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x1007b4d1
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1007b500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xb5
xor eax, eax
mov dl, byte [edi + eax - 0x39e8c79c]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1007b52e
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x1007b511
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1007b540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x7e
xor eax, eax
mov dl, byte [edi + eax + 0x47b30cfa]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1007b56e
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x1007b551
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x1007b580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x90
xor eax, eax
mov dl, byte [edi + eax + 0x2c0f6166]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1007b5ae
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x1007b591
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1007dd20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008e15d
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x100b600c]
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 - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.1007dbb0
cmp byte [ebp - 0x84], 0
jne 0x1007de71
xor edx, edx
lea ecx, [ebp - 0x3f]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x18], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x17], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x16], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x15], al
add edx, 4
cmp edx, 8
jb 0x1007ddb5
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x100b7aa0
call fcn.1007dbb0
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.1007dbb0
xor edx, edx
lea ecx, [ebp - 0x37]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x28], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x27], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x26], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x25], al
add edx, 4
cmp edx, 0x10
jb 0x1007de24
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.1007dc60
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1007deb3
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007dea9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007dea9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007e8b0
add esp, 8
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.1007df89
mov esp, ebp
pop ebp
ret
Function at 0x1002a43
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push edi
push 0x1002aec
push 0
mov edi, 0x100000
push edi
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x1002ac1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1e
push eax
call ebx
test eax, eax
jne 0x101c109
push 0x1002ac8
push 0
push edi
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, eax
test esi, esi
je 0x1002aad
push 0
push esi
call ebx
test eax, eax
jne 0x101c11b
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call edi
mov esi, dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
cmp eax, 0x80
je 0x1002a80
xor esi, esi
jmp 0x1002ab5
cmp eax, 0x80
je 0x1002aa3
cmp eax, 0x102
jne 0x1002aa6
mov dword [ebp - 8], 1
jmp 0x1002aa6

Function at 0x1002c41
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
xor ebx, ebx
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 1
jl 0x1002cf9
push 0x1002cd0
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01002d0b
test eax, eax
jl 0x1002cf9
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01002d0b
test eax, eax
jl 0x1002cf9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
jmp 0x101a1db
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01001b23
leave
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
jmp 0x101a1e8
test ebx, ebx
je 0x1002cf9
jmp 0x1002ce6
test eax, eax
jle 0x101a1f6
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x10489ac]
cmp eax, 0x10489ac
je 0x1002ce6
test byte [eax + 0x1c], 4
je 0x1002ce6
call esi
push eax
mov eax, dword [0x10489ac]
push edi
push 0x101a238
push 0x101cb70
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103cb7b
jmp 0x1002ce6

Function at 0x1003095
Capabilities:
Log keystrokes via application hook

Disassembly:
mov edi, edi
push esi
push edi
xor edi, edi
lea esi, [ecx + 0x1e0]
cmp dword [esi], edi
jne 0x10030c3
push edi
push dword [0x1048004]
push 0x102e1d6
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi], eax
test eax, eax
je 0x1018cbb
mov eax, edi
pop edi
pop esi
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1018ccf
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jge 0x10030c3
mov eax, dword [0x10489ac]
cmp eax, 0x10489ac
je 0x10030c3
test byte [eax + 0x1c], 4
je 0x10030c3
push edi
push 0x1018d10
push 0x101cb50
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01023b17
jmp 0x10030c3
Function at 0x1006732
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
lea eax, [esi + 0x2b0]
and dword [eax], 0
push edi
mov dword [ebp - 4], eax
call fcn.0100669f
test eax, eax
je 0x1017352
push ebx
xor ebx, ebx
inc ebx
push ebx
push ebx
push 0
add esi, 0x2b4
push esi
mov edi, 0x10067bc
push edi
push dword [ebp + 8]
mov dword [esi], ebx
call fcn.010054a8
test eax, eax
jl 0x10172e3
mov esi, dword [ebp - 4]
push 0x32
pop edi
push edi
push 0x270f
push 0
push esi
push 0x10067a8
push dword [ebp + 8]
call fcn.010054a8
pop ebx
test eax, eax
jge 0x100679f
mov dword [esi], edi
pop edi
xor eax, eax
pop esi
leave
ret 8
cmp dword [ebp + 0xc], 0x80000001
jne 0x100677c
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0x1004d24
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jge 0x1017315
and dword [ebp + 0xc], 0
jmp 0x1017327
push ebx
push ebx
push 0
push esi
push edi
push dword [ebp + 0xc]
call fcn.010054a8
test eax, eax
jge 0x1017329
mov dword [esi], ebx
push 4
push esi
push 4
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp + 0xc], 0
je 0x100677c
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100677c
mov eax, dword [0x10489ac]
cmp eax, 0x10489ac
je 0x100679f
test byte [eax + 0x1c], 0x10
je 0x100679f
push 0x1017388
push 0x101cb20
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010223fa
jmp 0x100679f

Function at 0x1009b09
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
lea eax, [ebp + 0xc]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x101c262
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov edi, dword [ebp + 0x10]
push edi
push ebx
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101c2f2
mov eax, dword [edi]
cmp eax, 0x28
jb 0x101c2f2
cmp eax, 0xffff
ja 0x101c2f2
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
cmp eax, ebx
je 0x101c299
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [esi], ebx
push dword [edi]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [esi], eax
cmp eax, ebx
jne 0x101c2ba
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x1009b32
push dword [edi]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push dword [esi]
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101c2f2
mov eax, dword [esi]
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x101c2e9
cmp dword [eax + 4], 2
je 0x101c2f2
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [esi], ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1009b30
Function at 0x100abd3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push dword [esi + 0x2c]
mov eax, dword [esi + 0x34]
xor edi, edi
mov dword [ebp - 0x20c], edi
push dword [eax + 0x3c]
lea eax, [ebp - 0x208]
push 0x100a670
push 0x100aca0
push 0x100
push eax
call fcn.0100790b
add esp, 0x18
test eax, eax
jne 0x100ac90
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
lea eax, [ebp - 0x208]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100ac90
cmp dword [ebp - 0x20c], edi
je 0x100ac90
mov esi, dword [esi + 0x30]
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x100ac5c
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push edi
push 0x100acb4
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01001b23
leave
ret
Function at 0x100ad1c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x82c], edi
mov dword [ebp - 0x828], esi
mov dword [edi], esi
mov ecx, 0x10041cc
mov dx, word [eax]
cmp dx, word [ecx]
je 0x100b9a1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x100b9ca
push dword [ebp + 8]
lea eax, [ebp - 0x81c]
push 0x100a670
push 0x100c894
push 0x104
push eax
mov dword [ebp - 0x820], esi
call fcn.0100790b
add esp, 0x14
test eax, eax
jne 0x10164e8
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
lea eax, [ebp - 0x820]
push eax
mov ebx, 0x20019
push ebx
push esi
lea eax, [ebp - 0x81c]
push eax
push 0x80000001
call edi
test eax, eax
jne 0x10164f3
cmp dword [ebp - 0x820], esi
je 0x10164f3
mov dword [ebp - 0x834], esi
mov dword [ebp - 0x830], esi
push 0x105
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x830]
push dword [ebp - 0x820]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x100af0e
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x210]
push 0x100af48
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x100aefc
lea eax, [ebp - 0x824]
push eax
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x820]
mov dword [ebp - 0x824], esi
call edi
test eax, eax
jne 0x100aefc
cmp dword [ebp - 0x824], esi
je 0x100aefc
push 0x3fe
mov word [ebp - 0x610], ax
lea eax, [ebp - 0x60e]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x838]
push eax
push esi
push 0x100acb4
push dword [ebp - 0x824]
mov dword [ebp - 0x83c], 0x400
mov dword [ebp - 0x838], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100aef0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x610]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100cb11
cmp dx, si
je 0x100aee0
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100cb11
add ecx, 4
add eax, 4
cmp dx, si
jne 0x100aeb6
xor eax, eax
cmp eax, esi
jne 0x100aef0
mov dword [ebp - 0x828], 1
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x830]
cmp dword [ebp - 0x828], esi
je 0x100add9
push dword [ebp - 0x820]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x828], esi
je 0x10164f3
mov eax, dword [ebp - 0x834]
mov ecx, dword [ebp - 0x82c]
mov dword [ecx], eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01001b23
leave
ret 0xc
cmp dx, si
je 0x100b9c3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100ad5a
add eax, 4
add ecx, 4
cmp dx, si
jne 0x100ad4e
xor eax, eax
jmp 0x100ad5f
mov dword [edi], 1
jmp 0x100af35
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x100aee2
push edi
call fcn.010214bc
jmp 0x100af35
push dword [ebp - 0x82c]
call fcn.010214bc
jmp 0x100af34
Function at 0x100e0b9
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x548]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ebx, ebx
mov dword [esi + 0x1d80], ebx
mov dword [esi + 0x1d84], ebx
mov dword [esi + 0x1d88], ebx
call edi
push dword [esi + 0x54c]
call edi
push dword [esi + 0x550]
call edi
push dword [esi + 0x554]
call edi
push dword [esi + 0x558]
call edi
push dword [esi + 0x1d8c]
call edi
push dword [esi + 0x1d90]
call edi
push dword [esi + 0x1d94]
call edi
push dword [esi + 0x1d98]
call edi
push dword [esi + 0x1d9c]
call edi
lea eax, [esi + 0x1d78]
push eax
push ebx
push esi
push 0x100e173
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x44], eax
cmp eax, ebx
je 0x10169f4
push dword [esi + 0x548]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [0x1048af0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, 0x80004005
jmp 0x100e16a

Function at 0x100e71e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
lea eax, [esi + 0x510]
push eax
push 0
push esi
push 0x100e761
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x44], eax
pop esi
test eax, eax
je 0x1019642
push 0xffffffffffffffff
push dword [0x1048af0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
ret
mov eax, 0x80004005
ret

Function at 0x100eccb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1048d88], 0
push esi
jne 0x100ecde
call fcn.0100ed0c
test eax, eax
je 0x100ed03
mov eax, dword [0x1048d88]
cmp eax, 1
jne 0x101beb5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x100ed03
pop esi
ret
xor eax, eax
pop esi
ret
push eax
call dword [0x10492dc]
test eax, eax
jne 0x101bf1f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x100ed03
mov eax, dword [esi]
push edi
push dword [0x1048d88]
call dword [0x10492dc]
mov edi, eax
test edi, edi
je 0x101bf00
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x101bf1c
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1048d88]
call dword [0x10492d8]
add edi, 0x10
cmp edi, esi
jb 0x101bf08
mov eax, edi
pop edi
pop esi
ret
Function at 0x100fd9e
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x240
mov eax, 0x10424ec
call fcn.01007986
jmp 0x1015cd6
lea edx, [eax + 2]
jmp 0x10104bf
xor edi, edi
jmp 0x10105b8
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10104bf
sub eax, edx
sar eax, 1
je 0x1015dd1
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], 0x104
xor edi, edi
mov dword [ebp - 0x21c], ebx
cmp dword [ebp - 0x224], ebx
jl 0x10105c3
mov eax, dword [esi]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0x104
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x10105c3
mov eax, dword [ebp - 0x220]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x10105b8
cmp word [ebp + eax*2 - 0x218], bx
jne 0x10105b8
mov eax, dword [esi]
push ebx
push 0x20019
lea ecx, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.0100fc07
mov edi, eax
cmp edi, ebx
jne 0x10104b8
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0100faf9
test eax, eax
jne 0x10105b8
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 0x22c]
call fcn.0101016a
mov dword [ebp - 0x224], eax
inc dword [ebp - 0x21c]
jmp 0x10104fa
mov dword [ebp - 0x21c], ebx
cmp edi, ebx
je 0x1015d03
lea ecx, [ebp - 0x238]
call fcn.01010c0a
mov eax, dword [ebp - 0x224]
call fcn.010079c3
ret 8
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x224], ebx
cmp eax, ebx
jne 0x10104b3
jmp 0x1015dd1
cmp dword [ebp - 0x224], ebx
jl 0x10105d1
mov eax, dword [esi]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0x104
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x10105d1
mov eax, dword [ebp - 0x220]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1015dc6
cmp word [ebp + eax*2 - 0x218], bx
jne 0x1015dc6
mov eax, dword [esi]
push ebx
push 0x20019
lea ecx, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.0100fc07
cmp eax, ebx
jne 0x1015dc6
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0100faf9
test eax, eax
je 0x1015dc6
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x238]
push eax
sub esp, 0x10
mov edi, esp
push dword [ebp - 0x22c]
lea esi, [ebp - 0x24c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0101d219
mov esi, dword [ebp - 0x23c]
mov dword [ebp - 0x224], eax
inc dword [ebp - 0x21c]
jmp 0x1015d03
mov eax, dword [0x10489ac]
mov esi, 0x80004003
cmp eax, 0x10489ac
je 0x1015e00
test byte [eax + 0x1c], 4
je 0x1015e00
push esi
push 0x1015e08
push 0x101c95c
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01023b17
mov eax, esi
jmp 0x10105e2