joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0a10
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x13f7ebc]
sub esp, 0x694
test eax, eax
je 0x4a0ba6
mov eax, dword [0x13f5618]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x4a0ba6
mov eax, dword [0x1324fa4]
test eax, eax
je 0x4a0ba6
push ebp
mov ebp, dword [esp + 0x6a4]
push esi
mov esi, dword [esp + 0x6a4]
push edi
mov edi, dword [esp + 0x6a4]
xor eax, eax
sub edi, esi
sub ebp, esi
movzx cx, byte [edi + esi]
xor edx, edx
mov dh, cl
or edx, ecx
movzx cx, byte [esi]
mov word [esp + eax*2 + 0xa0], dx
xor edx, edx
mov dh, cl
or edx, ecx
movzx cx, byte [esi + ebp]
mov word [esp + eax*2 + 0x2a0], dx
xor edx, edx
mov dh, cl
or edx, ecx
mov word [esp + eax*2 + 0x4a0], dx
inc eax
inc esi
cmp eax, 0x100
jl 0x4a0a5e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 5
jne 0x4a0b21
cmp dword [esp + 0x1c], 2
jne 0x4a0b21
push str.performing_W2K_gamma_clamp._n
call fcn.0044ce60
add esp, 4
lea esi, [esp + 0x19e]
mov edi, 3
push ebx
xor edx, edx
mov eax, 0x8000
lea ecx, [esi - 0xfe]
xor ebx, ebx
mov bx, word [ecx]
cmp ebx, eax
jle 0x4a0af9
lea ebx, [edx - 0x80]
shl ebx, 8
mov word [ecx], bx
add eax, 0x100
inc edx
add ecx, 2
cmp eax, 0x10000
jl 0x4a0ae7
cmp word [esi], 0xfe00
jbe 0x4a0b15
mov word [esi], 0xfe00
add esi, 0x200
dec edi
jne 0x4a0ada
pop ebx
jmp 0x4a0b2e
push str.skipping_W2K_gamma_clamp._n
call fcn.0044ce60
add esp, 4
lea esi, [esp + 0xa2]
mov edi, 3
mov eax, esi
mov edx, 0xff
mov cx, word [eax - 2]
cmp word [eax], cx
jae 0x4a0b4d
mov word [eax], cx
add eax, 2
dec edx
jne 0x4a0b41
add esi, 0x200
dec edi
jne 0x4a0b3a
mov eax, dword [0x13f5410]
pop edi
pop esi
pop ebp
test eax, eax
je 0x4a0b80
mov edx, dword [0x1324fa4]
lea ecx, [esp + 0x94]
push ecx
push edx
call eax
add esp, 0x694
ret
mov ecx, dword [0x1324fa4]
lea eax, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetDeviceGammaRamp]
test eax, eax
jne 0x4a0ba6
push str.SetDeviceGammaRamp_failed._n
call fcn.0044cca0
add esp, 4
add esp, 0x694
ret
Function at 0x4a29a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [0x1324fe4], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x1324fdc], eax
call esi
push 0x1324fe0
push 0
push 0
mov dword [0x1324fcc], eax
mov eax, dword [esp + 0x14]
push 0x4a2980
push 0
push 0
mov dword [0x1324fd8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [0x1324fd4], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret
Function at 0x4ba630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x98
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
push edi
push eax
push ecx
call fcn.00463e40
mov edx, dword [esp + 0xb4]
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xbc]
add esp, 8
xor ecx, ecx
lea eax, [esp + 0x50]
test cl, 1
je 0x4ba670
mov ebx, dword [edi]
jmp 0x4ba672
mov ebx, dword [esi]
test cl, 2
mov dword [esp + 0x18], ebx
je 0x4ba680
mov ebx, dword [edi + 4]
jmp 0x4ba683
mov ebx, dword [esi + 4]
test cl, 4
mov dword [esp + 0x1c], ebx
je 0x4ba691
fld dword [edi + 8]
jmp 0x4ba694
fld dword [esi + 8]
fld dword [esp + 0x24]
fmul dword [esp + 0x18]
inc ecx
add eax, 0xc
cmp ecx, 8
fstp dword [eax - 0x14]
fld dword [esp + 0x28]
fmul dword [esp + 0x18]
fstp dword [eax - 0x10]
fld dword [esp + 0x2c]
fmul dword [esp + 0x18]
fstp dword [eax - 0xc]
fld dword [esp + 0x1c]
fld dword [esp + 0x30]
fmul st(1)
fadd dword [eax - 0x14]
fstp dword [eax - 0x14]
fld dword [esp + 0x34]
fmul st(1)
fadd dword [eax - 0x10]
fstp dword [eax - 0x10]
fld dword [esp + 0x38]
fmul st(1)
fadd dword [eax - 0xc]
fstp dword [eax - 0xc]
fstp st(0)
fld dword [esp + 0x3c]
fmul st(1)
fadd dword [eax - 0x14]
fstp dword [eax - 0x14]
fld dword [esp + 0x40]
fmul st(1)
fadd dword [eax - 0x10]
fstp dword [eax - 0x10]
fld dword [esp + 0x44]
fmul st(1)
fadd dword [eax - 0xc]
fstp dword [eax - 0xc]
fstp st(0)
fld dword [eax - 0x14]
fadd dword [edx]
fstp dword [eax - 0x14]
fld dword [eax - 0x10]
fadd dword [edx + 4]
fstp dword [eax - 0x10]
fld dword [eax - 0xc]
fadd dword [edx + 8]
fstp dword [eax - 0xc]
jl 0x4ba667
mov esi, dword [esp + 0xc8]
mov edi, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xbc]
push esi
push edi
push ebx
lea edx, [esp + 0x60]
push ebp
lea eax, [esp + 0x58]
push edx
push eax
call fcn.0049a5c0
push esi
push edi
push ebx
lea ecx, [esp + 0x90]
push ebp
lea edx, [esp + 0x7c]
push ecx
push edx
call fcn.0049a5c0
push esi
push edi
push ebx
lea eax, [esp + 0x9c]
push ebp
lea ecx, [esp + 0xac]
push eax
push ecx
call fcn.0049a5c0
add esp, 0x48
lea edx, [esp + 0x48]
lea eax, [esp + 0x60]
push esi
push edi
push ebx
push ebp
push edx
push eax
call fcn.0049a5c0
push esi
push edi
push ebx
lea ecx, [esp + 0xa8]
push ebp
lea edx, [esp + 0xa0]
push ecx
push edx
call fcn.0049a5c0
push esi
push edi
push ebx
lea eax, [esp + 0xd8]
push ebp
lea ecx, [esp + 0xc4]
push eax
push ecx
call fcn.0049a5c0
add esp, 0x48
lea edx, [esp + 0x90]
lea eax, [esp + 0x9c]
push esi
push edi
push ebx
push ebp
push edx
push eax
call fcn.0049a5c0
push esi
push edi
push ebx
lea ecx, [esp + 0x9c]
push ebp
lea edx, [esp + 0xb8]
push ecx
push edx
call fcn.0049a5c0
lea eax, [esp + 0x78]
add esp, 0x30
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 4
jmp 0x4ba820
mov eax, dword [esp + 0x10]
push esi
push edi
push ebx
lea ecx, [eax + 0x30]
push ebp
push ecx
push eax
call fcn.0049a5c0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add esp, 0x18
add ecx, 0xc
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x4ba81c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x4d75a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x34]
mov eax, esi
imul eax, edi
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
lea ebp, [edx*4 + 0x80]
push ebp
call dword [0x1325020]
mov ebx, eax
mov eax, ebp
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
push 0
push ebx
call fcn.0044ee30
lea ebp, [esi*4]
push ebp
call dword [0x1325020]
mov ecx, dword [esp + 0x50]
push ebp
push ecx
push eax
mov dword [ebx + 0x78], eax
call fcn.0044eee0
lea ebp, [edi*4]
push ebp
call dword [0x1325020]
mov edx, dword [esp + 0x60]
push ebp
add edx, 0x104
mov dword [ebx + 0x7c], eax
push edx
push eax
call fcn.0044eee0
lea eax, [ebx + 0x20]
lea ecx, [ebx + 0x14]
push eax
push ecx
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x74], edi
mov dword [ebx], 2
call fcn.0045b040
add esp, 0x38
test esi, esi
jle 0x4d76df
mov eax, dword [esp + 0x38]
lea ebp, [ebx + 0x80]
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
test edi, edi
jle 0x4d76ba
mov edx, dword [esp + 0x38]
lea ecx, [esi + esi*4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], edi
lea eax, [esi + ecx*2]
shl eax, 2
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x3c]
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x14]
mov ecx, 0xb
mov edi, ebp
push eax
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.0045b0b0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
add esp, 0xc
add ebp, edx
add ecx, 0xb2c
dec eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
jne 0x4d7675
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add edx, 0x2c
add ebp, 0x2c
dec eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jne 0x4d7658
fld dword [ebx + 0x14]
fadd dword [ebx + 0x20]
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], eax
fmul dword [0x5374f0]
fst dword [ebx + 0x2c]
fld dword [ebx + 0x24]
fadd dword [ebx + 0x18]
fmul dword [0x5374f0]
fstp dword [ebx + 0x30]
fld dword [ebx + 0x28]
fadd dword [ebx + 0x1c]
fmul dword [0x5374f0]
fstp dword [ebx + 0x34]
fld dword [ebx + 0x14]
fsub st(1)
fstp dword [esp + 0x20]
fstp st(0)
fld dword [ebx + 0x18]
fsub dword [ebx + 0x30]
fstp dword [esp + 0x24]
fld dword [ebx + 0x1c]
fsub dword [ebx + 0x34]
fstp dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x40]
fld dword [esi]
fld dword [esi + 4]
fxch st(1)
fmul dword [esi]
fxch st(1)
fld dword [esi + 8]
fxch st(1)
fmul dword [esi + 4]
fxch st(1)
fmul dword [esi + 8]
fxch st(2)
faddp st(1)
faddp st(1)
fsqrt
pop esi
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x30]
pop edi
fst dword [ebx + 0x38]
fstp dword [ebx + 0x64]
mov dword [ebx + 0x60], eax
pop esi
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x5c], edx
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x527c1d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x56f898
cmp edx, dword [eax]
je 0x527c3f
add eax, 8
inc ecx
cmp eax, 0x56f928
jl 0x527c30
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x56f898]
jne 0x527d6d
mov eax, dword [0xccc658]
cmp eax, 1
je 0x527d47
test eax, eax
jne 0x527c70
cmp dword [0x56cf64], 1
je 0x527d47
cmp edx, 0xfc
je 0x527d6d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x527ca7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00524940
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005229a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x527cea
lea eax, [ebp - 0x1a4]
push eax
call fcn.005229a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x557c78
push edi
call fcn.0051c470
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00524940
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00524950
lea eax, [ebp - 0xa0]
push 0x53a2cc
push eax
call fcn.00524950
push dword [esi + 0x56f89c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00524950
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0052cd75
add esp, 0x2c
pop edi
jmp 0x527d6d
lea eax, [ebp + 8]
lea esi, [esi + 0x56f89c]
push 0
push eax
push dword [esi]
call fcn.005229a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403b30
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.LunaTranslator_runtime
lea ecx, [ebp - 0xdc]
call fcn.00401cc0
lea ecx, [ebp - 0xdc]
call fcn.00402bb0
test eax, eax
je 0x403b6d
mov esi, 3
jmp 0x403c3b
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
je 0x403c29
push 1
call fcn.004053b0
push eax
push 0x406e30
push str.CONOUT_
call sub.msvcrt.dll_freopen
push 2
call fcn.004053b0
push eax
push 0x406e30
push str.CONOUT_
call sub.msvcrt.dll_freopen
push 1
call fcn.004053b0
push eax
call sub.msvcrt.dll__fileno
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0x28
test eax, eax
js 0x403bed
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401620
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 0xf
cmova eax, dword [ebp - 0x1c]
push eax
push str.PYSTAND_STDOUT
call esi
lea ecx, [ebp - 0x1c]
call fcn.00401ec0
push 0
call fcn.004053b0
push eax
call sub.msvcrt.dll__fileno
add esp, 8
test eax, eax
js 0x403c29
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401620
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 0xf
cmova eax, dword [ebp - 0x1c]
push eax
push str.PYSTAND_STDIN
call esi
lea ecx, [ebp - 0x1c]
call fcn.00401ec0
push str.import_sys_nimport_os_nPYSTAND__os.environ_PYSTAND__nPYSTAND_HOME__os.environ_PYSTAND_HOME__nPYSTAND_RUNTIME__os.environ_PYSTAND_RUNTIME__nPYSTAND_SCRIPT__os.environ_PYSTAND_SCRIPT__nsys.path_origin___n_for_n_in_sys.path__nsys.PYSTAND__PYSTAND_nsys.PYSTAND_HOME__PYSTAND_HOME_nsys.PYSTAND_SCRIPT__PYSTAND_SCRIPT_ndef_MessageBox_msg__info__Message_:_n____import_ctypes_n____ctypes.windll.user32.MessageBoxW_None__str_msg___str_info___0__n____return_0_nos.MessageBox__MessageBox_ntry:_n____fd__os.open_CONOUT___os.O_RDWR__os.O_BINARY__n____fp__os.fdopen_fd__w__n____sys.stdout__fp_n____sys.stderr__fp_n____attached__True_nexcept_Exception_as_e:_n____fp__open_os.devnull__w__errorsignore__n____sys.stdout__fp_n____sys.stderr__fp_n____attached__False_nsys.argv___os.environ_LUNA_EXE_NAME___sys.argv_0___PYSTAND_SCRIPT___sys.argv_1:__ntext__open_PYSTAND_SCRIPT__rb_.read___nenviron____file__:_PYSTAND_SCRIPT____name__:___main___nenviron___package_____None_ntry:_n____code__compile_text__PYSTAND_SCRIPT__exec__n____exec_code__environ__nexcept_Exception:_n____if_attached:_n________raise_n____import_traceback__io_n____sio__io.StringIO___n____traceback.print_exc_file__sio__n____os.MessageBox_sio.getvalue____Error__n
lea ecx, [ebp - 0xdc]
call fcn.004032c0
mov esi, eax
lea ecx, [ebp - 0xdc]
call fcn.00402050
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404090
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404863
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4048a2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4048a2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4048a2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4048a2
cmp dword [ecx + 0x74], 0xe
jbe 0x4048a2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x404d80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x404da7
mov ecx, 5
int 0x29
push 2
call fcn.00404907
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x404eb2
test esi, esi
jne 0x404eb2
push 2
call fcn.00404907
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404090
mov esp, ebp
pop ebp
ret

Function at 0x4050d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00405100
mov esi, dword [ebp + 8]
test al, al
je 0x4050ee
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.00405110
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405240
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40529c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40529c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40529c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40529c
cmp dword [ecx + 0x74], 0xe
jbe 0x40529c
cmp dword [ecx + 0xe8], 0
je 0x40529c
push dword [ebp + 8]
call fcn.00405110
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x409558
call fcn.00404ee0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4052d1
push dword [ebp + 8]
call fcn.004050d0
mov esp, ebp
pop ebp
ret
Function at 0x405310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40536c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40536c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40536c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40536c
cmp dword [ecx + 0x74], 0xe
jbe 0x40536c
cmp dword [ecx + 0xe8], 0
je 0x40536c
push dword [ebp + 8]
call fcn.00405110
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x409558
call fcn.00404ee0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4053a1
push dword [ebp + 8]
call fcn.004050d0
mov esp, ebp
pop ebp
ret

Function at 0x405ae0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x405b0a
mov eax, 2
pop ebp
ret
push esi
call fcn.00404bd0
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x405b2a
jmp dword [eax*4 + 0x405b60]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00404d10
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4157e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a585b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0049a015
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x415862
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00497d57
mov eax, dword [eax]
push 0x6a7d08
push eax
call fcn.00489cd4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049a2a0
test bl, bl
je 0x415862
push 0x6a7d08
lea ecx, [esp + 0xc]
call fcn.0049a630
push 0x6a7d14
lea ecx, [esp + 0xc]
call fcn.0049a630
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41589e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049a2a0
jmp 0x415969
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x415922
lea edx, [esp + 0x7c]
push 0x6a7d10
push edx
call fcn.00489cd4
add esp, 8
test eax, eax
je 0x415922
lea eax, [esp + 0x7c]
push 0x6a7d0c
push eax
call fcn.00489cd4
add esp, 8
test eax, eax
je 0x415922
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4158b2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0049a2a0
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x416160
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4161c2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4161d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a58db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6b7288]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x416308
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x416236
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049a2a0
xor eax, eax
jmp 0x41637f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0049a3dd
push esi
lea ecx, [esp + 0xc]
call fcn.0049a66c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x6a7d48
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41635d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00416160
test eax, eax
jne 0x41635d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00416160
test eax, eax
jne 0x41635d
lea eax, [esp + 0x14]
push 0x6a7d24
push eax
call fcn.0048ae20
mov esi, eax
add esp, 8
test esi, esi
jne 0x41633c
lea ecx, [esp + 0x14]
push 0x6a7d20
push ecx
call fcn.0048ada0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41633c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41633f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0049a38d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41624e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049a2a0
xor eax, eax
jmp 0x41637f
mov byte [esi], 0
push 0x6a7d1c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0049a2a0
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4