joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408418
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.004105e0
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x439880
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x7c], 0x400
mov dword [ebp - 0x70], 1
call esi
test eax, eax
jne 0x408519
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x794]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40849f
and dword [ebp - 0x70], 0
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4084b0
and dword [ebp - 0x70], 0
lea eax, [ebp + 0x794]
push eax
push str.SoftwareJavaSoftJava_Runtime_Environment
push 0x439874
lea eax, [ebp - 0x6c]
push 0x400
push eax
call fcn.004101b0
add esp, 0x14
lea eax, [ebp - 0x74]
push eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
push edi
call esi
test eax, eax
jne 0x408519
lea eax, [ebp + 0xfa4]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x439950
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x408509
mov dword [ebp - 0x70], ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x408519
mov dword [ebp - 0x70], ebx
mov ecx, dword [ebp + 0xf94]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffe6
add ebp, 0xf98
leave
ret

Function at 0x40863b
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 0x40868a
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 0x4087f8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43cddc]
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 0x40882e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ffe6
leave
ret
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x408854
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x408820
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 8]
je 0x40886e
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
jmp 0x408845
mov esi, dword [ebp - 0x218]
jmp 0x408849

Function at 0x408876
Capabilities:
Query or enumerate registry value

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 9
pop ecx
mov dword [ebp - 0x10], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
call fcn.004071f7
pop ecx
mov dword [0x451f58], eax
cmp eax, 0xffffffff
jne 0x409825
push 5
call fcn.00409a61
pop ecx
push eax
call fcn.004096e7
cmp dword [ebp + 8], esi
jg 0x40982e
push 0x13
jmp 0x409819
push dword [ebp + 8]
call fcn.0040734f
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
jne 0x409842
push 0x11
jmp 0x409819
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push 0x439e00
push 0xffffffffffffffff
push 6
pop edi
push edi
push eax
call fcn.004141bd
add esp, 0x14
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, edi
je 0x409871
push 0x14
jmp 0x409819
push ebx
call fcn.00408098
pop ecx
cmp dword [ebp - 0x10], esi
je 0x409941
mov ebx, dword [ebp - 0x14]
push 0x7f00
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 0x409737
mov dword [ebp - 0x30], ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0x439e04
call dword [sym.imp.USER32.dll_RegisterClassW]
push esi
push ebx
push esi
push esi
mov eax, SysReAllocString
push eax
push eax
push eax
push eax
push 0xcf0000
push str.Win32Splash
push str.SplashDummy
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x409731
push 0x4e20
mov edi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x4098f6
push 0x15
jmp 0x409819
call fcn.00409677
push dword [ebp - 0x10]
call fcn.00409697
pop ecx
push 8
push 0x401
push edi
push dword [0x451f58]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x409934
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x5c]
push eax
call edi
test eax, eax
jne 0x409920
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040ffe6
leave
ret
Function at 0x409c52
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
fild dword [ebp + 0xc]
push esi
push edi
test eax, eax
jns 0x409c69
fadd qword [0x42e340]
fdiv qword [0x42e338]
push ecx
push ecx
fstp qword [esp]
call fcn.00414490
fmul qword [0x42e330]
fstp qword [ebp - 8]
fld qword [ebp - 8]
call fcn.00414666
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
inc eax
push 1
push eax
call fcn.00410283
mov edi, eax
xor esi, esi
add esp, 0x10
mov dword [ebp + 0x10], edi
cmp edi, esi
jne 0x409cad
xor eax, eax
jmp 0x409d59
cmp esi, dword [ebp + 0xc]
jae 0x409d2f
mov ecx, dword [ebp + 8]
movzx ecx, byte [esi + ecx]
inc esi
cmp esi, dword [ebp + 0xc]
jae 0x409cc9
mov edx, dword [ebp + 8]
movzx edi, byte [esi + edx]
inc esi
jmp 0x409ccb
xor edi, edi
cmp esi, dword [ebp + 0xc]
jae 0x409cda
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
inc esi
jmp 0x409cdc
xor edx, edx
shl ecx, 8
add ecx, edi
shl ecx, 8
add ecx, edx
mov edx, ecx
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
mov edx, ecx
shr edx, 0xc
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 6
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], dl
mov byte [eax + 3], cl
add eax, 4
cmp esi, dword [ebp + 0xc]
jb 0x409cb2
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 3
xor edx, edx
pop ecx
div ecx
mov esi, dword [edx*4 + 0x43b4d8]
test esi, esi
je 0x409d57
fld qword [ebp - 8]
call fcn.00414630
lea eax, [eax + edi - 1]
mov byte [eax], 0x3d
dec eax
dec esi
jne 0x409d50
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40a37a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00409f52
mov edi, eax
pop ecx
test edi, edi
js 0x40a3bf
push 0x43b51c
push dword [ebp + 8]
call fcn.00409f89
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x40a3bf
lea eax, [edi + 2]
push eax
call fcn.004101ef
mov esi, eax
pop ecx
push ebx
test esi, esi
jne 0x40a3cc
call fcn.0041091d
pop ecx
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push edi
push 1
push esi
call fcn.00414af6
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jle 0x40a3ed
push 9
call fcn.00409a61
push eax
call fcn.00407f5a
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.0041091d
pop ecx
cmp ebx, edi
je 0x40a402
push esi
call fcn.0041068a
jmp 0x40a3be
xor ecx, ecx
xor eax, eax
cmp eax, ebx
jge 0x40a417
cmp byte [eax + esi], 0
jne 0x40a411
inc ecx
inc eax
cmp eax, 6
jl 0x40a406
cmp ecx, 1
jle 0x40a42b
mov edi, dword [ebp + 0xc]
lea eax, [ebx + esi]
mov dword [edi], esi
mov word [eax], 0
jmp 0x40a442
push esi
mov byte [ebx + esi], 0
call fcn.0040a031
mov edi, dword [ebp + 0xc]
push esi
mov dword [edi], eax
call fcn.0041068a
pop ecx
pop ecx
mov eax, dword [edi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a447
sub eax, edx
sar eax, 1
jmp 0x40a3c7

Function at 0x40ac40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aca9
cmp dword [ebp + 0x10], 1
je 0x40ac81
cmp dword [ebp + 0x10], 2
je 0x40ac81
push 0xd
pop eax
jmp 0x40aca9
mov eax, dword [ebp - 4]
test edi, edi
je 0x40aca3
test eax, eax
je 0x40ac9e
test al, 1
jne 0x40ac7c
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40aca3
jmp 0x40ac7c
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x40af57
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp dword [0x4530a8], 0
je 0x40af82
mov eax, dword [0x4530a4]
jmp 0x40afc6
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00410610
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x70], 2
jne 0x40afb9
cmp dword [ebp - 0x7c], 6
jb 0x40afb9
mov eax, ecx
jmp 0x40afbb
xor eax, eax
mov dword [0x4530a4], eax
mov dword [0x4530a8], ecx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0040ffe6
add ebp, 0x98
leave
ret
Function at 0x40b1e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00410610
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40b27d
cmp eax, edi
ja 0x40b27d
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00410610
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x42f16c
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 0x40b27f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffe6
leave
ret

Function at 0x40b3a3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40b3b0
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 0x40b40c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00410610
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
add esp, 0xc
mov word [ebp - 0x28], ax
lea eax, [ebp - 4]
xor edi, edi
push eax
inc edi
push 0x2000000
mov dword [ebp - 0x58], 0x44
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 0x40b485
cmp dword [ebp + 8], esi
je 0x40b485
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x8000008
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, esi
jne 0x40b489
xor eax, eax
jmp 0x40b4a7
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
pop edi
pop esi
leave
ret
Function at 0x40b6b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.004105e0
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0xf88], eax
push esi
mov esi, dword [ebp + 0xf9c]
push edi
mov edi, dword [ebp + 0xf94]
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x788], ax
lea eax, [ebp + 0x78a]
push eax
call fcn.00410610
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
lea eax, [ebp + 0x788]
push 0x400
push eax
call fcn.004101b0
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
neg esi
push 0
lea eax, [ebp + 0x788]
sbb esi, esi
push eax
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
test eax, eax
je 0x40b74b
xor ecx, ecx
cmp eax, 2
sete cl
jmp 0x40b7ba
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x42f4d4
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x7c]
test eax, eax
je 0x40b779
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40b7bc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xf98]
lea ecx, [ebp - 0x78]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b7ae
test dx, dx
je 0x40b7aa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b7ae
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b788
xor eax, eax
jmp 0x40b7b3
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp + 0xf88]
xor ecx, ebp
call fcn.0040ffe6
add ebp, 0xf8c
leave
ret

Function at 0x40b9c3
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x40b9e4
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x42f5ec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40b9e4
inc esi
mov eax, esi
pop esi
ret
Function at 0x40c913
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x42d995
call fcn.00415253
push 0x42f684
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004107d9
add esp, 0xc
test eax, eax
jne 0x40c9ee
push dword [ebp - 0x18]
call fcn.0041068a
cmp dword [0x453088], 0
pop ecx
je 0x40c96e
xor eax, eax
inc eax
jmp 0x40c9f0
lea eax, [ebp]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x40c9ee
test eax, eax
je 0x40c9ee
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d1d7
and dword [ebp - 4], 0
push str.JavaDeployReg.log
lea ecx, [ebp - 0x14]
call fcn.0040d1d7
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040d3f0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40c9bf
call fcn.0040d3b2
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x40c9ca
mov eax, dword [esi]
jmp 0x40c9cc
xor eax, eax
push 0x42f730
push eax
push 0x453088
call fcn.004100ca
add esp, 0xc
test eax, eax
je 0x40ca13
test esi, esi
je 0x40c9ee
mov ecx, esi
call fcn.0040d3b2
xor eax, eax
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.0040ffe6
add ebp, 0x20c
leave
ret
test esi, esi
je 0x40c966
mov ecx, esi
call fcn.0040d3b2
jmp 0x40c966

Function at 0x40ccc2
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x42d9bd
call fcn.00415286
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.0040b0d8
test eax, eax
je 0x40cced
call fcn.0040ccb3
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x42e30c
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x40cd48
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.0040d692
pop ecx
pop ecx
push edi
push esi
call fcn.0042d6b0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.0040d30f
push eax
push esi
push 0x42e66c
call fcn.0040d692
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x40cd41
ret
cmp ebx, edi
je 0x40cd53
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x40ce04
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x40cdb0
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x40cd0c
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x40ce04
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x40ce04
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x40cd0c
mov eax, esi
call fcn.004152bc
ret
Function at 0x40d10c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.0040abb9
mov ebx, eax
cmp ebx, esi
je 0x40d17f
lea ecx, [ebp - 0x74]
call fcn.0040ab9e
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffe6
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40d197
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040d10c
cmp eax, esi
jne 0x40d1c9
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x40d187
lea ecx, [ebp - 0x74]
call fcn.0040ab9e
push dword [ebp - 0x78]
mov ecx, edi
call fcn.0040ab2f
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040ab9e
mov eax, esi
jmp 0x40d165
Function at 0x40d4d1
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.004105e0
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x7fe
push esi
push eax
mov word [ebp - 0x1044], ax
lea eax, [ebp - 0x1042]
push eax
call fcn.00410610
push ebx
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x1044]
push 0x400
push eax
call fcn.004164bc
add esp, 0x20
test eax, eax
jns 0x40d532
xor eax, eax
mov word [ebp - 0x846], ax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.00410610
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0040d453
push 0x42f9ec
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.00415345
xor eax, eax
push esi
push eax
mov word [ebp - 0x844], ax
lea eax, [ebp - 0x842]
push eax
call fcn.00410610
add esp, 0x2c
mov eax, edi
push 2
lea edx, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x40d581
sub eax, edx
sar eax, 1
cmp eax, 6
jbe 0x40d5d1
mov ecx, 0x42f9f0
lea eax, [edi + eax*2 - 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d5c3
test dx, dx
je 0x40d5bf
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d5c3
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d59d
xor eax, eax
jmp 0x40d5c8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40d5d1
xor esi, esi
inc esi
jmp 0x40d5d3
xor esi, esi
lea eax, [ebp - 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x40d5d9
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, str.Error:
test esi, esi
jne 0x40d5f7
mov eax, 0x42fa10
lea ecx, [ebp - 0x1044]
push ecx
push eax
lea esi, [edi + edi]
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, edi
push 0xffffffffffffffff
push eax
lea eax, [ebp + esi - 0x844]
push eax
call fcn.004101ce
add esp, 0x20
test eax, eax
jns 0x40d648
xor eax, eax
movzx ecx, word [eax + 0x42fa3c]
mov word [ebp + eax - 0x4e], cx
add eax, ebx
test cx, cx
jne 0x40d635
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x844]
push eax
call fcn.004110a0
lea edi, [ebp - 0x844]
add esp, 0xc
sub edi, 2
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x40d665
lea eax, [ebp - 0x844]
mov esi, 0x42fa44
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffe6
leave
ret

Function at 0x40d6f0
Capabilities:
Create process on windows

Disassembly:
call fcn.0040e9b9
test eax, eax
jne 0x40d70e
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