joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456ec7
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x46e7a8
call fcn.0046359a
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x216]
push ebx
mov dword [ebp - 0x224], ebx
push eax
mov word [ebp - 0x218], bx
call fcn.00463688
add esp, 0xc
push 0x472710
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x456f4a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC80U.DLL_Ordinal_3927]
test al, al
je 0x456f73
push 0x475738
lea ecx, [ebp - 0x224]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea eax, [ebp - 0x224]
jmp 0x456fce
push 1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC80U.DLL_Ordinal_5558]
mov esi, 0x47e5c8
push esi
mov ecx, eax
mov byte [ebp - 4], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_1472]
test eax, eax
lea ecx, [ebp - 0x228]
setne byte [ebp - 0x21d]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp byte [ebp - 0x21d], bl
je 0x456fc8
push esi
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
lea ecx, [ebp - 0x224]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, edi
call int.0046361d
ret

Function at 0x45c400
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x45c44b
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x45c434
mov eax, dword [esi + 0x14]
pop esi
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 4]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 4], 0
pop esi
ret 4
mov edx, dword [esi + 0x14]
pop esi
mov dword [esp + 4], edx
jmp dword [sym.imp.KERNEL32.dll_ResetEvent]
Function at 0x45efd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fa74
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4ab368]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x206
lea eax, [ebp - 0x216]
push 0
mov dword [ebp - 0x220], 0
push eax
mov word [ebp - 0x218], 0
call fcn.00463688
add esp, 0xc
push 0x472710
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 1
push 0x1a
lea ecx, [ebp - 0x218]
push ecx
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45f07b
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC80U.DLL_Ordinal_3927]
test al, al
je 0x45f0a5
push 0x475738
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea eax, [ebp - 0x220]
push eax
jmp 0x45f0fc
push 1
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC80U.DLL_Ordinal_5558]
push 0x47e5c8
mov ecx, eax
mov byte [ebp - 4], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_1472]
test eax, eax
lea ecx, [ebp - 0x224]
setne bl
mov byte [ebp - 4], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
test bl, bl
je 0x45f0f5
push 0x47e5c8
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
lea edx, [ebp - 0x21c]
push edx
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00463522
mov esp, ebp
pop ebp
ret
Function at 0x4618e0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x24
cmp eax, 4
je 0x461913
cmp eax, 5
je 0x461913
push 0x3ec
push str.CRegistryKey::SetValue__
lea ecx, [esp + 8]
call fcn.004612d0
push 0x4983ac
lea eax, [esp + 4]
push eax
call sub.MSVCR80.dll__CxxThrowException
mov ecx, dword [ecx]
push 4
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x34]
push 0
push eax
call fcn.004611a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x461952
push eax
push str.CRegistryKey::SetValue__
lea ecx, [esp + 8]
call fcn.004612d0
push 0x4983ac
lea ecx, [esp + 4]
push ecx
call sub.MSVCR80.dll__CxxThrowException
add esp, 0x24
ret 0xc
Function at 0x40cbd0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
lea eax, [ebp - 0x11]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
call fcn.0040cdc0
add esp, 4
cmp eax, ebx
je 0x40cc1e
lea ecx, [ebp - 0x28]
push 0x41cb00
push ecx
mov dword [ebp - 0x28], 4
call fcn.00413e87
cmp byte [ebp - 0x11], bl
jne 0x40cc39
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x18]
push edx
push 8
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, ebx
jne 0x40cc65
lea ecx, [ebp - 0x2c]
push 0x41cb00
push ecx
mov dword [ebp - 0x2c], 4
call fcn.00413e87
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x40cc81
lea edx, [ebp - 0x30]
push 0x41cb00
push edx
mov dword [ebp - 0x30], 4
call fcn.00413e87
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push ebx
push 2
push eax
mov dword [ebp - 0x1c], ebx
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jbe 0x40ccbf
push eax
call fcn.0040cea0
mov ecx, dword [ebp - 0x18]
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x24], esi
push edx
push eax
push esi
push 2
push ecx
call edi
cmp eax, ebx
jne 0x40ccde
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x34]
push 0x41cb00
push eax
mov dword [ebp - 0x34], 4
call fcn.00413e87
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x44]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
push eax
mov byte [ebp - 0x44], bl
mov byte [ebp - 0x43], bl
mov byte [ebp - 0x42], bl
mov byte [ebp - 0x41], bl
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], 5
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
jne 0x40cd42
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x40cd2d
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea ecx, [ebp - 0x38]
push 0x41cb00
push ecx
mov dword [ebp - 0x38], 4
call fcn.00413e87
xor edi, edi
cmp edi, dword [esi]
jge 0x40cd5d
mov edx, dword [esi + edi*8 + 4]
mov eax, dword [ebp - 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40cd73
mov bl, 1
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
neg bl
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 2
jmp 0x40cda2
inc edi
jmp 0x40cd44
push esi
call fcn.0040cf70
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d450
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
and al, 0xfa
add eax, 6
ret
Function at 0x412c70
Capabilities:
Identify system language via api

Disassembly:
mov al, byte [esp + 0xc]
test al, al
je 0x412c80
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
jmp 0x412c86
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edx, dword [esp + 4]
mov ecx, eax
and ecx, 0x3ff
mov word [edx], cx
mov edx, dword [esp + 8]
mov cx, ax
shr cx, 0xa
neg ax
sbb eax, eax
mov word [edx], cx
and al, 0xf5
add eax, 0xb
ret 0xc

Function at 0x418d19
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4208e0
cmp edx, dword [eax]
je 0x418d3b
add eax, 8
inc ecx
cmp eax, 0x420970
jl 0x418d2c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4208e0]
jne 0x418e69
mov eax, dword [0x420e54]
cmp eax, 1
je 0x418e43
test eax, eax
jne 0x418d6c
cmp dword [0x41e4d4], 1
je 0x418e43
cmp edx, 0xfc
je 0x418e69
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x418da3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00416f50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00414e40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x418de6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00414e40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41b67c
push edi
call fcn.00414210
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00416f50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00416f60
lea eax, [ebp - 0xa0]
push 0x41b65c
push eax
call fcn.00416f60
push dword [esi + 0x4208e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00416f60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004196fa
add esp, 0x2c
pop edi
jmp 0x418e69
lea eax, [ebp + 8]
lea esi, [esi + 0x4208e4]
push 0
push eax
push dword [esi]
call fcn.00414e40
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 0x618870
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x166000]
push edi
or ebp, 0xffffffff
jmp 0x618892
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x618899
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x618888
mov eax, 1
add ebx, ebx
jne 0x6188ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6188bc
jne 0x6188db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6188db
dec eax
add ebx, ebx
jne 0x6188c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6188a0
add ebx, ebx
jne 0x6188d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x61892d
xor ecx, ecx
sub eax, 3
jb 0x6188f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x618962
sar eax, 1
mov ebp, eax
jmp 0x6188fe
add ebx, ebx
jne 0x6188fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6188cc
inc ecx
add ebx, ebx
jne 0x61890c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6188cc
add ebx, ebx
jne 0x618919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x61890e
jne 0x61892a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x61890e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x61894c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x61893e
jmp 0x61888e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x61894c
add edi, ecx
jmp 0x61888e
pop esi
mov edi, esi
mov ecx, 0x389d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x61896a
cmp byte [edi], 0x12
jne 0x61896a
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 0x61896f
lea edi, [esi + 0x215000]
mov eax, dword [edi]
or eax, eax
je 0x6189e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x220968]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x220a2c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x61899c
mov ecx, edi
jns 0x6189cb
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 + 0x220a34]
or eax, eax
je 0x6189e1
mov dword [ebx], eax
add ebx, 4
jmp 0x6189b9
call dword [esi + 0x220a30]
mov ebp, dword [esi + 0x220a38]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x618a1b
sub esp, 0xffffff80
jmp 0x4715ce
Function at 0x4028b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov edi, dword [esp + 0x14]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
jne 0x4028da
pop edi
pop ebp
xor eax, eax
pop ebx
ret
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4028d4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40291a
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402916
cmp esi, ecx
jae 0x40291a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402904
cmp esi, ecx
jb 0x402921
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x402930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [esp + 0x10]
mov ebp, ecx
push edi
call fcn.0042f6f8
mov ebx, eax
test ebx, ebx
jne 0x40294b
pop edi
pop ebp
pop ebx
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x402a1a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402a1a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402a1a
push dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4029b2
nop
cmp esi, ecx
jae 0x402a1a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4029a0
cmp esi, ecx
jae 0x402a1a
movzx eax, word [esi]
test ax, ax
je 0x402a1a
mov edx, dword [ebp]
mov edi, eax
mov ebx, eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x4029e4
push edi
mov ecx, ebp
call fcn.00402f40
mov edx, dword [ebp]
movzx ebx, word [esi]
movzx ecx, bx
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.0044d593
push eax
call fcn.00403080
mov eax, dword [ebp]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x402a23
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp]
pop esi
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop ebp
pop ebx
ret 4
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0x80070057
call fcn.00403110
int3
Function at 0x402a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
xor dl, dl
push ebx
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x402b24
test eax, 0xffff0000
jne 0x402b24
movzx edi, ax
push edi
call fcn.0042f6f8
mov ebx, eax
test ebx, ebx
je 0x402b22
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x402b22
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402b22
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402b22
push dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402ac4
cmp esi, ecx
jae 0x402b22
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402ab2
cmp esi, ecx
jae 0x402b22
movzx eax, word [esi]
test ax, ax
je 0x402b22
mov edx, dword [ebp]
mov edi, eax
mov ebx, eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x402af6
push edi
mov ecx, ebp
call fcn.00402f40
mov edx, dword [ebp]
movzx ebx, word [esi]
movzx ecx, bx
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.0044d593
push eax
call fcn.00403080
mov eax, dword [ebp]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x402b2d
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp]
mov word [eax + edi*2], cx
mov dl, 1
pop edi
pop esi
pop ebp
mov al, dl
pop ebx
ret 4
push 0x80070057
call fcn.00403110
int3
Function at 0x403130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463ded
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x484540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x32], 0
mov dword [ebp - 0x2e], 0
mov dword [ebp - 0x2a], 0
mov dword [ebp - 0x26], 0
mov word [ebp - 0x22], ax
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 1
mov word [ebp - 0x34], ax
call fcn.0042f5de
mov ecx, eax
test ecx, ecx
je 0x403324
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x14]
push str.CrystalDiskMark_08X
push eax
call fcn.00408490
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
push 8
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4032ee
push 8
push 0
push 0
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4032ee
push 0x488b40
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
je 0x403289
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x4032f1
push 0xffffffffffffffff
push dword [0x488b40]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0xffffffffffffffff
push dword [0x488b40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x18]
push eax
push dword [0x488b40]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [0x488b44]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [0x488b40]
call edi
mov eax, dword [ebp + 8]
mov dword [0x488b40], 0
fld qword [ebx]
fmul qword [0x47a9b0]
push ebx
fstp qword [eax]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x403310
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403110
int3
Function at 0x407cd0
Capabilities:
Delete directory
Delete file

Disassembly:
push edi
push dword [0x488b78]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [0x488b7c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x488d08]
cmp eax, dword [edx + 4]
jle 0x407d49
push 0x488d08
call fcn.00449aab
add esp, 4
cmp dword [0x488d08], 0xffffffff
jne 0x407d49
call fcn.0042f5de
mov ecx, eax
test ecx, ecx
je 0x407db3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x467f60
mov dword [0x488d0c], eax
call fcn.00449dbd
push 0x488d08
call fcn.00449a61
add esp, 8
push 0
push 0x472bd0
mov ecx, 0x488d0c
call fcn.00402c10
cmp dword [edi + 0x424], 1
jne 0x407d74
push 7
push str._0Fill_
mov ecx, 0x488d0c
call fcn.00402c10
push 0x488d0c
push 0
push 0x9002
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x9003
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi + 0x234], 0
xor eax, eax
mov dword [edi + 0x230], 0
pop edi
ret
push 0x80004005
call fcn.00403110
int3
Function at 0x408fa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46435d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x484540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004235e0
lea eax, [edi + 0x170]
push eax
lea eax, [edi + 0x16c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004171e0
push str._theme.ini
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.00417110
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 0x18
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409023
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 8
push str.ButtonTop
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x430], eax
push 0
push str.ButtonLeft
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x434], eax
push 8
push str.ButtonBottom
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x438], eax
push 0
push str.ButtonRight
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x43c], eax
push 0
push str.MeterTop
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x440], eax
push 0
push str.MeterLeft
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x444], eax
push 0
push str.MeterBottom
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x448], eax
push 0x10
push str.MeterRight
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x44c], eax
push 0
push str.CommentTop
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x450], eax
push 0x10
push str.CommentLeft
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x454], eax
push 0
push str.CommentBottom
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x458], eax
push 0x10
push str.CommentRight
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x45c], eax
push 0x18
push str.DemoTop
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x460], eax
push 0x18
push str.DemoLeft
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x464], eax
push 0x18
push str.DemoBottom
push str.Margin
call esi
push dword [ebp - 0x10]
mov dword [edi + 0x468], eax
push 0x18
push str.DemoRight
push str.Margin
call esi
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x46c], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4091b1
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