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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x4375fc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x4376e2
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x437693
jg 0x437625
cmp dword [ebp + 0xc], 0
jbe 0x437693
cmp dword [ebp - 8], 0
jl 0x437693
jg 0x437633
cmp dword [ebp - 0xc], 0
jbe 0x437693
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x437651
jl 0x437645
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x437651
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.00405db0
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp dword [ebp + 0x10], 0
jl 0x4376d6
jg 0x4376a1
cmp dword [ebp + 0xc], 0
jbe 0x4376d6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x4376d6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000707d
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xff8]
mov eax, 0x1078
call fcn.10039d10
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0xff4], eax
mov eax, dword [ebp + 0x1004]
push ebx
push esi
mov esi, dword [ebp + 0x1000]
push edi
push esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
push 0x5a
push esi
fstp dword [ebp - 0x70]
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x70]
fmul qword [0x1005d148]
fld qword [0x1005d140]
fdiv st(1), st(0)
fxch st(1)
call fcn.1003aca0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1008]
imul eax, eax, 0xa
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul dword [ebp - 0x6c]
fdivrp st(1)
call fcn.1003aca0
mov dword [ebp - 0x7c], eax
push 1
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 0x7c]
fabs
fdiv qword [0x1005d138]
fadd qword [0x1005d130]
call fcn.1003aca0
neg eax
mov dword [ebp - 0x68], eax
mov eax, 0x800
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x1002
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push 5
lea eax, [ebp - 0xc]
push 0x1005d0d8
push eax
call fcn.1003b4c0
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
jne 0x100071ab
push 0x1005d0e4
jmp 0x100071ae
push dword [ebp - 0x78]
push 0x20
push eax
call fcn.1003b4c0
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp + 0xff4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0xff8
leave
ret 0xc
Function at 0x1000d65a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x790], eax
push esi
lea eax, [ebp - 0x74]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareJavaSoftJava_Deployment_Toolkit
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000d6ce
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push str.Allow_Unsigned_Installers
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x1000d6ce
xor eax, eax
inc eax
jmp 0x1000d6f9
push str.TOOLKIT_ALLOW_UNSIGNED
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1003b936
add esp, 0xc
test eax, eax
jne 0x1000d6f7
cmp dword [ebp - 0x78], esi
je 0x1000d6f7
push dword [ebp - 0x78]
call fcn.1003b4c0
pop ecx
jmp 0x1000d6c9
xor eax, eax
mov ecx, dword [ebp + 0x790]
xor ecx, ebp
pop esi
call fcn.10039bc2
add ebp, 0x794
leave
ret
Function at 0x1000d74c
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x37c4]
mov eax, 0x3844
call fcn.10039d10
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x37c0], eax
push ebx
xor ebx, ebx
cmp dword [0x1008250c], ebx
je 0x1000d93f
push esi
push edi
xor eax, eax
mov esi, 0xffe
push esi
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push ebx
push eax
call fcn.10039d40
xor eax, eax
push esi
mov word [ebp + 0xfc0], ax
lea eax, [ebp + 0xfc2]
push ebx
push eax
call fcn.10039d40
push 0x7ff
lea eax, [ebp + 0x2fc1]
push ebx
push eax
mov byte [ebp + 0x2fc0], bl
call fcn.10039d40
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x24
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
push 0x1005dc88
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x800
call edi
test eax, eax
jne 0x1000d93d
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push 0x1005dce0
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x40]
push eax
push 0x1005dd00
push 0x1005dd58
lea eax, [ebp + 0xfc0]
push 0x1000
push eax
call fcn.10004bac
add esp, 0x14
cmp dword [ebp - 0x74], ebx
jne 0x1000d934
lea eax, [ebp - 0x80]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0xfc0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x1000d934
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x2fc0]
push eax
push ebx
push ebx
push 0x1005dd64
push dword [ebp - 0x80]
mov edi, 0x800
mov dword [ebp - 0x7c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000d934
push esi
mov word [ebp + 0x1fc0], ax
lea eax, [ebp + 0x1fc2]
push ebx
push eax
call fcn.10039d40
lea eax, [ebp + 0x2fc0]
push eax
push str._slib_bundles
lea eax, [ebp + 0x1fc0]
push 0x1000
push eax
call fcn.10004bac
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x1fc0]
push eax
call fcn.1003b4c0
add esp, 0x24
test eax, eax
jne 0x1000d92b
push str._requested.list
lea eax, [ebp + 0x1fc0]
push edi
push eax
mov dword [ebp - 0x74], ebx
call fcn.1003b4c0
push 0x1005ddb8
lea eax, [ebp + 0x1fc0]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.1003b4c0
add esp, 0x18
test eax, eax
jne 0x1000d92b
mov ecx, dword [0x1008250c]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x1000d905
push dword [ebp - 0x74]
sub eax, esi
sar eax, 1
push eax
push 2
push ecx
call fcn.1003c319
push dword [ebp - 0x74]
call fcn.1003c14e
add esp, 0x14
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp + 0x37c0]
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0x37c4
leave
ret
Function at 0x1000dd0e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1fac]
mov eax, 0x202c
call fcn.10039d10
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x1fa8], eax
push ebx
mov ebx, dword [ebp + 0x1fb4]
push esi
push edi
xor eax, eax
mov esi, 0xffe
push esi
mov word [ebp + 0xfa0], ax
xor edi, edi
lea eax, [ebp + 0xfa2]
push edi
push eax
call fcn.10039d40
xor eax, eax
push esi
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x5e]
push edi
push eax
call fcn.10039d40
add esp, 0x18
lea eax, [ebp + 0xfa0]
push eax
push 0x800
call dword [sym.imp.kernel32.dll_GetTempPathW]
push 3
lea eax, [ebp + 0xfa0]
push eax
lea eax, [ebp + 0x1fa0]
push 4
push eax
call fcn.1003b4c0
lea eax, [ebp + 0x1fa0]
push eax
call fcn.1003b4c0
add esp, 0x14
cmp eax, 0x64
jae 0x1000dddb
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x80], 0x1005e434
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x80]
call fcn.10012884
cmp dword [ebp - 0x6c], edi
je 0x1000ddd4
push dword [ebp - 0x6c]
call fcn.1003b4c0
mov eax, 0x80004005
jmp 0x1000de37
lea eax, [ebp - 0x60]
push eax
push edi
push 0x1005e230
lea eax, [ebp + 0xfa0]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
je 0x1000de4f
lea eax, [ebp - 0x60]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000ddfc
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x68], cx
lea eax, [ebp - 0x60]
push eax
push str._s.exe
push 0x1000
push ebx
call fcn.10004bac
push edi
push ebx
call fcn.1003b4c0
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1000dddb
xor eax, eax
mov ecx, dword [ebp + 0x1fa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0x1fac
leave
ret
call fcn.1003b4c0
jmp 0x1000ddd4
Function at 0x1000e231
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x42c]
sub esp, 0x4ac
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x428], eax
mov eax, dword [ebp + 0x434]
push ebx
mov ebx, dword [ebp + 0x438]
push esi
push edi
mov dword [ebp + 0x14], eax
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x18], ax
xor esi, esi
lea eax, [ebp + 0x1a]
push esi
push eax
call fcn.10039d40
xor eax, eax
push edi
mov word [ebp + 0x220], ax
lea eax, [ebp + 0x222]
push esi
push eax
call fcn.10039d40
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.10039d40
push dword [ebp + 0x14]
mov dword [ebp - 0x80], edi
mov edi, 0x208
lea eax, [ebp + 0x18]
push edi
push eax
call fcn.10004bac
push ebx
push dword [ebp + 0x14]
lea eax, [ebp + 0x220]
push str._s__s
push edi
push eax
call fcn.10004bac
add esp, 0x44
lea eax, [ebp]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x220]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.1003b4c0
add esp, 0x28
cmp eax, esi
jne 0x1000e359
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov ebx, 0x2e4
cmp edi, ebx
jne 0x1000e3af
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.10039d40
lea eax, [ebp + 0x220]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], 0x1005e22c
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, esi
je 0x1000e377
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x1000e377
mov dword [ebp], eax
push dword [ebp]
call fcn.10007f0c
lea eax, [ebp + 0x10]
push eax
push dword [ebp]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
test eax, eax
je 0x1000e39c
mov edi, dword [ebp + 0x10]
jmp 0x1000e3a4
mov edi, ebx
push dword [ebp + 0x14]
call fcn.1003b4c0
pop ecx
mov ecx, dword [ebp + 0x428]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0x42c
leave
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
push dword [ebp]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x1000e379
call fcn.1003b4c0
jmp 0x1000e379
Function at 0x1001046d
Capabilities:
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x811c9dc5
jmp 0x10010486
movzx edx, word [ecx]
imul eax, eax, 0x1000193
xor eax, edx
add ecx, 2
cmp ecx, dword [esp + 8]
jne 0x10010478
ret

Function at 0x10012382
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x138
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x70], eax
movzx eax, word [ebp + 0x7c]
push esi
mov esi, dword [0x10083610]
push 0xf0
push eax
push esi
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], 1
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x10012506
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x10012506
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10012506
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x10012504
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0xa0], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x10012479
push 3
lea eax, [ebp - 0x90]
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.1003b4c0
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x9c]
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x10012459
and dword [ebp - 0x98], 0
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x100124f1
push dword [ebp - 0x94]
call fcn.1003b4c0
pop ecx
jmp 0x100124f1
mov ecx, 0x1234
cmp cx, ax
jne 0x100124f1
or dword [ebp - 0xc0], 0xffffffff
push 3
lea eax, [ebp - 0x90]
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0x94], eax
call fcn.1003b4c0
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xbc], eax
cmp eax, ecx
je 0x100124cb
push eax
call fcn.1003b4c0
pop ecx
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0x9c]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x100124f1
and dword [ebp - 0x98], 0
add esi, dword [ebp - 0xa0]
cmp dword [ebp - 0x98], 0
jne 0x100123f0
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp - 0x98]
xor ecx, ebp
pop esi
call fcn.10039bc2
add ebp, 0x74
leave
ret 4
Function at 0x1001a125
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.1003b4c0
mov ebx, eax
cmp ebx, esi
je 0x1001a198
lea ecx, [ebp - 0x74]
call fcn.10016b3c
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1001a1b0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.1001a125
cmp eax, esi
jne 0x1001a1e2
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], pe_nt_image_headers32
call ebx
test eax, eax
je 0x1001a1a0
lea ecx, [ebp - 0x74]
call fcn.10016b3c
push dword [ebp - 0x78]
mov ecx, edi
call fcn.10016acd
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.10016b3c
mov eax, esi
jmp 0x1001a17e
Function at 0x1001b97b
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xa8
push ebx
or eax, 0xffffffff
xor ebx, ebx
mov dword [ebp + 0x6c], eax
cmp dword [ebp + 0x78], ebx
je 0x1001bad3
call fcn.1002eeb7
push 0x10
mov dword [ebp + 0x68], eax
pop ecx
lea eax, [ebp + 0x54]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1001b9a6
push edi
mov dword [ebp + 0x64], ebx
call fcn.1002d15b
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x1001ba49
push 0x100616a0
call fcn.1003b4c0
mov dword [esp], str.AdvAPI32.dll
call fcn.1003b4c0
pop ecx
mov dword [ebp + 0x64], eax
cmp eax, ebx
jne 0x1001b9eb
push str.RunAsDesktopUser___CreateProcessWithTokenW_could_not_load_advapi32.dll
jmp 0x1001ba97
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp + 0x50], eax
cmp eax, ebx
jne 0x1001ba08
push str.RunAsDesktopUser___CreateProcessWithTokenW_could_not_GetProcAddress
jmp 0x1001ba97
push str.RunAsDesktopUser___calling__CreateProcessWithTokenW
call fcn.1003b4c0
pop ecx
push 0x44
pop ecx
lea eax, [ebp - 0x38]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1001ba19
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x7c]
mov dword [ebp - 0x38], 0x44
push dword [ebp + 0x78]
push ebx
push dword [ebp + 0x68]
call dword [ebp + 0x50]
test eax, eax
jne 0x1001ba9f
push str.RunAsDesktopUser:_CreateProcessWithTokenW_failed.
jmp 0x1001ba97
push 0x10061908
call fcn.1003b4c0
push 0x44
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.10039d40
add esp, 0x10
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x30
push ebx
push ebx
push ebx
push dword [ebp + 0x7c]
mov dword [ebp + 0xc], 0x44
push dword [ebp + 0x78]
mov dword [ebp + 0x14], str.winsta0default
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1001ba9f
push str.RunAsDesktopUser:_CreateProcessAsUser_failed.
call fcn.1003b4c0
pop ecx
jmp 0x1001bac1
cmp dword [ebp + 0x54], ebx
je 0x1001bac1
push 0xffffffffffffffff
push dword [ebp + 0x54]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp + 0x6c]
push eax
push dword [ebp + 0x54]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push dword [ebp + 0x54]
call edi
push dword [ebp + 0x64]
call dword [sym.imp.kernel32.dll_FreeLibrary]
push dword [ebp + 0x68]
call edi
mov eax, dword [ebp + 0x6c]
pop edi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x1001bbe6
Capabilities:
Enumerate process modules
Get process image filename
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x108c]
mov eax, 0x110c
call fcn.10039d10
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x1088], eax
lea eax, [ebp - 0x80]
push eax
push 0x1000
lea eax, [ebp - 0x7c]
push eax
call sub.psapi.dll_EnumProcesses
test eax, eax
je 0x1001bc7c
shr dword [ebp - 0x80], 2
push esi
xor esi, esi
cmp dword [ebp - 0x80], esi
jbe 0x1001bc7b
push edi
push dword [ebp + esi*4 - 0x7c]
push 0
push 0x1f0fff
call dword [sym.imp.kernel32.dll_OpenProcess]
mov edi, eax
push 0x104
lea eax, [ebp + 0xf84]
push eax
push edi
call sub.psapi.dll_GetProcessImageFileNameA
lea eax, [ebp + 0xf84]
push 0x10064aec
push eax
call fcn.1003e120
pop ecx
pop ecx
test eax, eax
je 0x1001bc6d
push 0
push edi
call dword [sym.imp.kernel32.dll_TerminateProcess]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x80]
jb 0x1001bc28
pop edi
pop esi
mov ecx, dword [ebp + 0x1088]
xor ecx, ebp
call fcn.10039bc2
add ebp, 0x108c
leave
ret

Function at 0x1001bd54
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x790], eax
push ebx
push esi
mov esi, dword [ebp + 0x79c]
push edi
mov edi, dword [ebp + 0x7a0]
xor ebx, ebx
xor eax, eax
push 0x7fe
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push ebx
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call fcn.10039d40
mov eax, dword [esi]
add esp, 0xc
push 0x2001f
push edi
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x74], ebx
call fcn.1003b4c0
cmp eax, ebx
jne 0x1001bde4
push 0x400
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1001bdf0
lea ecx, [ebp - 0x80]
call fcn.10016b3c
push edi
mov ecx, esi
call fcn.10016acd
test eax, eax
jmp 0x1001bde7
cmp eax, 2
jne 0x1001bdf0
mov dword [ebp - 0x74], 1
lea ecx, [ebp - 0x80]
call fcn.10016b3c
mov ecx, dword [ebp + 0x790]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0x794
leave
ret
Function at 0x1001c7fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.10039d10
push 0xffffffffffffffff
push 0x100576ac
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push 0x10060258
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1001c8b8
push 0x10060290
lea ecx, [ebp - 0x10]
call fcn.1001060c
and dword [ebp - 4], 0
push 0x100602c8
lea ecx, [ebp - 0x14]
call fcn.10001309
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10001524
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1001c890
call fcn.10001441
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1001c89b
mov eax, dword [esi]
jmp 0x1001c89d
xor eax, eax
push eax
call fcn.1003b4c0
pop ecx
test esi, esi
je 0x1001c9b3
mov ecx, esi
call fcn.10001441
jmp 0x1001c9b3
xor eax, eax
push 0xffe
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
mov dword [ebp - 0x18], 0x800
call fcn.10039d40
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x100602ac
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001c9a8
push str._WebJava_value:
lea ecx, [ebp - 0x14]
call fcn.1001060c
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call fcn.10001309
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.10001524
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1001c937
call fcn.10001441
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1001c942
mov eax, dword [esi]
jmp 0x1001c944
xor eax, eax
push eax
call fcn.1003b4c0
pop ecx
lea eax, [ebp]
mov ecx, 0x10060334
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1001c979
test dx, dx
je 0x1001c975
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1001c979
add ecx, 4
add eax, 4
test dx, dx
jne 0x1001c953
xor eax, eax
jmp 0x1001c97e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1001c99d
push str._System_WebJava_DISABLED
call fcn.1003b4c0
pop ecx
test esi, esi
je 0x1001c998
mov ecx, esi
call fcn.10001441
xor eax, eax
inc eax
jmp 0x1001c9b5
test esi, esi
je 0x1001c9a8
mov ecx, esi
call fcn.10001441
push str._System_WebJava_ENABLED
call fcn.1003b4c0
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.10039bc2
add ebp, 0x1004
leave
ret