joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x698f10
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x76f950]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x77a65c]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x408d7d
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x30], 1
mov eax, dword [ecx]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x6e2330
push 0x400
push ecx
call dword [eax + 0x10]
add esp, 0x18
test eax, eax
js 0x408e13
cmp dword [esp + 0x14], 1
jne 0x408e13
mov edx, dword [esp + 0xc]
test edx, edx
je 0x408e13
mov eax, dword [esp + 0x10]
test eax, eax
mov ecx, edx
cmovne ecx, eax
mov eax, dword [edx]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x6e2340
push 0x400
push edx
call dword [eax + 0x10]
add esp, 0x18
cmp dword [esp + 0x20], 1
jne 0x408e13
lea ecx, [esp + 0x18]
call fcn.00402730
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x408e48
mov ecx, esi
call fcn.00402610
xor bl, bl
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x18]
call fcn.004dd7c0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004dd7c0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, 1
jmp 0x408e15
Function at 0x40bf30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
test eax, eax
jne 0x40bf37
ret
mov edx, dword [eax + 4]
test edx, edx
jne 0x40bf41
lea edx, [eax + 8]
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x40bf6d
jmp 0x40bf50
movzx ecx, cx
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
lea edx, [edx + 2]
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x40bf50
lea eax, [eax + eax*8]
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
imul eax, eax, 0x8001
or ecx, 0xffffffff
test eax, eax
cmove eax, ecx
ret

Function at 0x40d560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69b778
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 4]
mov ebx, eax
xor esi, esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x40d654
mov edi, edi
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
call dword [eax + 8]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040d480
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40d5c6
xor ecx, ecx
jmp 0x40d617
mov edx, dword [eax + 4]
test edx, edx
jne 0x40d5d0
lea edx, [eax + 8]
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x40d5fd
lea ebx, [ebx]
movzx ecx, cx
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
lea edx, [edx + 2]
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x40d5e0
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul ecx, ecx, 0x8001
test ecx, ecx
mov eax, 0xffffffff
cmove ecx, eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 8]
call fcn.004100b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40d648
mov ecx, dword [eax]
test ecx, ecx
jne 0x40d645
mov ecx, eax
call fcn.004df580
jmp 0x40d648
dec ecx
mov dword [eax], ecx
inc esi
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x40d5a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x69a390
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
cmp byte [ebx + 8], 0
je 0x414c70
test edi, edi
jne 0x414bdd
mov eax, dword [ebx + 4]
push 1
mov ecx, dword [eax]
push edi
push edi
push eax
call dword [ecx]
mov esi, eax
mov eax, dword [ebx + 4]
push eax
mov ecx, dword [eax]
mov dword [esp + 0x2c], edx
call dword [ecx + 0x10]
mov edi, eax
add esp, 0x14
sub edi, esi
jne 0x414bdd
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
test ecx, ecx
je 0x414bc8
mov eax, dword [ecx]
test eax, eax
jne 0x414bbf
call fcn.004df580
mov dword [esi], edi
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec eax
mov dword [ecx], eax
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push edi
call fcn.004144d0
mov edx, dword [ebp + 8]
lea ecx, [edi + edi]
mov edx, dword [edx + 4]
push ecx
mov esi, dword [edx]
mov ebx, eax
push ebx
push edx
call dword [esi + 4]
mov edi, eax
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax + 0x18]
shr edi, 1
test eax, eax
jne 0x414c3c
xor ecx, ecx
test edi, edi
je 0x414c68
movzx edx, word [ebx + ecx*2]
cmp edx, 0x20
jb 0x414c2c
mov eax, edx
and eax, 0xfffe
shl eax, 8
xor eax, edx
xor eax, 1
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edi
jb 0x414c10
xor eax, eax
mov word [ebx + edi*2], ax
jmp 0x414cef
cmp eax, 1
jne 0x414c68
xor esi, esi
test edi, edi
je 0x414c68
movzx ecx, word [ebx + esi*2]
mov edx, ecx
shr edx, 1
lea eax, [ecx + ecx]
xor edx, eax
and edx, 0x5555
lea eax, [ecx + ecx]
xor edx, eax
mov word [ebx + esi*2], dx
inc esi
cmp esi, edi
jb 0x414c47
xor eax, eax
mov word [ebx + edi*2], ax
jmp 0x414cef
test edi, edi
jne 0x414cc8
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x414cc8
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
test ecx, ecx
je 0x414d11
mov eax, dword [ecx]
test eax, eax
jne 0x414caa
call fcn.004df580
mov dword [esi], edi
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec eax
mov dword [ecx], eax
mov dword [esi], 0
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push edi
call fcn.004144d0
push edi
push dword [ebx + 0x14]
mov esi, eax
push esi
call fcn.006343b8
lea ecx, [edi + edi]
xor eax, eax
mov word [ecx + esi], ax
add dword [ebx + 0x14], ecx
add esp, 0xc
sub dword [ebx + 0x10], edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x414d11
cmp dword [eax], 0
je 0x414d04
mov ecx, ebx
call fcn.004db0b0
mov ecx, dword [ebx]
test ecx, ecx
je 0x414d11
call fcn.004df7f0
mov dword [ebx], eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416030
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69a4ee
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push ecx
call fcn.004e7a50
mov dword [ebp - 4], 0
push ecx
lea ecx, [esi + 0x28]
mov dword [esi], vtable.tTVPContinuousHandlerCallLimitThread.0
call fcn.004e7cc0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x4c]
mov dword [ecx + 4], 0
mov dword [ecx], vtable.NativeEventQueue_class_tTVPContinuousHandlerCallLimitThread_.0
mov dword [ecx + 0x38], 0x416020
mov dword [ecx + 0x3c], esi
mov eax, dword [ecx]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0x10aaaa
mov dword [esi + 0x24], 0
mov byte [esi + 0x48], 0
call dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
nop
push dword [esi + 8]
call edi
cmp eax, 1
jg 0x4160d0
mov dword [ebp - 4], 0xffffffff
mov eax, 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 0x416130
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69a52e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.tTVPContinuousHandlerCallLimitThread.0
mov dword [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [edi + 4], 1
push dword [edi + 8]
call esi
cmp eax, 1
jg 0x416171
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x4c]
lea ecx, [edi + 0x4c]
call dword [eax + 8]
mov byte [ebp - 4], 1
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [ebp - 4], 0
push dword [edi + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x28], vtable.tTVPThreadEvent.0
call esi
mov dword [ebp - 4], 0xffffffff
push dword [edi + 8]
mov dword [edi], vtable.tTVPThread.0
call 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 0x421f70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69ae80
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov dword [ebp - 0x1c], eax
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov dword [eax], 0
mov byte [ebp - 0x11], 0
mov eax, esi
cmp word [esi], 0
je 0x421fd9
nop
add eax, 2
cmp word [eax], 0
jne 0x421fd0
sub eax, esi
sar eax, 1
inc eax
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00632c9c
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
mov edx, esi
mov ecx, edi
call fcn.00496890
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x42209b
lea eax, [ebx + 2]
push eax
call fcn.00632c9c
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 1
push esi
push ebx
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42208b
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x6e2dc4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42208b
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + 0xa]
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
movzx eax, word [ecx + 8]
mov edx, dword [ebp + 8]
mov dword [edx], eax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov al, 1
mov byte [ebp - 0x11], al
mov byte [ebp - 0x12], al
mov dword [ebp - 4], 0
push esi
call fcn.00634397
add esp, 4
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00634397
add esp, 4
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b0d68
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x424040
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 0xc], eax
inc dword [eax]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0xc]
call fcn.00424630
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42406a
mov eax, dword [esi + 4]
test eax, eax
jne 0x42406f
lea eax, [esi + 8]
jmp 0x42406f
mov eax, 0x6f4744
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x424083
test al, 0x10
jne 0x424083
mov bl, 1
jmp 0x424085
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4240b3
mov ecx, dword [esi]
test ecx, ecx
jne 0x4240b0
mov ecx, esi
call fcn.004df580
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
mov dword [esi], ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4241f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x69b3c6
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x76f950]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
test eax, eax
je 0x424249
inc dword [eax]
mov dword [esp + 0x280], 0
lea edx, [esp + 0x10]
call fcn.00424630
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x424277
cmp dword [ecx], 0
je 0x424277
lea ecx, [esp + 0x10]
call fcn.004db0b0
mov ecx, dword [esp + 0x10]
mov edx, 0x6e2e30
call fcn.004dfa30
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x424297
mov eax, dword [esi + 4]
test eax, eax
jne 0x42429c
lea eax, [esi + 8]
jmp 0x42429c
mov eax, 0x6f4744
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42438a
test byte [esp + 0x1c], 0x10
jne 0x42436f
cmp word [esp + 0x48], 0
jne 0x4242ca
xor edi, edi
jmp 0x4242df
call fcn.004df4c0
mov edi, eax
push 0xffffffffffffffff
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
call fcn.0040bb30
mov dword [esp + 0x14], edi
mov byte [esp + 0x280], 1
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4242f7
xor ecx, ecx
jmp 0x424313
cmp dword [eax], 0
jne 0x424308
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x424313
lea ecx, [eax + 8]
jmp 0x424313
lea ecx, [esp + 0x14]
call fcn.004db0b0
mov ecx, eax
cmp word [ecx], 0
je 0x42433c
lea esp, [esp]
movzx eax, word [ecx]
cmp eax, 0x41
jb 0x424333
cmp eax, 0x5a
ja 0x424333
add eax, 0x20
mov word [ecx], ax
add ecx, 2
cmp word [ecx], 0
jne 0x424320
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
mov eax, dword [edi]
push ecx
push edi
call dword [eax]
add esp, 8
mov byte [esp + 0x280], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42436f
mov ecx, dword [eax]
test ecx, ecx
jne 0x42436c
mov ecx, eax
call fcn.004df580
jmp 0x42436f
dec ecx
mov dword [eax], ecx
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4242b3
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x280], 0xffffffff
test esi, esi
je 0x4243ab
mov eax, dword [esi]
test eax, eax
jne 0x4243a8
mov ecx, esi
call fcn.004df580
jmp 0x4243ab
dec eax
mov dword [esi], eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00633732
mov esp, ebp
pop ebp
ret
Function at 0x424f60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69b778
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
test eax, eax
jne 0x424fa7
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x424fb1
lea ecx, [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x424fc1
test al, 0x10
jne 0x424f93
mov eax, dword [ebx]
test eax, eax
je 0x424fd3
mov esi, dword [eax + 4]
test esi, esi
jne 0x424fd8
lea esi, [eax + 8]
jmp 0x424fd8
mov esi, 0x6f4744
test eax, eax
je 0x424fdf
mov eax, dword [eax + 0x34]
dec eax
cmp word [esi + eax*2], 0x3a
je 0x424f93
test eax, eax
js 0x425026
jmp 0x424ff0
movzx ecx, word [esi + eax*2]
cmp ecx, 0x2f
je 0x424ffe
cmp ecx, 0x5c
jne 0x425003
dec eax
jns 0x424ff0
jmp 0x425026
test eax, eax
js 0x425026
cmp word [esi + eax*2], 0x3a
je 0x424f93
mov edi, edi
movzx ecx, word [esi + eax*2]
cmp ecx, 0x3a
je 0x425026
cmp ecx, 0x2f
je 0x425026
cmp ecx, 0x5c
je 0x425026
dec eax
jns 0x425010
lea ebx, [eax + 1]
test ebx, ebx
jne 0x425031
xor edi, edi
jmp 0x425053
test esi, esi
jne 0x425039
xor edi, edi
jmp 0x425053
cmp word [esi], 0
jne 0x425043
xor edi, edi
jmp 0x425053
call fcn.004df4c0
mov edi, eax
push ebx
push esi
mov ecx, edi
call fcn.0040bb30
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00424f60
test al, al
jne 0x42506d
xor bl, bl
jmp 0x425095
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
test ecx, ecx
je 0x425082
mov eax, dword [ecx + 4]
test eax, eax
jne 0x425087
lea eax, [ecx + 8]
jmp 0x425087
mov eax, 0x6f4744
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4250c7
mov ecx, dword [eax]
test ecx, ecx
jne 0x4250c4
mov ecx, eax
call fcn.004df580
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
mov dword [eax], ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426160
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69b728
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x76f950]
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 eax, ecx
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x448]
push eax
mov ecx, edx
mov dword [ebp - 0x450], 0
call fcn.00406a60
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0x3a0041
mov dword [ebp - 0x14], 0x5c
lea esp, [esp]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x426338
push 0xff
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push 0
push 0xff
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x460], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor eax, eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x41c], 7
mov dword [ebp - 0x420], 0
mov word [ebp - 0x430], ax
cmp word [ebp - 0x218], ax
je 0x42627f
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426270
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x430]
call fcn.0040ae70
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x420]
cmp ecx, dword [ebp - 0x438]
jne 0x4262fa
cmp dword [ebp - 0x434], 8
lea ebx, [ebp - 0x448]
cmovae ebx, dword [ebp - 0x448]
cmp dword [ebp - 0x41c], 8
lea eax, [ebp - 0x430]
cmovae eax, dword [ebp - 0x430]
mov byte [ebp - 0x458], 0
push dword [ebp - 0x458]
lea edx, [eax + ecx*2]
lea ecx, [ebp - 0x430]
cmovae ecx, dword [ebp - 0x430]
push ebx
call fcn.004268a0
add esp, 8
test al, al
je 0x4262fa
mov bl, 1
jmp 0x4262fc
xor bl, bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0x41c], 8
jb 0x426317
push dword [ebp - 0x430]
call fcn.00633f98
add esp, 4
xor eax, eax
mov dword [ebp - 0x41c], 7
mov dword [ebp - 0x420], 0
mov word [ebp - 0x430], ax
test bl, bl
jne 0x4263b4
mov ax, word [ebp - 0x18]
inc ax
mov word [ebp - 0x18], ax
cmp ax, 0x5a
jbe 0x4261d0
mov edi, dword [ebp - 0x454]
mov dword [edi], 0
mov dword [ebp - 0x450], 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x434], 8
jb 0x42637d
push dword [ebp - 0x448]
call fcn.00633f98
add esp, 4
xor eax, eax
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], eax
mov word [ebp - 0x448], ax
mov eax, edi
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.00633732
mov esp, ebp
pop ebp
ret
mov ax, word [ebp - 0x18]
xor ecx, ecx
mov word [ebp - 0x44c], ax
mov word [ebp - 0x44a], cx
test ax, ax
jne 0x4263d1
xor esi, esi
jmp 0x4263e8
call fcn.004df4c0
mov esi, eax
push 0xffffffffffffffff
lea eax, [ebp - 0x44c]
push eax
mov ecx, esi
call fcn.0040bb30
mov edi, dword [ebp - 0x454]
mov dword [edi], esi
jmp 0x426358
Function at 0x42b6a0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x76f950]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00430530
cmp dword [0x7766b0], 8
mov eax, 0x77669c
cmovae eax, dword [0x77669c]
mov ecx, 0x796840
movzx edx, word [eax]
test dx, dx
je 0x42b6f1
jmp 0x42b6e0
lea eax, [eax + 2]
mov word [ecx], dx
movzx edx, word [eax]
add ecx, 2
test dx, dx
jne 0x42b6e0
push esi
push edi
xor eax, eax
mov edi, 0x796840
mov word [ecx], ax
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42b700
push 0
mov ecx, 6
mov esi, str.hwexcept.log
push 0x80
rep movsd dword es:[edi], dword [esi]
push 4
push 0
push 1
push 0x40000000
push 0x796840
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x77a688], eax
cmp eax, 0xffffffff
je 0x42b872
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push eax
push dword [0x77a688]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0x38
mov esi, str.THIS_IS_A_HARDWARE_EXCEPTION_LOG_FILE_OF_KIRIKIRI._PLEASE_SEND_THIS_FILE_TO_THE_AUTHOR_WITH_.console.log_FILE.
lea edi, [ebp - 0xe8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xec], 0
mov edi, 4
jmp 0x42b790
push 0
lea eax, [ebp - 0xec]
push eax
push 8
push 0x6e3354
push dword [0x77a688]
call esi
dec edi
jne 0x42b790
push edi
lea eax, [ebp - 0xec]
push eax
push 0xe1
lea eax, [ebp - 0xe8]
push eax
push dword [0x77a688]
call esi
mov edi, 4
lea esp, [esp]
push 0
lea eax, [ebp - 0xec]
push eax
push 8
push 0x6e3360
push dword [0x77a688]
call esi
dec edi
jne 0x42b7d0
push edi
lea eax, [ebp - 0xec]
push eax
push 4
push 0x77a754
push dword [0x77a688]
call esi
push edi
lea eax, [ebp - 0xec]
push eax
push 4
push 0x77a758
push dword [0x77a688]
call esi
push edi
lea eax, [ebp - 0xec]
push eax
push 4
push 0x77a760
push dword [0x77a688]
call esi
push edi
lea eax, [ebp - 0xec]
push eax
push 4
push 0x77a75c
push dword [0x77a688]
call esi
push edi
lea eax, [ebp - 0xec]
push eax
push 0x1114
push 0x795728
push dword [0x77a688]
call esi
mov eax, dword [0x77a688]
cmp eax, 0xffffffff
je 0x42b872
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00633732
mov esp, ebp
pop ebp
ret