joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fb90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4392a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x444690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, 0x47a8e0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040ad40
mov edx, 0x47a8bc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040ad40
mov byte [ebp - 4], 2
mov eax, dword [0x444008]
mov ecx, 0x444008
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov ecx, 0x6a
mov byte [ebp - 4], 3
call fcn.00404890
test eax, eax
je 0x40fc17
push 0x6a
push eax
lea ecx, [ebp - 0x1c]
call fcn.004043f0
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x40fcd5
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
je 0x40fcd5
cmp dword [esi - 0xc], 0
je 0x40fcd5
xor ebx, ebx
lea ecx, [ecx]
xor ecx, ecx
test ebx, ebx
setne cl
sub esp, 8
mov dword [ebp - 0x28], 0
push 2
sub esp, 8
mov dword [ebp - 0x24], 0
push eax
add ecx, 0x80000001
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
call fcn.0040fb10
test eax, eax
jne 0x40fcab
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fc80
mov edi, dword [ebp - 0x28]
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40fcae
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x40fcc0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
inc ebx
mov dword [ebp - 0x24], 0
cmp ebx, 2
jge 0x40fcd5
mov eax, dword [ebp - 0x18]
jmp 0x40fc40
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40fcf5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fd15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40fd33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4100d1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41009f
cmp eax, 2
jne 0x4100bb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4100cb
test ecx, ecx
je 0x4100c6
test cl, 1
jne 0x4100bb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4100cb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x430468
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x444690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00424c3d
mov dword [ebp - 0x14], eax
cmp dword [0x47bec8], edi
jne 0x430559
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4304e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x430639
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x430639
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x430639
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x47bec8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x47becc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x47bed0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47bed8], eax
test eax, eax
je 0x430556
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47bed4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43057e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x430571
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x430593
push 4
pop eax
jmp 0x43063b
cmp dword [ebp - 0x14], edi
je 0x430593
push dword [0x47bec8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x430578
mov eax, dword [0x47bed4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4305f1
cmp dword [0x47bed8], esi
je 0x4305f1
push eax
call ebx
push dword [0x47bed8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4305f1
test eax, eax
je 0x4305f1
call ecx
test eax, eax
je 0x4305e6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4305e6
test byte [ebp - 8], 1
jne 0x4305f1
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x430621
mov eax, dword [0x47becc]
cmp eax, esi
je 0x43061e
push eax
call ebx
test eax, eax
je 0x43061e
call eax
mov edi, eax
test edi, edi
je 0x43061e
mov eax, dword [0x47bed0]
cmp eax, esi
je 0x43061e
push eax
call ebx
test eax, eax
je 0x43061e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x47bec8]
call ebx
test eax, eax
je 0x430639
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x43063b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fd32
leave
ret
Function at 0x4353bf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042716b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4353f7
xor eax, eax
jmp 0x435423
cmp esi, dword [ebp - 4]
je 0x435420
cmp dword [ebp + 0xc], 0
je 0x435420
push dword [edi + 0x9c]
call fcn.00434fcd
push dword [edi + 0x9c]
mov esi, eax
call fcn.004250ad
pop ecx
pop ecx
cmp esi, eax
je 0x4353f3
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x484ce1
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x484a08
dec ebx
mov edi, ebx
call fcn.00484d1b
dec ebx
dec edi
dec ebx
xor dword [ecx], eax
mov ebx, ebx
and edi, ebx
add ecx, 2
sub ebx, edi
sub ebx, 0x5e2ad0be
mov edi, 0x2145aaf
cmp ecx, edx
jl fcn.00484ce1
add ebx, edi
add edi, edi
ret
Function at 0x403acb
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [ebx]
add esi, eax
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esi*4 + 4]
push eax
mov ecx, dword [edi]
mov dword [esp + 0x24], ecx
call fcn.00401135
mov ebp, eax
mov dword [ebx], esi
mov dword [edi], ebp
xor esi, esi
mov edi, dword [esp + 0x1c]
pop ecx
test edi, edi
jle 0x403b31
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + esi*4]
cmp byte [eax], 0x2d
jne 0x403b2c
cmp byte [eax + 1], 0x4a
jne 0x403b2c
add eax, 2
je 0x403b26
push eax
call fcn.004011c5
pop ecx
mov dword [ebp], eax
add ebp, 4
inc esi
cmp esi, edi
jl 0x403b0c
mov ebx, dword [esp + 0x10]
xor eax, eax
test ebx, ebx
jle 0x403b64
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + eax*4]
cmp byte [ecx], 0x2d
jne 0x403b5f
cmp byte [ecx + 1], 0x4a
jne 0x403b5f
add ecx, 2
cmp byte [ecx], 0
je 0x403c10
mov dword [ebp], ecx
add ebp, 4
inc eax
cmp eax, ebx
jl 0x403b3f
xor esi, esi
test edi, edi
jle 0x403b92
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + esi*4]
cmp byte [eax], 0x2d
jne 0x403b7c
cmp byte [eax + 1], 0x4a
je 0x403b89
push eax
call fcn.004011c5
mov dword [ebp], eax
add ebp, 4
pop ecx
inc esi
cmp esi, edi
jl 0x403b6e
mov ebx, dword [esp + 0x10]
xor esi, esi
test ebx, ebx
jle 0x403c06
mov eax, dword [esp + 0x20]
mov edi, dword [eax + esi*4]
cmp byte [edi], 0x2d
jne 0x403bfb
mov al, byte [edi + 1]
cmp al, 0x4a
je 0x403c01
cmp byte [0x4329b9], 0
je 0x403bfb
cmp al, 0x63
jne 0x403bfb
push 0x426520
push edi
call fcn.00414230
pop ecx
pop ecx
test eax, eax
je 0x403bda
push str._classpath
push edi
call fcn.00414230
pop ecx
pop ecx
test eax, eax
jne 0x403bfb
lea eax, [ebx - 1]
cmp esi, eax
jge 0x403bfb
mov eax, dword [esp + 0x20]
mov dword [ebp], edi
push dword [eax + esi*4 + 4]
call fcn.00406a9d
mov dword [ebp + 4], eax
add ebp, 8
pop ecx
inc esi
jmp 0x403c01
mov dword [ebp], edi
add ebp, 4
inc esi
cmp esi, ebx
jl 0x403b98
and dword [ebp], 0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.Error:_The__J_option_should_not_be_followed_by_a_space.
call fcn.00405ab6
pop ecx
push 1
call fcn.0040f255
int3
Function at 0x4048f7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 4], 0xffffffff
je 0x404a24
cmp dword [esi], 0xffffffff
je 0x404a24
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [ebp + 8]
call fcn.00414528
add esp, 0x10
test edx, edx
jl 0x404a24
jg 0x40493b
test eax, eax
jb 0x404a24
mov eax, dword [esi + 4]
inc eax
push eax
call fcn.0040ef83
mov edi, eax
pop ecx
test edi, edi
je 0x404a24
mov ebx, dword [esi + 4]
push ebx
push edi
push dword [ebp + 8]
call fcn.004175dd
add esp, 0xc
cmp eax, ebx
jne 0x404a1d
cmp dword [esi + 0x10], 0
jne 0x404985
mov ecx, dword [ebp + 0x10]
mov byte [ebx + edi], 0
test ecx, ecx
je 0x40497e
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov eax, edi
jmp 0x404a26
cmp dword [esi + 0x10], 8
jne 0x404a1d
xor eax, eax
mov dword [ebp - 0x38], edi
push 0x38
push str.1.2.11
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x34], ebx
call fcn.00408372
add esp, 0x10
test eax, eax
js 0x404a1d
mov eax, dword [esi]
inc eax
push eax
call fcn.0040ef83
mov ebx, eax
pop ecx
test ebx, ebx
je 0x404a1d
mov ecx, dword [esi]
lea eax, [ebp - 0x38]
push 1
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ecx
call fcn.00406d1a
pop ecx
pop ecx
push edi
test eax, eax
jns 0x4049f1
call fcn.0040ef68
push ebx
call fcn.0040ef68
pop ecx
jmp 0x404a23
mov eax, dword [esi]
mov byte [ebx + eax], 0
call fcn.0040ef68
lea eax, [ebp - 0x38]
push eax
call fcn.00408336
pop ecx
pop ecx
test eax, eax
jns 0x404a0e
push ebx
jmp 0x404a1e
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x404a19
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, ebx
jmp 0x404a26
push edi
call fcn.0040ef68
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c42
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push esi
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push 0x10000
push dword [esp + 0x28]
mov dword [esp + 0x14], ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
push ebx
call fcn.004149d6
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x404c8e
lea eax, [esp + 0xc]
push eax
push ebx
push dword [esp + 0x28]
push dword [esp + 0x20]
push dword [esp + 0x28]
push ebx
call fcn.004149d6
add esp, 0x18
mov esi, eax
cmp dword [0x432020], ebx
je 0x404d37
push ebp
push edi
push str.J2D_D3D
call fcn.0040ed74
mov ebp, str.false
pop ecx
test eax, eax
je 0x404cc3
push ebp
push eax
call fcn.004163fc
neg eax
pop ecx
sbb eax, eax
and dword [0x432020], eax
pop ecx
push str.J2D_D3D_PRELOAD
call fcn.0040ed74
mov edi, eax
pop ecx
test edi, edi
je 0x404cf1
push ebp
push edi
call fcn.004163fc
pop ecx
pop ecx
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [0x432020]
mov dword [0x432020], ecx
jmp 0x404cf7
mov ecx, dword [0x432020]
test ecx, ecx
jns 0x404d28
mov dword [0x432020], ebx
test edi, edi
je 0x404d35
push str.true
push edi
call fcn.004163fc
xor edx, edx
pop ecx
inc edx
test eax, eax
pop ecx
mov ecx, dword [0x432020]
cmove ecx, edx
mov dword [0x432020], ecx
test ecx, ecx
je 0x404d35
push str.preloadD3D
call fcn.00404af3
pop ecx
pop edi
pop ebp
test esi, esi
je 0x404d59
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404d65
push dword [esp + 0x20]
call dword [esp + 0x18]
mov dword [esp + 8], eax
cmp dword [0x432a10], 0
pop esi
pop ebx
je 0x404d7b
mov eax, dword [0x432a2c]
test eax, eax
je 0x404d7b
call eax
mov eax, dword [esp]
pop ecx
pop ecx
ret
Function at 0x40506b
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
xor eax, eax
push ebp
mov ebp, dword [esp + 0xc]
inc eax
push esi
mov ebx, dword [ebx]
mov esi, eax
push edi
push 0x20
pop edi
cmp dword [ebp], eax
jle 0x405103
push str._J_d64
push dword [ebx + esi*4]
call fcn.00414230
pop ecx
pop ecx
test eax, eax
je 0x4050f1
push str._d64
push dword [ebx + esi*4]
call fcn.00414230
pop ecx
pop ecx
test eax, eax
je 0x4050f1
push str._J_d32
push dword [ebx + esi*4]
call fcn.00414230
pop ecx
pop ecx
test eax, eax
je 0x4050ed
push str._d32
push dword [ebx + esi*4]
call fcn.00414230
pop ecx
pop ecx
test eax, eax
je 0x4050ed
call fcn.00401d5f
test al, al
je 0x4050e3
mov eax, dword [ebx + esi*4]
cmp byte [eax], 0x2d
jne 0x4050f4
mov eax, dword [ebx + esi*4]
cmp byte [eax], 0x2d
jne 0x4050fa
jmp 0x4050f4
push 0x20
jmp 0x4050f3
push 0x40
pop edi
inc esi
cmp esi, dword [ebp]
jl 0x405086
cmp edi, 0x20
jne 0x405264
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004056d1
pop ecx
pop ecx
test al, al
jne 0x405128
push str.Error:_Could_not_find_Java_SE_Runtime_Environment.
call fcn.00405ab6
pop ecx
push 2
jmp 0x405273
mov eax, 0x42734c
push eax
push str.i386
push eax
push eax
push dword [esp + 0x2c]
push str._s_slib_s_s_sjvm.cfg
push dword [esp + 0x48]
push dword [esp + 0x48]
call fcn.00405c99
push 0
push dword [esp + 0x50]
call fcn.00402e47
add esp, 0x28
cmp eax, 1
jge 0x40516d
push str.Error:_no_known_VMs.__check_for_corrupt_jvm.cfg_file_
call fcn.00405ab6
jmp 0x405270
mov ebx, dword [esp + 0x18]
push 0
push ebx
push ebp
call fcn.004017c6
mov esi, eax
push str.ERROR
push esi
call fcn.00414230
add esp, 0x14
test eax, eax
jne 0x4051a0
push str.Error:_could_not_determine_JVM_type.
call fcn.00405ab6
pop ecx
push 4
jmp 0x405273
push dword [esp + 0x28]
mov edi, dword [esp + 0x28]
push edi
push esi
push dword [esp + 0x28]
mov byte [edi], 0
call fcn.004057cd
add esp, 0x10
test al, al
jne 0x4051ce
push edi
push esi
push str.Error:_missing___s_JVM_at___s._nPlease_install_or_use_the_JRE_or_JDK_that_contains_these_missing_components.
call fcn.00405ab6
add esp, 0xc
jmp 0x405199
mov edi, dword [ebx]
xor esi, esi
cmp dword [ebp], esi
jle 0x40525f
mov ecx, dword [0x432020]
test ecx, ecx
jns 0x40520a
push dword [edi + esi*4]
push str._Dsun.awt.warmup
call fcn.0040568f
xor ebx, ebx
pop ecx
inc ebx
pop ecx
mov ecx, dword [0x432020]
cmp eax, ebx
cmove ecx, ebx
mov dword [0x432020], ecx
jmp 0x40520d
xor ebx, ebx
inc ebx
test ecx, ecx
je 0x405250
push dword [edi + esi*4]
push str._Dsun.java2d.noddraw
call fcn.0040568f
pop ecx
pop ecx
cmp eax, ebx
je 0x405258
push dword [edi + esi*4]
push str._Dsun.java2d.d3d
call fcn.0040568f
pop ecx
pop ecx
test eax, eax
je 0x405258
push dword [edi + esi*4]
push str._Dsun.java2d.opengl
call fcn.0040568f
pop ecx
pop ecx
cmp eax, ebx
je 0x405258
mov ecx, dword [0x432020]
inc esi
cmp esi, dword [ebp]
jl 0x4051e1
jmp 0x40525f
and dword [0x432020], 0
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push str.Error:_This_Java_instance_does_not_support_a__d_bit_JVM._nPlease_install_the_desired_version.
call fcn.00405ab6
pop ecx
pop ecx
push 1
call fcn.0040f255
int3
Function at 0x405f69
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x432034]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push esi
push edi
push 0x104
mov dword [esp + 0x18], eax
xor edi, edi
lea eax, [esp + 0x20]
xor esi, esi
push eax
push edi
push ebx
call ebp
test eax, eax
jne 0x40603c
mov eax, dword [esp + 0x14]
inc esi
push dword [eax + 8]
lea eax, [esp + 0x20]
push eax
call fcn.0040637f
pop ecx
pop ecx
test eax, eax
je 0x405ff4
test edi, edi
je 0x405fe7
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004063f2
pop ecx
pop ecx
test eax, eax
jle 0x405ff4
push edi
call fcn.00401157
pop ecx
lea eax, [esp + 0x1c]
push eax
call fcn.004011c5
pop ecx
mov edi, eax
push 0x104
lea eax, [esp + 0x20]
push eax
push esi
push ebx
call ebp
test eax, eax
je 0x405fb3
test edi, edi
je 0x40603c
lea eax, [esp + 0x10]
xor ebp, ebp
push eax
push 0x20019
push ebp
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov esi, eax
call fcn.00401157
pop ecx
test esi, esi
je 0x406057
cmp dword [esp + 0x10], ebp
je 0x40603c
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004097b0
add esp, 0x114
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x104
push eax
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push str.JavaHome
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40602c
cmp dword [esp + 0x10], ebp
je 0x40608e
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x1c]
push eax
call fcn.004011c5
pop ecx
jmp 0x40603e
Function at 0x406b00
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push ecx
push ebx
push esi
push 0x10
call fcn.004069bb
mov esi, eax
push 8
mov dword [esp + 0x10], esi
call fcn.00401135
pop ecx
pop ecx
push 0x432a38
push dword [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x406b49
push ebx
call fcn.00401157
push esi
call fcn.0040690b
pop ecx
pop ecx
xor eax, eax
jmp 0x406c48
push ebp
mov dword [ebx], eax
mov dword [ebx + 4], 0x432a64
push edi
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x406b61
and dword [ebx + 4], 0
jmp 0x406b7a
push 0x432a38
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebp, eax
neg ebp
sbb ebp, ebp
and ebp, 0x432a64
test ebp, ebp
je 0x406c2c
push ebp
call fcn.0040ee60
pop ecx
cmp eax, 4
jl 0x406b54
cmp byte [eax + ebp - 4], 0x2e
jne 0x406b54
lea edi, [eax - 3]
add edi, ebp
push 0x427a80
push edi
call fcn.00414230
pop ecx
pop ecx
test eax, eax
je 0x406bbc
push 0x427a84
push edi
call fcn.00414230
pop ecx
pop ecx
test eax, eax
jne 0x406b54
push 0x3b
push ebp
call fcn.0040bd70
pop ecx
pop ecx
test eax, eax
jne 0x406b54
push dword [esp + 0x1c]
call fcn.0040ee60
push ebp
mov edi, eax
call fcn.0040ee60
mov esi, eax
lea ecx, [esi + edi]
push ecx
call fcn.00401135
lea ecx, [edi - 1]
mov ebx, eax
push ecx
push dword [esp + 0x2c]
push ebx
call fcn.0040a170
lea ecx, [esi + 1]
push ecx
lea eax, [edi - 1]
add eax, ebx
push ebp
push eax
call fcn.0040a170
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 4]
inc eax
push eax
push esi
call fcn.004067d7
mov ecx, dword [esi + 4]
add esp, 0x2c
mov eax, dword [esi]
mov dword [eax + ecx*4], ebx
inc dword [esi + 4]
mov ebx, dword [esp + 0x14]
jmp 0x406b54
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebx + 4]
call fcn.00401157
push ebx
call fcn.00401157
pop ecx
pop ecx
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x41b4c3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b016

Function at 0x42159b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00421411
Function at 0x401488
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x423cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40151d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014da
cmp dword [ebp + 0x10], ebx
jne 0x401511
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401488
test eax, eax
jne 0x4014ec
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405887
cmp eax, ebx
je 0x401524
push ebx
push dword [0x423cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40151d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423cb0], ebx
jne 0x40151a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40151a
jmp 0x40151d
Function at 0x402d82
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41ed88]
sub esi, dword [0x41ed94]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x423c20], eax
jle 0x402ee0
push dword [0x41ed90]
call fcn.00402d6b
push ebx
push ebx
push dword [0x41ed94]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41ad84], esi
mov dword [0x41ad80], ebx
mov ebp, 0x412d80
mov eax, dword [0x41ed8c]
sub eax, dword [0x41ed90]
mov edi, 0x4000
cmp eax, edi
jg 0x402df7
mov edi, eax
push edi
mov esi, 0x41ad88
push esi
call fcn.00402d39
test eax, eax
je 0x402ef2
add dword [0x41ed90], edi
mov dword [0x412d10], esi
mov dword [0x412d14], edi
cmp dword [0x423bcc], ebx
je 0x402e4e
cmp dword [0x423ca0], ebx
jne 0x402e4e
mov eax, dword [0x41ad84]
sub eax, dword [0x41ed88]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x41ed94]
mov dword [0x41ad80], eax
call fcn.00402c9a
pop ecx
mov ecx, 0x412cf8
mov dword [0x412d18], ebp
mov dword [0x412d1c], 0x8000
call fcn.00406061
test eax, eax
jl 0x402efb
mov esi, dword [0x412d18]
sub esi, ebp
je 0x402eac
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ef7
cmp esi, dword [esp + 0x10]
jne 0x402ef7
add dword [0x41ed94], esi
cmp dword [0x412d14], ebx
jne 0x402e1d
jmp 0x402eb8
cmp dword [0x412d14], ebx
jne 0x402efb
cmp edi, ebx
je 0x402efb
mov eax, dword [0x41ed88]
mov ecx, eax
sub ecx, dword [0x41ed94]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402de1
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402c9a
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402eea
push 0xfffffffffffffffe
jmp 0x402efd
push 0xfffffffffffffffd
pop eax
jmp 0x402eea