joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455594
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45fb70]
cmp byte [eax + 0xa5], 0
jne 0x455605
cmp dword [0x45fb88], 0
jne 0x4555c6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455550
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fb88], eax
cmp dword [0x45fb84], 0
jne 0x4555e1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45fb84], eax
cmp dword [0x45fb8c], 0
jne 0x455605
push esp
push 0
push 0
push 0x4554f4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45fb8c], eax
pop edx
ret

Function at 0x455c98
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45fb70]
cmp dword [eax + 0x30], 0
je 0x455d42
cmp dword [ebx + 0x94], 0
jne 0x455d3c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455c28
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455d3c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x455d02
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455d3c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004142b4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455d11
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4568a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4568d5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044d4
jmp 0x4568e2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404438
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457aac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457aed
mov eax, esi
call fcn.0043df18
test al, al
je 0x457aed
mov eax, dword [ebx + 0x84]
call fcn.0043dc14
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457aed
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043dc14
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x40245a
Capabilities:
Get file version info

Disassembly:
mov eax, 0x402f74
call fcn.00402db0
sub esp, 0x110
push esi
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
and byte [ebp - 0x11c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
stosw word es:[edi], ax
test esi, esi
stosb byte es:[edi], al
jne 0x4024af
lea eax, [ebp - 0x11c]
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x11c]
lea eax, [ebp - 0x18]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40251f
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, eax
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402518
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
push 0x405178
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402518
push 0x34
push dword [ebp + 8]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
push edi
call sub.MFC42.DLL_operatordelete
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.00402a2e
push 1
pop eax
jmp 0x40252d
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402a2e
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4025c4
Capabilities:
Create process on windows
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
mov eax, 0x402fbc
call fcn.00402db0
sub esp, 0x410
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41b]
mov byte [ebp - 0x41c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
push str.http_shellopencommand
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, str.open
test eax, eax
jne 0x4026ca
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x400
push eax
lea eax, [ebp - 0x41c]
push eax
push ebx
push ebx
push 0x405428
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], ebx
jne 0x4026ca
lea eax, [ebp - 0x41c]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
push 0x22
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::TrimLeft
push 0x22
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40269e
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00402a2e
push 1
push ebx
push dword [ebp + 8]
push dword [ebp - 0x10]
push edi
push ebx
call esi
cmp eax, 0x20
jle 0x4026be
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402a2e
jmp 0x402722
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402a2e
push 0x400
lea eax, [ebp - 0x41c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x41c]
push ebx
push 0x26
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x402722
push 0x40
lea eax, [ebp - 0x41c]
push str.Internet_Exploreriexplore.exe
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
add esp, 0xc
lea eax, [ebp - 0x41c]
push 1
push ebx
push dword [ebp + 8]
push eax
push edi
push ebx
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401fd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027b0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40216f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402810
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402134
cmp dword [ebp + 0xc], 3
jbe 0x402134
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e40
mov dword [ebp - 0x74], eax
jmp 0x4020d3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40212f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40212a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402144
jmp 0x40212f
jmp 0x402134
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.004028d0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402161
jmp 0x40215c
jmp 0x40216f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402068
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x488e00], eax
pop esi
pop edi
pop ebp
ret
Function at 0x407882
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4151d3
push ebx
push esi
call fcn.004150ff
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00415048
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415180
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4151d2
push edi
push eax
call fcn.00413e55
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4151a0
call fcn.00413e1b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4151d1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415048
add esp, 0x20
test eax, eax
jne 0x4151bf
push edi
call fcn.00413e1b
jmp 0x4151c7
push ebx
call fcn.00413e1b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4159ff
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425b20
push 0x425b18
push str.FlsAlloc
push 0x1e
call fcn.0041586c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415a33
push dword [ebp + 8]
mov ecx, esi
call dword [0x422158]
call esi
jmp 0x415a39
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415a7d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425b30
push 0x425b28
push str.FlsGetValue
push 0x20
call fcn.0041586c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415ab4
push dword [ebp + 8]
mov ecx, esi
call dword [0x422158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41960e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004192b0

Function at 0x419619
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041943f
Function at 0x41ae28
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00420ea0
mov eax, dword [0x430244]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00419289
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ae6a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41afc6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420ed0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x431b50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b24e
mov ecx, dword [esi*4 + 0x431b50]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41afbf
cmp eax, dword [edi + ecx + 0x24]
jne 0x41afbf
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41afbf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b24e
add esp, 0x14
test edx, edx
jl 0x41afbf
jg 0x41af35
test eax, eax
jb 0x41afbf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41afbf
jl 0x41af4f
cmp dword [ebp - 0x1008], eax
ja 0x41afbf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41af6d
test ebx, ebx
je 0x41afa6
cmp ecx, edi
jae 0x41afa6
mov al, byte [ecx]
cmp al, 0xd
jne 0x41af87
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41af93
cmp byte [ecx + 1], 0xa
jne 0x41af93
inc ecx
jmp 0x41af93
movzx eax, al
movsx eax, byte [eax + 0x430b60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41af6d
cmp edx, ebx
jne 0x41af6d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41afc4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407ccc
leave
ret
Function at 0x41ed5e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x431b50]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ed9e
cmp byte [ebx], 0xa
jne 0x41ed9e
or byte [eax + edi + 0x28], 4
jmp 0x41eda3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41eea1
mov al, byte [edx]
cmp al, 0x1a
je 0x41ee83
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41edd2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41edf7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ee01
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41edb4
jmp 0x41eea1
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ee7e
cmp dword [ebp - 0xc], 0
je 0x41ee7e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x431b50]
test byte [eax + edi + 0x28], 0x48
je 0x41ee58
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ee43
mov byte [esi], dl
jmp 0x41ee54
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x431b50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41eea1
cmp byte [ebp - 1], 0xa
jne 0x41ee67
cmp esi, ebx
jne 0x41ee67
mov byte [esi], 0xa
jmp 0x41eea0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b26c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41eea1
mov byte [esi], 0xd
jmp 0x41eea0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x431b50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ee9d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41eea1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41eeaa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x431b50]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41eeed
cmp word [esi], dx
jne 0x41eeed
or byte [edi + eax + 0x28], 4
jmp 0x41eef2
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f045
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f025
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ef34
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ef6a
cmp eax, edx
jae 0x41ef76
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ef0c
jmp 0x41f045
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f021
cmp dword [ebp - 0x14], 0
je 0x41f021
mov eax, dword [ebx*4 + 0x431b50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41eff9
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41efc2
mov word [esi], cx
jmp 0x41eff5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x431b50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x431b50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x431b50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f045
pop ebx
cmp word [ebp - 4], bx
jne 0x41f00a
cmp esi, dword [ebp + 0xc]
jne 0x41f00a
mov word [esi], bx
jmp 0x41f042
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b26c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f045
push 0xd
jmp 0x41f03e
mov ecx, dword [ebx*4 + 0x431b50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f03c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f045
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420e60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420e8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420e8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4070e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040bd31
push 0x440218
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0041b497
add esp, 0xc
test eax, eax
je 0x407128
cmp dword [ebp - 4], 0
je 0x407116
push dword [ebp - 4]
call fcn.0041aff6
pop ecx
push str._n_BIN_file_not_found._n
call fcn.00401036
pop ecx
xor al, al
jmp 0x4071c2
imul eax, dword [esi + 0x92d14], 0x4c
push ebx
xor ebx, ebx
push edi
mov edi, ebx
movzx eax, byte [eax + esi + 0x284]
mov dword [ebp + 8], eax
mov byte [ebp + 0xf], bl
jmp 0x407197
imul eax, dword [esi + 0x92d10], 0xfc
cmp ebx, dword [eax + esi + 0xbec]
jge 0x4071af
movzx ecx, byte [ebp + 0xf]
or ecx, 0xffffff00
test edi, edi
jle 0x407176
mov eax, edi
shl ecx, 8
or ecx, 0xff
sub eax, 1
jne 0x407168
mov eax, dword [esi + 0x82858]
mov eax, dword [eax]
and dword [eax + ebx*4], ecx
lea ecx, [edi + 1]
cmp ecx, dword [ebp + 8]
lea eax, [ebx + 1]
cmovl eax, ebx
xor edi, edi
cmp ecx, dword [ebp + 8]
mov ebx, eax
cmovl edi, ecx
push dword [ebp - 4]
lea eax, [ebp + 0xf]
push 1
push 1
push eax
call fcn.0041b877
add esp, 0x10
cmp eax, 1
je 0x407145
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x4071c0
push dword [ebp - 4]
call fcn.0041aff6
pop ecx
mov al, 1
pop esi
leave
ret 8

Function at 0x407dea
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x4402d8
push dword [ebp + 8]
lea eax, [ebp + 8]
mov byte [ebp - 1], 0
push eax
call fcn.0041b497
add esp, 0xc
test eax, eax
je 0x407e2c
cmp dword [ebp + 8], 0
je 0x407e1a
push dword [ebp + 8]
call fcn.0041aff6
pop ecx
push str._nError_Opening_save_file._n
call fcn.00401036
pop ecx
xor al, al
jmp 0x407ec6
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
imul eax, dword [esi + 0x92d14], 0x4c
movzx ecx, byte [eax + esi + 0x284]
imul eax, dword [esi + 0x92d10], 0xfc
mov dword [ebp - 8], ecx
cmp dword [eax + esi + 0xbec], edi
jle 0x407eb2
xor ebx, ebx
test ecx, ecx
je 0x407e9e
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [esi + 0x82858]
push dword [ebp + 8]
push 1
mov eax, dword [eax]
push 1
mov eax, dword [eax + edi*4]
shr eax, cl
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.0041b37e
add esp, 0x10
cmp eax, 1
jne 0x407eca
mov ecx, dword [ebp + 0xc]
inc ebx
add ecx, 8
mov dword [ebp + 0xc], ecx
cmp ebx, dword [ebp - 8]
jl 0x407e64
mov ecx, dword [ebp - 8]
imul eax, dword [esi + 0x92d10], 0xfc
inc edi
cmp edi, dword [eax + esi + 0xbec]
jl 0x407e59
cmp dword [ebp + 8], 0
je 0x407ec1
push dword [ebp + 8]
call fcn.0041aff6
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
push str._nError_writing_to_save_file._n
call fcn.00401036
cmp dword [ebp + 8], 0
pop ecx
je 0x407ee4
push dword [ebp + 8]
call fcn.0041aff6
pop ecx
xor al, al
jmp 0x407ec3