joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc9ff10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xcb49fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xca0002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00ca3dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xca0002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00c9b6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00ca420b
push 0x10
call fcn.00ca41d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xc9ffc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00c901c0
jmp 0xc9ffc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00c9fb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xc9fff0
mov ecx, edi
call fcn.00c902c0
push edi
call fcn.00ca41c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xca0021
inc ebx
cmp ebx, 0x20
jb 0xc9ff3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xca1250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcb5808
push 0xca5288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xca1329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xca1329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00ca41d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xca1329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xca1329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xca132c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00ca1351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xca1d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xca1d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xca1d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xca1d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xca1d94
push eax
push esi
call fcn.00ca420b
add esp, 8
pop esi
ret 0x10

Function at 0xca1da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xca1e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xca1e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xcba320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ca3dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xca1dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xca1e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xca1ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xca1eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xcba320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ca3dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xca1eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xca1e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xca2000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xca2131
push esi
call fcn.00ca5145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00c94080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xca2131
push 0
push ebp
call fcn.00c943a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00c94260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xca208b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00c942f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xca2121
push 0xcba918
push edi
call fcn.00ca33f0
push eax
push ebx
push esi
call fcn.00ca1f60
push 0xcba8f8
push edi
call fcn.00ca33f0
push eax
push ebx
push esi
call fcn.00ca1f60
push 0xcba8d8
push edi
call fcn.00ca33f0
push eax
push ebx
push esi
call fcn.00ca1f60
push 0xcba8c0
push edi
call fcn.00ca33f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ca1f60
push 0xcba8a0
push edi
call fcn.00ca33f0
push eax
push ebx
push esi
call fcn.00ca1f60
push 0xcba888
push edi
call fcn.00ca33f0
push eax
push ebx
push esi
call fcn.00ca1f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xca31b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ca3140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ca3140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ca3140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ca3140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xca3bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xca3c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcb587c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xca3c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xca3c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40173c
Capabilities:
Get graphical window text

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
mov ecx, 0x20
push edi
push esi
push ebx
lea edi, [ebp - 0x98]
sub esp, 0x11c
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x98]
mov dword [esp + 4], edi
mov dword [esp], 0x18
call fcn.0040205e
test eax, eax
jne 0x401778
xor eax, eax
jmp 0x4017fb
mov dword [esp + 0xc], 0
lea esi, [ebp - 0x118]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.user32.dll_FindWindowExA
sub esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x401771
mov dword [esp + 8], 0x7f
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.user32.dll_GetWindowTextA
sub esp, 0xc
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x4017f9
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call sub.user32.dll_FindWindowExA
sub esp, 0x10
mov ebx, eax
jmp 0x4017a7
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401d2a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x801c
mov ebp, esp
push edi
push esi
push ebx
call fcn.004063d0
mov ecx, 0x7fff
sub esp, eax
xor eax, eax
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x8017]
mov esi, dword [ebp + 0xc]
rep stosb byte es:[edi], al
lea edi, [ebp - 0x8017]
mov dword [esp + 8], 0x7fff
mov dword [esp + 4], edi
mov dword [esp], str.Launch4j
call sub.kernel32.dll_GetEnvironmentVariableA
sub esp, 0xc
mov dword [esp + 4], str.__l4j_debug
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401d9a
mov dword [esp + 4], str.debug
mov dword [esp], edi
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401de8
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00401cb3
test eax, eax
mov dword [0x40b07c], eax
je 0x401e2c
mov dword [esp + 4], str.__l4j_debug_all
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
mov edx, 1
test eax, eax
jne 0x401de2
mov dword [esp + 4], str.debug_all
mov dword [esp], edi
call sub.msvcrt.dll_strstr
xor edx, edx
test eax, eax
setne dl
mov dword [0x40b020], edx
mov eax, dword [0x40b07c]
test eax, eax
je 0x401e09
mov dword [esp + 8], str.3.14
mov dword [esp + 4], str._n_nVersion:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x40b07c]
test eax, eax
je 0x401e30
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str.CmdLine:_t_s__s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x401e30
xor eax, eax
jmp 0x401e35
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401f26
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, dword [0x40b07c]
test eax, eax
je 0x401f55
mov dword [esp + 8], 0x4138bc
mov dword [esp + 4], str.Error_msg:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
test ebx, ebx
je 0x401fe7
lea eax, [ebp - 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0x1300
call sub.kernel32.dll_FormatMessageA
mov eax, dword [0x40b07c]
sub esp, 0x1c
test eax, eax
je 0x401fb7
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], str.Error:_t_t_s_n
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_fprintf
mov dword [esp + 4], 0x40813f
mov dword [esp], 0x4138bc
call sub.msvcrt.dll_strcat
mov ebx, dword [ebp - 0xc]
mov dword [esp], 0x4138bc
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strcat
mov dword [esp], ebx
call sub.kernel32.dll_LocalFree
push ecx
mov dword [esp], 0x4138bc
call fcn.00401ec3
cmp byte [0x413cbc], 0
je 0x402054
mov eax, dword [0x40b07c]
test eax, eax
je 0x40201d
mov dword [esp + 8], 0x413cbc
mov dword [esp + 4], str.Open_URL:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x413cbc
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.shell32.dll_ShellExecuteA
sub esp, 0x18
call fcn.00401d11
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40205e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
cmp dword [0x40b020], 0
mov ebx, dword [ebp + 0xc]
je 0x402092
mov eax, dword [0x40b07c]
test eax, eax
je 0x402092
mov dword [esp + 8], esi
mov dword [esp + 4], str.Resource__d:_t
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x413838]
movzx esi, si
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], esi
mov dword [esp + 4], 0xa
mov dword [esp], eax
call sub.kernel32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x40211b
mov dword [esp + 4], eax
mov eax, dword [0x413838]
mov dword [esp], eax
call sub.kernel32.dll_LoadResource
test eax, eax
push ecx
push ecx
je 0x40212b
mov dword [esp], eax
call sub.kernel32.dll_LockResource
test eax, eax
push edx
je 0x40212b
xor edx, edx
mov cl, byte [eax + edx]
mov byte [ebx + edx], cl
inc edx
test cl, cl
jne 0x4020e3
cmp dword [0x40b020], 0
mov esi, 1
je 0x40214f
mov eax, dword [0x40b07c]
test eax, eax
je 0x40214f
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x408163
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x40214f
mov dword [esp], 0
call sub.kernel32.dll_SetLastError
push esi
mov byte [ebx], 0
xor esi, esi
cmp dword [0x40b020], 0
je 0x40214f
mov eax, dword [0x40b07c]
test eax, eax
je 0x40214f
mov dword [esp + 4], eax
mov dword [esp], str._NULL__n
call sub.msvcrt.dll_fputs
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
Function at 0x4021ce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], str.HKEY_CLASSES_ROOT
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x40224b
mov dword [esp + 4], str.HKEY_CURRENT_USER
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402252
mov dword [esp + 4], str.HKEY_LOCAL_MACHINE
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402259
mov dword [esp + 4], str.HKEY_USERS
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402260
mov dword [esp + 4], str.HKEY_CURRENT_CONFIG
xor esi, esi
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
jne 0x40233c
mov esi, 0x80000005
jmp 0x402265
mov esi, 0x80000000
jmp 0x402265
mov esi, 0x80000001
jmp 0x402265
mov esi, 0x80000002
jmp 0x402265
mov esi, 0x80000003
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
call sub.msvcrt.dll_strchr
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
lea edi, [eax + 1]
call sub.msvcrt.dll_strrchr
lea edx, [ebp - 0x20]
mov byte [eax], 0
mov ebx, eax
cmp dword [0x40b018], 0
jne 0x4022c4
mov dword [esp], esi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], edi
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x402339
jmp 0x4022f1
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x20119
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [ebp - 0x2c], edx
call sub.advapi32.dll_RegOpenKeyExA
mov edx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
jne 0x402299
lea eax, [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
lea eax, [ebx + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
sete al
movzx eax, al
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
push edi
mov byte [ebx], 0x5c
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4027bb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
mov ecx, 0x41
push edi
push esi
push ebx
sub esp, 0x24c
mov edx, dword [ebp + 0xc]
lea edi, [ebp - 0x220]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x22c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x220]
and edx, 0x100
or edx, 0x20019
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x4028b5
lea edi, [ebp - 0x11c]
mov ecx, 0x41
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x228]
xor ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x224]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x22c]
lea edi, [ebp - 0x11c]
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.JavaHome
mov dword [esp], eax
mov dword [ebp - 0x228], 0x104
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x402890
mov dl, byte [edi + eax]
mov byte [esi + eax], dl
inc eax
test dl, dl
jne 0x40287b
mov dword [esp], esi
call fcn.00402647
mov ebx, eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
test ebx, ebx
push eax
je 0x4028b5
mov dword [esp + 4], esi
mov dword [esp], 0x413630
call sub.msvcrt.dll_strcpy
jmp 0x4028c1
mov dword [0x4132a8], 1
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4028cb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x35c
mov ebx, dword [ebp + 0xc]
mov edx, dword [0x40b07c]
and ebx, 0x100
test edx, edx
je 0x402914
mov esi, dword [ebp + 8]
mov eax, 0x408255
test ebx, ebx
mov ecx, 0x408258
cmove eax, ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 4], str._s_bit_search:_t_s..._n
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
lea eax, [ebp - 0x334]
or ebx, 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp], 0x80000002
mov dword [esp + 4], eax
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x402b13
lea edi, [ebp - 0x324]
mov ecx, 0x41
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x220]
mov dword [ebp - 0x330], 0x104
lea esi, [ebp - 0x324]
mov cl, 0x41
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x11c]
mov cl, 0x41
rep stosd dword es:[edi], eax
lea edx, [eax + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x334]
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x33c], edx
lea ebx, [ebp - 0x220]
lea edx, [ebp - 0x32c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.advapi32.dll_RegEnumKeyExA
sub esp, 0x20
test eax, eax
jne 0x402b04
mov eax, dword [ebp + 8]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.004025d6
mov eax, dword [0x40b07c]
test eax, eax
je 0x402a13
mov dword [esp + 8], esi
mov dword [esp + 4], str.Check:_t_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
lea eax, [ebp - 0x220]
lea ebx, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004023a8
mov dword [esp + 4], 0x4133ac
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
js 0x402acc
cmp byte [0x41342c], 0
je 0x402a60
mov dword [esp + 4], 0x41342c
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
jg 0x402acc
mov dword [esp + 4], 0x4134ac
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
jle 0x402acc
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x324]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004027bb
test eax, eax
je 0x402acc
mov dword [esp + 4], ebx
mov dword [esp], 0x4134ac
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], edi
mov dword [esp], 0x41352c
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp + 0xc]
mov dword [0x4132a0], eax
mov eax, dword [0x40b07c]
test eax, eax
je 0x402aef
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Match:_t_t_s_n
jmp 0x402ae7
mov eax, dword [0x40b07c]
test eax, eax
je 0x402aef
lea edx, [ebp - 0x11c]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Ignore:_t_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [ebp - 0x330], 0x104
mov eax, dword [ebp - 0x33c]
jmp 0x40297f
mov eax, dword [ebp - 0x334]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402b1b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
cmp dword [0x41329c], 9
mov ebx, dword [ebp + 0xc]
jne 0x402b43
mov dword [esp], 0x1e
call fcn.0040219b
mov dword [0x41329c], eax
mov eax, dword [0x41329c]
cmp eax, 2
je 0x402b83
jg 0x402b54
dec eax
je 0x402b75
jmp 0x402bc0
cmp eax, 3
je 0x402b60
cmp eax, 4
je 0x402baf
jmp 0x402bc0
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.004028cb
mov eax, dword [0x4132a0]
test eax, eax
jne 0x402ba8
cmp dword [0x40b018], 0
je 0x402bde
or bh, 1
jmp 0x402baf
cmp dword [0x40b018], 0
je 0x402baf
mov eax, ebx
or ah, 1
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004028cb
test byte [0x4132a1], 1
jne 0x402bde
jmp 0x402baf
test ah, 1
jne 0x402b75
jmp 0x402bde
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], esi
add esp, 0x10
pop ebx
pop esi
pop ebp
jmp fcn.004028cb
mov eax, dword [0x40b07c]
test eax, eax
je 0x402bde
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], str.Runtime_bits:_tFailed_to_load._n
add esp, 0x10
pop ebx
pop esi
pop ebp
jmp sub.msvcrt.dll_fputs
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x402be5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea eax, [ebx - 2]
cmp eax, 1
ja 0x402c20
mov dword [esp + 4], 2
mov dword [esp], esi
call fcn.00402b1b
cmp ebx, 3
je 0x402c4a
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], edi
jmp 0x402c3e
mov dword [esp + 4], 1
mov dword [esp], edi
call fcn.00402b1b
test ebx, ebx
je 0x402c4a
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], esi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00402b1b
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret