joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cd10
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x42800c]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword fs:[0x30]
xorps xmm0, xmm0
movaps xmmword [esp + 0x18], xmm0
movaps xmmword [esp + 0x28], xmm0
push esi
mov eax, dword [eax + 0xc]
push edi
mov eax, dword [eax + 0xc]
nop
mov esi, dword [eax + 0x18]
mov dword [esp + 0x1c], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [esp + 0x18], ecx
cmp ecx, esi
je 0x41cda8
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x41cda8
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, esi
mov edx, dword [ecx - 4]
sub ecx, 4
add edx, esi
mov dword [esp + 0x14], ecx
dec edi
mov esi, 0xd1a5183f
mov cl, byte [edx]
inc edx
test cl, cl
je 0x41cd9d
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x41cd80
cmp esi, 0xfcbd5c3d
je 0x41cdac
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x41cd67
mov eax, dword [eax]
jmp 0x41cd40
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 0
push 1
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
lea ecx, [esp + 0x28]
add eax, edx
push ecx
call eax
mov eax, dword fs:[0x30]
or dword [esp + 0x20], 1
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x14], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [esp + 0x18], ecx
cmp ecx, edx
je 0x41ce50
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x41ce50
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, edx
nop dword [eax]
sub ecx, 4
dec edi
mov dword [esp + 0x1c], ecx
mov esi, 0xcc827e1e
mov ecx, dword [ecx]
add ecx, edx
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x41ce45
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x41ce28
cmp esi, 0x13c40958
je 0x41ce54
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x41ce10
mov eax, dword [eax]
jmp 0x41cde5
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 1
push 1
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
lea ecx, [esp + 0x28]
add eax, edx
push ecx
call eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.0041d7f9
mov esp, ebp
pop ebp
ret
Function at 0x41d1e9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0041d1c5
pop esi
leave
ret 8

Function at 0x41e3b7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41e3f6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e3f6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e3f6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41e3f6
cmp dword [ecx + 0x74], 0xe
jbe 0x41e3f6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x411195
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41119c
mov dword [0x460001], 0x4d
mov dword [0x460001], 0x4e
mov byte [esp], 0
mov dword [0x460001], 0x50
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
and eax, eax
je 0x4112d6
mov dword [0x460001], 0x51
lea eax, [esp + 8]
mov dword [0x460001], 0x53
lea eax, [esp + 8]
push eax
push str.SeDebugPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
and eax, eax
je 0x4112b9
mov dword [0x460001], 0x54
lea eax, [esp + 0x10]
mov dword [0x460001], 0x57
lea ebp, [esp + 0x10]
mov dword [ebp], 1
mov dword [0x460001], 0x58
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 4], eax
mov dword [0x460001], 0x59
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 [0x460001], 0x5a
push ebp
pop ebp
mov dword [ebp + 0xc], 2
mov dword [0x460001], 0x5c
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 [0x460001], 0x5d
mov dword [0x460001], 0x5e
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x460001], 0x5f
mov dword [0x460001], 0x60
movsx eax, byte [esp]
movsx eax, al
jmp 0x4112ff
add esp, 0x34
pop ebx
pop ebp
ret
Function at 0x4163df
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 [0x4ada00], ebx
jne 0x416415
push 0x4ad9e4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4ada00], 1
push 0x4ad9e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4ad9fc]
mov edi, eax
cmp eax, ebx
je 0x416479
cmp dword [ebp - 4], ebx
jne 0x4165b9
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x41644c
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x41643d
jmp 0x41646a
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.00416234
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x41642b
cmp dword [ebp - 4], ebx
jne 0x4165b9
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 0x4165b9
mov edi, dword [0x4ad9fc]
jmp 0x4164b9
cmp dword [edi + 0xc], 0x3f
jl 0x416553
mov edi, dword [edi]
cmp edi, ebx
jne 0x4164ad
push 0x310
push 8
push dword [0x4ad14c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x4165b0
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi + 8], eax
cmp eax, ebx
je 0x4165a2
push ebx
push ebx
push edi
push 0x416285
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 0x416599
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00416234
mov eax, dword [0x4ad9fc]
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
cmp eax, ebx
je 0x41654b
mov dword [eax + 4], edi
mov dword [0x4ad9fc], edi
jmp 0x4165b9
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.00416234
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x4165b9
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x4ad14c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4ad9e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x417c75
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 0x417d59
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x417d0f
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.00418629
mov ebx, eax
cmp ebx, edi
je 0x417d4e
push dword [ebp + 8]
push dword [0x4ada5c]
call fcn.00424bce
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.004185cc
push eax
push ebx
call fcn.004185b2
push eax
call fcn.0041839e
mov dword [esi], eax
cmp eax, edi
je 0x417d07
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x417d4e
push ebx
call fcn.004185d9
jmp 0x417d4e
push ebx
push edi
push dword [0x4ad14c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x417d4e
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.00418388
push esi
push edi
push dword [0x4ad14c]
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 0x417e9e
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 [0x4ada5c]
xor ebx, ebx
call fcn.00424c53
mov esi, eax
test esi, esi
je 0x418024
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x417f50
push dword [ebp + 8]
call fcn.004184d0
jmp 0x417ee1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x417ed9
push dword [esi + 0x14]
call fcn.00418602
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.00417d73
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x417de6
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x417f25
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x417f36
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004185a0
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 0x418024
test byte [ebp + 0xc], 1
je 0x417f59
xor ebx, ebx
inc ebx
test byte [ebp + 0xc], 2
je 0x417fe6
push esi
call fcn.0041803d
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0042533c
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov edi, eax
mov eax, dword [0x4adb30]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x418024
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 0x417fca
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00418500
jmp 0x417fd6
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 0x418024
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 0x418008
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004185a0
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 0x418024
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 0x4187e2
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x418831
push dword [esp + 0x10]
push 0x418760
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4ada64]
cmp esi, ebx
je 0x418885
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x418829
cmp byte [esi + 0x10], bl
je 0x418829
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 0x418806
jmp 0x418885
mov esi, dword [0x4ada64]
cmp esi, ebx
je 0x418885
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x41887e
cmp byte [esi + 0x11], bl
je 0x41885b
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x418871
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 0x4ada64
call fcn.00425369
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x41883c
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41f51b
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 0x41f597
push 9
call esi
test bl, al
je 0x41f597
push 0x11
call esi
test bl, al
jne 0x41f597
push 0x10
call esi
test bl, al
jne 0x41f597
push 0x12
call esi
test bl, al
jne 0x41f597
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 0x41f597
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x41f597
xor eax, eax
jmp 0x41f619
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41f5c0
push 0x11
call esi
test bl, al
jne 0x41f5b8
push 0x10
call esi
test bl, al
jne 0x41f5b8
push 0x12
call esi
test bl, al
je 0x41f5c0
push 1
push ebp
call fcn.0041f4d4
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x41f5d6
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x41f616
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x41f616
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x41f616
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x41f616
dec esi
push esi
push dword [0x4ae424]
call fcn.00424c53
test eax, eax
je 0x41f616
mov eax, dword [eax + 8]
jmp 0x41f618
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x41f9f2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x41fa62
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 0x41fa44
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x41fa43
cmp dl, 0x5c
je 0x41fa43
cmp dl, 0x2f
jne 0x41fa4e
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x41fa31
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x41fa64
xor eax, eax
leave
ret 4
Function at 0x41faea
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 0x41fc2b
cmp byte [eax], bl
je 0x41fc2b
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 0x41fb45
cmp eax, 3
jne 0x41fb84
cmp byte [ebp - 0x107], 0x3a
jne 0x41fb84
cmp eax, 2
jne 0x41fb66
lea eax, [ebp - 0x108]
push 0x45a784
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 0x41fc2b
or esi, 0xffffffff
jmp 0x41fc28
mov al, byte [ecx]
cmp al, 0x5c
je 0x41fb8e
cmp al, 0x2f
jne 0x41fb93
mov byte [ecx], bl
dec ecx
jmp 0x41fb84
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 0x41fbd9
test byte [ebp - 0x248], 0x10
je 0x41fbbe
push 0xfffffffffffffffe
pop edi
mov esi, ebx
jmp 0x41fbd0
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 0x41fc2b
cmp byte [ebp - 0x108], 0x5c
jne 0x41fbeb
cmp byte [ebp - 0x107], 0x5c
je 0x41fbfd
cmp byte [ebp - 0x108], 0x2e
jne 0x41fc2b
cmp byte [ebp - 0x107], 0x2e
jne 0x41fc2b
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
je 0x41fc14
test al, 0x10
je 0x41fc2b
jmp 0x41fc26
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x41fc2b
mov esi, ebx
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebx
leave
ret 4

Function at 0x41fc40
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 0x41fc75
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 0x420240
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4ae43c]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00424c53
test eax, eax
je 0x42028a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x420277
push 1
push edx
push eax
call fcn.00420680
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 0x4202a0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4ae43c]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00424c53
test eax, eax
je 0x4202ea
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x4202d7
push 4
push edx
push eax
call fcn.00420680
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 0x420300
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x4ae43c]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00424c53
test eax, eax
je 0x42034a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x420337
push 1
push edx
push eax
call fcn.00420680
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 0x420680
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x4206a1
push esi
call fcn.0041fc40
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x420716
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x420703
dec ecx
je 0x4206ee
sub ecx, 2
je 0x4206db
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 0x42075f
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 0x420782
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
Function at 0x422b68
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x10c
push 8
push dword [0x4ad14c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x4ae460]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4ae464], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 7
mov dword [esi], 0x421ae7
mov dword [esi + 4], 0x421ba2
mov dword [esi + 8], 0x421c35
mov dword [esi + 0xc], 0x421d6d
mov dword [esi + 0x10], 0x421e3a
mov dword [esi + 0x14], 0x421e94
mov dword [esi + 0x18], 0x421ed4
mov dword [esi + 0x1c], 0x421eec
mov dword [esi + 0x20], fcn.00421f04
mov dword [esi + 0x24], 0x4221e0
mov dword [esi + 0x28], fcn.00422055
mov dword [esi + 0x2c], 0x4221fc
mov dword [esi + 0x30], 0x4222de
mov dword [esi + 0x34], 0x422409
mov dword [esi + 0x38], 0x421c72
mov dword [esi + 0x3c], 0x4224aa
mov dword [esi + 0x40], 0x421b05
mov dword [esi + 0x44], 0x42254d
mov dword [esi + 0x48], 0x422631
mov dword [esi + 0x4c], 0x422680
mov dword [esi + 0x50], 0x422742
mov dword [esi + 0x54], 0x4228ef
mov dword [esi + 0x58], 0x422a33
mov dword [esi + 0x5c], 0x422aee
mov dword [esi + 0x60], 0x4229f2
mov dword [esi + 0x64], 0x4229ab
mov eax, esi
pop esi
ret

Function at 0x423b77
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x4ae024], eax
cmp eax, edi
je 0x423baa
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ae028], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x4ae020], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x423be8
cmp dword [ebp - 0xc], 1
je 0x423bf9
cmp dword [ebp - 0xc], 2
jne 0x423be8
cmp dword [ebp - 0x18], 5
jb 0x423bf9
jne 0x423be8
cmp dword [ebp - 0x14], edi
jne 0x423be8
mov dword [0x4ae020], edi
cmp dword [0x4ae020], edi
je 0x423bff
call fcn.00423abe
test eax, eax
jne 0x423bff
mov dword [0x4ae020], edi
pop edi
add ebp, 0x78
leave
ret