joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407730
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4566b4]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 0xc], xmm0
call fcn.0040837f
push 2
pop esi
push dword [ebp + 8]
mov word [ebp - 0x14], si
call dword [sym.imp.WSOCK32.dll_htons]
push 0x451c68
mov word [ebp - 0x12], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407787
or eax, 0xffffffff
jmp 0x4077a4
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x4077a2
push esi
call fcn.0040841f
pop ecx
jmp 0x407782
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410400
leave
ret

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

Disassembly:
cmp dword [esp + 8], 0
push ebx
push ebp
push edi
je 0x407907
mov ecx, dword [esp + 0x14]
xor ebp, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x407897
sub ecx, edx
sar ecx, 1
lea ebx, [ecx*2 + 6]
lea eax, [ebx + ebx]
push eax
call fcn.004220cc
mov edi, eax
pop ecx
test edi, edi
je 0x407907
push dword [esp + 0x14]
push str._s_r_n
push ebx
push edi
call fcn.00408b2a
mov ecx, edi
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x4078d5
sub ecx, edx
sar ecx, 1
push ebp
lea eax, [ecx + ecx]
push eax
push edi
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_send]
xor ebx, ebx
cmp eax, 0xffffffff
push edi
setne bl
call fcn.004220b1
pop ecx
mov eax, ebx
jmp 0x407909
xor eax, eax
pop edi
pop ebp
pop ebx
ret

Function at 0x40790d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push esi
push edi
xor esi, esi
mov ebp, 0x463558
xor edi, edi
push edi
push 2
push ebp
jmp 0x407950
add esi, esi
test eax, eax
je 0x407970
movzx eax, word [esi + 0x463558]
cmp eax, 0xa
je 0x407970
cmp eax, 0xd
lea esi, [edi + 1]
cmove esi, edi
cmp esi, 0x3ff
jge 0x407965
push 0
push 2
lea eax, [esi*2 + 0x463558]
mov edi, esi
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x40791f
xor eax, eax
pop edi
pop esi
pop ebp
ret
xor ecx, ecx
mov word [0x463d56], cx
jmp 0x407981
cmp esi, 0x800
jae 0x407985
xor eax, eax
mov word [esi + 0x463558], ax
mov eax, ebp
jmp 0x407961
call fcn.0041055d
int3
Function at 0x40837f
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4566b4]
xor eax, esp
mov dword [esp + 0x190], eax
cmp dword [0x465570], 0
jne 0x4083fb
push esi
push edi
xor edi, edi
push str.ws2_32.dll
inc edi
call fcn.0040c17c
mov esi, eax
pop ecx
test esi, esi
jne 0x4083c5
push str.wsock32.dll
call fcn.0040c17c
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 [0x46556c], eax
pop edi
mov dword [0x465570], 1
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00410400
add esp, 0x194
ret
push 0xd
call fcn.00409f46
pop ecx
push eax
call fcn.004082df
int3
Function at 0x4095e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.00410410
mov eax, dword [0x4566b4]
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 0x453428
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 0x4534f8
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 0x453504
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.00410400
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 [0x4566b4]
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.00410400
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 [0x4566b4]
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.004075ed
mov dword [0x46ae18], 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.00407730
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x409c05
push dword [esp + 0x10]
lea eax, [esp + 0x5c]
push 0x4538d8
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], 0x4538dc
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 [0x46ae18]
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.00410400
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 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 + 0x43d330]
divsd xmm0, qword [0x43d320]
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fstp qword [esp]
call fcn.00424b20
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
mulsd xmm0, qword [0x43d328]
pop ecx
pop ecx
call fcn.00410640
mov ebp, dword [esp + 0x24]
push 1
mov dword [ebp], eax
inc eax
push eax
call fcn.004220a6
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 + 0x454ec8]
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 0x454ed4
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.004220cc
mov esi, eax
pop ecx
push ebp
test esi, esi
jne 0x40a9e8
call fcn.00421d13
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.00424e16
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.00421d13
pop ecx
cmp ebx, edi
je 0x40aa1c
push esi
call fcn.004220b1
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.004220b1
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 [0x4566b4]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp dword [0x46bf60], 0
je 0x40b2de
mov eax, dword [0x46bf64]
jmp 0x40b323
push esi
push pe_nt_image_headers32
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00411ec0
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 [0x46bf60], eax
mov eax, esi
mov dword [0x46bf64], esi
pop esi
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00410400
add ebp, 0x98
leave
ret
Function at 0x40b7c4
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x43cc0a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4566b4]
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 0x40b8b0
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d612
mov eax, dword [eax]
test eax, eax
je 0x40b83d
mov esi, dword [eax]
push 0x104
push esi
push dword [ebp + 0x218]
push ebx
call fcn.00414233
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x40b886
call fcn.0040daca
jmp 0x40b886
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.00410400
add ebp, 0x20c
leave
ret
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.0040ddab
pop ecx
pop ecx
push esi
push edi
call fcn.00411440
int3

Function at 0x40b8ca
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x43cc34
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4566b4]
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 0x40b9b6
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d612
mov eax, dword [eax]
test eax, eax
je 0x40b943
mov esi, dword [eax]
push 0x104
push esi
push dword [ebp + 0x218]
push ebx
call fcn.00414233
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x40b98c
call fcn.0040daca
jmp 0x40b98c
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.00410400
add ebp, 0x20c
leave
ret
push edi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.0040ddab
pop ecx
pop ecx
push esi
push edi
call fcn.00411440
int3
Function at 0x40c17c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4566b4]
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.00411ec0
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 0x40c202
cmp eax, edi
ja 0x40c202
push ebx
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00411ec0
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x43e064
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 0x40c204
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410400
leave
ret

Function at 0x40c225
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40c232
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 0x40c2a4
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.00411ec0
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 0x40c33c
cmp dword [ebp + 8], ebx
je 0x40c33c
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 0x40c33c
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 0x40c33e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c6b2
Capabilities:
Query environment variable

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

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x43ccba
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4566b4]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x43e584
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00420fe6
add esp, 0xc
test eax, eax
jne 0x40d4dd
push dword [ebp - 0x18]
call fcn.004220b1
cmp dword [0x46bf40], 0
pop ecx
je 0x40d45b
xor eax, eax
inc eax
jmp 0x40d4df
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x40d4dd
test eax, eax
je 0x40d4dd
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d612
xor edi, edi
lea ecx, [ebp - 0x10]
push str.JavaDeployReg.log
mov dword [ebp - 4], edi
call fcn.0040d612
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d675
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40d4ad
call fcn.0040daca
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40d4b6
mov edi, dword [esi]
push 0x43e68c
push edi
push 0x46bf40
call fcn.004145d3
add esp, 0xc
neg eax
sbb edi, edi
test esi, esi
je 0x40d4d8
mov ecx, esi
call fcn.0040daca
lea eax, [edi + 1]
jmp 0x40d4df
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.00410400
add ebp, 0x20c
leave
ret

Function at 0x40d918
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x220
mov eax, dword [0x4566b4]
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.0040d854
mov esi, eax
test esi, esi
jne 0x40d9f7
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 0x40d9cf
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040d918
mov esi, eax
test esi, esi
jne 0x40d9f7
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 0x40d994
jmp 0x40d9d1
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x40d9e6
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.0040d6e8
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x40da08
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.00410400
add esp, 0x220
ret 4