joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9ff058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009ff1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9ff07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ff06a
add dl, dl
jne 0x9ff089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ff0dc
xor eax, eax
add dl, dl
jne 0x9ff096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ff17d
add dl, dl
jne 0x9ff0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ff0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ff0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ff0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9ff0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9ff075
mov eax, 1
add dl, dl
jne 0x9ff0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ff0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ff0e1
sub eax, ebx
mov ebx, 1
jne 0x9ff128
mov ecx, 1
add dl, dl
jne 0x9ff10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ff119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ff105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ff075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9ff13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ff14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ff136
cmp eax, 0x7d00
jae 0x9ff16d
cmp eax, 0x500
jb 0x9ff168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ff075
cmp eax, 0x7f
ja 0x9ff170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ff075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9ff19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9ff075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406dc0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e268]
jne 0x406dca
repz ret
jmp fcn.0040b6e2

Function at 0x415f6e
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.0040c48b
and dword [ebp - 4], 0
cmp dword [0x43fc18], 0
mov ebx, eax
jne 0x41601f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4160d0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4160d0
push eax
call fcn.0040c419
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43fc18], eax
call esi
push eax
call fcn.0040c419
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43fc1c], eax
call esi
push eax
call fcn.0040c419
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43fc20], eax
call esi
push eax
call fcn.0040c419
pop ecx
mov dword [0x43fc28], eax
test eax, eax
je 0x41601f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c419
pop ecx
mov dword [0x43fc24], eax
mov eax, dword [0x43fc24]
cmp eax, ebx
je 0x416077
cmp dword [0x43fc28], ebx
je 0x416077
push eax
call fcn.0040c494
push dword [0x43fc28]
mov esi, eax
call fcn.0040c494
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416077
test edi, edi
je 0x416077
call esi
test eax, eax
je 0x41606e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41606e
test byte [ebp - 0xc], 1
jne 0x416077
or dword [ebp + 0x10], 0x200000
jmp 0x4160b0
mov eax, dword [0x43fc1c]
cmp eax, ebx
je 0x4160b0
push eax
call fcn.0040c494
pop ecx
test eax, eax
je 0x4160b0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4160b0
mov eax, dword [0x43fc20]
cmp eax, ebx
je 0x4160b0
push eax
call fcn.0040c494
pop ecx
test eax, eax
je 0x4160b0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43fc18]
call fcn.0040c494
pop ecx
test eax, eax
je 0x4160d0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4160d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00409828
mov dword [eax], 0
push 0x10
mov eax, dword [ebp + 8]
add eax, 0x1334
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x135c]
push edx
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x1367]
imul edx, edx, 0x1c
mov eax, dword [edx + 0x4409f4]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x135c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00409828
mov dword [eax], esi
call fcn.00409828
cmp dword [eax], 0
jne 0x419f85
mov edx, dword [ebp + 8]
cmp dword [edx + 0x135c], 0
jg 0x419f89
xor eax, eax
jmp 0x419f93
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x135c]
pop esi
pop ebp
ret
Function at 0x44a670
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x44a68d
mov eax, dword [esi]
test eax, eax
je 0x44a7b1
cmp word [eax], 0
je 0x44a7b1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44a7b1
test al, 0x10
jne 0x44a7b1
cmp dword [esi + 0x14], 8
jb 0x44a6bf
mov esi, dword [esi]
push 0x461624
push esi
call fcn.00421523
mov esi, eax
add esp, 8
test esi, esi
je 0x44a7b1
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x18], xmm0
call fcn.00428b9b
push 2
push 0
push esi
call fcn.0042821c
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00428b9b
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004290d2
add esp, 0x24
cmp dword [esp + 0x10], 0x28
jbe 0x44a7a8
xor eax, eax
mov dword [esp + 0x20], 0x48535844
push esi
push 1
mov word [esp + 0x40], ax
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push 0x28
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
movsd qword [esp + 0x40], xmm0
call fcn.00427805
add esp, 0x10
test eax, eax
je 0x44a7a8
mov eax, dword [esp + 0x2c]
not eax
ror eax, 3
cmp eax, dword [esp + 0xc]
jne 0x44a7a8
cmp dword [esp + 0x20], 0x48535844
jne 0x44a7a8
cmp dword [esp + 0x24], 0x28
jne 0x44a7a8
movzx ecx, word [esp + 0x38]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add ecx, dword [esp + 0x40]
add eax, 0x28
add eax, ecx
cmp eax, dword [esp + 0x10]
sete bl
push esi
call fcn.00421961
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402db1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402df0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402df0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402df0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402df0
cmp dword [ecx + 0x74], 0xe
jbe 0x402df0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
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 eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x1ee2d20
Capabilities:
Encode data using xor

Disassembly:
adc eax, 0xeab19e87
xor dword [eax], eax
add bl, ch
jmp 0x1ee2d2a
add byte [edx + 4], ch
add byte [eax], al
jmp 0x1ee2d2a
pushal
call 0x1ee2d30
pop ebp
sub ebp, 0x10
sub ebp, 0x1ae2d20
jmp 0x1ee2d46
mov eax, 0x1ae2d20
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a9
mov edx, 0xbf51ba2e
xor byte [eax], dl
inc eax
dec ecx
jne 0x1ee2d5d
jmp 0x1ee2d70
movsd dword es:[edi], dword [esi]
jecxz 0x1ee2d18
cmpsd dword [esi], dword es:[edi]
adc ch, byte [esi]
scasd eax, dword es:[edi]
out dx, eax
salc
sub eax, 0x2e2a96e3
xchg esp, eax
push es
fxch st(4)
sub eax, 0x22afa5e6
sub eax, 0xa4aa3eb
shl byte [edi + 0x467e0a2a], cl
add ah, byte [eax - 0x23b9d188]
mov al, 0x79
das
das
add cl, byte [edx]
inc esi
mov al, 0x9f
les ebx, [edi]
invalid
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x73fb2495
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x35cc3497
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x409f30
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fbc0]
jne 0x409f3a
repz ret
jmp fcn.0040dfab

Function at 0x40d804
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.00409290
and dword [ebp - 4], 0
cmp dword [0x441d30], 0
mov ebx, eax
jne 0x40d8b5
push 0x401b28
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d966
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b1c
push edi
call esi
test eax, eax
je 0x40d966
push eax
call fcn.0040921e
mov dword [esp], 0x401b0c
push edi
mov dword [0x441d30], eax
call esi
push eax
call fcn.0040921e
mov dword [esp], 0x401af8
push edi
mov dword [0x441d34], eax
call esi
push eax
call fcn.0040921e
mov dword [esp], 0x401adc
push edi
mov dword [0x441d38], eax
call esi
push eax
call fcn.0040921e
pop ecx
mov dword [0x441d40], eax
test eax, eax
je 0x40d8b5
push 0x401ac4
push edi
call esi
push eax
call fcn.0040921e
pop ecx
mov dword [0x441d3c], eax
mov eax, dword [0x441d3c]
cmp eax, ebx
je 0x40d90d
cmp dword [0x441d40], ebx
je 0x40d90d
push eax
call fcn.00409299
push dword [0x441d40]
mov esi, eax
call fcn.00409299
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d90d
test edi, edi
je 0x40d90d
call esi
test eax, eax
je 0x40d904
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d904
test byte [ebp - 0xc], 1
jne 0x40d90d
or dword [ebp + 0x10], 0x200000
jmp 0x40d946
mov eax, dword [0x441d34]
cmp eax, ebx
je 0x40d946
push eax
call fcn.00409299
pop ecx
test eax, eax
je 0x40d946
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d946
mov eax, dword [0x441d38]
cmp eax, ebx
je 0x40d946
push eax
call fcn.00409299
pop ecx
test eax, eax
je 0x40d946
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x441d30]
call fcn.00409299
pop ecx
test eax, eax
je 0x40d966
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d968
xor eax, eax
pop edi
pop esi
pop ebx
leave
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.100135d3
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.100135d3
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.100135d3
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.100135d3
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.100135d3
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.100135d3
add esp, 0xc
test eax, eax
jne 0x100031a9
push dword [ebp - 0x18]
call fcn.100135d3
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.100135d3
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.100135d3
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
Function at 0x10003bc2
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x1002a034]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call fcn.10005d80
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.100135d3
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.100135d3
push 0x10021be8
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.100135d3
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.10005d80
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003c67
sub ecx, edx
cmp ecx, 6
jbe 0x10003c8e
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.100135d3
pop ecx
pop ecx
test eax, eax
jne 0x10003c8e
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10003c95
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x10020533
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.100135d3
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call fcn.10005800
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003d0f
mov ax, word [0x10021c14]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004926
add esp, 0x824
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx