joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440670
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x476044]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x479c58], 0
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
jne 0x4406f0
push esi
push edx
lea eax, [ebp - 0x2c4]
push eax
call fcn.0040fac0
push 0x4010
push 0x160
mov ecx, dword [eax]
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x80
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x2c4]
mov esi, eax
call fcn.00453776
mov ecx, dword [ebp - 0x160]
add esp, 4
mov eax, esi
mov dword [edi], ecx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453560
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x479c50]
test eax, eax
je 0x440717
push 0x4010
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 0x80
push ecx
push edx
call eax
mov ecx, dword [ebp - 0x2b4]
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00453560
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4407d0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x476044]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
mov edx, 0x4011
test al, al
mov ecx, 0x4110
lea eax, [ebp - 0x164]
cmovne ecx, edx
push ecx
push 0x160
push eax
push 0x90
push 0x4657b2
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453560
mov esp, ebp
pop ebp
ret 4

Function at 0x440b80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46483e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x476044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xd66
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
lea ecx, [ebp - 0x18]
sete al
mov byte [esi + 0x30], al
call fcn.0040e9b0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 8]
call fcn.0041a520
lea ecx, [ebp - 0x18]
call fcn.0040f1f0
lea ecx, [ebp - 0x18]
call fcn.0040f1a0
lea eax, [ebp - 0x18]
push eax
call fcn.00416ea0
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0xc]
call fcn.0040ece0
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
push dword [ebp - 0x18]
call fcn.00453776
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4410e0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464903
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x476044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi], vtable.CExtractDialog.0
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
mov dword [esi + 8], 0
call fcn.0040e9b0
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.0040e9b0
mov word [esi + 0x24], 0
mov eax, esi
mov word [esi + 0x30], 0
mov byte [esi + 0x30], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x441550
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x476044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 0x84], 0x420041
xor edx, edx
mov dword [ebp - 0x80], 0x440043
mov dword [ebp - 0x7c], 0x460045
mov dword [ebp - 0x78], 0x480047
mov dword [ebp - 0x74], 0x4a0049
mov dword [ebp - 0x70], 0x4c004b
mov dword [ebp - 0x6c], 0x4e004d
mov dword [ebp - 0x68], 0x50004f
mov dword [ebp - 0x64], 0x520051
mov dword [ebp - 0x60], 0x540053
mov dword [ebp - 0x5c], 0x560055
mov dword [ebp - 0x58], 0x580057
mov dword [ebp - 0x54], 0x5a0059
mov dword [ebp - 0x50], 0x620061
mov dword [ebp - 0x4c], 0x640063
mov dword [ebp - 0x48], 0x660065
mov dword [ebp - 0x44], 0x680067
mov dword [ebp - 0x40], 0x6a0069
mov dword [ebp - 0x3c], 0x6c006b
mov dword [ebp - 0x38], 0x6e006d
mov dword [ebp - 0x34], 0x70006f
mov dword [ebp - 0x30], 0x720071
mov dword [ebp - 0x2c], 0x740073
mov dword [ebp - 0x28], 0x760075
mov dword [ebp - 0x24], 0x780077
mov dword [ebp - 0x20], 0x7a0079
mov dword [ebp - 0x1c], 0x310030
mov dword [ebp - 0x18], 0x330032
mov dword [ebp - 0x14], 0x350034
mov dword [ebp - 0x10], 0x370036
mov dword [ebp - 0xc], 0x390038
mov dword [ebp - 8], 0x2f002b
test esi, esi
jle 0x44168f
nop word [eax + eax]
movzx ecx, word [edi + edx*2]
xor eax, eax
cmp word [ebp + eax*2 - 0x84], cx
je 0x44168a
inc eax
cmp eax, 0x40
jb 0x441666
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453560
mov esp, ebp
pop ebp
ret 4
inc edx
cmp edx, esi
jl 0x441660
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00453560
mov esp, ebp
pop ebp
ret 4
Function at 0x452860
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x476044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x208
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00454ff0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4528f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x452908
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add ecx, edi
mov dword [esi], ecx
adc eax, 0
mov dword [esi + 4], eax
push dword [esi]
mov dword [ebp - 0x218], 0
call fcn.0045376d
mov ecx, dword [ebp - 0x214]
add esp, 4
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x218]
push ecx
push dword [esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453560
mov esp, ebp
pop ebp
ret 8
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0xf0f974
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf0f97e
pushal
call 0xf0f984
pop ebp
sub ebp, 0x10
sub ebp, 0xb0f974
jmp 0xf0f99a
mov eax, 0xb0f974
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b2
mov edx, 0xd3bccfa3
xor byte [eax], dl
inc eax
dec ecx
jne 0xf0f9b1
jmp 0xf0f9c4
sub byte [esi + 0x28], ch
sub bl, byte [edi + 0x22a3a3a3]
bound ebx, qword [ebx - 0x5d]
mov dword [0x1b6ea0a3], eax
movsd dword es:[edi], dword [esi]
mov dword [0x8b19a3a3], eax
mov dword [0x4154a3a3], eax
mov al, byte [0xaf22286b]
mov dword [0x66a0a3a3], eax
retf
Function at 0x567380
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x93000]
push edi
jmp 0x56739a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5673a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x567390
mov eax, 1
add ebx, ebx
jne 0x5673b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5673c4
jne 0x5673e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5673e3
dec eax
add ebx, ebx
jne 0x5673d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5673a8
add ebx, ebx
jne 0x5673df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x567435
xor ecx, ecx
sub eax, 3
jb 0x5673fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x56746a
sar eax, 1
mov ebp, eax
jmp 0x567406
add ebx, ebx
jne 0x567406
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5673d4
inc ecx
add ebx, ebx
jne 0x567414
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5673d4
add ebx, ebx
jne 0x567421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x567416
jne 0x567432
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x567416
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x567454
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x567446
jmp 0x567396
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x567454
add edi, ecx
jmp 0x567396
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x567472
cmp byte [edi], 0x11
jne 0x567472
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 al, bl
loop 0x567477
lea edi, [esi + 0x160000]
mov eax, dword [edi]
or eax, eax
je 0x5674ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x186f70]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x187114]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5674a4
mov ecx, edi
jns 0x5674d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18711c]
or eax, eax
je 0x5674e9
mov dword [ebx], eax
add ebx, 4
jmp 0x5674c1
call dword [esi + 0x187118]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x567520
cmp al, 0xef
ja 0x567513
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5674f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x567502
mov ebp, dword [esi + 0x187120]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x567554
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x401d60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, eax
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov ebx, eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 4], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyErr_Print
push edi
mov dword [ebp - 8], eax
call esi
mov esi, eax
xor eax, eax
cmp ebx, eax
je 0x401de7
cmp dword [ebp - 4], eax
je 0x401de7
cmp dword [ebp - 0xc], eax
je 0x401de7
cmp dword [ebp - 8], eax
je 0x401de7
cmp esi, eax
je 0x401de7
push 0x40c800
call dword [ebp - 4]
call ebx
mov eax, edi
call fcn.00401ad5
push dword [ebp + 8]
call dword [ebp - 8]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x401de0
call esi
call dword [ebp - 0xc]
mov eax, edi
jmp 0x401dea
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401def
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0
push 0
call dword [sym.imp.MSVCR80.dll__tempnam]
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
mov ebp, eax
mov dword [esp + 0x1c], ebp
call esi
mov edi, dword [sym.imp.MSVCR80.dll_freopen]
add eax, 0x40
push eax
mov ebx, 0x4078c0
push ebx
push ebp
call edi
call esi
add eax, 0x20
push eax
push ebx
push ebp
call edi
add esp, 0x20
mov ebx, 0x40c920
call fcn.00401a09
mov edi, eax
test edi, edi
jne 0x401e50
push str.Cant_load_Python_for_pre_install_script
call fcn.00401613
or eax, 0xffffffff
jmp 0x401f45
push dword [esp + 0x20]
call fcn.00401d60
pop ecx
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
mov edi, dword [sym.imp.MSVCR80.dll_fflush]
add eax, 0x40
push eax
call edi
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_fclose]
add eax, 0x40
push eax
call ebp
call esi
add eax, 0x20
push eax
call edi
call esi
add eax, 0x20
push eax
call ebp
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x401f37
push str.Running_the_pre_installation_script_failed_r_n
call sub.MSVCR80.dll_strlen
mov dword [esp], 0x407860
push dword [esp + 0x18]
mov edi, eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
mov ebx, eax
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
push 0
push ebx
mov dword [esp + 0x34], eax
call esi
mov eax, dword [esp + 0x34]
lea eax, [eax + edi + 1]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 0x28
test esi, esi
je 0x401f2c
push str.Running_the_pre_installation_script_failed_r_n
push esi
call sub.MSVCR80.dll_strcpy
push ebx
push dword [esp + 0x1c]
lea eax, [esi + edi]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add eax, esi
push ebx
mov byte [eax + edi], 0
call ebp
push esi
call fcn.00401613
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 0x24
jmp 0x401f37
push str.Out_of_memory_
call fcn.00401613
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll_remove]
mov eax, dword [esp + 0x1c]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40210b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x402164
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402135
xor eax, eax
inc eax
jmp 0x40217e
push str.RegDeleteKeyTransactedA
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402162
push 0
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 4]
jmp 0x40217e
jmp 0x40217b
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x40217b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40217e
xor eax, eax
inc eax
leave
ret 8

Function at 0x40278e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x402797
xor eax, eax
jne 0x402797
xor eax, eax
cmp dword [ebp + 0xc], 0
setne al
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4027b6
push 0xd
pop eax
jmp 0x402801
xor eax, eax
jne 0x40279f
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 1
jne 0x4027c4
push dword [ebp - 4]
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
leave
ret 8
Function at 0x402805
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5e3c30]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x130], ecx
push 0
lea ecx, [ebp - 0x18]
call fcn.0040246b
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 4]
or eax, 0x2001f
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x130]
push dword [eax]
lea ecx, [ebp - 0x18]
call fcn.0040268a
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40286f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x18]
call fcn.0040248f
mov eax, dword [ebp - 0x124]
jmp 0x4028fe
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x120]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4028d4
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402805
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4028cb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x18]
call fcn.0040248f
mov eax, dword [ebp - 0x128]
jmp 0x4028fe
mov dword [ebp - 4], 0x100
jmp 0x402876
lea ecx, [ebp - 0x18]
call fcn.004025ad
push dword [ebp + 8]
mov ecx, dword [ebp - 0x130]
call fcn.004024f2
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x18]
call fcn.0040248f
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00543a33
leave
ret 4
Function at 0x406304
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x406323
xor eax, eax
jmp 0x40639e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406339
xor eax, eax
jmp 0x40639e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x406381
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x406381
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
jmp 0x40635a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x40638d
xor eax, eax
jmp 0x40639e
mov eax, dword [ebp - 4]
movzx eax, word [eax]
test eax, eax
jne 0x40639b
xor eax, eax
jmp 0x40639e
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40a29b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573456
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5e3c30]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x10]
call fcn.00414472
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0xf0
call fcn.00452db2
movzx eax, byte [0x5efdea]
test eax, eax
jne 0x40a31f
lea ecx, [ebp - 0x10]
call fcn.00408b0b
push eax
call fcn.005449fc
pop ecx
mov dword [0x5efcd8], eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x164
call fcn.00409d68
inc eax
mov word [0x5efcdc], ax
jmp 0x40a3bb
fldz
fstp qword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
add ecx, 0x164
call fcn.00409d68
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x10]
call fcn.00408b0b
push eax
call fcn.005449fc
pop ecx
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x1d]
call dword [sym.imp.LUNAR.dll_Ordinal_9]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
inc eax
mov word [ebp - 0x30], ax
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x38], 0
jle 0x40a396
cmp dword [ebp - 0x38], 0xc
jg 0x40a396
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x38]
jle 0x40a381
movzx eax, word [ebp - 0x30]
dec eax
mov word [ebp - 0x30], ax
jmp 0x40a396
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x38]
jne 0x40a396
movzx eax, word [ebp - 0x30]
dec eax
mov word [ebp - 0x30], ax
mov byte [ebp - 0x2c], 1
xor eax, eax
inc eax
mov word [ebp - 0x2e], ax
push 0x5efcd8
lea eax, [ebp - 0x1c]
push eax
sub esp, 0x10
lea esi, [ebp - 0x34]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x1d]
call dword [sym.imp.LUNAR.dll_Ordinal_8]
push 0x5efeb8
push 0
push dword [ebp - 0x40]
push 0x40cd64
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5e92b8], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004074c5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00543a33
leave
ret
Function at 0x4161ea
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5732c1
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5e3c30]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x41622a
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax + 0x49]
test eax, eax
jne 0x416236
mov al, 1
jmp 0x4163c2
mov dword [ebp - 0x10], 8
call fcn.00406587
push eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x58]
call dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
call fcn.00406587
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00406573
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x416276
xor al, al
jmp 0x4163c2
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00415fe1
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x34]
call fcn.0041604f
mov ecx, eax
call fcn.004163da
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00419640
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.0041604f
mov ecx, eax
call fcn.004163da
push eax
mov eax, dword [ebp - 0x58]
add eax, 0x4c
push eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x44]
call fcn.004164e2
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x4162ee
cmp dword [ebp - 0x5c], 1
je 0x4162f5
cmp dword [ebp - 0x5c], 3
je 0x416387
jmp 0x41639c
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0041604f
mov ecx, eax
call fcn.004163da
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x38], ecx
je 0x416353
mov eax, dword [ebp - 0x58]
push dword [eax + 0x54]
push dword [ebp - 0x38]
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.0041604f
mov ecx, eax
call fcn.004163da
push eax
call fcn.00544feb
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x416353
mov byte [ebp - 0x51], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401d44
mov al, byte [ebp - 0x51]
jmp 0x4163c2
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax + 0x49]
test eax, eax
jne 0x416373
mov byte [ebp - 0x52], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401d44
mov al, byte [ebp - 0x52]
jmp 0x4163c2
cmp dword [ebp - 0x38], 0
jne 0x416385
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00407cea
jmp 0x4163b1
mov byte [ebp - 0x53], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401d44
mov al, byte [ebp - 0x53]
jmp 0x4163c2
mov byte [ebp - 0x54], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401d44
mov al, byte [ebp - 0x54]
jmp 0x4163c2
jmp 0x416286
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00543a33
leave
ret