joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x40f350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x238]
push 0x20
push eax
xor ebx, ebx
call fcn.00403bf0
add esp, 8
lea ecx, [ebp - 0x218]
push ecx
push 0x11
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x238], esi
xor esi, esi
lea ecx, [ebp - 0x238]
lea edx, [ebp - 0x210]
push ecx
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x228], 0x10
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x234], eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, esi
je 0x402125
lea edx, [ebp - 0x210]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x402125
lea eax, [ebp - 0x210]
push eax
call fcn.00402eb0
add esp, 4
mov ebx, eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
je 0x402159
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x218]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004098ea
mov esp, ebp
pop ebp
ret

Function at 0x402730
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push 0x112
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 4]
push ecx
push 0x65
xor ebx, ebx
push ebx
mov esi, eax
mov dword [ebp - 0x2c], 0x17
call sub.NETAPI32.dll_NetWkstaGetInfo
test eax, eax
je 0x40276d
push ebx
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x28], ebx
mov eax, dword [edx + 4]
push ebx
mov dword [ebp - 0x24], eax
mov eax, 1
push 0x40b
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call edi
mov edx, dword [ebp - 4]
push edx
call sub.NETAPI32.dll_NetApiBufferFree
push ebx
push ebx
push 0x14e
push esi
call edi
lea eax, [ebp - 8]
push eax
push ebx
push ebx
call sub.NETAPI32.dll_NetGetDCName
cmp eax, ebx
je 0x4027ce
cmp eax, 0xea
je 0x4027ce
push ebx
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x402806
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x2c]
push edx
push ebx
push 0x40b
add ecx, 4
push esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call edi
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 8]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [0x4113b8]
push ecx
push ebx
push 0x402
push esi
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ef0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x402f00
cmp ebx, 0xffffffff
jne 0x402f06
mov ebx, dword [0x4113e8]
mov eax, dword [ebx]
cmp eax, 0x1000000
je 0x402f33
push eax
push str.Parent_Handle_type_is_not_POOL__d
push 0x1de
push str......_srchandles.c
push 1
push 3
push 0
call fcn.00403610
add esp, 0x1c
or eax, 0xffffffff
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x38]
push esi
push edi
mov edi, dword [ebp + 0x14]
lea esi, [edi + 0x77]
and esi, 0xfffffff0
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [eax], esi
mov dword [eax + 4], ebx
lea esi, [eax + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x24], ebx
test eax, eax
je 0x402f62
mov dword [esi + 0x18], eax
jmp 0x402f69
mov dword [esi + 0x18], 0x402ce0
mov ecx, dword [ebp + 0xc]
test ecx, 0x2000000
je 0x402f83
mov edx, dword [ebp + 0x10]
or dword [esi + 4], 0x2000020
mov dword [esi + 0x48], edx
jmp 0x402fbd
test ecx, 0x4000000
je 0x402f9a
mov eax, dword [ebp + 0x10]
or dword [esi + 4], 0x4000020
mov dword [esi + 0x48], eax
jmp 0x402fbd
test edi, edi
je 0x402fbd
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x402fbd
or dword [esi + 4], 0x20
push edi
push eax
lea ecx, [esi + 0x58]
push ecx
call fcn.00403c60
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 8], edi
test cl, 0x10
je 0x403015
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea edx, [esi + 0x34]
push edx
push 0
push esi
push 0x402c20
push 0
push 0
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
test eax, eax
je 0x402ffb
cmp eax, 0xffffffff
je 0x402ffb
or dword [esi + 4], 0x10
jmp 0x403015
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x403015
cmp eax, 0xffffffff
je 0x403015
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2c], 0
push 0
lea eax, [esi + 0x1c]
push 1
lea edi, [ebx + 0x28]
push edi
mov dword [eax], 0
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x403050
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
push 0
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x403033
mov ecx, dword [ebx + 0x58]
lea eax, [ebx + 0x58]
lea edx, [esi + 0x3c]
mov dword [edx], ecx
test ecx, ecx
je 0x403066
mov ecx, dword [eax]
mov dword [ecx + 0x40], edx
jmp 0x403069
mov dword [eax + 4], edx
mov dword [eax], esi
push 0
mov dword [esi + 0x40], eax
inc dword [ebx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x403090
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40323c
cmp esi, 0xffffffff
je 0x40323c
mov ebx, 0xdeadbeef
cmp dword [esi], ebx
je 0x40323c
mov eax, dword [esi + 0x18]
push edi
push 0
push 0
push 0x10
push esi
call eax
mov edi, dword [esi + 0x1c]
add esp, 0x10
test edi, edi
je 0x40311c
lea ecx, [ecx]
mov ecx, dword [edi]
push 0
push 0
push 0x10
push esi
call ecx
mov eax, dword [edi + 4]
add esp, 0x10
test eax, eax
je 0x4030ed
mov edx, dword [edi + 8]
mov dword [eax + 8], edx
jmp 0x4030f3
mov eax, dword [edi + 8]
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
lea eax, [edi - 0x10]
mov dword [ecx], edx
mov ecx, dword [eax + 4]
cmp ecx, ebx
je 0x403115
push eax
mov dword [eax + 4], ebx
mov eax, dword [ecx + 0x38]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [edi + 4]
test edi, edi
jne 0x4030d0
test byte [esi + 4], 0x10
mov dword [esi], ebx
je 0x403189
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x30]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40315b
cmp eax, 0xffffffff
je 0x40315b
push eax
call ebx
mov dword [esi + 0x2c], 0
cmp edi, 0x102
jne 0x40316f
mov eax, dword [esi + 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x403185
cmp eax, 0xffffffff
je 0x403185
push eax
call ebx
mov dword [esi + 0x30], 0
and dword [esi + 4], 0xffffffef
mov ebx, dword [esi + 0x24]
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x403232
cmp ebx, 0xffffffff
je 0x403232
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
push 1
lea ecx, [ebx + 0x28]
push ecx
call edi
test eax, eax
je 0x4031de
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push 0xa
call ebx
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov edx, dword [esi + 0x24]
push 0
push 1
add edx, 0x28
push edx
call edi
test eax, eax
jne 0x4031c0
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4031ed
mov ecx, dword [esi + 0x40]
mov dword [eax + 0x40], ecx
jmp 0x4031f3
mov edx, dword [esi + 0x40]
mov dword [ebx + 0x5c], edx
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
dec dword [eax + 8]
mov edx, dword [esi + 0x24]
push 0
add edx, 0x28
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi - 0xc]
lea eax, [esi - 0x10]
cmp ecx, 0xdeadbeef
je 0x403232
push eax
mov dword [eax + 4], 0xdeadbeef
mov eax, dword [ecx + 0x38]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4033b0
Capabilities:
Accept command line arguments
Get system information on windows

Disassembly:
push esi
push 0x4113c4
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.00405ae0
mov eax, dword [0x4113e0]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 1
push 0x2000
push eax
push 0
call esi
mov dword [0x4113f0], eax
test eax, eax
je 0x4033a3
mov ecx, dword [0x4113e0]
push 4
push 0x1000
push ecx
push eax
call esi
mov edx, dword [0x4113e0]
push 0
push edx
push 0
mov dword [0x4113f0], eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0x70
mov esi, eax
push 8
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x4113e8], eax
mov dword [eax + 0x38], esi
mov dword [eax], 0xdeadbeef
test esi, esi
je 0x4033a3
cmp esi, 0xffffffff
je 0x4033a3
lea ecx, [eax + 0x58]
mov dword [eax + 0x18], fcn.00403250
lea edx, [ecx + 8]
mov dword [ecx], 0
mov dword [ecx + 4], ecx
mov dword [edx], 0
mov dword [ecx + 0xc], edx
push 0x4113f8
mov dword [eax], 0x1000000
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [0x4113f4], eax
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
mov eax, dword [0x4113ec]
mov ecx, eax
inc eax
mov dword [0x4113ec], eax
test ecx, ecx
je 0x4033c7
mov eax, 1
ret
jmp 0x4032e0
Function at 0x403f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403f89
cmp dword [ebp - 8], 1
jne 0x403f89
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push esi
lea eax, [edx + edx]
push eax
push ecx
call fcn.00402da0
mov esi, eax
add esp, 8
test esi, esi
jne 0x403f6d
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404010
mov eax, dword [ebp - 4]
test eax, eax
je 0x404010
mov edx, dword [ebp + 8]
push esi
push eax
push edx
call fcn.00402da0
mov esi, eax
add esp, 8
test esi, esi
jne 0x403fe8
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp - 8]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x404007
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
test esi, esi
je 0x404680
cmp esi, 0xffffffff
je 0x404680
cmp dword [esi], 0x8000000
jne 0x404680
mov eax, dword [ebp + 0xc]
dec eax
push edi
cmp eax, 0x3f
ja case.0x4045d6.3
movzx eax, byte [eax + 0x4046a4]
jmp dword [eax*4 + 0x404688]
mov edi, dword [esi + 0x58]
jmp 0x4045f9
mov edi, dword [esi + 0x6c]
jmp 0x4045f9
mov edi, dword [esi + 0x5c]
jmp 0x4045f9
mov edi, dword [esi + 0x70]
jmp 0x4045f9
mov edi, dword [esi + 0x60]
jmp 0x4045f9
mov edi, dword [esi + 0x74]
test edi, edi
jne 0x404605
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x404643
mov eax, dword [esi + 0x64]
test eax, eax
je 0x404627
cmp eax, 0xffffffff
je 0x404627
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x64], 0
mov edx, dword [esi + 0x78]
lea ecx, [ebp - 4]
push ecx
push edx
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404677
mov edi, dword [ebp - 4]
mov dword [esi + 0x64], edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push eax
push edi
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404677
cmp dword [ebp - 8], 4
jne 0x404677
mov eax, dword [ebp - 0xc]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4046f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x404816
cmp esi, 0xffffffff
je 0x404816
cmp dword [esi], 0x8000000
jne 0x404816
mov eax, dword [ebp + 0xc]
dec eax
push edi
cmp eax, 0x3f
ja case.0x40472d.3
movzx eax, byte [eax + 0x40483c]
jmp dword [eax*4 + 0x404820]
mov edi, dword [esi + 0x58]
jmp 0x404750
mov edi, dword [esi + 0x6c]
jmp 0x404750
mov edi, dword [esi + 0x5c]
jmp 0x404750
mov edi, dword [esi + 0x70]
jmp 0x404750
mov edi, dword [esi + 0x60]
jmp 0x404750
mov edi, dword [esi + 0x74]
test edi, edi
jne 0x40475c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40479a
mov eax, dword [esi + 0x64]
test eax, eax
je 0x40477e
cmp eax, 0xffffffff
je 0x40477e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x64], 0
mov edx, dword [esi + 0x78]
lea ecx, [ebp - 4]
push ecx
push edx
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4047e0
mov edi, dword [ebp - 4]
mov dword [esi + 0x64], edi
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
test eax, eax
je 0x4047e9
test ebx, ebx
je 0x4047e9
cmp dword [ebx], 0
je 0x4047e9
mov ecx, dword [ebp + 0x14]
push ebx
push eax
lea eax, [ebp + 8]
push eax
push 0
push ecx
push edi
mov dword [ebp + 8], 7
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4047e0
cmp dword [ebp + 8], 7
jne 0x4047e0
mov edx, dword [ebp + 0x18]
pop ebx
pop edi
mov dword [esi + 0x68], edx
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x24]
push ebx
push eax
push edi
push ecx
call fcn.00403fa0
add esp, 0x10
mov dword [esi + 0x68], eax
test eax, eax
je 0x40480c
test ebx, ebx
je 0x40480c
mov edx, dword [ebx]
add edx, edx
mov dword [ebx], edx
mov eax, dword [esi + 0x68]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404880
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x40495e
cmp esi, 0xffffffff
je 0x40495e
cmp dword [esi], 0x8000000
jne 0x40495e
mov eax, dword [ebp + 0xc]
dec eax
push edi
cmp eax, 0x3f
ja case.0x4048bd.3
movzx eax, byte [eax + 0x404984]
jmp dword [eax*4 + 0x404968]
mov edi, dword [esi + 0x58]
jmp 0x4048e0
mov edi, dword [esi + 0x6c]
jmp 0x4048e0
mov edi, dword [esi + 0x5c]
jmp 0x4048e0
mov edi, dword [esi + 0x70]
jmp 0x4048e0
mov edi, dword [esi + 0x60]
jmp 0x4048e0
mov edi, dword [esi + 0x74]
test edi, edi
jne 0x4048ec
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40493b
mov eax, dword [esi + 0x64]
test eax, eax
je 0x40490e
cmp eax, 0xffffffff
je 0x40490e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x64], 0
mov edx, dword [esi + 0x78]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x404935
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
mov dword [esi + 0x64], edi
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
push ecx
push 7
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop ebx
sbb eax, eax
pop edi
inc eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4049d0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x404ad4
cmp esi, 0xffffffff
je 0x404ad4
cmp dword [esi], 0x8000000
jne 0x404ad4
mov eax, dword [ebp + 0xc]
dec eax
push edi
cmp eax, 0x3f
ja case.0x404a0d.3
movzx eax, byte [eax + 0x404af8]
jmp dword [eax*4 + 0x404adc]
mov edi, dword [esi + 0x58]
jmp 0x404a30
mov edi, dword [esi + 0x6c]
jmp 0x404a30
mov edi, dword [esi + 0x5c]
jmp 0x404a30
mov edi, dword [esi + 0x70]
jmp 0x404a30
mov edi, dword [esi + 0x60]
jmp 0x404a30
mov edi, dword [esi + 0x74]
test edi, edi
jne 0x404a3c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x404a82
mov eax, dword [esi + 0x64]
test eax, eax
je 0x404a5e
cmp eax, 0xffffffff
je 0x404a5e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x64], 0
mov edx, dword [esi + 0x78]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404ab2
mov edi, dword [ebp - 4]
mov dword [esi + 0x64], edi
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x404abb
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
test eax, eax
je 0x404abb
push esi
call ebx
mov ecx, dword [ebp + 0x14]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x404ac8
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x404aae
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404b40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x404c1c
cmp esi, 0xffffffff
je 0x404c1c
cmp dword [esi], 0x8000000
jne 0x404c1c
mov eax, dword [ebp + 0xc]
dec eax
push edi
cmp eax, 0x3f
ja case.0x404b7d.3
movzx eax, byte [eax + 0x404c40]
jmp dword [eax*4 + 0x404c24]
mov edi, dword [esi + 0x58]
jmp 0x404ba0
mov edi, dword [esi + 0x6c]
jmp 0x404ba0
mov edi, dword [esi + 0x5c]
jmp 0x404ba0
mov edi, dword [esi + 0x70]
jmp 0x404ba0
mov edi, dword [esi + 0x60]
jmp 0x404ba0
mov edi, dword [esi + 0x74]
test edi, edi
jne 0x404bac
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x404bfb
mov eax, dword [esi + 0x64]
test eax, eax
je 0x404bce
cmp eax, 0xffffffff
je 0x404bce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x64], 0
mov edx, dword [esi + 0x78]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x404bf5
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
mov dword [esi + 0x64], edi
mov ecx, dword [ebp + 0x14]
push 4
lea eax, [ebp + 0x18]
push eax
push 4
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop ebx
sbb eax, eax
pop edi
inc eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404c80
Capabilities:
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
mov eax, dword [0x40f350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x404cb6
mov eax, dword [str.JAVA_HOME]
push eax
push ebx
call fcn.00405b90
add esp, 8
test eax, eax
jne 0x404ddc
mov ecx, dword [str.CurrentVersion]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ecx
lea edx, [ebp - 0x604]
push edx
call esi
test edi, edi
je 0x404ce0
mov eax, dword [str.SOFTWAREJavaSoftJava_Runtime_Environment_]
push eax
lea ecx, [ebp - 0x404]
push ecx
jmp 0x404cee
mov edx, dword [str.SOFTWAREJavaSoftJava_Development_Kit_]
push edx
lea eax, [ebp - 0x404]
push eax
call esi
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x608]
push edx
push 0x20019
lea edi, [ebp + eax*2 - 0x404]
push 0
lea eax, [ebp - 0x404]
push eax
push 0x80000002
mov dword [ebp - 0x60c], 0xff
call esi
test eax, eax
jne 0x404d63
mov edx, dword [str.CurrentVersion]
lea ecx, [ebp - 0x60c]
push ecx
push edi
push eax
push eax
mov eax, dword [ebp - 0x608]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404d76
mov ecx, dword [ebp - 0x608]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004098ea
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x608]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
lea eax, [ebp - 0x608]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x404]
push ecx
push 0x80000002
call esi
test eax, eax
jne 0x404d63
mov edx, dword [str.JavaHome]
mov eax, dword [ebp - 0x608]
push edx
push eax
push ebx
call fcn.00403f20
mov esi, eax
add esp, 0xc
test esi, esi
je 0x404dd0
mov ecx, dword [str.JAVA_HOME]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp - 0x608]
push edx
call edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004098ea
mov esp, ebp
pop ebp
ret