joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409199
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4525e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x208
lea eax, [ebp - 0x414]
push esi
push 0
push eax
call fcn.00411e00
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00411e00
add esp, 0x18
call fcn.0040b23e
test eax, eax
je 0x409235
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00409827
pop ecx
test eax, eax
je 0x409242
mov esi, 0x104
lea ecx, [ebp - 0x414]
push esi
push ecx
push eax
call fcn.004097b5
add esp, 0xc
test eax, eax
je 0x409242
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004098a9
pop ecx
pop ecx
test eax, eax
je 0x409242
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00414892
add esp, 0xc
test eax, eax
je 0x409242
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040ff49
leave
ret
push 0
call fcn.004208b5
int3

Function at 0x409592
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.0040ff60
mov eax, dword [0x4525e4]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
push ebx
mov ebx, dword [ebp + 0xf98]
lea eax, [ebp - 0x78]
push esi
push eax
push 0x20019
push 0
push 0x44f410
xor esi, esi
mov dword [ebp - 0x7c], 0x400
push reloc.OLEAUT32.dll_SysReAllocString
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40968f
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x78c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test eax, eax
lea eax, [ebp + 0x78c]
push eax
push str.SoftwareJavaSoftJava_Runtime_Environment
push 0x44f4e0
lea eax, [ebp - 0x74]
cmovne esi, ecx
push 0x400
push eax
call fcn.004099fb
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x74]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40968f
lea eax, [ebp + 0xf9c]
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
push 0
push 0x44f4ec
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov ecx, dword [ebp + 0xf8c]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ff49
add ebp, 0xf90
leave
ret
Function at 0x409761
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4097b0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x409827
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4525e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x409851
xor eax, eax
jmp 0x40989b
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x409892
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x228], ebx
je 0x40988b
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x409870
jmp 0x409891
mov esi, dword [ebp - 0x218]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ff49
leave
ret

Function at 0x4098a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4098ff
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
test eax, eax
jne 0x4098f9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x409901
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret
Function at 0x409a17
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x54
mov eax, dword [0x4525e4]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [esp + 0x60]
xor eax, eax
push ebp
push edi
push 0xa
pop ecx
lea edi, [esp + 0x10]
xor ebp, ebp
rep stosd dword es:[edi], eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
lea eax, [esp + 0xc]
push eax
call fcn.00407592
mov dword [0x466c38], eax
pop ecx
cmp eax, 0xffffffff
je 0x409b99
cmp dword [esp + 0x64], ebp
jg 0x409a68
push 0x13
jmp 0x409b9b
push esi
push dword [esp + 0x68]
call fcn.004076d5
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x409ba7
push dword [esp + 0x10]
lea eax, [esp + 0x5c]
push 0x44f8c0
push 0xffffffffffffffff
push 6
push eax
call fcn.00409e98
add esp, 0x14
lea eax, [esp + 0x58]
push ebp
push 6
push eax
push esi
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 6
je 0x409ab3
push 0x14
jmp 0x409ba9
push esi
call fcn.004083c4
pop ecx
test ebx, ebx
je 0x409b84
push 0x7f00
push ebp
mov dword [esp + 0x20], 0x409dfa
mov dword [esp + 0x2c], edi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x34], 6
mov dword [esp + 0x3c], 0x44f8c4
call dword [sym.imp.USER32.dll_RegisterClassW]
push ebp
push edi
push ebp
push ebp
mov eax, accept
push eax
push eax
push eax
push eax
push 0xcf0000
push str.Win32Splash
push str.SplashDummy
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x409df4
push 0x4e20
mov esi, eax
push ebp
push esi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x409b38
push 0x15
jmp 0x409ba9
call fcn.00409d3d
push ebx
call fcn.00409d5d
pop ecx
push 8
push 0x401
push esi
push dword [0x466c38]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x409b76
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebp
push ebp
push ebp
lea eax, [esp + 0x48]
push eax
call esi
test eax, eax
jne 0x409b60
mov ecx, dword [esp + 0x60]
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ff49
add esp, 0x54
ret
push 5
call fcn.00409ee8
pop ecx
push eax
call fcn.00409daa
push 0x11
call fcn.00409ee8
pop ecx
push eax
call fcn.00409daa
int3

Function at 0x409daa
Capabilities:
Terminate process

Disassembly:
push 0xb
call fcn.00409ee8
pop ecx
push eax
push 2
call fcn.00420f4e
pop ecx
push eax
call fcn.004099e3
pop ecx
pop ecx
call fcn.00421336
push dword [esp + 4]
cmp dword [eax], 0
je 0x409dd9
call fcn.00422334
pop ecx
jmp 0x409def
push str._t_s_n
push 2
call fcn.00420f4e
pop ecx
push eax
call fcn.004099e3
add esp, 0xc
jmp fcn.00409d9d
Function at 0x40a1de
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
mov eax, edi
shr eax, 0x1f
push ecx
push ecx
movd xmm0, edi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x43a320]
divsd xmm0, qword [0x43a310]
movsd qword [esp + 0x14], xmm0
fld qword [esp + 0x14]
fstp qword [esp]
call fcn.00422ea0
fstp qword [esp + 0x14]
movsd xmm0, qword [esp + 0x14]
mulsd xmm0, qword [0x43a318]
pop ecx
pop ecx
call fcn.00410371
mov ebp, dword [esp + 0x20]
push 1
mov dword [ebp], eax
inc eax
push eax
call fcn.004205be
mov ebx, eax
mov dword [esp + 0x14], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x40a30f
push esi
xor esi, esi
mov edx, esi
test edi, edi
je 0x40a2e9
mov ebp, ebx
mov ebx, dword [esp + 0x1c]
cmp edx, edi
jae 0x40a270
movzx ecx, byte [edx + ebx]
inc edx
jmp 0x40a272
mov ecx, esi
cmp edx, edi
jae 0x40a281
movzx eax, byte [edx + ebx]
inc edx
mov dword [esp + 0x20], eax
jmp 0x40a285
mov dword [esp + 0x20], esi
cmp edx, edi
jae 0x40a290
movzx eax, byte [edx + ebx]
inc edx
jmp 0x40a292
mov eax, esi
shl ecx, 8
add ecx, dword [esp + 0x20]
shl ecx, 8
add ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + 1], al
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + 2], al
mov byte [ebp + 3], cl
add ebp, 4
cmp edx, edi
jb 0x40a269
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 3
xor edx, edx
mov eax, edi
pop ecx
div ecx
mov ecx, dword [edx*4 + 0x450eb0]
test ecx, ecx
je 0x40a30c
mov eax, dword [ebp]
sub eax, esi
inc esi
mov byte [eax + ebx - 1], 0x3d
cmp esi, ecx
jb 0x40a2fd
mov eax, ebx
pop esi
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40a92b
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call fcn.0040a51d
mov ebx, eax
pop ecx
test ebx, ebx
js 0x40a96c
push 0x450ebc
push dword [esp + 0x18]
call fcn.0040a553
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x40a96c
lea ecx, [ebx + 2]
push ecx
call fcn.004205e4
mov esi, eax
pop ecx
push ebp
test esi, esi
jne 0x40a97a
call fcn.004201f2
pop ecx
mov eax, dword [esp + 0x18]
and dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push ebx
push 1
push esi
call fcn.004231a3
add esp, 0x10
mov edi, eax
cmp edi, ebx
jle 0x40a99b
push 9
call fcn.00409ee8
push eax
call fcn.00408284
pop ecx
pop ecx
push ebp
call fcn.004201f2
pop ecx
cmp edi, ebx
je 0x40a9ae
push esi
call fcn.004205c9
jmp 0x40a96b
xor eax, eax
mov ebx, eax
mov edx, eax
cmp edx, edi
jge 0x40a9cc
lea eax, [edx + esi]
inc edx
cmp byte [eax], 0
lea ecx, [ebx + 1]
cmovne ecx, ebx
mov ebx, ecx
cmp edx, 6
jl 0x40a9b4
xor eax, eax
cmp ebx, 1
jle 0x40a9df
mov ebx, dword [esp + 0x18]
mov dword [ebx], esi
mov word [edi + esi], ax
jmp 0x40a9f6
push esi
mov byte [edi + esi], al
call fcn.0040a5fd
mov ebx, dword [esp + 0x1c]
push esi
mov dword [ebx], eax
call fcn.004205c9
pop ecx
pop ecx
mov eax, dword [ebx]
xor esi, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40a9fd
sub eax, edx
sar eax, 1
jmp 0x40a975

Function at 0x40b23e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4525e4]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp dword [0x467d80], 0
je 0x40b269
mov eax, dword [0x467d84]
jmp 0x40b2ae
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00411e00
add esp, 0xc
mov dword [ebp - 0x80], 0x114
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x70], 2
jne 0x40b2a0
cmp dword [ebp - 0x7c], 6
jb 0x40b2a0
mov esi, eax
mov dword [0x467d80], eax
mov eax, esi
mov dword [0x467d84], esi
pop esi
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0040ff49
add ebp, 0x98
leave
ret
Function at 0x40b700
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x439cc8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4525e4]
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 0x40b7ec
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d414
mov eax, dword [eax]
test eax, eax
je 0x40b779
mov esi, dword [eax]
push 0x104
push esi
push dword [ebp + 0x218]
push ebx
call fcn.004146cd
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x40b7c2
call fcn.0040d895
jmp 0x40b7c2
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.0040ff49
add ebp, 0x20c
leave
ret
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.0040db78
pop ecx
pop ecx
push esi
push edi
call fcn.00411390
int3

Function at 0x40b801
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x439cf0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4525e4]
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 0x40b8ed
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d414
mov eax, dword [eax]
test eax, eax
je 0x40b87a
mov esi, dword [eax]
push 0x104
push esi
push dword [ebp + 0x218]
push ebx
call fcn.004146cd
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x40b8c3
call fcn.0040d895
jmp 0x40b8c3
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.0040ff49
add ebp, 0x20c
leave
ret
push edi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.0040db78
pop ecx
pop ecx
push esi
push edi
call fcn.00411390
int3
Function at 0x40ba67
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x439d18
call fcn.00410875
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.0040b97e
test eax, eax
je 0x40ba98
call fcn.0040b970
mov esi, eax
mov dword [ebp - 0x14], eax
push 0x104
push ebx
push esi
push edi
push 0x43a2f0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
test esi, esi
js 0x40bbae
jmp 0x40bae8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40baf6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x40bba6
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 0x40bb57
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x40bbb4
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x40bba6
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 0x40bba6
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x40bbb4
mov eax, esi
call fcn.004107e4
ret
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.0040db78
pop ecx
pop ecx
push edi
push esi
call fcn.00411390
int3

Function at 0x40c03b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4525e4]
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 fcn.00411e00
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 0x40c0c1
cmp eax, edi
ja 0x40c0c1
push ebx
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00411e00
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x43af7c
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 0x40c0c3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ff49
leave
ret

Function at 0x40c0e4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40c0f1
xor eax, eax
pop ebp
ret
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret
Function at 0x40c163
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 fcn.00411e00
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 0x40c1fb
cmp dword [ebp + 8], ebx
je 0x40c1fb
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 0x40c1fb
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 0x40c1fd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c529
Capabilities:
Query environment variable

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

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x439d6b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4525e4]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x43b494
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041f5a7
add esp, 0xc
test eax, eax
jne 0x40d2d0
push dword [ebp - 0x18]
call fcn.004205c9
cmp dword [0x467d60], 0
pop ecx
je 0x40d24c
xor eax, eax
inc eax
jmp 0x40d2d2
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x40d2d0
test eax, eax
je 0x40d2d0
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d414
xor edi, edi
lea ecx, [ebp - 0x10]
push str.JavaDeployReg.log
mov dword [ebp - 4], edi
call fcn.0040d414
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d477
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40d29e
call fcn.0040d895
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40d2a7
mov edi, dword [esi]
push 0x43b540
push edi
push 0x467d60
call fcn.00414a7e
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
test esi, esi
je 0x40d2cb
mov ecx, esi
call fcn.0040d895
lea eax, [edi + 1]
jmp 0x40d2d2
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.0040ff49
add ebp, 0x20c
leave
ret
Function at 0x40d71a
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4525e4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x224]
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.0040d656
mov esi, eax
test esi, esi
jne 0x40d7c9
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_RegEnumKeyExW]
jmp 0x40d7a4
lea eax, [esp + 0x28]
push eax
call fcn.0040d71a
mov esi, eax
test esi, esi
jne 0x40d7c9
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], 0x100
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x40d77f
call fcn.0040d4d0
push ebx
mov ecx, edi
call fcn.0040d4ea
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.0040d4d0
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ff49
add esp, 0x21c
ret 4
Function at 0x40d9b6
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1044
call fcn.0040ff60
mov eax, dword [0x4525e4]
xor eax, esp
mov dword [esp + 0x1040], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1058]
lea eax, [esp + 0x84c]
push edi
mov edi, dword [esp + 0x1058]
mov ebp, 0x800
push ebp
xor ebx, ebx
push ebx
push eax
call fcn.00411e00
push esi
push ebx
push edi
push 0xffffffffffffffff
lea eax, [esp + 0x86c]
push 0x400
push eax
call fcn.004046ea
add esp, 0x24
test eax, eax
jns 0x40da1e
xor eax, eax
mov word [esp + 0x104e], ax
push 0x40
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00411e00
lea eax, [esp + 0x1c]
push 0x20
push eax
call fcn.0040d936
push 0x43e7dc
lea eax, [esp + 0x28]
push 0x20
push eax
call fcn.0042396d
push ebp
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.00411e00
mov ecx, edi
add esp, 0x2c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40da5c
sub ecx, edx
sar ecx, 1
cmp ecx, 6
jbe 0x40daac
lea eax, [edi - 0xc]
mov edx, 0x43e7e0
lea eax, [eax + ecx*2]
mov si, word [eax]
xor ecx, ecx
inc ecx
cmp si, word [edx]
jne 0x40daa4
test si, si
je 0x40daa0
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x40daa4
add eax, 4
add edx, 4
test si, si
jne 0x40da7b
mov eax, ebx
jmp 0x40daa8
sbb eax, eax
or eax, ecx
test eax, eax
je 0x40daae
mov ecx, ebx
lea esi, [esp + 0x10]
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x40dab5
sub esi, edx
lea eax, [esp + 0x850]
push eax
sar esi, 1
mov edx, 0x43e800
test ecx, ecx
mov eax, str.Error:
cmove eax, edx
push eax
lea edi, [esi + esi]
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 + 0x6c]
add eax, edi
push eax
call fcn.004046a8
add esp, 0x20
test eax, eax
jns 0x40db27
mov eax, dword [0x43e82c]
mov dword [esp + 0x846], eax
mov eax, dword [0x43e830]
mov dword [esp + 0x84a], eax
push edi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00411880
lea edi, [esp + 0x5c]
add esp, 0xc
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, bx
jne 0x40db41
mov eax, dword [0x43e834]
mov dword [edi], eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ff49
add esp, 0x1044
ret

Function at 0x40e047
Capabilities:
Create process on windows

Disassembly:
call fcn.0040ee5a
test eax, eax
jne 0x40e065
push 1
push eax
push eax
push str.http:__java.com_inst_dl_redirect
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret