joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10187a00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x1025fc3c], 0x46e
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
jmp 0x10187a93
jmp 0x10187ab9
mov dword [0x1025fc40], 0x128c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
je 0x10187b04
jmp 0x10187b4e
mov dword [0x1025fc40], 0x1f67
mov dword [ebp - 4], 1
jmp 0x10187a7f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x10187a93
mov eax, dword [ebp - 4]
add esp, 0x10
pop ebp
ret
mov dword [0x1025fc40], 0x1e5b
jmp 0x10187a72
cmp dword [ebp - 0x10], 0x104
jge 0x10187ab9
mov dword [0x1025fc3c], 0x10ff
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
je 0x10187a38
jmp 0x10187a87
mov eax, dword [0x1025fc3c]
sub eax, 0x15af
mov dword [0x1025fc3c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
jne 0x10187b54
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x10187b52
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x10187a3a
jmp 0x10187b50
mov dword [0x1025fc40], 0x752
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
jne 0x10187b4c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + eax*2 - 0x10]
cmp eax, 0x6c
jne 0x10187b4a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
je 0x10187a5f
jmp 0x10187b4a
jmp 0x10187b4c
jmp 0x10187b4e
jmp 0x10187b50
jmp 0x10187b52
jmp 0x10187b54
mov dword [ebp - 4], 0
jmp 0x10187a7f

Function at 0x10187d50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.10187d50]
mov dword [0x1025fc3c], 0x30e
mov dword [ebp - 8], eax
mov dword [0x1025fc3c], 0x200c
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10187da6
jmp 0x10187d8a
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10187d9e
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
jmp 0x10187dba
jmp 0x10187d8a
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
je 0x10187d82
jmp 0x10187d9c
mov al, 1
test al, 1
jne 0x10187d73
jmp 0x10187dc2
mov dword [ebp - 4], 0
jmp 0x10187d9e
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x42be73da
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7d7b3615
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x409dc5
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 0x409de1
mov dword [esp], 1
jmp 0x409df1
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409f03
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x409e23
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409e13
mov dword [esp], 1
jmp 0x409e23
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409f03
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x409e55
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409e45
mov dword [esp], 1
jmp 0x409e55
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409f03
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x409e84
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409e77
mov dword [esp], 1
jmp 0x409e84
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409f03
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x409eaa
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409eaa
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409f03
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x409ed0
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409ed0
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409f03
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x409ef6
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409ef6
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409f03
xor edx, edx
mov eax, 1
jmp 0x409f03
add esp, 4
pop ebx
ret 0x10

Function at 0x40cb0c
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]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40cbf0
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x40cba6
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.0040d655
mov ebx, eax
cmp ebx, edi
je 0x40cbe5
push dword [ebp + 8]
push dword [0x495204]
call fcn.00413ce3
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.0040d5f8
push eax
push ebx
call fcn.0040d5de
push eax
call fcn.0040d239
cmp eax, edi
mov dword [esi], eax
je 0x40cb9e
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x40cbe5
push ebx
call fcn.0040d605
jmp 0x40cbe5
push ebx
push edi
push dword [0x494a6c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x40cbe5
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.0040d223
push esi
push edi
push dword [0x494a6c]
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 0x40cd2d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x495204]
mov dword [ebp - 8], ebx
xor edi, edi
call fcn.00413d7a
mov esi, eax
cmp esi, ebx
je 0x40cea8
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x40cddd
push dword [ebp + 8]
call fcn.0040d356
jmp 0x40cd70
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x40cd68
push dword [esi + 0x14]
call fcn.0040d62e
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.0040cc0a
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40cc7f
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40cdb2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40cdc3
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d3ec
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 0x40cea8
test byte [ebp + 0xc], 1
je 0x40cde6
xor edi, edi
inc edi
test byte [ebp + 0xc], 2
je 0x40ce70
push esi
call fcn.0040cec2
lea eax, [esi + 4]
push 0xc
push eax
call fcn.00414380
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [0x495218]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40cea8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
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 0x40ce56
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d386
jmp 0x40ce62
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 edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
jmp 0x40cea8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40ce91
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d3ec
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x40cea8
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d7ce
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x40d7e6
push dword [esp + 4]
push 0x40d767
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x40d823
push esi
mov esi, dword [0x495244]
test esi, esi
je 0x40d822
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40d81a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
push edi
push 0x495244
call fcn.004143ad
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x40d7f3
pop edi
pop ebx
pop esi
ret 4
Function at 0x40dec1
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x495254], 0
jne 0x40ded3
call fcn.0040de12
push esi
push edi
push dword [0x495250]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
test esi, esi
jne 0x40def8
call fcn.0040de12
push dword [0x495250]
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 0x40df01
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.0040ddc9
dec edi
pop ecx
pop ecx
jne 0x40df32
pop edi
pop esi
leave
ret 4
Function at 0x411320
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
test eax, eax
mov edi, dword [sym.imp.USER32.DLL_GetPropA]
mov dword [ebp - 4], eax
je 0x4113ab
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 9
call esi
test al, al
jns 0x41139d
push 0x11
call esi
test al, al
js 0x41139d
push 0x10
call esi
test al, al
js 0x41139d
push 0x12
call esi
test al, al
js 0x41139d
push 5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x41139d
push eax
push eax
push 0x44e
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_SendMessageA]
test ax, 0x800
je 0x4113cb
push str.PB_Hotkey
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4113cb
push str.PB_WindowID
push dword [ebp + 8]
call edi
test eax, eax
je 0x4113cb
dec eax
push eax
push dword [0x4957e8]
call fcn.00413d7a
mov eax, dword [eax + 8]
jmp 0x4113cd
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x411757
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
test eax, eax
push edi
mov edi, esi
je 0x411868
cmp byte [eax], 0
je 0x411868
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
cmp eax, 2
lea ecx, [ebp + eax - 0x109]
je 0x4117b1
cmp eax, 3
jne 0x4117ee
cmp byte [ebp - 0x107], 0x3a
jne 0x4117ee
cmp eax, 2
jne 0x4117d2
lea eax, [ebp - 0x108]
push 0x448298
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 0x411868
jmp 0x411862
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x4117ea
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41183a
test byte [ebp - 0x248], 0x10
je 0x41181d
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x411831
mov ecx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
xor edi, edi
xor edx, edx
or edi, ecx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x411868
cmp byte [ebp - 0x108], 0x5c
jne 0x411868
cmp byte [ebp - 0x107], 0x5c
jne 0x411868
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x411868
test al, 0x10
je 0x411868
push 0xfffffffffffffffe
or esi, 0xffffffff
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x411880
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x4118b5
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 0x411ad0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x411b29
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x411b28
mov eax, dword [esp + 0x10]
mov ecx, dword [0x495800]
push eax
push ecx
call fcn.00413d7a
test eax, eax
je 0x411b24
cmp dword [eax + 4], 0
je 0x411b12
push esi
push edi
push eax
call fcn.00411e90
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 0x411b30
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.004148d0
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x495800]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.00413d7a
mov ebx, eax
test ebx, ebx
je 0x411c4e
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x411b8e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00411f90
mov dword [esp + 0x14], eax
jmp 0x411ba5
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 0x411bb7
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x411be1
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.004148d0
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x411c4d
cmp dword [esp + 0x14], 0
je 0x411bf8
cmp al, 0xd
je 0x411bf8
cmp al, 0xa
jne 0x411b70
sub ebp, 1
cmp al, 0xd
jne 0x411c4d
cmp dword [ebx + 4], 0
je 0x411c14
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00411f90
jmp 0x411c2b
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 0x411c4d
cmp dword [ebx + 4], 0
je 0x411c3e
add dword [ebx + 0xc], 1
jmp 0x411c4d
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.00414a20
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x411c70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x495800]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.00413d7a
mov esi, eax
test esi, esi
je 0x411cf4
cmp dword [esi + 4], 0
je 0x411cc3
push 1
lea edx, [esp + 8]
push edx
push esi
call fcn.00411f90
test eax, eax
je 0x411cb7
add dword [esi + 0xc], 1
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 0x411cff
cmp dword [esp + 8], 0
je 0x411cff
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 0x411d70
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x495800]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00413d7a
test eax, eax
je 0x411dba
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x411da7
push 1
push edx
push eax
call fcn.00411f90
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 0x411dd0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x495800]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00413d7a
test eax, eax
je 0x411e1a
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x411e07
push 4
push edx
push eax
call fcn.00411f90
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 0x411e30
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x495800]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00413d7a
test eax, eax
je 0x411e7a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x411e67
push 1
push edx
push eax
call fcn.00411f90
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 0x411e90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x411ec5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x411f3e
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x411f2b
sub ecx, 1
je 0x411f16
sub ecx, 2
je 0x411f03
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.00411880
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x411f6b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x411f90
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x411fb1
push esi
call fcn.00411880
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x41202a
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
sub ecx, 1
je 0x412017
sub ecx, 1
je 0x412002
sub ecx, 2
je 0x411fef
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
cmp edi, eax
push 0
jl 0x412073
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]
cmp edi, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
jle 0x412096
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 0x4123d1
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x495804]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call dword [eax + 0x24]
ret 0xc

Function at 0x413170
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
cmp eax, edi
mov dword [0x495404], eax
je 0x4131a3
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x495408], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x495400], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4131e1
cmp dword [ebp - 0xc], 1
je 0x4131f2
cmp dword [ebp - 0xc], 2
jne 0x4131e1
cmp dword [ebp - 0x18], 5
jb 0x4131f2
jne 0x4131e1
cmp dword [ebp - 0x14], edi
jne 0x4131e1
mov dword [0x495400], edi
cmp dword [0x495400], edi
je 0x4131f8
call fcn.004130b7
test eax, eax
jne 0x4131f8
mov dword [0x495400], edi
pop edi
add ebp, 0x78
leave
ret