joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4347be
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0042bcd0
mov eax, dword [0x440f30]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x21b0ae0]
mov dword [ebp - 4], eax
jae 0x4348fe
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x21b0b00]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x4348fe
push 1
push esi
push ebx
call fcn.0042e18f
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x434908
push 2
push esi
push ebx
call fcn.0042e18f
add esp, 0xc
cmp eax, 0xffffffff
je 0x434908
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4348ab
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.00431310
push 0x8000
push ebx
call fcn.00434a0a
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x43486a
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.0042f85e
add esp, 0xc
cmp eax, 0xffffffff
je 0x434888
sub edi, eax
test edi, edi
jg 0x43485f
jmp 0x43489e
cmp dword [0x21b0678], 5
jne 0x43489b
mov dword [0x21b0674], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00434a0a
pop ecx
pop ecx
jmp 0x4348eb
jge 0x4348eb
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0042e18f
push ebx
call fcn.00432b1d
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x4348eb
mov dword [0x21b0674], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x21b0678], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.0042e18f
add esp, 0xc
mov eax, esi
pop edi
jmp 0x43490b
mov dword [0x21b0674], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00431472
leave
ret
Function at 0x434f42
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x434fad
push 0x3d
push dword [ebp + 8]
call fcn.00435361
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x434fad
cmp dword [ebp + 8], esi
je 0x434fad
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x21b06a0]
cmp eax, dword [0x21b06a4]
jne 0x434f93
mov edi, eax
call fcn.00434ee1
mov dword [0x21b06a0], eax
cmp eax, ebx
jne 0x434fec
cmp dword [ebp + 0xc], ebx
je 0x434fb5
cmp dword [0x21b06a8], ebx
je 0x434fb5
call fcn.004352f6
test eax, eax
je 0x434fec
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4350f0
push 4
call fcn.0042b34b
cmp eax, ebx
pop ecx
mov dword [0x21b06a0], eax
je 0x434fad
mov dword [eax], ebx
cmp dword [0x21b06a8], ebx
jne 0x434fec
push 4
call fcn.0042b34b
cmp eax, ebx
pop ecx
mov dword [0x21b06a8], eax
je 0x434fad
mov dword [eax], ebx
mov ebx, dword [0x21b06a0]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00434e94
mov edi, eax
test edi, edi
pop ecx
jl 0x435045
cmp dword [ebx], 0
je 0x435045
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0042b4d9
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x43502d
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x43507b
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x435024
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004327f5
test eax, eax
pop ecx
pop ecx
je 0x43507b
jmp 0x435076
cmp dword [ebp - 4], 0
jne 0x4350e9
test edi, edi
jge 0x435055
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004327f5
test eax, eax
pop ecx
pop ecx
je 0x434fad
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x21b06a0], eax
cmp dword [ebp + 0xc], 0
je 0x4350d2
push dword [ebp + 8]
call fcn.0042d040
inc eax
inc eax
push eax
call fcn.0042b34b
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4350d2
push dword [ebp + 8]
push esi
call fcn.00432270
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4350cb
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0042b4d9
pop ecx
cmp dword [ebp - 4], 0
je 0x4350e1
push dword [ebp + 8]
call fcn.0042b4d9
pop ecx
mov eax, dword [ebp - 8]
jmp 0x434fb0
push esi
call fcn.0042b4d9
pop ecx
xor eax, eax
jmp 0x434fb0
Function at 0x412195
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41219c
mov dword [0x461001], 0x50
mov dword [0x461001], 0x51
mov byte [esp], 0
mov dword [0x461001], 0x53
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
and eax, eax
je 0x4122d6
mov dword [0x461001], 0x54
lea eax, [esp + 8]
mov dword [0x461001], 0x56
lea eax, [esp + 8]
push eax
push str.SeDebugPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
and eax, eax
je 0x4122b9
mov dword [0x461001], 0x57
lea eax, [esp + 0x10]
mov dword [0x461001], 0x5a
lea ebp, [esp + 0x10]
mov dword [ebp], 1
mov dword [0x461001], 0x5b
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 4], eax
mov dword [0x461001], 0x5c
lea ebp, [esp + 8]
push dword [ebp + 4]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 8], eax
mov dword [0x461001], 0x5d
push ebp
pop ebp
mov dword [ebp + 0xc], 2
mov dword [0x461001], 0x5f
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push eax
pop eax
mov byte [esp], al
mov dword [0x461001], 0x60
mov dword [0x461001], 0x61
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x461001], 0x62
mov dword [0x461001], 0x63
movsx eax, byte [esp]
movsx eax, al
jmp 0x4122ff
add esp, 0x34
pop ebx
pop ebp
ret
Function at 0x4173df
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp dword [0x4aeb20], ebx
jne 0x417415
push 0x4aeb04
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4aeb20], 1
push 0x4aeb04
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4aeb1c]
mov edi, eax
cmp eax, ebx
je 0x417479
cmp dword [ebp - 4], ebx
jne 0x4175b9
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x41744c
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x41743d
jmp 0x41746a
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.00417234
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x41742b
cmp dword [ebp - 4], ebx
jne 0x4175b9
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4175b9
mov edi, dword [0x4aeb1c]
jmp 0x4174b9
cmp dword [edi + 0xc], 0x3f
jl 0x417553
mov edi, dword [edi]
cmp edi, ebx
jne 0x4174ad
push 0x310
push 8
push dword [0x4ae264]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x4175b0
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi + 8], eax
cmp eax, ebx
je 0x4175a2
push ebx
push ebx
push edi
push 0x417285
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x417599
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00417234
mov eax, dword [0x4aeb1c]
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
cmp eax, ebx
je 0x41754b
mov dword [eax + 4], edi
mov dword [0x4aeb1c], edi
jmp 0x4175b9
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.00417234
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x4175b9
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x4ae264]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4aeb04
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x418c75
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x418d59
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x418d0f
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.00419629
mov ebx, eax
cmp ebx, edi
je 0x418d4e
push dword [ebp + 8]
push dword [0x4aeb7c]
call fcn.00425bce
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.004195cc
push eax
push ebx
call fcn.004195b2
push eax
call fcn.0041939e
mov dword [esi], eax
cmp eax, edi
je 0x418d07
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x418d4e
push ebx
call fcn.004195d9
jmp 0x418d4e
push ebx
push edi
push dword [0x4ae264]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x418d4e
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
push dword [ebp + 8]
call fcn.00419388
push esi
push edi
push dword [0x4ae264]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x418e9e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push dword [0x4aeb7c]
xor ebx, ebx
call fcn.00425c53
mov esi, eax
test esi, esi
je 0x419024
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x418f50
push dword [ebp + 8]
call fcn.004194d0
jmp 0x418ee1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x418ed9
push dword [esi + 0x14]
call fcn.00419602
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
xor ebx, ebx
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.00418d73
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x418de6
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x418f25
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x418f36
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004195a0
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x419024
test byte [ebp + 0xc], 1
je 0x418f59
xor ebx, ebx
inc ebx
test byte [ebp + 0xc], 2
je 0x418fe6
push esi
call fcn.0041903d
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0042633c
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov edi, eax
mov eax, dword [0x4aec50]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x419024
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov byte [edi + 5], bl
mov byte [edi + 4], 1
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
cmp dword [ebp + 0x10], 0xffffffff
je 0x418fca
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00419500
jmp 0x418fd6
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push 0
push 0
push eax
call dword [ecx + 0x30]
jmp 0x419024
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], 0xffffffff
je 0x419008
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004195a0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push 0
push 0
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x419024
xor edi, edi
inc edi
mov byte [esi + 0x1c], 1
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4197e2
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x419831
push dword [esp + 0x10]
push 0x419760
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4aeb84]
cmp esi, ebx
je 0x419885
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x419829
cmp byte [esi + 0x10], bl
je 0x419829
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x419806
jmp 0x419885
mov esi, dword [0x4aeb84]
cmp esi, ebx
je 0x419885
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x41987e
cmp byte [esi + 0x11], bl
je 0x41985b
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x419871
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x4aeb84
call fcn.00426369
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x41983c
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x42051b
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x420597
push 9
call esi
test bl, al
je 0x420597
push 0x11
call esi
test bl, al
jne 0x420597
push 0x10
call esi
test bl, al
jne 0x420597
push 0x12
call esi
test bl, al
jne 0x420597
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x420597
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x420597
xor eax, eax
jmp 0x420619
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x4205c0
push 0x11
call esi
test bl, al
jne 0x4205b8
push 0x10
call esi
test bl, al
jne 0x4205b8
push 0x12
call esi
test bl, al
je 0x4205c0
push 1
push ebp
call fcn.004204d4
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x4205d6
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x420616
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x420616
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x420616
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x420616
dec esi
push esi
push dword [0x4af544]
call fcn.00425c53
test eax, eax
je 0x420616
mov eax, dword [eax + 8]
jmp 0x420618
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x4209f2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x420a62
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x420a44
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x420a43
cmp dl, 0x5c
je 0x420a43
cmp dl, 0x2f
jne 0x420a4e
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x420a31
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x420a64
xor eax, eax
leave
ret 4
Function at 0x420aea
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
push edi
mov edi, esi
cmp eax, ebx
je 0x420c2b
cmp byte [eax], bl
je 0x420c2b
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea ecx, [ebp + eax - 0x109]
cmp eax, 2
je 0x420b45
cmp eax, 3
jne 0x420b84
cmp byte [ebp - 0x107], 0x3a
jne 0x420b84
cmp eax, 2
jne 0x420b66
lea eax, [ebp - 0x108]
push 0x45b784
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x420c2b
or esi, 0xffffffff
jmp 0x420c28
mov al, byte [ecx]
cmp al, 0x5c
je 0x420b8e
cmp al, 0x2f
jne 0x420b93
mov byte [ecx], bl
dec ecx
jmp 0x420b84
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or ebx, 0xffffffff
cmp eax, ebx
je 0x420bd9
test byte [ebp - 0x248], 0x10
je 0x420bbe
push 0xfffffffffffffffe
pop edi
mov esi, ebx
jmp 0x420bd0
mov esi, dword [ebp - 0x22c]
xor edi, edi
or edi, dword [ebp - 0x228]
xor edx, edx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x420c2b
cmp byte [ebp - 0x108], 0x5c
jne 0x420beb
cmp byte [ebp - 0x107], 0x5c
je 0x420bfd
cmp byte [ebp - 0x108], 0x2e
jne 0x420c2b
cmp byte [ebp - 0x107], 0x2e
jne 0x420c2b
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
je 0x420c14
test al, 0x10
je 0x420c2b
jmp 0x420c26
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x420c2b
mov esi, ebx
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebx
leave
ret 4

Function at 0x420c40
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x420c75
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x421240
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4af55c]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00425c53
test eax, eax
je 0x42128a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x421277
push 1
push edx
push eax
call fcn.00421680
movzx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x4212a0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4af55c]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00425c53
test eax, eax
je 0x4212ea
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x4212d7
push 4
push edx
push eax
call fcn.00421680
mov eax, dword [esp]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x421300
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4af55c]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00425c53
test eax, eax
je 0x42134a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x421337
push 1
push edx
push eax
call fcn.00421680
movsx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x421680
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x4216a1
push esi
call fcn.00420c40
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x421716
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x421703
dec ecx
je 0x4216ee
sub ecx, 2
je 0x4216db
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x42175f
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x421782
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc