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

Disassembly:
push 0x21010
push 0x451030
push dword [esp + 0xc]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xb
call fcn.00409f46
pop ecx
push eax
push 2
call fcn.00420ace
pop ecx
push eax
call fcn.00409a37
pop ecx
pop ecx
call fcn.00420ee4
push dword [esp + 4]
cmp dword [eax], 0
je 0x408324
call fcn.00421ee2
pop ecx
jmp 0x40833a
push 0x451078
push 2
call fcn.00420ace
pop ecx
push eax
call fcn.00409a37
add esp, 0xc
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0xc
call fcn.00409f46
pop ecx
push eax
push str._s__d_n
push 2
call fcn.00420ace
pop ecx
push eax
call fcn.00409a37
add esp, 0x10
push 0xffffffffffffffff
call fcn.004204e5
int3

Function at 0x40837f
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x454684]
xor eax, esp
mov dword [esp + 0x190], eax
cmp dword [0x463540], 0
jne 0x4083fb
push esi
push edi
xor edi, edi
push str.ws2_32.dll
inc edi
call fcn.0040c163
mov esi, eax
pop ecx
test esi, esi
jne 0x4083c5
push str.wsock32.dll
call fcn.0040c163
mov esi, eax
xor edi, edi
pop ecx
test esi, esi
je 0x408410
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x4083da
push 0xe
jmp 0x408412
test edi, edi
je 0x4083ef
push str.WSASendDisconnect
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46353c], eax
pop edi
mov dword [0x463540], 1
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004104a6
add esp, 0x194
ret
push 0xd
call fcn.00409f46
pop ecx
push eax
call fcn.004082df
int3

Function at 0x4084d9
Capabilities:
Terminate process

Disassembly:
push ebp
push esi
push edi
call fcn.00420ee4
mov esi, dword [esp + 0x18]
xor ebp, ebp
mov edi, esi
mov dword [eax], ebp
mov eax, dword [esi]
jmp 0x4084fd
push eax
call fcn.0040798a
mov dword [edi], eax
lea edi, [edi + 4]
mov eax, dword [edi]
pop ecx
test eax, eax
jne 0x4084ef
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40856c
test eax, eax
jne 0x408517
push esi
push dword [esp + 0x18]
push 1
jmp 0x408547
cmp eax, 3
jne 0x408541
call fcn.0040947d
push esi
push dword [esp + 0x18]
mov edi, eax
push 1
call fcn.00421ec8
add esp, 0xc
mov esi, eax
test edi, edi
je 0x408551
push edi
call fcn.004094e5
pop ecx
jmp 0x408551
push esi
push dword [esp + 0x18]
push ebp
call fcn.00421ec8
mov esi, eax
add esp, 0xc
test esi, esi
js 0x408559
xor eax, eax
jmp 0x408568
call fcn.00420ee4
xor ecx, ecx
cmp dword [eax], ebp
setne cl
lea eax, [ecx - 2]
pop edi
pop esi
pop ebp
ret
push esi
push dword [esp + 0x18]
push 1
call fcn.00421ec8
add esp, 0xc
push ebp
call fcn.004204e5
int3
Function at 0x4091ed
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x454684]
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.00411fc0
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00411fc0
add esp, 0x18
call fcn.0040b2b3
test eax, eax
je 0x409289
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0040987b
pop ecx
test eax, eax
je 0x409296
mov esi, 0x104
lea ecx, [ebp - 0x414]
push esi
push ecx
push eax
call fcn.00409809
add esp, 0xc
test eax, eax
je 0x409296
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004098fd
pop ecx
pop ecx
test eax, eax
je 0x409296
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004144fe
add esp, 0xc
test eax, eax
je 0x409296
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004104a6
leave
ret
push 0
call fcn.004204e5
int3

Function at 0x4095e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.004104c0
mov eax, dword [0x454684]
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 0x451428
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 0x4096e3
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 0x4514f8
lea eax, [ebp - 0x74]
cmovne esi, ecx
push 0x400
push eax
call fcn.00409a4f
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 0x4096e3
lea eax, [ebp + 0xf9c]
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
push 0
push 0x451504
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.004104a6
add ebp, 0xf90
leave
ret
Function at 0x4097b5
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 0x409804
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 0x40987b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x454684]
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 0x4098a5
xor eax, eax
jmp 0x4098ef
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4098e6
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x228], ebx
je 0x4098df
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4098c4
jmp 0x4098e5
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.004104a6
leave
ret

Function at 0x4098fd
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 0x409953
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 0x40994d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x409955
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret
Function at 0x409a6b
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x54
mov eax, dword [0x454684]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push edi
mov edi, dword [esp + 0x68]
xor ebp, ebp
xorps xmm0, xmm0
mov dword [esp + 0x24], ebp
push ebp
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
call fcn.004075ec
mov dword [0x468de8], eax
pop ecx
cmp eax, 0xffffffff
je 0x409bf7
cmp dword [esp + 0x64], ebp
jg 0x409ac2
push 0x13
jmp 0x409bf9
push esi
push dword [esp + 0x68]
call fcn.0040772f
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x409c05
push dword [esp + 0x10]
lea eax, [esp + 0x5c]
push 0x4518d8
push 0xffffffffffffffff
push 6
push eax
call fcn.00409ef6
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 0x409b0d
push 0x14
jmp 0x409c07
push esi
call fcn.0040841f
pop ecx
test edi, edi
je 0x409be2
push 0x7f00
push ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x409e58
mov dword [esp + 0x2c], ebx
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], 0x4518dc
call dword [sym.imp.USER32.dll_RegisterClassW]
push ebp
push ebx
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 0x409e52
push 0x4e20
mov esi, eax
push ebp
push esi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x409b96
push 0x15
jmp 0x409c07
call fcn.00409d9b
push edi
call fcn.00409dbb
pop ecx
push 8
push 0x401
push esi
push dword [0x468de8]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x409bd4
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 0x409bbe
mov ecx, dword [esp + 0x60]
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004104a6
add esp, 0x54
ret
push 5
call fcn.00409f46
pop ecx
push eax
call fcn.00409e08
push 0x11
call fcn.00409f46
pop ecx
push eax
call fcn.00409e08
int3

Function at 0x409e08
Capabilities:
Terminate process

Disassembly:
push 0xb
call fcn.00409f46
pop ecx
push eax
push 2
call fcn.00420ace
pop ecx
push eax
call fcn.00409a37
pop ecx
pop ecx
call fcn.00420ee4
push dword [esp + 4]
cmp dword [eax], 0
je 0x409e37
call fcn.00421ee2
pop ecx
jmp 0x409e4d
push str._t_s_n
push 2
call fcn.00420ace
pop ecx
push eax
call fcn.00409a37
add esp, 0xc
jmp fcn.00409dfb
Function at 0x40a23c
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, edi
shr eax, 0x1f
push ecx
push ecx
movd xmm0, edi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x43b330]
divsd xmm0, qword [0x43b320]
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fstp qword [esp]
call fcn.00422a40
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
mulsd xmm0, qword [0x43b328]
pop ecx
pop ecx
call fcn.004106f0
mov ebp, dword [esp + 0x24]
push 1
mov dword [ebp], eax
inc eax
push eax
call fcn.004201ab
mov ebx, eax
mov dword [esp + 0x18], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x40a36e
push esi
xor esi, esi
mov edx, esi
test edi, edi
je 0x40a348
mov ebp, ebx
mov ebx, dword [esp + 0x20]
cmp edx, edi
jae 0x40a2e9
movzx ecx, byte [edx + ebx]
inc edx
cmp edx, edi
jae 0x40a2eb
movzx eax, byte [edx + ebx]
inc edx
cmp edx, edi
jae 0x40a2ed
movzx edi, byte [edx + ebx]
inc edx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x24]
jmp 0x40a2f1
mov ecx, esi
mov eax, esi
mov dword [esp + 0x10], esi
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, dword [esp + 0x10]
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 0x40a2c8
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
push 3
xor edx, edx
mov eax, edi
pop ecx
div ecx
mov ecx, dword [edx*4 + 0x452ec8]
test ecx, ecx
je 0x40a36b
mov eax, dword [ebp]
sub eax, esi
inc esi
mov byte [eax + ebx - 1], 0x3d
cmp esi, ecx
jb 0x40a35c
mov eax, ebx
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40a999
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call fcn.0040a587
mov edi, eax
pop ecx
test edi, edi
js 0x40a9da
push 0x452ed4
push dword [esp + 0x18]
call fcn.0040a5bd
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x40a9da
lea ecx, [edi + 2]
push ecx
call fcn.004201d1
mov esi, eax
pop ecx
push ebp
test esi, esi
jne 0x40a9e8
call fcn.0041fddf
pop ecx
mov eax, dword [esp + 0x18]
and dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push 1
push esi
call fcn.00422d43
add esp, 0x10
mov ebx, eax
cmp ebx, edi
jle 0x40aa09
push 9
call fcn.00409f46
push eax
call fcn.004082df
pop ecx
pop ecx
push ebp
call fcn.0041fddf
pop ecx
cmp ebx, edi
je 0x40aa1c
push esi
call fcn.004201b6
jmp 0x40a9d9
xor eax, eax
mov edi, eax
mov edx, eax
cmp edx, ebx
jge 0x40aa3a
lea eax, [edx + esi]
inc edx
cmp byte [eax], 0
lea ecx, [edi + 1]
cmovne ecx, edi
mov edi, ecx
cmp edx, 6
jl 0x40aa22
xor eax, eax
cmp edi, 1
jle 0x40aa4d
mov edi, dword [esp + 0x18]
mov dword [edi], esi
mov word [ebx + esi], ax
jmp 0x40aa64
push esi
mov byte [ebx + esi], al
call fcn.0040a667
mov edi, dword [esp + 0x1c]
push esi
mov dword [edi], eax
call fcn.004201b6
pop ecx
pop ecx
mov eax, dword [edi]
xor esi, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40aa6b
sub eax, edx
sar eax, 1
jmp 0x40a9e3

Function at 0x40b2b3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x454684]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp dword [0x469f30], 0
je 0x40b2de
mov eax, dword [0x469f34]
jmp 0x40b323
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00411fc0
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 0x40b315
cmp dword [ebp - 0x7c], 6
jb 0x40b315
mov esi, eax
mov dword [0x469f30], eax
mov eax, esi
mov dword [0x469f34], esi
pop esi
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004104a6
add ebp, 0x98
leave
ret
Function at 0x40b796
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x43a48a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x454684]
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 0x40b882
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d63c
mov eax, dword [eax]
test eax, eax
je 0x40b80f
mov esi, dword [eax]
push 0x104
push esi
push dword [ebp + 0x218]
push ebx
call fcn.00414339
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x40b858
call fcn.0040daf4
jmp 0x40b858
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.004104a6
add ebp, 0x20c
leave
ret
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.0040ddd5
pop ecx
pop ecx
push esi
push edi
call fcn.00411530
int3

Function at 0x40b89c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x43a4b4
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x454684]
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 0x40b988
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d63c
mov eax, dword [eax]
test eax, eax
je 0x40b915
mov esi, dword [eax]
push 0x104
push esi
push dword [ebp + 0x218]
push ebx
call fcn.00414339
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x40b95e
call fcn.0040daf4
jmp 0x40b95e
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.004104a6
add ebp, 0x20c
leave
ret
push edi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.0040ddd5
pop ecx
pop ecx
push esi
push edi
call fcn.00411530
int3
Function at 0x40c163
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x454684]
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.00411fc0
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 0x40c1e9
cmp eax, edi
ja 0x40c1e9
push ebx
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00411fc0
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x43bf8c
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 0x40c1eb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004104a6
leave
ret

Function at 0x40c20c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40c219
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 0x40c28b
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.00411fc0
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 0x40c323
cmp dword [ebp + 8], ebx
je 0x40c323
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 0x40c323
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 0x40c325
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c6c3
Capabilities:
Query environment variable

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

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x43a53a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x454684]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x43c4ac
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041f194
add esp, 0xc
test eax, eax
jne 0x40d507
push dword [ebp - 0x18]
call fcn.004201b6
cmp dword [0x469f10], 0
pop ecx
je 0x40d46c
xor eax, eax
inc eax
jmp 0x40d509
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x40d507
test eax, eax
je 0x40d507
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d63c
xor edi, edi
lea ecx, [ebp - 0x14]
push str.JavaDeployReg.log
mov dword [ebp - 4], edi
call fcn.0040d63c
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d69f
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40d4c2
call fcn.0040daf4
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x40d4cb
mov edi, dword [esi]
push 0x43c5b4
push edi
push 0x469f10
call fcn.004146ea
add esp, 0xc
neg eax
sbb edi, edi
test esi, esi
je 0x40d502
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x40d502
mov ecx, esi
call fcn.0040db1b
push 0xc
push esi
call fcn.004107cf
pop ecx
pop ecx
lea eax, [edi + 1]
jmp 0x40d509
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.004104a6
add ebp, 0x20c
leave
ret
Function at 0x40d942
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x220
mov eax, dword [0x454684]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x228]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ebp
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.0040d87e
mov esi, eax
test esi, esi
jne 0x40da21
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebp
test eax, eax
jne 0x40d9f9
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040d942
mov esi, eax
test esi, esi
jne 0x40da21
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call ebp
test eax, eax
je 0x40d9be
jmp 0x40d9fb
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x40da10
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.0040d712
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x40da32
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004104a6
add esp, 0x220
ret 4