joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100138b7
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x1002ca54]
add eax, 0xfffff2a7
mov dword [0x1002ca54], eax
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [0x1002ca58], 0x1944
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1002ca54], 0x2173
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
jmp 0x1001393a
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
jl 0x1001393a
jmp 0x10013950
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x100139d8
jmp 0x10013a24
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
jne 0x10013909
mov eax, dword [ebp - 0x24]
mov dword [0x1002ca58], 0x1341
mov dword [0x1002ca54], 0x356f
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
jne 0x10013a24
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10013a24
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10013a24
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff6
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2], 0x64
jne 0x10013a24
mov dword [0x1002ca54], 0x8c1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10013922
jmp 0x10013a24
mov eax, 0xb8a
mov ecx, 0x23bc
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov di, word [edx + esi*2 - 0xe]
cmp di, 0x6c
sete bl
cmp di, 0x6c
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
je 0x10013a0b
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [0x1002ca54], eax
mov cl, byte [ebp - 0x2d]
and cl, 1
movzx eax, cl
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4037f0
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
adc cl, dl
mov edx, dword [ebp - 0x3c]
push edx
mov edx, dword [ebp - 0x34]
push edi
push edx
push ebx
lcall 0xe8fc, 0x4d89af45
mov edx, 0x6f00007d
dec ebp
js 0x403805
enter 0x45d4, 0x66
adc al, 0xc2
push eax
mov eax, dword [0x5cf417f0]
push ecx
mov ebx, dword [ebp - 0x28]
test al, 0x55
rol bl, 1
jge 0x4037c4
jne 0x4037bd
sub edi, ecx
mov edx, dword [0x50d71bdc]
in eax, dx
fst dword [eax + 0x50]
mov eax, dword [0x410ba8]
push eax
push 0x7440e085
test eax, esp
inc eax
je 0x403809
call esi
salc
mov ecx, dword [ebp + 0x60]
mov esi, dword [ecx]
call 0xbd42e4b6
in eax, 0xe0
cmp eax, 0x1f4117f0
sub dword [esi + 0x30], 0x51
mov ebp, dword [ecx - 0x20]
push edx
xor bl, byte [ecx + 0x458b50f3]
in al, 0x50
push ecx
call 0x86b590
or al, 0x8b
push ebp
fcom qword [eax + 0x1d]
test al, 0xb
inc ecx
add byte [edi + 0x52], dl
push ebx
inc edi
push edi
push eax
push 0x40dfaa
pop eax
salc
add esp, 0x30
push str.__table__n
call esi
and eax, esp
add al, 0xff
pop esi
pop ebx
mov esp, ebp
jns 0x403820
sbb byte [eax - 0x1374aaff], dl

Function at 0x406840
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xab000283
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 4]
sbb dword [ebp - 1], 0xf
test byte [eax + edx + 0x4b6d0000], dl
cmp edi, dword [edx]
leave
je 0x4069ef
mov eax, eax
or al, 0x8b
dec esi
adc al, 0x8d
dec eax
xchg ecx, eax
push ecx
push edx
push eax
mov ebx, 0x69c1a415
add byte [ebx - 0x7a8c0008], al
aaa
add dword [eax], eax
fisttp word [edx + 0x35]
inc cl
inc eax
add bh, bh
salc
test eax, eax
je 0x40698a
pop eax
salc
add eax, 0xafcfc
cmp eax, 0xb23b3
jne 0x4069f4
jp 0x406920
and byte [esi - 0x7774db8d], bl
or esi, ebp
jne 0x4068bd
pop edi
pop esi
mov eax, 0x6423b4
pop ebx
mov ecx, dword [ebx + 0x28c25d]
mov ecx, edi
add al, 0x83
add dword [eax], esp
add byte [ebp - 0xb7a760a], al
std
insb byte es:[edi], dx
dec edx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x7c0001a4], eax
invalid
invalid
add byte [edx + 0x41], ch
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
push ds
hlt
pop edi
pop esi
xor eax, eax
jnp 0x40691b
in eax, 0x5d
ret 0x8d08
mov eax, 0xc309e0ef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408a80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
imul eax, dword [ebp + 8], 0x1b
cwde
adc eax, 0x88c114
mov eax, esp
add al, 0x85
sal byte [ebx + edx - 0x75], 0x4d
adc byte [ebx + 0x5106d178], cl
push edx
call fcn.00408780
add esp, 0xc
cmp al, 0x5e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0x87f905
xchg ebx, eax
push ecx
xlatb
invalid

Function at 0x408ac0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
dec ebp
or al, 0xfe
test byte [0xf8918910], dh
mov ecx, dword [ebp + 8]
push 0
mov eax, dword [esi]
push 0
lea edx, [ebp - 0x7d]
mov dword [ebp - 0xc], eax
jecxz 0x408ae1
push edx
mov edx, dword [ecx + 4]
lea eax, [ebp - 0xc]
nop
popfd
daa
push edx
invalid
Function at 0x100576e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001b20
call fcn.010058f0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10057a9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10057a9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10057c1
cmp eax, 0x20b
je 0x10057ae
mov dword [ebp - 0x1c], edi
jmp 0x10057d5
cmp dword [ecx + 0x84], 0xe
jbe 0x10057a9
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10057cf
cmp dword [ecx + 0x74], 0xe
jbe 0x10057a9
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1007d7c], 0xffffffff
or dword [0x1007d80], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1007d78]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1007d74]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1007d84], eax
call fcn.01005a94
cmp dword [0x1007050], edi
jne 0x1005830
push fcn.01005a94
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01005a7d
push 0x1007010
push 0x100700c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1007d70]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1007d6c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1007008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01004146
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x10058a7
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10058dc
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100592b
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x392b5bef
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..rsrc
mov ebx, 0x42f314
nop
nop
mov ecx, 0x6ec83fc3
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10520c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10520ca
pushal
call 0x10520d0
pop ebp
sub ebp, 0x10
sub ebp, 0xc520c0
jmp 0x10520e6
mov eax, 0xc520c0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c6
mov edx, 0x8e641112
xor byte [eax], dl
inc eax
dec ecx
jne 0x10520fd
jmp 0x1052110
cdq
fistp word [ecx + 0x12122e9b]
adc dl, byte [ebx + 0x1212ead3]
adc dl, byte [ecx]
fild qword [edx + 0x12121214]
test al, 0x3a
adc dl, byte [edx]
adc ah, ch
invalid
Function at 0x40fa70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, 1
je 0x40fa90
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.004391d0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov ecx, dword [eax + ecx*4 + 0xc]
push ebp
call fcn.00407c20

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

Disassembly:
push 0xffffffffffffffff
push 0x43bd73
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4d0d8c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
push 1
lea ecx, [esp + 0xc]
push ecx
push ecx
mov byte [esp + 0x18], 0x26
mov edx, dword [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x18], 0x445cec
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
lea ecx, [esp + 0x38]
call dword [sym.imp.QtCore4.dll_public:_class_QString____thiscall_QString::replace_class_QChar__class_QLatin1String_const___enum_Qt::CaseSensitivity_]
mov esi, dword [esp + 0x28]
push eax
mov ecx, esi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], 1
mov byte [esp + 0x20], 0
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x410458
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 8
Function at 0x10007ac9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10038540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
or ebx, 0xffffffff
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x10007aec
xor eax, eax
jmp 0x10007bb7
push esi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x10007b21
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp eax, esi
jae 0x10007b21
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov ecx, dword [ebp + 8]
mov byte [eax], cl
mov eax, ecx
jmp 0x10007bb6
cmp dword [edi + 0x4c], 0
je 0x10007bb4
mov ecx, edi
call fcn.10007819
mov ecx, dword [edi + 0x38]
mov al, byte [ebp + 8]
test ecx, ecx
jne 0x10007b4b
push dword [edi + 0x4c]
push eax
call fcn.10006acc
pop ecx
pop ecx
test al, al
jmp 0x10007bb0
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 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 0x10007b88
sub eax, 1
je 0x10007b88
dec eax
sub eax, 1
jne 0x10007bb4
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x10007b40
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x10007ba6
push dword [edi + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x10007bb4
lea eax, [ebp - 0x28]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x30], eax
cmovne ebx, dword [ebp + 8]
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100111d2
leave
ret 4
Function at 0x1000803e
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
test ebp, ebp
jg 0x10008063
jl 0x1000805a
test ebx, ebx
jne 0x10008063
xor eax, eax
xor edx, edx
jmp 0x1000812f
cmp dword [esi + 0x38], 0
je 0x1000807a
push ebp
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x1000812f
push edi
mov edi, ebx
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x100080c0
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov esi, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
mov edi, dword [esp + 0x18]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add edi, esi
add esp, 0xc
mov dword [esp + 0x18], edi
mov edi, ebx
sub edi, esi
push esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
jmp 0x100080c8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x4c], 0
mov ecx, edi
je 0x10008125
mov ecx, esi
call fcn.10007819
mov edx, dword [esp + 0x18]
mov ecx, edi
jmp 0x10008104
push dword [esi + 0x4c]
push eax
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [esp + 0x28]
sub edi, eax
add edx, eax
add esp, 0x10
mov dword [esp + 0x18], edx
mov ecx, edi
cmp eax, 0xfff
jne 0x10008136
mov eax, 0xfff
cmp edi, eax
ja 0x100080df
test ecx, ecx
je 0x10008125
push dword [esi + 0x4c]
push edi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
add esp, 0x10
sub ecx, eax
sub ebx, ecx
sbb ebp, 0
mov eax, ebx
mov edx, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
sub ebx, edi
jmp 0x10008127
Function at 0x1000813a
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000815d
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
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 0x10008216
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov ebp, eax
mov eax, edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x10], eax
test edi, edi
jl 0x100081de
jg 0x1000818c
test esi, esi
je 0x100081de
test eax, eax
jl 0x100081d8
jg 0x10008196
test ebp, ebp
je 0x100081d8
cmp edi, eax
jg 0x100081aa
jl 0x100081a0
cmp esi, ebp
jae 0x100081aa
mov ebp, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push ebp
mov ebp, dword [esp + 0x24]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x30]
add esp, 0xc
add ebp, eax
mov ecx, ebx
sub esi, eax
sbb edi, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
jmp 0x100081e2
mov ebp, dword [esp + 0x20]
jmp 0x100081ec
mov ebp, dword [esp + 0x20]
test edi, edi
jl 0x10008207
jg 0x100081ec
test esi, esi
je 0x10008207
cmp dword [ebx + 0x4c], 0
je 0x10008207
push dword [ebx + 0x4c]
push esi
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x1000b3d6
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x10013ae5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10038540]
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 edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x1000b4c9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000d249
mov ecx, dword [eax]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1000b455
call fcn.1000d419
mov ebx, eax
push 0x104
push ebx
push dword [ebp + 0x218]
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000b49f
call fcn.1000d608
jmp 0x1000b49f
xor eax, eax
test esi, esi
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.100111d2
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.1000faa8
pop ecx
pop ecx
push ebx
push esi
call fcn.10012c4f
int3

Function at 0x1000b4de
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x10013b1c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10038540]
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 edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x1000b5d1
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000d249
mov ecx, dword [eax]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1000b55d
call fcn.1000d419
mov ebx, eax
push 0x104
push ebx
push dword [ebp + 0x218]
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000b5a7
call fcn.1000d608
jmp 0x1000b5a7
xor eax, eax
test esi, esi
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.100111d2
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.1000faa8
pop ecx
pop ecx
push ebx
push esi
call fcn.10012c4f
int3

Function at 0x1000c2a7
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x1000c2cb
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
ret
Function at 0x1000cfaa
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x10013baf
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10038540]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10028840
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__dupenv_s]
add esp, 0xc
test eax, eax
jne 0x1000d0a9
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [0x10038cf4], 0
pop ecx
je 0x1000d01c
xor eax, eax
inc eax
jmp 0x1000d0ab
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
cmp eax, esi
ja 0x1000d0a9
test eax, eax
je 0x1000d0a9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000d1fe
xor ebx, ebx
lea ecx, [ebp - 0x10]
push str.JavaDeployReg.log
mov dword [ebp - 4], ebx
call fcn.1000d1fe
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.1000d2a7
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
test ecx, ecx
je 0x1000d071
call fcn.1000d608
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000d081
mov ecx, esi
call fcn.1000d419
mov ebx, eax
push 0x1002886c
push ebx
push 0x10038cf4
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
neg eax
sbb edi, edi
test esi, esi
je 0x1000d0a4
mov ecx, esi
call fcn.1000d608
lea eax, [edi + 1]
jmp 0x1000d0ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.100111d2
add ebp, 0x108
leave
ret