joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd74250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd88808
push 0xd78288
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 0xd74329
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 0xd74329
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.00d771d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xd74329
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 0xd74329
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 0xd7432c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00d74351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd74d20
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 0xd74d58
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 0xd74d60
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 0xd74d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd74d94
push eax
push esi
call fcn.00d7720b
add esp, 8
pop esi
ret 0x10

Function at 0xd74da0
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 0xd74e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd74e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd8d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d76dff
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 0xd74dda
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 0xd74e30
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 0xd74ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd74eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd8d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d76dff
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 0xd74eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd74e6a
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 0xd75000
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 0xd75131
push esi
call fcn.00d78145
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.00d67080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd75131
push 0
push ebp
call fcn.00d673a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d67260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd7508b
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.00d672f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd75121
push 0xd8d918
push edi
call fcn.00d763f0
push eax
push ebx
push esi
call fcn.00d74f60
push 0xd8d8f8
push edi
call fcn.00d763f0
push eax
push ebx
push esi
call fcn.00d74f60
push 0xd8d8d8
push edi
call fcn.00d763f0
push eax
push ebx
push esi
call fcn.00d74f60
push 0xd8d8c0
push edi
call fcn.00d763f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d74f60
push 0xd8d8a0
push edi
call fcn.00d763f0
push eax
push ebx
push esi
call fcn.00d74f60
push 0xd8d888
push edi
call fcn.00d763f0
push eax
push ebx
push esi
call fcn.00d74f60
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 0xd761b0
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.00d76140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d76140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d76140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d76140
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 0xd76bfa
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 0xd76c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd8887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd76c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd76c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4578a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3c000]
push edi
or ebp, 0xffffffff
jmp 0x4578c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4578c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4578b8
mov eax, 1
add ebx, ebx
jne 0x4578db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4578d0
jne 0x4578ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4578d0
xor ecx, ecx
sub eax, 3
jb 0x457900
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x457972
mov ebp, eax
add ebx, ebx
jne 0x45790b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x457918
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45793c
inc ecx
add ebx, ebx
jne 0x457928
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45791d
jne 0x457939
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45791d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45795c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45794d
jmp 0x4578be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45795c
add edi, ecx
jmp 0x4578be
pop esi
mov edi, esi
mov ecx, 0x446
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45797a
cmp byte [edi], 0xe
jne 0x45797a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x45797f
lea edi, [esi + 0x55000]
mov eax, dword [edi]
or eax, eax
je 0x4579ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5977c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x597f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4579ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x597f8]
or eax, eax
je 0x4579e8
mov dword [ebx], eax
add ebx, 4
jmp 0x4579c9
call dword [esi + 0x597fc]
popal
jmp 0x42dd2d

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x12ce584f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x4ced2507
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401c30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x812c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00405660
lea edi, [ebp - 0x8018]
xor ebx, ebx
mov esi, 0x7fff
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_memset
mov dword [esp + 4], edi
mov ecx, 0x7fff
mov dword [esp + 8], ecx
mov dword [esp], str.Launch4j
call sub.KERNEL32.dll_GetEnvironmentVariableA
mov eax, dword [ebp + 8]
sub esp, 0xc
mov edx, str.__l4j_debug
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401d86
lea ebx, [ebp - 0x8128]
mov edx, 0x104
xor esi, esi
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov esi, 0x6f6c2e6a
mov dword [esp], ebx
call sub.msvcrt.dll_memset
mov dword [esp], ebx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncpy
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [eax + ebx], 0x75616c5c
mov edx, 0x3468636e
mov ecx, 0x407090
mov dword [eax + ebx + 4], edx
mov dword [eax + ebx + 8], esi
mov word [eax + ebx + 0xc], 0x67
mov dword [esp], ebx
mov dword [esp + 4], ecx
call sub.msvcrt.dll_fopen
mov dword [0x408090], eax
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d7e
mov eax, dword [ebp + 8]
mov ecx, str.__l4j_debug_all
xor esi, esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401da7
mov esi, 1
mov dword [0x408028], esi
test ebx, ebx
je 0x401d79
mov dword [esp], ebx
mov esi, str.3.10
mov edi, str._n_nVersion:_t_s_n
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll_fprintf
mov eax, dword [0x408090]
test eax, eax
je 0x401d79
mov dword [esp], eax
mov edx, dword [ebp + 8]
mov ebx, str.CmdLine:_t_s__s_n
mov dword [esp + 4], ebx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
call sub.msvcrt.dll_fprintf
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
mov edx, str.debug
mov dword [esp + 4], edx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401c95
mov ebx, dword [0x408090]
jmp 0x401d33
mov dword [esp], edi
mov edx, str.debug_all
mov dword [esp + 4], edx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401d28
jmp 0x401d2d
Function at 0x401ed0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov eax, dword [0x408090]
test eax, eax
jne 0x402058
test ebx, ebx
jne 0x401fd0
mov ecx, dword [0x408024]
test ecx, ecx
je 0x401fa0
cmp byte [0x410890], 0
jne 0x401f70
mov dword [esp], 0x410910
call sub.msvcrt.dll_puts
cmp byte [0x410d10], 0
je 0x401f62
mov eax, dword [0x408090]
test eax, eax
jne 0x402077
mov dword [esp], 0
mov eax, 1
xor ecx, ecx
mov dword [esp + 0x14], eax
mov edx, 0x410d10
mov eax, str.open
mov dword [esp + 0x10], ecx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
mov eax, dword [0x408090]
test eax, eax
jne 0x401f90
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], str._s:__s_n
mov edx, 0x410890
mov eax, 0x410910
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_printf
jmp 0x401f16
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], 0
xor edx, edx
mov ecx, 0x410890
mov dword [esp + 0xc], edx
mov ebx, 0x410910
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
jmp 0x401f16
mov dword [esp + 8], ebx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x18], eax
lea edx, [ebp - 8]
mov eax, 0x400
mov dword [esp + 0x10], edx
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x1300
call sub.KERNEL32.dll_FormatMessageA
mov edx, dword [0x408090]
sub esp, 0x1c
test edx, edx
jne 0x402096
mov dword [esp], 0x410910
mov ebx, 0xa0a
call sub.msvcrt.dll_strlen
mov word [eax + 0x410910], bx
mov byte [eax + 0x410912], 0
mov eax, dword [ebp - 8]
mov dword [esp], 0x410910
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
mov edx, dword [ebp - 8]
mov dword [esp], edx
call sub.KERNEL32.dll_LocalFree
sub esp, 4
jmp 0x401ef3
mov dword [esp], eax
mov ecx, 0x410910
mov edx, str.Error_msg:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.msvcrt.dll_fprintf
jmp 0x401eeb
mov dword [esp], eax
mov ecx, 0x410d10
mov ebx, str.Open_URL:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
call sub.msvcrt.dll_fprintf
jmp 0x401f2c
mov ecx, dword [ebp - 8]
mov ebx, str.Error:_t_t_s_n
mov dword [esp + 4], ebx
mov dword [esp], edx
mov dword [esp + 8], ecx
call sub.msvcrt.dll_fprintf
jmp 0x402013
Function at 0x4020c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ecx, dword [0x408028]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x4020e5
mov eax, dword [0x408090]
test eax, eax
jne 0x40219c
movzx ecx, si
mov edx, 0x400
mov esi, 0xa
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov eax, dword [0x410880]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x40216b
mov dword [esp + 4], eax
mov eax, dword [0x410880]
mov dword [esp], eax
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x402180
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x402180
xor edx, edx
lea esi, [esi]
movzx eax, byte [edx + ecx]
mov byte [edx + ebx], al
inc edx
test al, al
jne 0x402140
mov esi, dword [0x408028]
test esi, esi
je 0x40215f
mov eax, dword [0x408090]
test eax, eax
jne 0x4021da
mov eax, 1
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebx], 0
sub esp, 4
lea esi, [esi]
mov ecx, dword [0x408028]
test ecx, ecx
je 0x402193
mov eax, dword [0x408090]
test eax, eax
jne 0x4021b6
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], esi
mov edx, str.Resource__d:_t
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4020e5
mov dword [esp + 0xc], eax
mov edx, 1
mov eax, 7
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str._NULL__n
call sub.msvcrt.dll_fwrite
jmp 0x402193
mov dword [esp + 8], ebx
mov ebx, 0x407162
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 1
jmp 0x402164
Function at 0x402290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, str.HKEY_CLASSES_ROOT
mov ebp, esp
push edi
push esi
mov esi, 0x80000000
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402328
mov dword [esp], ebx
mov edx, str.HKEY_CURRENT_USER
mov esi, 0x80000001
mov dword [esp + 4], edx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402328
mov dword [esp], ebx
mov edi, str.HKEY_LOCAL_MACHINE
mov esi, 0x80000002
mov dword [esp + 4], edi
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402328
mov dword [esp], ebx
mov esi, str.HKEY_USERS
mov dword [esp + 4], esi
mov esi, 0x80000003
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402328
mov dword [esp], ebx
mov ecx, str.HKEY_CURRENT_CONFIG
mov esi, 0x80000005
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402328
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
mov edi, 0x5c
mov dword [esp + 4], edi
call sub.msvcrt.dll_strchr
mov dword [esp], ebx
mov edx, 0x5c
lea edi, [eax + 1]
mov dword [esp + 4], edx
call sub.msvcrt.dll_strrchr
lea ebx, [eax + 1]
mov byte [ebx - 1], 0
mov eax, dword [0x408020]
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x4023e2
mov dword [esp + 4], edi
xor ecx, ecx
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
mov eax, 0x20019
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x4023d3
lea ecx, [ebp + 0x10]
xor edx, edx
lea esi, [ebp - 0x14]
mov dword [esp + 0x14], ecx
mov edi, dword [ebp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 0x10], edi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
mov esi, dword [ebp - 0x10]
test eax, eax
sete cl
movzx edi, cl
mov dword [ebp - 0x18], edi
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov byte [ebx - 1], 0x5c
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edi
xor ecx, ecx
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
mov eax, 0x20119
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x40238d
jmp 0x402364
Function at 0x402670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0x104
mov ebp, esp
push edi
xor eax, eax
xor edi, edi
push esi
push ebx
sub esp, 0x25c
lea ebx, [ebp - 0x23c]
mov dword [esp + 8], edx
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [ebp - 0x248], esi
lea esi, [ebp - 0x128]
mov dword [esp], esi
call sub.msvcrt.dll_memset
mov dword [esp + 0x10], ebx
mov ecx, dword [ebp - 0x248]
xor edx, edx
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], 0x80000002
and ecx, 0x100
or ecx, 0x20019
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x402700
mov esi, 1
mov dword [0x4102dc], esi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
lea ebx, [ebp - 0x238]
mov ecx, 0x104
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call sub.msvcrt.dll_memset
mov dword [esp + 0x10], ebx
lea ecx, [ebp - 0x240]
mov eax, 0x104
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x23c]
lea edx, [ebp - 0x244]
mov dword [ebp - 0x240], eax
mov ebx, str.JavaHome
xor eax, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x4027bd
xor edx, edx
lea esi, [esi]
lea edi, [edi]
movzx ebx, byte [edx + ebp - 0x238]
mov byte [edx + ebp - 0x128], bl
inc edx
test bl, bl
jne 0x402770
test byte [ebp - 0x248], 2
je 0x4027b3
mov dword [esp], esi
call sub.msvcrt.dll_strlen
cmp byte [eax + esi - 1], 0x5c
je 0x4027a2
mov word [eax + esi], 0x5c
mov dword [esp], esi
mov edi, 0x40720d
mov dword [esp + 4], edi
call sub.msvcrt.dll_strcat
mov dword [esp], esi
call fcn.00402560
mov edi, eax
mov eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
test edi, edi
je 0x4026e4
mov dword [esp + 4], esi
mov dword [esp], 0x410664
call sub.msvcrt.dll_strcpy
jmp 0x4026ef
Function at 0x402b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], edi
mov eax, dword [0x4102d0]
cmp eax, 9
je 0x402c61
cmp eax, 2
je 0x402bf0
jle 0x402bd0
cmp eax, 3
je 0x402c96
cmp eax, 4
je 0x402bfa
mov eax, dword [0x408090]
test eax, eax
jne 0x402c32
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
dec eax
jne 0x402bb8
mov edi, dword [0x408020]
test edi, edi
je 0x402bc1
mov eax, ebx
or eax, 0x100
mov dword [esp + 4], eax
jmp 0x402bfe
mov edx, dword [0x408020]
test edx, edx
jne 0x402c13
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.004027f0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], esi
mov ecx, ebx
or ecx, 0x100
mov dword [esp + 4], ecx
call fcn.004027f0
test byte [0x4102d5], 1
jne 0x402bc1
jmp 0x402bfa
mov dword [esp + 0xc], eax
mov esi, 0x1e
mov ebx, 1
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], str.Runtime_bits:_tFailed_to_load._n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cld
xor eax, eax
lea edx, [ebp - 0x38]
mov ecx, 5
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov dword [esp + 4], edx
mov dword [esp], 0x1e
call fcn.004020c0
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [0x4102d0], eax
jmp 0x402ba3
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.004027f0
mov eax, dword [0x4102d4]
test eax, eax
je 0x402bd3
test ah, 1
je 0x402bc1
jmp 0x402bd3