joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5f8c], 0
lea esi, [edi + 0x5f90]
je 0x1001c8d2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1001c88c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1001edf0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.100048d0
mov edx, dword [esi]
mov ecx, 0x1004c634
push dword [edi + 0x5f8c]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5f98]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.100048d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001cbd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x1004c638]
push edi
cmp byte [esi + 0x5f18], 0
jne 0x1001cca5
cmp dword [esi + 0x5f38], 0
je 0x1001cc0b
push 0x36a9
push str.C:UsersdarioDesktopImGui_DirectX_11_Kiero_Hook_masterImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
push str.g.SettingsWindows.empty__
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1001cc9e
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.100043c0
mov edi, eax
add esp, 8
test edi, edi
je 0x1001cc9e
mov edx, dword [ebp - 4]
test edx, edx
je 0x1001cc3e
mov ecx, edi
call fcn.1001cf40
mov ecx, dword [0x1004c638]
test ecx, ecx
je 0x1001cc94
movsx edx, word [ecx + 0x6044]
lea eax, [ecx + 0x6048]
mov ebx, dword [ecx + 0x3f90]
lea eax, [eax + edx*8]
cmp dword [eax], ebx
je 0x1001cc8a
lea eax, [edx + 1]
mov dword [ebp - 4], 6
cdq
idiv dword [ebp - 4]
movzx eax, dx
mov word [ecx + 0x6044], ax
cwde
add eax, 0xc09
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], ebx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x6040]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov byte [esi + 0x5f18], 1
movss xmm0, dword [esi + 0x5f1c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1001cd3d
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5f1c], xmm0
jb 0x1001cd3d
mov edi, dword [esi + 0x20]
test edi, edi
je 0x1001cd2c
mov eax, dword [0x1004c638]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5f1c], 0
call fcn.1001d180
mov edx, 0x100422f4
mov ecx, edi
mov ebx, eax
call fcn.10004240
mov edi, eax
test edi, edi
je 0x1001cd33
push edi
push dword [ebp - 4]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov dword [esi + 0x5f1c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x88], 1
mov dword [esi + 0x5f1c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001cec0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x1004c638]
test bl, bl
je 0x1001cf06
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1001cee7
cmp byte [esi], bl
jne 0x1001cee7
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x10042a70]
test bl, bl
jne 0x1001ced8
mov edi, dword [0x1004c638]
mov ecx, dword [edi + 0x5f2c]
not eax
mov edx, dword [edi + 0x5f34]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x1001cf2d
cmp dword [edx + 4], eax
je 0x1001cf30
add edx, 0x24
cmp edx, ecx
jne 0x1001cf21
xor eax, eax
ret
mov eax, edx
ret
Function at 0x100323f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, dword [0x1004c638]
mov edx, 0x210
push ebx
push esi
push edi
call fcn.10012d10
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
cmp byte [eax], 0
je 0x10032482
mov eax, dword [0x1004c638]
cmp byte [eax + 0x41ac], 0
jne 0x10032482
push 0xa0
call ebx
shr eax, 0xf
test al, 1
jne 0x10032482
cmp dword [0x1004c638], 0
jne 0x1003244d
push 0x1187
push str.C:UsersdarioDesktopImGui_DirectX_11_Kiero_Hook_masterImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call edi
add esp, 0xc
mov esi, dword [0x1004c638]
cmp byte [esi + 0x2b41], 0
je 0x1003246e
push 0
push 0x210
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100038d0
mov dword [esi + 0x2dd4], 0x210
mov dword [esi + 0x3394], 0xa0
mov ecx, dword [0x1004c638]
mov edx, 0x214
call fcn.10012d10
cmp byte [eax], 0
je 0x10032505
mov eax, dword [0x1004c638]
cmp byte [eax + 0x41dc], 0
jne 0x10032505
push 0xa1
call ebx
shr eax, 0xf
test al, 1
jne 0x10032505
cmp dword [0x1004c638], 0
jne 0x100324d0
push 0x1187
push str.C:UsersdarioDesktopImGui_DirectX_11_Kiero_Hook_masterImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call edi
add esp, 0xc
mov esi, dword [0x1004c638]
cmp byte [esi + 0x2b41], 0
je 0x100324f1
push 0
push 0x214
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100038d0
mov dword [esi + 0x2dd8], 0x214
mov dword [esi + 0x33a4], 0xa1
mov ecx, dword [0x1004c638]
mov edx, 0x212
call fcn.10012d10
cmp byte [eax], 0
je 0x10032585
mov eax, dword [0x1004c638]
cmp byte [eax + 0x41c4], 0
jne 0x10032585
push 0x5b
call ebx
shr eax, 0xf
test al, 1
jne 0x10032585
cmp dword [0x1004c638], 0
jne 0x10032550
push 0x1187
push str.C:UsersdarioDesktopImGui_DirectX_11_Kiero_Hook_masterImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call edi
add esp, 0xc
mov esi, dword [0x1004c638]
cmp byte [esi + 0x2b41], 0
je 0x10032571
push 0
push 0x212
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100038d0
mov dword [esi + 0x2cc0], 0x212
mov dword [esi + 0x339c], 0x5b
mov ecx, dword [0x1004c638]
mov edx, 0x216
call fcn.10012d10
cmp byte [eax], 0
je 0x10032606
mov eax, dword [0x1004c638]
cmp byte [eax + 0x41f4], 0
jne 0x10032606
push 0x5c
call ebx
shr eax, 0xf
test al, 1
jne 0x10032606
mov esi, dword [0x1004c638]
test esi, esi
jne 0x100325d7
push 0x1187
push str.C:UsersdarioDesktopImGui_DirectX_11_Kiero_Hook_masterImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call edi
mov esi, dword [0x1004c638]
add esp, 0xc
cmp byte [esi + 0x2b41], 0
je 0x100325f2
push 0
push 0x216
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100038d0
mov dword [esi + 0x2cc4], 0x216
mov dword [esi + 0x33ac], 0x5c
pop edi
pop esi
pop ebx
ret
Function at 0x1003a560
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x1004c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2d8], 1
push edi
mov esi, ecx
mov dword [ebp - 0x2dc], ebx
nop word [eax + eax]
lea eax, [ebp - 0x2d4]
push eax
push 0
push 0
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1004c6a4]
cmp dword [ebp - 0x2dc], 0
mov edi, eax
je 0x1003a5bd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x1003a6b8
mov ebx, dword [ebp - 0x2d4]
push ebx
mov dword [ebp - 0x2dc], 1
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x1003a590
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1003a590
mov ecx, dword [esi]
mov dword [ebp - 0x2dc], 0
test ecx, ecx
jne 0x1003a633
push 0x200
push ecx
push dword [0x1004c6a0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea edi, [esi + 8]
test eax, eax
cmovne ecx, dword [ebp - 0x2d8]
mov dword [ebp - 0x2d8], ecx
jmp 0x1003a659
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x1003a65b
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push ecx
push 0
push dword [0x1004c6a0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1003a68a
mov dword [esi], eax
cmp dword [ebp - 0x2d8], 0
je 0x1003a6a2
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ecx, dword [edi]
mov eax, dword [esi]
mov dword [eax + ecx*4], ebx
inc dword [edi]
jmp 0x1003a590
xor edi, edi
push ebx
mov dword [ebp - 0x2d8], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003a6d4
mov edi, dword [ebp - 0x2d8]
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003a6d4
cmp edi, 0x8000001a
je 0x1003a6ca
xor edi, edi
mov dword [ebp - 0x2d8], edi
jmp 0x1003a6d4
mov edi, dword [ebp - 0x2d8]
test edi, edi
jne 0x1003a749
cmp dword [esi], 0
je 0x1003a749
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1003a71c
xor ebx, ebx
mov dword [ebp - 0x2dc], ebx
nop dword [eax + eax]
mov eax, dword [esi]
push dword [eax + ebx]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2dc]
push dword [eax + ecx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [ebp - 0x2dc], 4
lea ebx, [ebx + 4]
inc edi
cmp edi, dword [esi + 8]
jb 0x1003a6f0
push dword [esi]
push 0
push dword [0x1004c6a0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x2d8]
pop edi
mov dword [esi], 0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret
Function at 0x1003ab20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1004c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
xor esi, esi
mov edx, dword [0x1004c6b8]
test edx, edx
je 0x1003acb1
mov ecx, dword [0x1004c6b0]
push edi
mov edi, dword [ebp + 8]
add ecx, 4
movzx eax, byte [ecx + 0x14]
shr eax, 1
and eax, 1
cmp eax, edi
je 0x1003ab6c
cmp dword [ecx - 4], 1
jne 0x1003ab6c
test ebx, ebx
je 0x1003ab87
cmp ebx, dword [ecx]
je 0x1003ab87
inc esi
add ecx, 0x30
cmp esi, edx
jb 0x1003ab51
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1003ab74
mov eax, dword [0x1004c644]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
sub eax, edi
je 0x1003ac8b
sub eax, 1
jne 0x1003abc7
lea ecx, [ebp - 0x10]
call fcn.1003a560
neg eax
sbb edi, edi
and edi, 0xfffffff7
add edi, 9
mov dword [ebp - 0x14], edi
mov edx, dword [0x1004c6b8]
test edi, edi
jne 0x1003ac78
cmp esi, edx
jae 0x1003ac2b
lea ecx, [esi + esi*2]
shl ecx, 4
mov dword [ebp - 0x14], ecx
nop dword [eax]
add ecx, dword [0x1004c6b0]
movzx eax, byte [ecx + 0x18]
shr eax, 1
and eax, 1
cmp eax, dword [ebp + 8]
je 0x1003ac1a
cmp dword [ecx], 1
jne 0x1003ac1a
test ebx, ebx
je 0x1003ac02
cmp ebx, dword [ecx + 4]
jne 0x1003ac1a
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push esi
call fcn.1003a900
mov edx, dword [0x1004c6b8]
test eax, eax
cmovne edi, eax
mov ecx, dword [ebp - 0x14]
inc esi
add ecx, 0x30
mov dword [ebp - 0x14], ecx
cmp esi, edx
jb 0x1003abe0
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x10], 0
je 0x1003ac78
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1003ac67
xor ebx, ebx
xor edi, edi
nop dword [eax]
mov eax, dword [ebp - 0x10]
push dword [ebx + eax]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x10]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
lea ebx, [ebx + 4]
lea edi, [edi + 4]
cmp esi, dword [ebp - 8]
jb 0x1003ac40
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0
push dword [0x1004c6a0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
call fcn.1003a370
test eax, eax
jne 0x1003abc1
pop edi
pop esi
mov eax, 9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret
Function at 0x1003aff0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1004c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1004c648]
push esi
mov esi, edx
test eax, eax
jne 0x1003b020
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1003b041
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret
push ebx
push edi
test esi, esi
je 0x1003b144
mov ecx, dword [0x1004c6b8]
xor edi, edi
test ecx, ecx
je 0x1003b072
mov edx, dword [0x1004c6b0]
mov eax, edx
nop
cmp dword [eax], 1
jne 0x1003b06a
cmp esi, dword [eax + 4]
je 0x1003b07c
inc edi
add eax, 0x30
cmp edi, ecx
jb 0x1003b060
mov esi, 4
jmp 0x1003b153
cmp edi, 0xffffffff
je 0x1003b072
mov ebx, dword [ebp + 8]
lea eax, [edi + edi*2]
add eax, eax
movzx eax, byte [edx + eax*8 + 0x18]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x1003b139
mov eax, dword [0x1004c644]
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
sub eax, esi
je 0x1003b128
sub eax, 1
jne 0x1003b0c6
lea ecx, [ebp - 0x10]
call fcn.1003a560
neg eax
sbb esi, esi
and esi, 0xfffffff7
add esi, 9
test esi, esi
jne 0x1003b153
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
call fcn.1003a900
mov esi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
test eax, eax
je 0x1003b153
xor edi, edi
cmp dword [ebp - 8], edi
jbe 0x1003b117
xor ebx, ebx
xor esi, esi
push dword [ebx + eax]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x10]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
lea ebx, [ebx + 4]
inc edi
lea esi, [esi + 4]
cmp edi, dword [ebp - 8]
jb 0x1003b0f0
mov esi, dword [ebp - 0x14]
push eax
push 0
push dword [0x1004c6a0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003b153
lea ecx, [ebp - 0x10]
call fcn.1003a370
test eax, eax
jne 0x1003b0c6
lea esi, [eax + 9]
jmp 0x1003b153
mov esi, ebx
neg esi
sbb esi, esi
add esi, 6
jmp 0x1003b153
push dword [ebp + 8]
mov edx, esi
call fcn.1003ab20
add esp, 4
mov esi, eax
push dword [0x1004c648]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret
Function at 0x1003b930
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1003b968
sub eax, 1
jne 0x1003b99d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x1003b8e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
cmp dword [0x1004c678], 0
je 0x1003b99d
push 0
xor edx, edx
call fcn.1003aff0
push dword [0x1004c674]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 8
mov dword [0x1004c674], 0
mov dword [0x1004c678], 0
mov eax, 1
pop ebp
ret 0xc
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x514
push esi
push edi
push 0x4057d0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401160
mov edi, str.BootInst.log
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
push 0x404034
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov esi, eax
test esi, esi
pop ebp
je 0x401160
xor ecx, ecx
lea edx, [esp + 8]
mov dword [esp + 0xa], ecx
push edx
mov dword [esp + 0x12], ecx
mov word [esp + 0xc], 0
mov dword [esp + 0x16], ecx
mov word [esp + 0x1a], cx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x12]
mov edx, dword [esp + 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and eax, 0xffff
and edx, 0xffff
push eax
mov eax, dword [esp + 0x12]
push ecx
mov ecx, dword [esp + 0x12]
push edx
mov edx, dword [esp + 0x14]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x134]
push str._d__02d__02d__02d:_02d:_02d_:
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x20
lea ecx, [esp + 0x11c]
push ecx
push esi
call edi
mov eax, dword [esp + 0x528]
lea edx, [esp + 0x52c]
push edx
push eax
push esi
call dword [sym.imp.MSVCRT.dll_vfprintf]
add esp, 0x14
push 0x404010
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
push 0x4057d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
add esp, 0x514
ret

Function at 0x401180
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
or eax, 0xffffffff
test edx, edx
je 0x4011b3
push ebx
push esi
lea esi, [edx]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4053cc]
xor eax, edx
inc ecx
dec esi
jne 0x401193
pop esi
pop ebx
not eax
ret

Function at 0x4011c0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x4053cc
mov eax, edx
mov esi, 8
test al, 1
je 0x4011dc
shr eax, 1
xor eax, 0xedb88320
jmp 0x4011de
shr eax, 1
dec esi
jne 0x4011cf
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x4057cc
jl 0x4011c8
pop esi
ret
Function at 0x401230
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file
Set file attributes

Disassembly:
sub esp, 0x314
push ebx
push edi
call fcn.00402350
test eax, eax
jne 0x401403
xor bl, bl
mov ecx, 0x40
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
push str.SystemBootDevice
push str.SYSTEMCurrentControlSetControl
push 0x80000002
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x4012a7
push 0x4040c8
call fcn.00401000
add esp, 4
pop edi
pop ebx
add esp, 0x314
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4012ee
push 0x4040b0
call fcn.00401000
add esp, 4
pop edi
pop ebx
add esp, 0x314
ret
mov edi, 0x4040ac
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x18]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov byte [esp + 0x220], bl
and ecx, 3
push 0x404ba8
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x123]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x229]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x228]
lea ecx, [esp + 0x20]
push eax
push 0x4057e8
push ecx
push str.operating_systems
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push 0x404ba8
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x404ba8
push 0x404094
push str.timeout
push str.boot_loader
call esi
lea edx, [esp + 0x18]
push 0x404ba8
push edx
push str.default
push str.boot_loader
call esi
lea edi, [esp + 0x220]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4013f8
push 0x404ba8
lea eax, [esp + 0x1c]
push str._Windows_OS___fastdetect__NoExecuteOptIn
push eax
push str.operating_systems
call esi
push 7
push 0x404ba8
call ebx
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x314
ret
Function at 0x401970
Capabilities:
Delete file
Read .ini file
Set file attributes

Disassembly:
sub esp, 0x104
call fcn.00402350
test eax, eax
jne 0x401a25
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
push 0x80
push 0x404ba8
call ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404ba8
lea eax, [esp + 0xc]
push 0x104
push eax
push 0x4057e8
push str.DefaultBackup
push 0x404438
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401a0e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0xc]
push 0x404ba8
push ecx
push str.default
push str.boot_loader
call esi
push 0x404ba8
push 0
push 0
push 0x404438
call esi
pop esi
push 7
push 0x404ba8
call ebx
pop edi
mov eax, 1
pop ebx
add esp, 0x104
ret
call fcn.00402610
test eax, eax
je 0x401a35
push str._set_bootmgr_path_EFIMicrosoftBootORMLdr.efi
jmp 0x401a3a
push str._default_current
push 0x4050bc
call fcn.00402ad0
add esp, 8
push 0x80
push 0x4051c0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4051c0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
add esp, 0x104
ret