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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10084040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1005f850
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c1ab
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1005f88c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1005f88c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c1ab
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1005f963
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1005f8b4
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 0x1005f8c0
movsx eax, bl
jmp 0x1005f8f8
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 0x1005f922
sub eax, 1
je 0x1005f922
sub eax, 2
jne 0x1005f963
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
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c1ab
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1005f940
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 0x1005f963
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c1ab
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.1006c1ab
mov esp, ebp
pop ebp
ret 4
Function at 0x10060610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10084040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100606cc
cmp byte [esi + 0x3d], 0
je 0x100606cc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100606ba
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 0x10060681
sub eax, 1
je 0x10060685
sub eax, 2
jne 0x100606ba
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c1ab
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100606a3
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 0x100606ba
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c1ab
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c1ab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1006c1ab
mov esp, ebp
pop ebp
ret
Function at 0x10064060
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f67f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
push esi
push edi
mov eax, dword [0x10084040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea esi, [eax + 0x18]
mov dword [ebp - 4], 0
add ecx, 0x18
push esi
mov dword [ebp - 0x18], ecx
call fcn.10046a10
push 0x10
mov byte [ebp - 4], 1
call fcn.1006c299
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x18]
push 0x48
call fcn.1006c299
add esp, 8
mov dword [edi + 4], eax
mov byte [ebp - 4], 3
mov ecx, edi
push esi
mov dword [edi + 0xc], 0
call fcn.10065920
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x1006bc47
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1006bc6e
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1006bc71
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1006bc23
pop esi
leave
ret 8
Function at 0x401132
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1038
call fcn.00407360
mov eax, dword [0x412014]
xor eax, esp
mov dword [esp + 0x1034], eax
push ebx
push ebp
xor eax, eax
lea ecx, [esp + 0xc]
push esi
push edi
push 0x20019
push 0x409324
mov ebp, eax
mov dword [esp + 0x1c], eax
mov ebx, eax
mov dword [esp + 0x20], eax
mov edi, eax
mov dword [esp + 0x24], eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
call fcn.00402e16
mov esi, eax
test esi, esi
jne 0x4012d2
mov ebp, 0x20019
lea ecx, [esp + 0x38]
push ebp
push 0x409338
push dword [esp + 0x1c]
call fcn.00402e16
mov esi, eax
test esi, esi
jne 0x4012ce
push ebp
mov ebp, dword [esp + 0x3c]
lea ecx, [esp + 0x30]
push 0x40934c
push ebp
call fcn.00402e16
mov esi, eax
test esi, esi
jne 0x4012c8
mov ebx, 0x800
push ebx
push eax
lea eax, [esp + 0x4c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push ebx
mov ebx, dword [esp + 0x30]
push eax
push esi
jmp 0x40126d
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x44]
inc esi
mov ecx, str.11.381.2
mov dword [esp + 0x10], esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401245
test dx, dx
je 0x401241
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401245
add eax, 4
add ecx, 4
test dx, dx
jne 0x40121f
xor eax, eax
jmp 0x40124a
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [esp + 0x44]
je 0x40127c
push 0x800
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push 0x800
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
je 0x40120d
jmp 0x4012d2
push 0x2001f
push eax
push ebx
lea ecx, [esp + 0x2c]
call fcn.00402e16
mov edi, dword [esp + 0x20]
mov esi, eax
test esi, esi
jne 0x4012d2
mov eax, dword [esp + 0x104c]
push 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 4
push esi
push str.UseNewJavaPlugin
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x4012e1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
jmp 0x4012d2
mov ebx, dword [esp + 0x2c]
jmp 0x4012d2
mov ebp, dword [esp + 0x38]
test edi, edi
je 0x4012e1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x4012e7
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4012ee
push ebx
call edi
test ebp, ebp
je 0x4012f5
push ebp
call edi
cmp dword [esp + 0x14], 0
je 0x401302
push dword [esp + 0x14]
call edi
mov ecx, dword [esp + 0x1044]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040728f
add esp, 0x1038
ret
Function at 0x4030ca
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x220
mov eax, dword [0x412014]
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.00402e16
mov esi, eax
test esi, esi
jne 0x4031a9
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
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 0x403181
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004030ca
mov esi, eax
test esi, esi
jne 0x4031a9
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
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 0x403146
jmp 0x403183
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x403198
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.00402a36
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x4031ba
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.0040728f
add esp, 0x220
ret 4
Function at 0x40340e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x40892c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x412014]
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 0x4034a9
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 0x4034a9
call fcn.004028c1
mov esi, eax
jmp 0x403575
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4034c6
call fcn.004028c1
jmp 0x403568
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4034bc
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 0x4034f0
mov esi, 0x8007000e
jmp 0x40356a
push 2
push eax
mov byte [ebp - 4], 2
call fcn.00401e84
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x403510
push eax
lea ecx, [ebp]
call fcn.0040277f
jmp 0x403526
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x403526
cmp dword [ebp], 0
mov dword [ebp - 4], 1
je 0x4034e9
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 0x4034bc
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.004032df
mov esi, eax
test edi, edi
je 0x403575
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x403585
lea ecx, [ebp]
call fcn.00402b50
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.0040728f
add ebp, 0x408
leave
ret 0x10
Function at 0x403c8b
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 0x403ca5
Capabilities:
Set registry value

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

Function at 0x403cfe
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x403d0e
push 0xd
pop eax
jmp 0x403d42
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 0x403d17
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 0x404655
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x412014]
xor eax, ebp
mov dword [ebp + 0x9c], eax
cmp dword [0x4122c8], 0
je 0x404680
mov eax, dword [0x4122cc]
jmp 0x4046db
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x80], 0x11c
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x70], 2
jne 0x4046cd
cmp dword [ebp - 0x7c], 6
jne 0x4046cd
cmp dword [ebp - 0x78], esi
jne 0x4046cd
cmp byte [ebp + 0x9a], al
jne 0x4046cd
cmp word [ebp + 0x94], si
jne 0x4046cd
mov esi, eax
mov dword [0x4122c8], eax
mov eax, esi
mov dword [0x4122cc], esi
pop esi
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0040728f
add ebp, 0xa0
leave
ret
Function at 0x404ab6
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x408a28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x412014]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x214]
xor eax, eax
xor esi, esi
mov dword [ebp - 4], esi
mov word [ebx], ax
lea eax, [ebp]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
js 0x404ba3
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.004020a5
mov eax, dword [eax]
test eax, eax
je 0x404b2f
mov esi, dword [eax]
push 0x104
push esi
push dword [ebp + 0x218]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x404b79
call fcn.00403b54
jmp 0x404b79
xor eax, eax
test edi, edi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040728f
add ebp, 0x20c
leave
ret
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.00406c7f
pop ecx
pop ecx
push esi
push edi
call fcn.004080c0
int3

Function at 0x404bbd
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x408a52
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x412014]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x214]
xor eax, eax
xor esi, esi
mov dword [ebp - 4], esi
mov word [ebx], ax
lea eax, [ebp]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
js 0x404caa
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.004020a5
mov eax, dword [eax]
test eax, eax
je 0x404c36
mov esi, dword [eax]
push 0x104
push esi
push dword [ebp + 0x218]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x404c80
call fcn.00403b54
jmp 0x404c80
xor eax, eax
test edi, edi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040728f
add ebp, 0x20c
leave
ret
push edi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.00406c7f
pop ecx
pop ecx
push esi
push edi
call fcn.004080c0
int3
Function at 0x40548a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x412014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov ebx, 0x208
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
mov edi, 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x405510
cmp eax, edi
ja 0x405510
push ebx
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x40c01c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x405512
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040728f
leave
ret

Function at 0x4055b2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x14]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
xor edi, edi
lea eax, [ebp - 4]
inc edi
push eax
push 0x2000000
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40564a
cmp dword [ebp + 8], ebx
je 0x40564a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x8000008
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x40564a
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
jmp 0x40564c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4059ea
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x405a0e
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x40c500
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
ret
Function at 0x40673d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x408ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x412014]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x40c53c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
add esp, 0xc
test eax, eax
jne 0x40684e
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [0x4122a0], 0
pop ecx
je 0x4067ae
xor eax, eax
inc eax
jmp 0x406850
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x40684e
test eax, eax
je 0x40684e
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.004020a5
xor edi, edi
lea ecx, [ebp - 0x14]
push str.JavaDeployReg.log
mov dword [ebp - 4], edi
call fcn.004020a5
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.0040217b
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x406808
call fcn.00403b54
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x406811
mov edi, dword [esi]
push 0x40c644
push edi
push 0x4122a0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
neg eax
sbb edi, edi
test esi, esi
je 0x406849
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x406849
mov ecx, esi
call fcn.00404343
push 0xc
push esi
call fcn.00406e25
pop ecx
pop ecx
lea eax, [edi + 1]
jmp 0x406850
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040728f
add ebp, 0x20c
leave
ret