joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001900
Capabilities:
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x3004]
mov eax, 0x3004
call fcn.1005e2a0
push 0xffffffffffffffff
push 0x100cae01
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10130aa4]
xor eax, ebp
mov dword [ebp + 0x3000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.100621d0
mov edx, dword [ebx + 4]
lea eax, [ebp]
mov dword [ebp - 0x58], eax
mov ecx, 0x800
lea eax, [ebp + 0x1000]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x4c], eax
add esp, 0xc
mov dword [ebp - 0x54], ecx
lea eax, [ebp + 0x2000]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
test edx, edx
je 0x10001986
mov ecx, dword [edx]
jmp 0x10001988
mov ecx, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1000198b
sub ecx, esi
sar ecx, 1
test edx, edx
je 0x100019a2
mov eax, dword [edx]
jmp 0x100019a4
mov eax, edi
lea edx, [ebp - 0x5c]
push edx
push edi
push ecx
push eax
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
mov ax, word [ebp - 0x44]
lea ecx, [ebp - 0x20]
mov word [ebx + 0x1c], ax
lea eax, [ebp + 0x1000]
push eax
call fcn.10001719
mov edi, eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push 0x100d45ec
call fcn.10001719
mov esi, eax
lea eax, [ebp]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x18]
call fcn.10001719
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.1000182d
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.1000182d
push eax
lea ecx, [ebx + 0x18]
call fcn.10001787
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10001a29
call fcn.10001b13
xor esi, esi
mov dword [ebp - 0x10], esi
jmp 0x10001a2b
xor esi, esi
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10001a3a
call fcn.10001b13
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10001a49
call fcn.10001b13
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10001a58
call fcn.10001b13
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x10001a6b
call fcn.10001b13
mov dword [ebp - 0x20], esi
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebx + 0x14]
call fcn.100017b4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10001ab5
cmp eax, 1
je 0x10001ab5
movzx edx, word [ebp + eax*2 + 0x1ffe]
sub eax, 2
push 0x2f
pop esi
lea ecx, [ebp + 0x2000]
lea ecx, [ecx + eax*2]
cmp word [ecx], si
je 0x10001aa5
dec eax
jmp 0x10001a94
cmp dx, si
je 0x10001abb
lea ecx, [ebp + 0x2002]
lea ecx, [ecx + eax*2]
jmp 0x10001abb
lea ecx, [ebp + 0x2000]
mov eax, ebx
push ecx
lea ecx, [eax + 0xc]
call fcn.100017b4
add ebx, 0x10
cmp dword [ebp - 0x2c], 0
mov ecx, ebx
je 0x10001ad6
push dword [ebp - 0x30]
jmp 0x10001adb
push 0x100d45f4
call fcn.100017b4
cmp dword [ebp - 0x24], 0
je 0x10001af0
push dword [ebp - 0x28]
mov ecx, ebx
call fcn.100017b4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3000]
xor ecx, ebp
call fcn.1005e187
add ebp, 0x3004
leave
ret
Function at 0x1000609b
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x1074
call fcn.1005e2a0
mov eax, dword [0x10130aa4]
xor eax, esp
mov dword [esp + 0x1070], eax
push esi
mov esi, dword [esp + 0x107c]
push edi
mov edi, dword [esp + 0x1084]
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
push 0
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push 0x58
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
call esi
push 0x5a
push dword [esp + 0x1c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
call esi
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x100d8f04]
push 1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm0, dword [0x100d8f28]
cvttss2si eax, xmm0
mov dword [esp + 0xc], eax
imul eax, dword [esp + 0x108c], 0xa
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
divss xmm0, dword [0x100d8f28]
cvttss2si eax, xmm0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DPtoLP]
movd xmm0, dword [esp + 0xc]
mov ecx, 0x800
cvtdq2pd xmm0, xmm0
push ecx
andps xmm0, xmmword [0x100d8f40]
divsd xmm0, qword [0x100d8f10]
addsd xmm0, qword [0x100d8f08]
cvttsd2si eax, xmm0
xorps xmm0, xmm0
neg eax
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x7c]
push eax
push 0x1002
push ecx
movups xmmword [esp + 0x30], xmm0
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push 5
lea eax, [esp + 0x7c]
push 0x100d8594
push eax
call fcn.100c0f6c
test eax, eax
mov ecx, 0x100d85a0
lea eax, [esp + 0x44]
cmovne ecx, edi
push ecx
push 0x20
push eax
call fcn.100c0f6c
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push dword [esp + 0x10]
mov esi, eax
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [esp + 0x1078]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1005e187
add esp, 0x1074
ret 0xc
Function at 0x100101fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x10130aa4]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
movzx eax, word [ebp + 0x1c0]
push esi
mov esi, dword [0x10133c40]
push edi
push 0xf0
push eax
xor edi, edi
mov dword [ebp - 0x58], ecx
push esi
inc edi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x10010347
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x10010347
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10010347
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x10010346
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x5c], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x100102e0
push 3
lea eax, [ebp + 0xb4]
push esi
lea ecx, [ebp + 0xb0]
mov dword [ebp + 0xb0], eax
call fcn.10010fb9
push dword [ebp + 0xb0]
mov eax, dword [ebp - 0x58]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp + 0xb4]
cmove edi, ecx
cmp dword [ebp + 0xb0], eax
je 0x10010337
push dword [ebp + 0xb0]
call fcn.100c0f6c
pop ecx
jmp 0x10010337
mov ecx, 0x1234
cmp cx, ax
jne 0x10010337
or dword [ebp - 0x7c], 0xffffffff
lea eax, [ebp - 0x50]
push 3
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x54], eax
call fcn.10010fb9
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x78], eax
cmp eax, ecx
je 0x1001031a
push eax
call fcn.100c0f6c
pop ecx
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x58]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x10010344
add esi, dword [ebp - 0x5c]
test edi, edi
jne 0x10010261
jmp 0x10010346
xor edi, edi
pop ebx
mov ecx, dword [ebp + 0x1b4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1005e187
add ebp, 0x1b8
leave
ret 4
Function at 0x10010362
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x4a8
mov eax, dword [0x10130aa4]
xor eax, esp
mov dword [esp + 0x4a4], eax
push ebx
mov ebx, dword [esp + 0x4b0]
lea eax, [esp + 0x2a0]
push ebp
push esi
mov esi, dword [esp + 0x4bc]
mov ebp, 0x208
push edi
push ebp
push 0
push eax
call fcn.100621d0
push ebp
lea eax, [esp + 0xb4]
push 0
push eax
call fcn.100621d0
push 0x44
pop edi
push edi
lea eax, [esp + 0x7c]
push 0
push eax
call fcn.100621d0
push ebx
lea eax, [esp + 0x2d4]
mov dword [esp + 0x88], edi
push ebp
push eax
call fcn.10011ecc
push esi
push ebx
push str._s__s
lea eax, [esp + 0xe0]
push ebp
push eax
call fcn.10011ecc
add esp, 0x44
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
lea eax, [esp + 0x64]
push eax
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0x2d0]
push eax
call fcn.100c0f6c
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
add esp, 0x28
test eax, eax
jne 0x100104a3
call edi
mov esi, eax
cmp esi, 0x2e4
jne 0x1001049c
lea eax, [esp + 0xa4]
mov dword [esp + 0x24], 0x3c
xorps xmm0, xmm0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x24]
movlpd qword [esp + 0x48], xmm0
push eax
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], 0x100dafbc
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], 5
mov dword [esp + 0x48], ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x100104d4
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x100104d4
mov dword [esp + 0x14], eax
jmp 0x100104a7
call fcn.100c0f6c
jmp 0x100104d4
mov eax, dword [esp + 0x14]
push eax
call fcn.10004dd9
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
test eax, eax
je 0x100104c6
mov esi, dword [esp + 0x10]
jmp 0x100104ca
call edi
mov esi, eax
push dword [esp + 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call fcn.100c0f6c
pop ecx
mov ecx, dword [esp + 0x4b4]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005e187
add esp, 0x4a8
ret
Function at 0x10011d83
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1fac]
mov eax, 0x202c
call fcn.1005e2a0
mov eax, dword [0x10130aa4]
xor eax, ebp
mov dword [ebp + 0x1fa8], eax
push ebx
push esi
mov esi, dword [ebp + 0x1fb4]
lea eax, [ebp - 0x60]
push edi
mov ebx, 0x1000
xor edi, edi
push ebx
push edi
push eax
call fcn.100621d0
push ebx
lea eax, [ebp + 0xfa0]
push edi
push eax
call fcn.100621d0
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
push 0x800
call dword [sym.imp.kernel32.dll_GetTempPathW]
push 3
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x1fa0]
push 4
push eax
call fcn.100c0f6c
lea eax, [ebp + 0x1fa0]
push eax
call fcn.100c0f6c
add esp, 0x14
cmp eax, 0x64
jae 0x10011e36
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x80], vtable.ATL::CSimpleDialog_110__1_.0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x80]
call fcn.1001018d
cmp dword [ebp - 0x6c], edi
je 0x10011ea9
push dword [ebp - 0x6c]
call fcn.100c0f6c
jmp 0x10011ea9
lea eax, [ebp + 0xfa0]
push eax
push edi
push 0x100dafc0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
je 0x10011ea4
lea ecx, [ebp + 0xfa0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10011e5a
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 8]
cmp ecx, ebx
jae 0x10011ec6
xor eax, eax
mov word [ebp + ecx + 0xfa0], ax
lea eax, [ebp + 0xfa0]
push eax
push str._s.exe
push ebx
push esi
call fcn.10011ecc
push edi
push esi
call fcn.100c0f6c
add esp, 0x18
cmp eax, 0xffffffff
jne 0x10011e36
xor eax, eax
jmp 0x10011eae
call fcn.100c0f6c
mov eax, 0x80004005
mov ecx, dword [ebp + 0x1fa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e187
add ebp, 0x1fac
leave
ret
call fcn.100c0f6c
int3

Function at 0x10013c6e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x10130aa4]
xor eax, ebp
mov dword [ebp + 0x790], eax
push esi
lea eax, [ebp - 0x74]
xor esi, esi
push eax
push 0x20019
push esi
push 0x100dae98
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10013ce0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x800
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push str.Allow_Unsigned_Installers
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10013ce0
xor eax, eax
inc eax
jmp 0x10013d0b
push str.TOOLKIT_ALLOW_UNSIGNED
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.100c0f6c
add esp, 0xc
test eax, eax
jne 0x10013d09
cmp dword [ebp - 0x78], eax
je 0x10013d09
push dword [ebp - 0x78]
call fcn.100c0f6c
pop ecx
jmp 0x10013cdb
xor eax, eax
mov ecx, dword [ebp + 0x790]
xor ecx, ebp
pop esi
call fcn.1005e187
add ebp, 0x794
leave
ret
Function at 0x10015b38
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x3844
call fcn.1005e2a0
mov eax, dword [0x10130aa4]
xor eax, esp
mov dword [esp + 0x3840], eax
cmp dword [0x1013346c], 0
je 0x10015d21
push ebx
push ebp
push edi
mov ebx, 0x1000
lea eax, [esp + 0x184c]
push ebx
xor ebp, ebp
push ebp
push eax
call fcn.100621d0
push ebx
lea eax, [esp + 0x285c]
push ebp
push eax
call fcn.100621d0
mov ebx, 0x800
lea eax, [esp + 0x64]
push ebx
push ebp
push eax
call fcn.100621d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x38]
add esp, 0x24
mov dword [esp + 0xc], ebx
push eax
push 0x20019
push ebp
push 0x100da9f8
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x10015d1e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0xc]
push esi
push eax
lea eax, [esp + 0x1854]
push eax
push ebp
push ebp
push 0x100daa50
push dword [esp + 0x2c]
call ebx
mov esi, eax
lea eax, [esp + 0x1850]
push eax
push 0x100daa70
push 0x100da9ec
lea eax, [esp + 0x285c]
push 0x1000
push eax
call fcn.10011ecc
add esp, 0x14
test esi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x10015d17
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebp
lea eax, [esp + 0x285c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x10015d17
lea eax, [esp + 0x10]
mov edi, 0x800
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x14], edi
push eax
push ebp
push ebp
push 0x100daac8
push dword [esp + 0x30]
call ebx
test eax, eax
jne 0x10015d17
mov ebx, 0x1000
lea eax, [esp + 0x850]
push ebx
push ebp
push eax
call fcn.100621d0
lea eax, [esp + 0x5c]
push eax
push str._slib_bundles
lea eax, [esp + 0x864]
push ebx
push eax
call fcn.10011ecc
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x870]
push eax
call fcn.100c0f6c
add esp, 0x24
test eax, eax
jne 0x10015d11
push str._requested.list
lea eax, [esp + 0x854]
mov dword [esp + 0x18], ebp
push edi
push eax
call fcn.100c0f6c
push 0x100dab1c
lea eax, [esp + 0x860]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.100c0f6c
add esp, 0x18
test eax, eax
jne 0x10015d11
mov edx, dword [0x1013346c]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x10015ce9
push dword [esp + 0x14]
sub ecx, edi
sar ecx, 1
push ecx
push 2
push edx
call fcn.100c0f6c
push dword [esp + 0x24]
call fcn.100c0f6c
add esp, 0x14
push dword [esp + 0x18]
call esi
push dword [esp + 0x18]
call esi
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3840]
xor ecx, esp
call fcn.1005e187
add esp, 0x3844
ret
Function at 0x10017e54
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x220
mov eax, dword [0x10130aa4]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x228]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ebp
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.100c0f6c
mov esi, eax
test esi, esi
jne 0x10017f33
lea eax, [esp + 0x20]
mov dword [esp + 0x18], pe_nt_image_headers32
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebp
test eax, eax
jne 0x10017f0b
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.10017e54
mov esi, eax
test esi, esi
jne 0x10017f33
lea eax, [esp + 0x20]
mov dword [esp + 0x18], pe_nt_image_headers32
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call ebp
test eax, eax
je 0x10017ed0
jmp 0x10017f0d
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x10017f22
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.100176df
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x10017f44
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005e187
add esp, 0x220
ret 4
Function at 0x10018198
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x100cc73f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10130aa4]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
xor ebx, ebx
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x10018233
push 2
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x10018233
call fcn.10004bd9
mov esi, eax
jmp 0x100182ff
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10018250
call fcn.10004bd9
jmp 0x100182f2
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10018246
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x18], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001827a
mov esi, 0x8007000e
jmp 0x100182f4
push 2
push eax
mov byte [ebp - 4], 2
call fcn.100c0f6c
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x1001829a
push eax
lea ecx, [ebp]
call fcn.100173ba
jmp 0x100182b0
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x100182b0
cmp dword [ebp], 0
mov dword [ebp - 4], 1
je 0x10018273
push esi
push dword [ebp]
push esi
push dword [ebp - 0x14]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x10018246
mov eax, dword [ebp]
xor edx, edx
push dword [ebp + 0x41c]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x24]
push dword [ebp]
call fcn.10018069
mov esi, eax
test edi, edi
je 0x100182ff
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1001830f
lea ecx, [ebp]
call fcn.1001784e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.1005e187
add ebp, 0x408
leave
ret 0x10
Function at 0x100189eb
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x10018a05
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10018a15
push 0xd
pop eax
jmp 0x10018a5a
push esi
push edi
xor eax, eax
mov edi, edx
mov dword [esp + 0x14], eax
mov esi, eax
push ebp
mov ecx, edi
lea ebp, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x18]
jne 0x10018a27
sub ecx, ebp
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10018a22
pop ebp
push esi
push edx
push 7
xor eax, eax
push eax
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x10018a5e
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x10018a6e
push 0xd
pop eax
jmp 0x10018aa2
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10018a77
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [esp + 0x20]
push ebx
push dword [esp + 0x20]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
ret 0xc

Function at 0x1001ac28
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
shr eax, 4
and eax, 1
ret
Function at 0x1001dc20
Capabilities:
Delete directory

Disassembly:
push 0x10
mov eax, 0x100ccef3
call fcn.1005e1c7
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str.SunJavaDeployment
call fcn.10001719
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.1000182d
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1001dc65
call fcn.10001b13
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001dc70
mov eax, dword [eax]
jmp 0x1001dc72
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x1001dd94
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001dc8c
mov eax, dword [eax]
jmp 0x1001dc8e
xor eax, eax
mov ebx, dword [sym.imp.kernel32.dll_RemoveDirectoryW]
push eax
call ebx
push str.SunJava
lea ecx, [ebp - 0x18]
call fcn.10001719
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001dcb6
lock inc dword [eax + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001787
mov esi, dword [ebp - 0x14]
or edi, 0xffffffff
test esi, esi
je 0x1001dcfa
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x1001dcfa
mov ecx, esi
call fcn.10001b86
push 0xc
push esi
call fcn.100c0f6c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1001dd0a
call fcn.10001b13
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001dd15
mov eax, dword [eax]
jmp 0x1001dd17
xor eax, eax
push eax
call ebx
push str.Sun
lea ecx, [ebp - 0x18]
call fcn.10001719
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 7
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001dd39
lock inc dword [eax + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 2
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001787
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1001dd78
lock xadd dword [esi + 8], edi
dec edi
jne 0x1001dd78
mov ecx, esi
call fcn.10001b86
push 0xc
push esi
call fcn.100c0f6c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1001dd84
call fcn.10001b13
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001dd8f
mov eax, dword [eax]
jmp 0x1001dd91
xor eax, eax
push eax
call ebx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1001dda4
call fcn.10001b13
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1001ddb0
call fcn.10001b13
call fcn.1005e195
ret