joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408121
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x408167
call fcn.004093c1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x408167
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4081aa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x408193
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x408193
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4081a7
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x409a50
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x409a7e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x409a9c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004099ba
jmp 0x409a9c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x409a9c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004099ba
test edi, edi
mov eax, edi
jne 0x409a86
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x447c5c]
test ecx, ecx
je 0x409b5f
jmp 0x409a4f
ret 8

Function at 0x410161
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4101a4
call fcn.004093c1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4101a4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4101bf
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040fd1b
test ebx, ebx
mov esi, eax
je 0x4101bd
test edi, edi
je 0x4101bd
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x420ff2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44673c]
jne 0x420ffc
repz ret
jmp fcn.00427d5c
Function at 0x424b56
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4468e0]
je 0x424b71
inc edi
cmp edi, 0x17
jb 0x424b62
cmp edi, 0x17
jae 0x424cf1
push ebp
push 3
call fcn.0042d2d3
cmp eax, 1
pop ecx
je 0x424cbd
push 3
call fcn.0042d2d3
test eax, eax
pop ecx
jne 0x424ba5
cmp dword [0x446718], 1
je 0x424cbd
cmp ebx, 0xfc
je 0x424cf0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x449b88
push ebp
call fcn.00426415
add esp, 0xc
test eax, eax
je 0x424bdb
push esi
push esi
push esi
push esi
push esi
call fcn.00420ab1
add esp, 0x14
push 0x104
mov esi, 0x449ba1
push esi
push 0
mov byte [0x449ca5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x424c1f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00426415
add esp, 0xc
test eax, eax
je 0x424c1f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00420ab1
add esp, 0x14
push esi
call fcn.004212a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x424c64
push esi
call fcn.004212a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x449e9c
push 0x43b084
sub ecx, eax
push ecx
push eax
call fcn.0042d220
add esp, 0x14
test eax, eax
je 0x424c64
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00420ab1
add esp, 0x14
jmp 0x424c66
xor esi, esi
push 0x43b080
push ebx
push ebp
call fcn.0042d1af
add esp, 0xc
test eax, eax
je 0x424c86
push esi
push esi
push esi
push esi
push esi
call fcn.00420ab1
add esp, 0x14
push dword [edi*8 + 0x4468e4]
push ebx
push ebp
call fcn.0042d1af
add esp, 0xc
test eax, eax
je 0x424ca8
push esi
push esi
push esi
push esi
push esi
call fcn.00420ab1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042cff2
add esp, 0xc
jmp 0x424cf0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x424cf0
cmp ebp, 0xffffffff
je 0x424cf0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4468e4]
push dword [esi]
call fcn.004212a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42cff2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00425706
xor ebx, ebx
cmp dword [0x44a680], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42d0c8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42d1a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42d1a8
push eax
call fcn.00425698
mov dword [esp], 0x43b2c4
push edi
mov dword [0x44a680], eax
call esi
push eax
call fcn.00425698
mov dword [esp], 0x43b2b0
push edi
mov dword [0x44a684], eax
call esi
push eax
call fcn.00425698
mov dword [0x44a688], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004217b4
test eax, eax
pop ecx
pop ecx
je 0x42d096
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00420ab1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42d0c8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00425698
cmp eax, ebx
pop ecx
mov dword [0x44a690], eax
je 0x42d0c8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00425698
pop ecx
mov dword [0x44a68c], eax
mov eax, dword [0x44a68c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42d14d
cmp dword [0x44a690], ecx
je 0x42d14d
push eax
call fcn.0042570f
push dword [0x44a690]
mov esi, eax
call fcn.0042570f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42d14d
cmp edi, ebx
je 0x42d14d
call esi
cmp eax, ebx
je 0x42d11a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42d11a
test byte [ebp - 0x18], 1
jne 0x42d14d
lea eax, [ebp - 0x10]
push eax
call fcn.004217eb
test eax, eax
pop ecx
je 0x42d135
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00420ab1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42d144
or dword [ebp + 0x10], 0x200000
jmp 0x42d188
or dword [ebp + 0x10], 0x40000
jmp 0x42d188
mov eax, dword [0x44a684]
cmp eax, dword [ebp - 8]
je 0x42d188
push eax
call fcn.0042570f
cmp eax, ebx
pop ecx
je 0x42d188
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42d188
mov eax, dword [0x44a688]
cmp eax, dword [ebp - 8]
je 0x42d188
push eax
call fcn.0042570f
cmp eax, ebx
pop ecx
je 0x42d188
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44a680]
call fcn.0042570f
cmp eax, ebx
pop ecx
je 0x42d1a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42d1aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x434b14
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44673c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00434aa9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00421d40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x434b63
cmp dword [ebp - 0x1c], 5
jb 0x434b7b
jmp 0x434b77
cmp dword [ebp - 0x10], 1
jne 0x434b7b
cmp dword [ebp - 0x1c], 4
ja 0x434b77
jne 0x434b7b
cmp dword [ebp - 0x18], 0
jbe 0x434b7b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43cc88
call fcn.0043499a
test eax, eax
jge 0x434b9c
mov byte [0x447bf0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00420ff2
add ebp, 0x78
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x77ae51c0
nop
nop
nop
nop
test eax, eax
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x14d66cc4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0xf15d40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb0c000]
push edi
or ebp, 0xffffffff
jmp 0xf15d62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xf15d69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf15d58
mov eax, 1
add ebx, ebx
jne 0xf15d7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xf15d8c
jne 0xf15dab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf15dab
dec eax
add ebx, ebx
jne 0xf15d98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xf15d70
add ebx, ebx
jne 0xf15da7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xf15dfd
xor ecx, ecx
sub eax, 3
jb 0xf15dc3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xf15e32
sar eax, 1
mov ebp, eax
jmp 0xf15dce
add ebx, ebx
jne 0xf15dce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf15d9c
inc ecx
add ebx, ebx
jne 0xf15ddc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf15d9c
add ebx, ebx
jne 0xf15de9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xf15dde
jne 0xf15dfa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf15dde
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xf15e1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xf15e0e
jmp 0xf15d5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xf15e1c
add edi, ecx
jmp 0xf15d5e
pop esi
mov edi, esi
mov ecx, 0x7ba
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xf15e3a
cmp byte [edi], 7
jne 0xf15e3a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xf15e3f
lea edi, [esi + 0xb13000]
mov eax, dword [edi]
or eax, eax
je 0xf15eae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb15370]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb153c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xf15e6c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb153c8]
or eax, eax
je 0xf15ea8
mov dword [ebx], eax
add ebx, 4
jmp 0xf15e89
call dword [esi + 0xb153c4]
mov ebp, dword [esi + 0xb153cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xf15ee2
sub esp, 0xffffff80
jmp 0x409116
Function at 0x10007400
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10293a30]
jne 0x1000740a
repz ret
jmp fcn.1000850c

Function at 0x1000969b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100068f2
and dword [ebp - 4], 0
cmp dword [0x102957fc], 0
mov ebx, eax
jne 0x1000974c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100097fd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100097fd
push eax
call fcn.10006880
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x102957fc], eax
call esi
push eax
call fcn.10006880
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10295800], eax
call esi
push eax
call fcn.10006880
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10295804], eax
call esi
push eax
call fcn.10006880
pop ecx
mov dword [0x1029580c], eax
test eax, eax
je 0x1000974c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10006880
pop ecx
mov dword [0x10295808], eax
mov eax, dword [0x10295808]
cmp eax, ebx
je 0x100097a4
cmp dword [0x1029580c], ebx
je 0x100097a4
push eax
call fcn.100068fb
push dword [0x1029580c]
mov esi, eax
call fcn.100068fb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100097a4
test edi, edi
je 0x100097a4
call esi
test eax, eax
je 0x1000979b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000979b
test byte [ebp - 0xc], 1
jne 0x100097a4
or dword [ebp + 0x10], 0x200000
jmp 0x100097dd
mov eax, dword [0x10295800]
cmp eax, ebx
je 0x100097dd
push eax
call fcn.100068fb
pop ecx
test eax, eax
je 0x100097dd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100097dd
mov eax, dword [0x10295804]
cmp eax, ebx
je 0x100097dd
push eax
call fcn.100068fb
pop ecx
test eax, eax
je 0x100097dd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102957fc]
call fcn.100068fb
pop ecx
test eax, eax
je 0x100097fd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100097ff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000b020
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x1000b0df
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
je 0x1000b11d
jmp 0x1000b08a
mov dword [0x10293274], 0x2503
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
je 0x1000b0b7
jmp 0x1000b183
jmp 0x1000b18a
mov eax, dword [0x10293274]
sub eax, 0xa93
mov dword [0x10293274], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2]
cmp eax, 0
je 0x1000b0ea
jmp 0x1000b0ec
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dx, word [eax + ecx*2 - 0x12]
mov word [ebp - 0x16], dx
mov ax, word [ebp - 0x16]
movzx ecx, ax
cmp ecx, 0x64
je 0x1000b135
jmp 0x1000b181
jmp 0x1000b17f
cmp dword [ebp - 0x10], 0x104
jl 0x1000b08f
jmp 0x1000b0fb
jmp 0x1000b0fb
jmp 0x1000b0ee
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x1000b0df
mov dword [0x10293274], 0x134e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x1000b051
jmp 0x1000b18a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2 - 0x16]
cmp eax, 0x61
je 0x1000b069
jmp 0x1000b185
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2 - 0x10]
cmp eax, 0x6c
jne 0x1000b17f
mov eax, dword [0x10293274]
sub eax, 0x2496
mov dword [0x10293274], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x1000b0da
mov dword [0x10293274], 0xef8
mov dword [ebp - 4], 1
jmp 0x1000b191
jmp 0x1000b181
jmp 0x1000b183
jmp 0x1000b185
jmp 0x1000b08a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x1c
pop ebp
ret
Function at 0x1000167c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001d908
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1002a034]
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 0x10001768
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003356
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100033b4
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.1001c193
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000173e
call fcn.100037d1
jmp 0x1000173e
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.10004926
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.10003d44
pop ecx
pop ecx
push ebx
push esi
call fcn.1001c193
int3

Function at 0x1000177d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001d938
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1002a034]
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 0x10001869
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003356
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100033b4
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.1001c193
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000183f
call fcn.100037d1
jmp 0x1000183f
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.10004926
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.10003d44
pop ecx
pop ecx
push ebx
push esi
call fcn.1001c193
int3
Function at 0x100019e1
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x1001d960
call fcn.10004980
mov ebx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
mov esi, edi
mov dword [ebp - 0x14], esi
mov word [ebx], ax
call fcn.100018f8
test eax, eax
je 0x10001a12
call fcn.100018ea
mov esi, eax
mov dword [ebp - 0x14], eax
push 0x104
push ebx
push esi
push edi
push 0x10021c18
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
test esi, esi
js 0x10001b28
jmp 0x10001a62
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10001a70
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10001b20
push ebx
push edi
push edi
push 0x1a
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x10001ad1
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10001b2e
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10001b20
push 1
push 0x1a
push ebx
push edi
mov dword [ebp - 4], 4
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
test esi, esi
jns 0x10001b20
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10001b2e
mov eax, esi
call fcn.10004937
ret
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.10003d44
pop ecx
pop ecx
push edi
push esi
call fcn.1001c193
int3

Function at 0x10002445
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x10002469
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 0x100030b4
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x1001d9bb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1002a034]
xor eax, ebp
mov dword [ebp + 0x104], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1001ec0c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1001c193
add esp, 0xc
test eax, eax
jne 0x100031a9
push dword [ebp - 0x18]
call fcn.1001c193
cmp dword [0x1002aa80], 0
pop ecx
je 0x10003122
xor eax, eax
inc eax
jmp 0x100031ab
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
cmp eax, esi
ja 0x100031a9
test eax, eax
je 0x100031a9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000330b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str.JavaDeployReg.log
call fcn.1000330b
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.100033d2
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x10003177
call fcn.100037d1
push 0x1001ec38
lea ecx, [ebp - 0x10]
call fcn.100033b4
push eax
push 0x1002aa80
call fcn.1001c193
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
test ecx, ecx
je 0x100031a4
call fcn.100037d1
lea eax, [esi + 1]
jmp 0x100031ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.10004926
add ebp, 0x108
leave
ret

Function at 0x10003656
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1002a034]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.1001c193
mov esi, eax
test esi, esi
jne 0x10003705
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x100036e0
lea eax, [esp + 0x28]
push eax
call fcn.10003656
mov esi, eax
test esi, esi
jne 0x10003705
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x100036bb
call fcn.1000342b
push ebx
mov ecx, edi
call fcn.10003445
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.1000342b
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004926
add esp, 0x11c
ret 4