joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100024e0
Capabilities:
Parse pe header

Disassembly:
cmp esi, 0x40
jae 0x100024e8
xor eax, eax
ret
mov ecx, 0x5a4d
mov dword [edx + 0xc], eax
cmp word [eax], cx
jne 0x100024e5
mov ecx, dword [eax + 0x3c]
push edi
lea edi, [ecx + 0xf8]
cmp esi, edi
jb 0x10002566
add eax, ecx
mov dword [edx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x10002566
movzx ecx, word [eax + 0x16]
test ecx, 0x2000
je 0x10002566
test cl, 2
je 0x10002566
mov ecx, pe_nt_image_headers32
cmp word [eax + 0x14], cx
jne 0x10002566
mov edi, dword [edx + 0x10]
push ebx
lea ecx, [eax + 0xf8]
xor ebx, ebx
mov dword [edx + 0x14], ecx
xor eax, eax
cmp bx, word [edi + 6]
pop ebx
jae 0x1000255f
add ecx, 0x10
mov edi, dword [ecx + 4]
add edi, dword [ecx]
cmp edi, esi
ja 0x10002566
mov edi, dword [edx + 0x10]
movzx edi, word [edi + 6]
inc eax
add ecx, 0x28
cmp eax, edi
jb 0x10002547
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x100025f0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 6]
mov edx, dword [eax + 0x54]
push ebx
lea ecx, [ecx + ecx*4]
push ebp
mov ebp, dword [esp + 0xc]
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
call fcn.100094f0
mov edx, dword [esi + 0x10]
xor eax, eax
add esp, 0xc
xor ebx, ebx
cmp ax, word [edx + 6]
jae 0x1000265d
push edi
xor edi, edi
mov ecx, dword [esi + 0x14]
lea eax, [ecx + edi]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1000264d
mov edx, dword [eax + 0x10]
test edx, edx
je 0x1000264d
push edx
mov edx, dword [eax + 0x14]
add edx, dword [esp + 0x18]
add ecx, ebp
push edx
push ecx
call fcn.100094f0
add esp, 0xc
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 6]
inc ebx
add edi, 0x28
cmp ebx, ecx
jb 0x10002625
pop edi
mov dword [esi + 0xc], ebp
mov edx, dword [ebp + 0x3c]
lea eax, [edx + ebp]
mov dword [esi + 0x10], eax
add eax, 0xf8
pop ebp
mov dword [esi + 0x14], eax
pop ebx
ret 8

Function at 0x10007968
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001c0d0]
jne 0x10007972
repz ret
jmp fcn.10009934
Function at 0x1001017d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000a585
and dword [ebp - 4], 0
cmp dword [0x1001db58], 0
mov ebx, eax
jne 0x1001022e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100102df
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100102df
push eax
call fcn.1000a513
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001db58], eax
call esi
push eax
call fcn.1000a513
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001db5c], eax
call esi
push eax
call fcn.1000a513
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1001db60], eax
call esi
push eax
call fcn.1000a513
pop ecx
mov dword [0x1001db68], eax
test eax, eax
je 0x1001022e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000a513
pop ecx
mov dword [0x1001db64], eax
mov eax, dword [0x1001db64]
cmp eax, ebx
je 0x10010286
cmp dword [0x1001db68], ebx
je 0x10010286
push eax
call fcn.1000a58e
push dword [0x1001db68]
mov esi, eax
call fcn.1000a58e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10010286
test edi, edi
je 0x10010286
call esi
test eax, eax
je 0x1001027d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001027d
test byte [ebp - 0xc], 1
jne 0x10010286
or dword [ebp + 0x10], 0x200000
jmp 0x100102bf
mov eax, dword [0x1001db5c]
cmp eax, ebx
je 0x100102bf
push eax
call fcn.1000a58e
pop ecx
test eax, eax
je 0x100102bf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100102bf
mov eax, dword [0x1001db60]
cmp eax, ebx
je 0x100102bf
push eax
call fcn.1000a58e
pop ecx
test eax, eax
je 0x100102bf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001db58]
call fcn.1000a58e
pop ecx
test eax, eax
je 0x100102df
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100102e1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404ffd
Capabilities:
Create thread
Inject thread

Disassembly:
mov eax, dword [0x4a2cbc]
mov dword [0x4a2e40], eax
mov edx, dword [0x4a2cd0]
push dword [0x4a36e8]
call fcn.00412b70
push 0x4a2e44
call fcn.00412af0
push dword [0x4a2e44]
call fcn.004097c0
mov ebx, eax
inc ebx
mov dword [0x4a2e48], ebx
push dword [0x4a2e40]
push 0
push 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov dword [0x4a2e4c], eax
cmp dword [0x4a2e4c], 0
je 0x405181
push 4
push 0x1000
push dword [0x4a2e48]
push 0
push dword [0x4a2e4c]
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [0x4a2e50], eax
cmp dword [0x4a2e50], 0
je 0x405176
push 0x4a2e54
push dword [0x4a2e48]
push dword [0x4a2e44]
push dword [0x4a2e50]
push dword [0x4a2e4c]
call sub.KERNEL32.dll_WriteProcessMemory
mov ebx, dword [0x4a2e54]
cmp ebx, dword [0x4a2e48]
jl 0x40515a
push str.Kernel32.dll
push 0
call fcn.0040bf22
and eax, eax
je 0x40515a
push 0x44d732
push 0
call fcn.0040bf5f
mov dword [0x4a2e58], eax
push 0
call fcn.0040be64
cmp dword [0x4a2e58], 0
je 0x40515a
push 0
push 0
push dword [0x4a2e50]
push dword [0x4a2e58]
push 0
push 0
push dword [0x4a2e4c]
call sub.KERNEL32.dll_CreateRemoteThread
mov dword [0x4a2e5c], eax
cmp dword [0x4a2e5c], 0
je 0x40515a
push 0xffffffff
push dword [0x4a2e5c]
call sub.KERNEL32.dll_WaitForSingleObject
push 0x4a2c74
push dword [0x4a2e5c]
call sub.KERNEL32.dll_GetExitCodeThread
push 0x4000
push dword [0x4a2e48]
push dword [0x4a2e50]
push dword [0x4a2e4c]
call sub.KERNEL32.dll_VirtualFreeEx
push dword [0x4a2e4c]
call sub.KERNEL32.dll_CloseHandle
push dword [0x4a2cd0]
call fcn.0040f815
mov dword [0x4a2c74], eax
ret
Function at 0x405192
Capabilities:
Enumerate process modules

Disassembly:
lea ebp, [0x4a3114]
mov dword [ebp], 0x224
mov dword [0x4a2cd8], 0
push dword [0x4a2cbc]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [0x4a2e60], eax
cmp dword [0x4a2e60], 0
je 0x4053a0
push 0x4a3114
push dword [0x4a2e60]
call sub.KERNEL32.dll_Module32First
and eax, eax
je 0x405393
mov edx, dword [0x4a36e8]
push edx
push edx
push dword [0x4a2cd0]
call fcn.004097f0
inc dword [0x4a36e8]
mov edx, dword [0x4a36e8]
push edx
push edx
mov edx, dword [0x4a36e8]
push edx
push edx
lea ebp, [0x4a3114]
lea eax, [ebp + 0x20]
push eax
call fcn.004121d0
mov edx, dword [0x4928b4]
add dword [esp], edx
call fcn.004097f0
pop edx
pop ecx
mov dword [0x4a36e8], ecx
add ecx, dword [0x4928b4]
add edx, dword [0x4928b4]
call fcn.00412bd0
je 0x4052f8
lea ebp, [0x4a3114]
mov eax, dword [ebp + 0x14]
mov dword [0x4a2cd8], eax
push dword [0x4a36e8]
mov edx, dword [0x4a2d2c]
push dword [0x4a36e8]
call fcn.00412b70
mov edx, str.Copy.dll
call fcn.00412b70
mov edx, dword [0x4928b4]
add dword [esp], edx
call fcn.0040f815
pop dword [0x4a36e8]
mov dword [0x4a2c74], eax
push 0x12c
call fcn.0040bd29
push dword [0x4a36e8]
mov edx, dword [0x4a2d2c]
push dword [0x4a36e8]
call fcn.00412b70
mov edx, str.Copy.dll
call fcn.00412b70
inc dword [0x4a36e8]
mov edx, dword [0x4a36e8]
push edx
push edx
lea eax, [ebp + 0x120]
push eax
call fcn.004121d0
mov edx, dword [0x4928b4]
add dword [esp], edx
mov edx, dword [0x4928b4]
add dword [esp + 4], edx
call fcn.0040f827
pop dword [0x4a36e8]
mov dword [0x4a2c74], eax
push 0x4a3114
push dword [0x4a2e60]
call sub.KERNEL32.dll_Module32Next
mov dword [0x4a2c74], eax
cmp dword [0x4a2c74], 0
je 0x405385
mov edx, dword [0x4a36e8]
push edx
push edx
push dword [0x4a2cd0]
call fcn.004097f0
inc dword [0x4a36e8]
mov edx, dword [0x4a36e8]
push edx
push edx
mov edx, dword [0x4a36e8]
push edx
push edx
lea ebp, [0x4a3114]
lea eax, [ebp + 0x20]
push eax
call fcn.004121d0
mov edx, dword [0x4928b4]
add dword [esp], edx
call fcn.004097f0
pop edx
pop ecx
mov dword [0x4a36e8], ecx
add ecx, dword [0x4928b4]
add edx, dword [0x4928b4]
call fcn.00412bd0
je 0x405385
lea ebp, [0x4a3114]
mov eax, dword [ebp + 0x14]
mov dword [0x4a2cd8], eax
mov ebx, dword [0x4a2c74]
and ebx, ebx
jne 0x4052f8
push dword [0x4a2e60]
call sub.KERNEL32.dll_CloseHandle
jmp 0x4053af
push str.CreateToolhelp32Snapshot____failed_
push str.Error
call fcn.0040b655
ret
Function at 0x407c91
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, ebx
je 0x407cad
mov dword [esp], 1
jmp 0x407cbd
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x407dcf
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x407cef
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x407cdf
mov dword [esp], 1
jmp 0x407cef
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x407dcf
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x407d21
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x407d11
mov dword [esp], 1
jmp 0x407d21
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x407dcf
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x407d50
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x407d43
mov dword [esp], 1
jmp 0x407d50
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x407dcf
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x407d76
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x407d76
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x407dcf
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x407d9c
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x407d9c
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x407dcf
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x407dc2
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x407dc2
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x407dcf
xor edx, edx
mov eax, 1
jmp 0x407dcf
add esp, 4
pop ebx
ret 0x10

Function at 0x40a99c
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 0x40aa80
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x40aa36
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.0040b530
mov ebx, eax
cmp ebx, edi
je 0x40aa75
push dword [ebp + 8]
push dword [0x4a33b0]
call fcn.004122b7
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.0040b4d3
push eax
push ebx
call fcn.0040b4b9
push eax
call fcn.0040b0c5
mov dword [esi], eax
cmp eax, edi
je 0x40aa2e
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x40aa75
push ebx
call fcn.0040b4e0
jmp 0x40aa75
push ebx
push edi
push dword [0x4a2c64]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x40aa75
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.0040b0af
push esi
push edi
push dword [0x4a2c64]
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 0x40abc5
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 [0x4a33b0]
xor ebx, ebx
call fcn.0041233c
mov esi, eax
test esi, esi
je 0x40ad4b
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x40ac77
push dword [ebp + 8]
call fcn.0040b1f7
jmp 0x40ac08
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x40ac00
push dword [esi + 0x14]
call fcn.0040b509
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.0040aa9a
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40ab0d
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40ac4c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40ac5d
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040b2c7
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 0x40ad4b
test byte [ebp + 0xc], 1
je 0x40ac80
xor ebx, ebx
inc ebx
test byte [ebp + 0xc], 2
je 0x40ad0d
push esi
call fcn.0040ad64
lea eax, [esi + 4]
push 0x10
push eax
call fcn.004129e4
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov edi, eax
mov eax, dword [0x4a33c4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40ad4b
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 0x40acf1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040b227
jmp 0x40acfd
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 0x40ad4b
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 0x40ad2f
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040b2c7
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 0x40ad4b
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 0x40b6e9
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40b738
push dword [esp + 0x10]
push 0x40b667
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4a33f4]
cmp esi, ebx
je 0x40b78c
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40b730
cmp byte [esi + 0x10], bl
je 0x40b730
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 0x40b70d
jmp 0x40b78c
mov esi, dword [0x4a33f4]
cmp esi, ebx
je 0x40b78c
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40b785
cmp byte [esi + 0x11], bl
je 0x40b762
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x40b778
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 0x4a33f4
call fcn.00412a11
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x40b743
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40ebf5
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 0x40ec71
push 9
call esi
test bl, al
je 0x40ec71
push 0x11
call esi
test bl, al
jne 0x40ec71
push 0x10
call esi
test bl, al
jne 0x40ec71
push 0x12
call esi
test bl, al
jne 0x40ec71
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 0x40ec71
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40ec71
xor eax, eax
jmp 0x40ecf3
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40ec9a
push 0x11
call esi
test bl, al
jne 0x40ec92
push 0x10
call esi
test bl, al
jne 0x40ec92
push 0x12
call esi
test bl, al
je 0x40ec9a
push 1
push ebp
call fcn.0040ebae
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40ecb0
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40ecf0
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40ecf0
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40ecf0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40ecf0
dec esi
push esi
push dword [0x4a3a6c]
call fcn.0041233c
test eax, eax
je 0x40ecf0
mov eax, dword [eax + 8]
jmp 0x40ecf2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40f827
Capabilities:
Copy file

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

Function at 0x40f85b
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 0x40f993
cmp byte [eax], 0
je 0x40f993
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 0x40f8b5
cmp eax, 3
jne 0x40f8f5
cmp byte [ebp - 0x107], 0x3a
jne 0x40f8f5
cmp eax, 2
jne 0x40f8d6
lea eax, [ebp - 0x108]
push 0x4472ac
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 0x40f993
jmp 0x40f990
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x40f8f1
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40f93f
test byte [ebp - 0x248], 0x10
je 0x40f924
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x40f936
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 0x40f993
cmp byte [ebp - 0x108], 0x5c
jne 0x40f951
cmp byte [ebp - 0x107], 0x5c
je 0x40f963
cmp byte [ebp - 0x108], 0x2e
jne 0x40f993
cmp byte [ebp - 0x107], 0x2e
jne 0x40f993
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f97b
test al, 0x10
je 0x40f993
jmp 0x40f98d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x40f993
or esi, 0xffffffff
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4

Function at 0x40f9a0
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 0x40f9d5
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 0x40fe30
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 0x40fe89
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40fe88
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4a3a90]
push eax
push ecx
call fcn.0041233c
test eax, eax
je 0x40fe84
cmp dword [eax + 4], 0
je 0x40fe72
push esi
push edi
push eax
call fcn.004101f0
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 0x40fe90
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.00412d30
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x4a3a90]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.0041233c
mov ebx, eax
test ebx, ebx
je 0x40ffa9
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x40feee
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.004102f0
mov dword [esp + 0x14], eax
jmp 0x40ff05
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 0x40ff15
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 0x40ff3f
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00412d30
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x40ffa8
cmp dword [esp + 0x14], 0
je 0x40ff56
cmp al, 0xd
je 0x40ff56
cmp al, 0xa
jne 0x40fed0
dec ebp
cmp al, 0xd
jne 0x40ffa8
cmp dword [ebx + 4], 0
je 0x40ff70
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.004102f0
jmp 0x40ff87
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 0x40ffa8
cmp dword [ebx + 4], 0
je 0x40ff99
inc dword [ebx + 0xc]
jmp 0x40ffa8
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.00412db0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x40ffd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4a3a90]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.0041233c
mov esi, eax
test esi, esi
je 0x410053
cmp dword [esi + 4], 0
je 0x410022
push 1
lea edx, [esp + 8]
push edx
push esi
call fcn.004102f0
test eax, eax
je 0x410016
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 0x41005e
cmp dword [esp + 8], 0
je 0x41005e
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 0x4100d0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4a3a90]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.0041233c
test eax, eax
je 0x41011a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x410107
push 1
push edx
push eax
call fcn.004102f0
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 0x410130
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4a3a90]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.0041233c
test eax, eax
je 0x41017a
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x410167
push 4
push edx
push eax
call fcn.004102f0
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 0x410190
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4a3a90]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.0041233c
test eax, eax
je 0x4101da
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x4101c7
push 1
push edx
push eax
call fcn.004102f0
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