joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df0d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0xb4
mov dword [ebp - 0xc], 0
call fcn.0041c5a0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.0041c600
sub esp, 8
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x70]
mov eax, 0
mov ecx, 0x11
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], 1
mov eax, dword [ebp + 0xc]
and eax, 2
test eax, eax
je 0x40df9d
mov word [ebp - 0x40], 0
jmp 0x40dfa4
nop
mov word [ebp - 0x40], 1
lea eax, [ebp - 0x70]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessW
sub esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40e074
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x40e068
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x14], eax
mov dword [esp], 1
call fcn.004124da
sub esp, 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeThread
sub esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x84]
cmp eax, 0x103
jne 0x40e06b
nop
jmp 0x40e025
nop
jmp 0x40e06c
nop
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xc], eax
jmp 0x40e07c
nop
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0041c910
sub esp, 4
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
leave
ret 8
Function at 0x40fcbf
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40fd14
push dword [esp + 0x10]
push 0x40fc3e
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x460058]
test esi, esi
je 0x40fd6d
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40fd0c
cmp byte [esi + 0x10], 0
je 0x40fd0c
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x40fce8
jmp 0x40fd6d
mov esi, dword [0x460058]
test esi, esi
je 0x40fd6d
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40fd66
cmp byte [esi + 0x11], 0
je 0x40fd42
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40fd59
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x460058
call fcn.0041c05a
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40fd21
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x410356
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4103ba
cmp dword [ebp + 0x10], 0x18
push esi
jne 0x410377
call fcn.00420640
mov esi, eax
push esi
call sub.MSVCRT.dll_strlen
jmp 0x41038b
cmp dword [ebp + 0x10], 2
jne 0x410384
call fcn.004206e0
jmp 0x41036d
call sub.MSVCRT.dll_wcslen
add eax, eax
pop ecx
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
mov eax, dword [ebp + 8]
push esi
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x10], 0x18
jne 0x4103ae
push esi
call fcn.00420630
jmp 0x4103ba
cmp dword [ebp + 0x10], 2
jne 0x4103ba
push esi
call fcn.004206d0
pop esi
pop ebp
ret 0xc

Function at 0x410563
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x410612
cmp dword [esp + 0x24], 2
je 0x410612
push 0x2000
push edi
push dword [0x45fa84]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x4105e5
cmp dword [esp + 0x18], 2
jne 0x4105fd
test ebx, ebx
jne 0x4105ce
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x45fa84]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x4105fd
cmp ax, 0xd
je 0x4105e5
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x4105a5
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004207d0
jmp 0x410698
push eax
push 0
push dword [0x45fa84]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x410664
cmp dword [esp + 0x18], 1
jne 0x41067c
test ebx, ebx
jne 0x410653
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x45fa84]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x41067c
cmp al, 0xd
je 0x410664
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x41062b
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x410693
call fcn.004205c0
jmp 0x410698
call fcn.00420770
push esi
push 0
push dword [0x45fa84]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x410a70
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x4109bf
push 0x10
push 0x2c
call fcn.0041b9cf
push 0
push 0
push 8
mov dword [0x46006c], eax
call fcn.0041b7f6
cmp word [0x460064], 0
mov dword [0x4608a4], eax
jne 0x410b55
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x410ac8
mov word [0x460064], di
jmp 0x410ad0
xor eax, eax
mov word [0x460064], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x460080], eax
test eax, eax
je 0x410b54
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x460080]
mov dword [0x460070], eax
call esi
push str.getnameinfo
push dword [0x460080]
mov dword [0x460074], eax
call esi
push str.WSAStringToAddressA
push dword [0x460080]
mov dword [0x460078], eax
call esi
cmp dword [0x460070], 0
mov dword [0x46007c], eax
pop esi
je 0x410b54
cmp dword [0x460074], 0
je 0x410b54
cmp dword [0x460078], 0
je 0x410b54
test eax, eax
je 0x410b54
mov dword [0x460068], edi
pop edi
add esp, 0x190
ret
Function at 0x412357
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4124cd
mov eax, dword [esp + 0x24]
dec eax
je 0x4124b0
dec eax
jne 0x4124cd
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00412310
pop ecx
test eax, eax
je 0x41240e
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x4123d1
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4124ac
dec ebx
je 0x4124a8
dec ebx
je 0x412487
dec ebx
je 0x412441
sub ebx, 4
jne 0x4124cd
test edi, edi
jne 0x4124cd
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4124cd
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4123d1
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x4123cc
sub edi, 0
je 0x412479
dec edi
je 0x41246b
dec edi
je 0x41245d
dec edi
jne 0x4124cd
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4124cd
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4124cd
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4124cd
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4124cd
sub edi, 0
je 0x4124a4
dec edi
je 0x4124a0
dec edi
jne 0x4124cd
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4124cd
push 0x3c
jmp 0x4124cc
push 0x32
jmp 0x4124cc
push 0x14
jmp 0x4124cc
push 5
jmp 0x4124cc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4124ca
cmp eax, 0xa
je 0x4124c6
cmp eax, 0x5a
jne 0x4124cd
push 0x28
jmp 0x4124cc
push 0x1e
jmp 0x4124cc
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x413462
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4134fa
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4134f7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4134f7
lea eax, [esi - 1]
push eax
push dword [0x4608dc]
call fcn.0041b8fc
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4134f9
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x4134ee
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x4135e1
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4134d4
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4135a0
push eax
call esi
test al, al
jns 0x4135a0
push 0x11
call esi
test al, al
js 0x4135a0
push 0x10
call esi
test al, al
js 0x4135a0
push 0x12
call esi
test al, al
js 0x4135a0
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4135a0
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x413574
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x41358b
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4135eb
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4135eb
test ebp, ebp
je 0x4135c4
push 0x11
call esi
test al, al
js 0x4135bc
push 0x10
call esi
test al, al
js 0x4135bc
push 0x12
call esi
test al, al
jns 0x4135c4
push 1
push ebp
call fcn.004135f7
test ebx, ebx
je 0x4135d8
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4135eb
test edi, edi
je 0x4135eb
mov eax, dword [edi + 8]
jmp 0x4135ed
and dword [esp + 0x14], 0
jmp 0x4134f9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x4138f3
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x41391c
test byte [esp + 8], 2
je 0x413910
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41391e
xor eax, eax
ret 8
Function at 0x413921
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x413a69
xor ecx, ecx
cmp word [eax], cx
je 0x413a69
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x41397a
cmp eax, 3
jne 0x4139b4
cmp word [esp + 0xa], 0x3a
jne 0x4139b4
cmp eax, 2
jne 0x413998
lea eax, [esp + 8]
push 0x421430
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x413a69
push 0xfffffffffffffffe
pop edi
jmp 0x413a69
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4139c9
cmp ax, bx
jne 0x4139d3
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4139bc
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x413a12
test byte [esp + 0x21c], 0x10
je 0x4139f9
push 0xfffffffffffffffe
pop edi
jmp 0x413a09
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x413a67
cmp word [esp + 0x10], bp
jne 0x413a20
cmp word [esp + 0x12], bp
je 0x413a3f
cmp word [esp + 0x10], bx
jne 0x413a2e
cmp word [esp + 0x12], bx
je 0x413a3f
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x413a67
cmp word [esp + 0x12], ax
jne 0x413a67
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x413a54
test al, 0x10
je 0x413a67
jmp 0x413a64
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x413a67
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x413acf
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x413b47
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x413b28
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x413b25
cmp ecx, 0x5c
je 0x413b25
cmp ecx, 0x2f
jne 0x413b32
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x413b12
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x413b49
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x413f72
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x414047
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414046
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.004158b7
push esi
mov word [ebp - 0x20], ax
call fcn.004158dd
push esi
mov word [ebp - 0x1e], ax
call fcn.004158ff
push esi
mov word [ebp - 0x1c], ax
call fcn.00415920
push esi
mov word [ebp - 0x1a], ax
call fcn.00415941
push esi
mov word [ebp - 0x18], ax
call fcn.00415962
push esi
mov word [ebp - 0x16], ax
call fcn.00415983
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x414025
lea eax, [ebp - 8]
jmp 0x414033
cmp dword [ebp + 0xc], 2
jne 0x414030
lea ecx, [ebp - 8]
jmp 0x414033
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x414060
Capabilities:
Copy file

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

Function at 0x414530
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x414595
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41458d
push dword [esp + 0x10]
push dword [0x4608f4]
call fcn.0041b8fc
test eax, eax
je 0x414583
cmp dword [eax + 4], 0
je 0x414572
push edi
push esi
push eax
call fcn.004148a0
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x414610
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x41464c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x4147a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x4608f4]
call fcn.0041b8fc
test eax, eax
je 0x4147eb
cmp dword [eax + 4], 0
je 0x4147d5
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.00414ac0
movzx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x414800
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x4608f4]
call fcn.0041b8fc
mov esi, eax
test esi, esi
je 0x41487f
cmp dword [esi + 4], 0
je 0x414850
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00414ac0
test eax, eax
je 0x414844
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41488a
cmp dword [esp + 8], 0
je 0x41488a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
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 0x4148a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x4149a7
cmp dword [esi + 0x14], 1
jne 0x4148eb
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x414968
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x414953
dec eax
je 0x41493c
sub eax, 2
je 0x414927
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00414610
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x414995
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x414911
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x4149b0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x414ab8
cmp word [edx], 0
je 0x414ab8
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x4149de
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x414a3d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x414a10
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4149f0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004148a0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414a10
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00414be0
mov edi, eax
test edi, edi
je 0x414a33
cmp dword [esi + 4], 0
je 0x414a8b
push dword [esp + 0x14]
push edi
push esi
call fcn.004148a0
push edi
push 0
push dword [0x45fa84]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x45fa84]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc