joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026250
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044d48
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x10059008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [esi], 0x114c
mov dword [ebp - 0x1c], vtable.RC::RCFileDetailInfo.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.10002ff0
mov byte [ebp - 4], 2
cmp dword [ebp + 0x18], 0
je 0x100263d5
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x20]
lea eax, [ebp + 8]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100263d5
push eax
call fcn.1003ef11
add esp, 4
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov edi, eax
mov dword [ebp - 0x18], edi
cmovae ecx, dword [ebp + 8]
push edi
push dword [ebp - 0x44]
push dword [ebp - 0x20]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x10026327
lea ecx, [ebp - 0x1c]
call fcn.10027cf0
jmp 0x100263d5
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x10026357
lea ecx, [ebp - 0x1c]
call fcn.10027cf0
jmp 0x100263d5
mov eax, dword [ebp - 0x40]
push 0x1004bc5c
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x78]
call fcn.10002fa0
push ecx
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10027d20
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.10002f10
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.100031f0
movups xmm0, xmmword [ebp - 0x60]
xor eax, eax
lea ecx, [ebp - 0x60]
mov word [ebp - 0x60], ax
movups xmmword [ebp - 0x3c], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov byte [ebp - 4], 2
call fcn.10002f10
cmp dword [ebp - 0x2c], 0
je 0x100263f6
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
push 0x20
cmovae eax, dword [ebp - 0x3c]
push eax
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x1000
lea eax, [esi + 0x14c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.10002f10
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], vtable.RC::RCFileDetailInfo.0
test eax, eax
je 0x1002643a
push eax
call fcn.1003ef0c
add esp, 4
mov dword [ebp - 0x18], 0
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
call fcn.10002f10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003ea51
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10026590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044d78
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10059008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
push 0xfffffffffffffff5
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002668e
test edi, edi
je 0x1002668e
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
test eax, eax
je 0x1002662b
mov eax, dword [ebp - 0x14]
cmp eax, 0x114c
jb 0x1002661d
mov esi, 0x114c
jmp 0x1002662d
cmp eax, 0x14c
jb 0x1002662b
mov esi, 0x14c
jmp 0x1002662d
xor esi, esi
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0
je 0x1002666f
cmp esi, 0x114c
jne 0x1002666f
push str.errinfo
lea ecx, [ebp - 0x3c]
call fcn.10002fa0
push dword [ebp - 0x24]
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.10026470
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f10
push 0
lea eax, [ebp - 0x20]
mov dword [ebx], esi
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003ea51
mov esp, ebp
pop ebp
ret 4
Function at 0x100268d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044df8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10059008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x2c], esi
mov edi, ecx
push edi
xor bl, bl
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10026a92
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10026a92
push edi
mov dword [esi], edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x30], eax
test eax, eax
jle 0x100269ac
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003ef11
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x30]
xor ecx, ecx
push esi
push ebx
push edi
mov word [ebx + eax*2], cx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
lea ecx, [ebp - 0x48]
call fcn.10002fa0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
mov esi, dword [ebp - 0x2c]
lea ecx, [esi + 4]
cmp ecx, eax
je 0x10026992
cmp dword [ebp - 0x34], 8
push dword [ebp - 0x38]
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.10003250
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f10
push ebx
call fcn.1003ef0c
add esp, 4
mov bl, 1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push eax
push 0x10026870
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.10026ab0
test al, al
je 0x10026a31
push dword [ebp - 0x2c]
lea ecx, [esi + 0x1c]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.10026e40
mov bl, 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10025d40
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x10026a92
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10026a73
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10026a73
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1003ee00
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003ea51
mov esp, ebp
pop ebp
ret
Function at 0x1002ca50
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042618
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10059008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x1002ca8b
xor al, al
jmp 0x1002cb2f
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x1002caa7
mov eax, dword [edi]
test eax, eax
je 0x1002caa7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1002cb0c
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1002c5d0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1002cb4b
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x1002cb04
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1002c790
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1002cb2d
mov eax, dword [edi]
test eax, eax
je 0x1002cb26
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003ea51
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1002cb63
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1002caee
mov bl, 1
jmp 0x1002cb0e
Function at 0x1002d800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10045b05
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10059008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1050
call fcn.1003ea62
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x1050
push 0
push esi
call sub.VCRUNTIME140.dll_memset
lea ecx, [esi + 0x44]
mov dword [esi], 0
mov eax, ecx
mov dword [esi + 4], 0
neg eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edx, [esi + 0x1044]
mov dword [esi + 0x10], 0
and eax, 3
mov dword [esi + 0x14], 0
add esp, 0x10
mov dword [esi + 0x18], 0
add eax, ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [edx], 0
mov dword [esi + 0x1048], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov byte [ebp - 4], 2
mov dword [esi + 0x104c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [edi], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10032ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100443c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10059008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10032f16
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10032fc6
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10032ff0
test al, al
je 0x10032f6f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10032fb2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032fa8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032fa8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1003ee00
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003ea51
mov esp, ebp
pop ebp
ret

Function at 0x10034130
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x10059008]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x100341b2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x100341b2
test ecx, ecx
je 0x100341ae
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10034170
xor eax, eax
jmp 0x100341b7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x100341c1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003ea51
add esp, 0xc
ret 0xc
Function at 0x10034240
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10059008]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1003426e
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1003ea51
add esp, 8
ret 4
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x10034257
push edi
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100342b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100342b4
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1003ea51
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
xor eax, eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.1003ea51
add esp, 8
ret 4
Function at 0x100345f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100466c6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x10059008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call esi
mov ebx, eax
mov dword [ebp - 0x81c], ebx
test ebx, ebx
je 0x100346de
lea edx, [ebp - 0x810]
mov dword [ebp - 0x814], 0
lea ecx, [ebp - 0x814]
mov dword [ebp - 0x818], edx
call fcn.10023dd0
mov dword [ebp - 4], 0
cmp ebx, 0x3fe
jbe 0x100346fc
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003ef11
add esp, 4
mov dword [ebp - 0x818], eax
lea ecx, [ebp - 0x814]
push eax
call fcn.10023de0
push dword [ebp - 0x818]
push ebx
call esi
test eax, eax
je 0x100346cc
cmp eax, ebx
ja 0x100346cc
mov edx, dword [ebp - 0x818]
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x81c], ebx
mov dword [edx + eax*2], ecx
jmp 0x1003472a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x814]
call fcn.10023dc0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003ea51
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x10034879
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x10034879
mov word [ebp + eax - 0x810], cx
xor eax, eax
xor esi, esi
test ebx, ebx
je 0x1003485a
mov ecx, dword [ebp - 0x81c]
mov ebx, 2
cmp word [edx + ebx - 2], 0
jne 0x1003484e
cmp eax, esi
je 0x1003484e
lea edx, [edx + eax*2]
mov dword [ebp - 0x824], 0
mov ecx, edx
mov dword [ebp - 0x820], 0
xor eax, eax
mov dword [ebp - 0x824], 0
mov word [ebp - 0x834], ax
mov dword [ebp - 0x820], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x838], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10034794
sub ecx, dword [ebp - 0x838]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x834]
call fcn.10003250
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.10023500
test al, al
lea eax, [ebp - 0x834]
push eax
je 0x100347d8
mov ecx, dword [edi + 4]
call fcn.100061e0
add dword [edi + 4], 0x18
jmp 0x100347e2
push dword [edi + 4]
mov ecx, edi
call fcn.10023e00
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x820]
cmp edx, 8
jb 0x10034822
mov ecx, dword [ebp - 0x834]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10034818
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10034873
push edx
push ecx
call fcn.1003ee00
add esp, 8
mov ecx, dword [ebp - 0x81c]
xor eax, eax
mov edx, dword [ebp - 0x818]
mov word [ebp - 0x834], ax
lea eax, [esi + 1]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 7
inc esi
add ebx, 2
cmp esi, ecx
jb 0x10034741
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x814]
call fcn.10023dc0
mov al, 1
jmp 0x100346e0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.1003f38e
int3
Function at 0x464ebb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], eax
mov byte [0x4c62b7], 0
mov ebx, edx
test edi, edi
je 0x464f0d
mov byte [0x4c62b8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x46539d
push ecx
push ecx
call fcn.00423fe1
mov esi, eax
add esp, 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
test esi, esi
je 0x464f38
push 0xffffffffffffffff
push esi
mov byte [0x4c62b8], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4c62b7], 1
jne 0x464f46
or eax, 0xffffffff
jmp 0x464f48
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46554b
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00431aa0
mov ecx, dword [ecx]
lea eax, [ebp - 0x10020]
push ebx
mov bl, dl
mov edx, 0x7fff
push eax
call fcn.00464a30
pop ecx
lea ecx, [ebp - 0x10020]
call fcn.00464e59
test al, al
je 0x4655e0
lea eax, [ebp - 0x10020]
push eax
test bl, bl
jne 0x465596
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x4655e0
call fcn.00422d5c
pop ecx
xor ecx, ecx
mov dword [ebp - 0x1c], 3
mov word [ebp + eax*2 - 0x1001e], cx
lea eax, [ebp - 0x10020]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4655e5
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
mov esi, edx
push str.SeShutdownPrivilege
lea ecx, [ebp - 0x10]
call fcn.0046390d
push ecx
lea ecx, [ebp - 0x10]
call fcn.0045917c
test al, al
jne 0x46560f
xor esi, esi
jmp 0x46565c
cmp ebx, 0x20
je 0x46564e
cmp ebx, 0x40
je 0x46564a
test bl, 0xb
jne 0x465629
push 0
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x46565a
xor ecx, ecx
test bl, 0x14
je 0x465631
inc ecx
xor eax, eax
test bl, 2
je 0x465639
inc eax
push esi
push eax
push ecx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x46565a
xor eax, eax
jmp 0x465651
xor eax, eax
inc eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.00458bcc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46566c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
test esi, esi
js 0x4656ea
jne 0x46567f
push 0
jmp 0x4656e4
cmp esi, 0xf
jae 0x4656e3
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4656e3
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild qword [ebp - 0x28]
fstp qword [ebp - 0x20]
fdiv qword [ebp - 0x20]
fmul qword [0x4a58e0]
call fcn.0043b516
cmp eax, esi
jb 0x46569c
jmp 0x4656ea
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x465811
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push edi
push edi
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x46586c
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret