joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10115bfb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1015bc40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10109d90
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10109d90
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10115c72
cmp word [ecx], dx
je 0x10115c72
mov eax, dword [0x1014c3fc]
push edi
dec eax
push eax
push 0x1014c2e8
call fcn.10115b94
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10115ce5
cmp word [eax], dx
je 0x10115ce5
mov eax, dword [edi]
test eax, eax
je 0x10115c96
cmp word [eax], dx
je 0x10115c96
lea eax, [ebp - 0x10]
push eax
call fcn.1011557a
jmp 0x10115c9f
lea eax, [ebp - 0x10]
push eax
call fcn.10115615
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10115d0f
mov eax, dword [0x1014c2e4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1014bfd8
call fcn.10115b94
add esp, 0xc
test al, al
je 0x10115d0f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10115cda
cmp word [eax], di
je 0x10115cda
lea eax, [ebp - 0x10]
push eax
call fcn.1011557a
pop ecx
jmp 0x10115d11
lea eax, [ebp - 0x10]
push eax
call fcn.10115615
jmp 0x10115cd7
mov eax, dword [edi]
test eax, eax
je 0x10115cfc
cmp word [eax], dx
je 0x10115cfc
lea eax, [ebp - 0x10]
push eax
call fcn.1011552f
pop ecx
jmp 0x10115d0f
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10115dda
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10115a19
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10115dda
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10115dda
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10115dda
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10115d67
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1010a5a9
test ebx, ebx
je 0x10115dd5
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1010a5a9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10115dda
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10115dda
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10119b79
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10115ddc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d04ae
leave
ret
Function at 0x40568a
Capabilities:
Create thread
Inject thread

Disassembly:
mov eax, dword [0x4a5a28]
mov dword [0x4a5bbc], eax
mov edx, dword [0x4a5a3c]
call fcn.00412d00
push eax
call fcn.00412dd0
push 0x4a5bc0
call fcn.00412d40
push dword [0x4a5bc0]
call fcn.004097c0
mov ebx, eax
inc ebx
mov dword [0x4a5bc4], ebx
push dword [0x4a5bbc]
push 0
push 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov dword [0x4a5bc8], eax
cmp dword [0x4a5bc8], 0
je 0x40580e
push 4
push 0x1000
push dword [0x4a5bc4]
push 0
push dword [0x4a5bc8]
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [0x4a5bcc], eax
cmp dword [0x4a5bcc], 0
je 0x405803
push 0x4a5bd0
push dword [0x4a5bc4]
push dword [0x4a5bc0]
push dword [0x4a5bcc]
push dword [0x4a5bc8]
call sub.KERNEL32.dll_WriteProcessMemory
mov ebx, dword [0x4a5bd0]
cmp ebx, dword [0x4a5bc4]
jl 0x4057e7
push str.Kernel32.dll
push 0
call fcn.0040bf88
and eax, eax
je 0x4057e7
push 0x44d743
push 0
call fcn.0040bfc5
mov dword [0x4a5bd4], eax
push 0
call fcn.0040beca
cmp dword [0x4a5bd4], 0
je 0x4057e7
push 0
push 0
push dword [0x4a5bcc]
push dword [0x4a5bd4]
push 0
push 0
push dword [0x4a5bc8]
call sub.KERNEL32.dll_CreateRemoteThread
mov dword [0x4a5bd8], eax
cmp dword [0x4a5bd8], 0
je 0x4057e7
push 0xffffffff
push dword [0x4a5bd8]
call sub.KERNEL32.dll_WaitForSingleObject
push 0x4a59e0
push dword [0x4a5bd8]
call sub.KERNEL32.dll_GetExitCodeThread
push 0x4000
push dword [0x4a5bc4]
push dword [0x4a5bcc]
push dword [0x4a5bc8]
call sub.KERNEL32.dll_VirtualFreeEx
push dword [0x4a5bc8]
call sub.KERNEL32.dll_CloseHandle
push dword [0x4a5a3c]
call fcn.0040f875
mov dword [0x4a59e0], eax
ret
Function at 0x40581f
Capabilities:
Enumerate process modules

Disassembly:
lea ebp, [0x4a5e94]
mov dword [ebp], 0x224
mov dword [0x4a5a44], 0
push dword [0x4a5a28]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [0x4a5bdc], eax
cmp dword [0x4a5bdc], 0
je 0x405a10
push 0x4a5e94
push dword [0x4a5bdc]
call sub.KERNEL32.dll_Module32First
and eax, eax
je 0x405a03
call fcn.00412d00
push eax
push eax
push dword [0x4a5a3c]
call fcn.004097f0
call fcn.00412e30
call fcn.00412d00
push eax
push eax
call fcn.00412d00
push eax
push eax
lea ebp, [0x4a5e94]
lea eax, [ebp + 0x20]
push eax
call fcn.00412270
call fcn.00412e72
add dword [esp], edx
call fcn.004097f0
call fcn.00412f10
mov edx, eax
call fcn.00412f10
mov ecx, eax
call fcn.00412ee0
je 0x405973
lea ebp, [0x4a5e94]
mov eax, dword [ebp + 0x14]
mov dword [0x4a5a44], eax
call fcn.00412d00
push eax
mov edx, dword [0x4a5a98]
call fcn.00412d00
push eax
call fcn.00412dd0
mov edx, str.Copy.dll
call fcn.00412dd0
call fcn.00412e72
add dword [esp], edx
call fcn.0040f875
call fcn.00412e90
mov dword [0x4a59e0], eax
push 0x12c
call fcn.0040bd29
call fcn.00412d00
push eax
mov edx, dword [0x4a5a98]
call fcn.00412d00
push eax
call fcn.00412dd0
mov edx, str.Copy.dll
call fcn.00412dd0
call fcn.00412e30
call fcn.00412d00
push eax
push eax
lea eax, [ebp + 0x120]
push eax
call fcn.00412270
call fcn.00412e72
add dword [esp], edx
call fcn.00412e72
add dword [esp + 4], edx
call fcn.0040f887
call fcn.00412e90
mov dword [0x4a59e0], eax
push 0x4a5e94
push dword [0x4a5bdc]
call sub.KERNEL32.dll_Module32Next
mov dword [0x4a59e0], eax
cmp dword [0x4a59e0], 0
je 0x4059f5
call fcn.00412d00
push eax
push eax
push dword [0x4a5a3c]
call fcn.004097f0
call fcn.00412e30
call fcn.00412d00
push eax
push eax
call fcn.00412d00
push eax
push eax
lea ebp, [0x4a5e94]
lea eax, [ebp + 0x20]
push eax
call fcn.00412270
call fcn.00412e72
add dword [esp], edx
call fcn.004097f0
call fcn.00412f10
mov edx, eax
call fcn.00412f10
mov ecx, eax
call fcn.00412ee0
je 0x4059f5
lea ebp, [0x4a5e94]
mov eax, dword [ebp + 0x14]
mov dword [0x4a5a44], eax
mov ebx, dword [0x4a59e0]
and ebx, ebx
jne 0x405973
push dword [0x4a5bdc]
call sub.KERNEL32.dll_CloseHandle
jmp 0x405a1f
push str.CreateToolhelp32Snapshot____failed_
push str.Error
call fcn.0040b655
ret
Function at 0x4082ab
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 0x4082c7
mov dword [esp], 1
jmp 0x4082d7
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4083e9
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x408309
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x4082f9
mov dword [esp], 1
jmp 0x408309
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4083e9
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x40833b
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40832b
mov dword [esp], 1
jmp 0x40833b
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4083e9
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x40836a
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40835d
mov dword [esp], 1
jmp 0x40836a
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4083e9
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x408390
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x408390
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4083e9
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x4083b6
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x4083b6
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4083e9
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x4083dc
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x4083dc
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4083e9
xor edx, edx
mov eax, 1
jmp 0x4083e9
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 [0x4a6130]
call fcn.00412357
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 [0x4a59d0]
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 [0x4a59d0]
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 [0x4a6130]
xor ebx, ebx
call fcn.004123f4
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.00412c20
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov edi, eax
mov eax, dword [0x4a6144]
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 [0x4a6174]
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 [0x4a6174]
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 0x4a6174
call fcn.00412c4d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x40b743
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40be3f
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4a6184], 0
jne 0x40be51
call fcn.0040bd90
push esi
push edi
push dword [0x4a6180]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
test esi, esi
jne 0x40be76
call fcn.0040bd90
push dword [0x4a6180]
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 0x40be7f
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.0040bd49
dec edi
pop ecx
pop ecx
jne 0x40beb0
pop edi
pop esi
leave
ret 4

Function at 0x40ec55
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 0x40ecd1
push 9
call esi
test bl, al
je 0x40ecd1
push 0x11
call esi
test bl, al
jne 0x40ecd1
push 0x10
call esi
test bl, al
jne 0x40ecd1
push 0x12
call esi
test bl, al
jne 0x40ecd1
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 0x40ecd1
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40ecd1
xor eax, eax
jmp 0x40ed53
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40ecfa
push 0x11
call esi
test bl, al
jne 0x40ecf2
push 0x10
call esi
test bl, al
jne 0x40ecf2
push 0x12
call esi
test bl, al
je 0x40ecfa
push 1
push ebp
call fcn.0040ec0e
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40ed10
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40ed50
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40ed50
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40ed50
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40ed50
dec esi
push esi
push dword [0x4a678c]
call fcn.004123f4
test eax, eax
je 0x40ed50
mov eax, dword [eax + 8]
jmp 0x40ed52
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40f887
Capabilities:
Copy file

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

Function at 0x40f8bb
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 0x40f9f3
cmp byte [eax], 0
je 0x40f9f3
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 0x40f915
cmp eax, 3
jne 0x40f955
cmp byte [ebp - 0x107], 0x3a
jne 0x40f955
cmp eax, 2
jne 0x40f936
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 0x40f9f3
jmp 0x40f9f0
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x40f951
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40f99f
test byte [ebp - 0x248], 0x10
je 0x40f984
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x40f996
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 0x40f9f3
cmp byte [ebp - 0x108], 0x5c
jne 0x40f9b1
cmp byte [ebp - 0x107], 0x5c
je 0x40f9c3
cmp byte [ebp - 0x108], 0x2e
jne 0x40f9f3
cmp byte [ebp - 0x107], 0x2e
jne 0x40f9f3
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f9db
test al, 0x10
je 0x40f9f3
jmp 0x40f9ed
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x40f9f3
or esi, 0xffffffff
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4

Function at 0x40fa00
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 0x40fa35
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 0x40fe90
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 0x40fee9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40fee8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4a67b0]
push eax
push ecx
call fcn.004123f4
test eax, eax
je 0x40fee4
cmp dword [eax + 4], 0
je 0x40fed2
push esi
push edi
push eax
call fcn.00410250
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 0x40fef0
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.00413150
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x4a67b0]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.004123f4
mov ebx, eax
test ebx, ebx
je 0x410009
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x40ff4e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00410350
mov dword [esp + 0x14], eax
jmp 0x40ff65
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 0x40ff75
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 0x40ff9f
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00413150
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x410008
cmp dword [esp + 0x14], 0
je 0x40ffb6
cmp al, 0xd
je 0x40ffb6
cmp al, 0xa
jne 0x40ff30
dec ebp
cmp al, 0xd
jne 0x410008
cmp dword [ebx + 4], 0
je 0x40ffd0
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00410350
jmp 0x40ffe7
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 0x410008
cmp dword [ebx + 4], 0
je 0x40fff9
inc dword [ebx + 0xc]
jmp 0x410008
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.004131f0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x410030
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4a67b0]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.004123f4
mov esi, eax
test esi, esi
je 0x4100b3
cmp dword [esi + 4], 0
je 0x410082
push 1
lea edx, [esp + 8]
push edx
push esi
call fcn.00410350
test eax, eax
je 0x410076
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 0x4100be
cmp dword [esp + 8], 0
je 0x4100be
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 0x410130
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4a67b0]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.004123f4
test eax, eax
je 0x41017a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x410167
push 1
push edx
push eax
call fcn.00410350
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 0x410190
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4a67b0]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.004123f4
test eax, eax
je 0x4101da
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x4101c7
push 4
push edx
push eax
call fcn.00410350
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 0x4101f0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4a67b0]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.004123f4
test eax, eax
je 0x41023a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x410227
push 1
push edx
push eax
call fcn.00410350
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