joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ca19
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x40cad8
cmp dword [esp + 0x24], 2
je 0x40cad8
push 0x2000
push ebp
push dword [0x52b934]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x40caa7
cmp dword [esp + 0x18], 2
jne 0x40cac3
cmp dword [esp + 0x28], 0xffffffff
je 0x40ca6b
cmp ebp, dword [esp + 0x28]
jae 0x40cac3
add ebp, 2
test ebx, ebx
jne 0x40ca90
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x52b934]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x40cac3
cmp ax, 0xd
je 0x40caa7
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 dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ca57
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00486db0
jmp 0x40cb6a
push eax
push 0
push dword [0x52b934]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x40caf6
cmp ebp, dword [esp + 0x28]
jae 0x40cb4e
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cb4e
cmp dword [esp + 0x18], 1
jne 0x40cb4e
inc ebp
test ebx, ebx
jne 0x40cb3b
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x52b934]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x40cb4e
cmp al, 0xd
je 0x40cae9
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x40cae9
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x40cb65
call fcn.00486ba0
jmp 0x40cb6a
call fcn.00486d50
push esi
push 0
push dword [0x52b934]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x40d6df
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x40d87e
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x40d87d
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d87c
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x52b934]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x40d875
call fcn.004343d0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x40d862
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.004348a0
lea eax, [esp + 0x30]
push eax
push edi
call fcn.00434a20
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x40d7ae
cmp dword [eax + 8], 3
je 0x40d7ae
push dword [esp + 0x50]
push edi
call fcn.00434170
pop ecx
pop ecx
jmp 0x40d7cc
push dword [esp + 0x50]
call fcn.00486cc0
mov esi, eax
push esi
push edi
call fcn.00434890
pop ecx
pop ecx
push esi
call fcn.00486cb0
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.004348f0
push 0x8000
push edi
call fcn.00434740
push edi
push dword [esi]
call fcn.00434b90
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x40d849
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.00434b50
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x40d841
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x40d80f
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x40d85b
mov dword [esp + 0x18], 1
push edi
call fcn.00434300
pop ecx
push ebp
push 0
push dword [0x52b934]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc
Function at 0x40dfc6
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push 0x40df15
push 0x10
push 0x2c
call fcn.0041e9df
xor esi, esi
mov dword [0x52c100], eax
push esi
push esi
push 8
call fcn.0041e806
mov dword [0x52caec], eax
cmp word [0x52c0f8], si
jne 0x40e0af
push edi
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x40e01e
mov word [0x52c0f8], di
jmp 0x40e026
xor eax, eax
mov word [0x52c0f8], ax
push 0x800
push esi
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x52c114], eax
test eax, eax
je 0x40e0ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x52c114]
mov dword [0x52c104], eax
call esi
push str.getnameinfo
push dword [0x52c114]
mov dword [0x52c108], eax
call esi
push str.WSAStringToAddressA
push dword [0x52c114]
mov dword [0x52c10c], eax
call esi
cmp dword [0x52c104], 0
mov dword [0x52c110], eax
je 0x40e0ae
cmp dword [0x52c108], 0
je 0x40e0ae
cmp dword [0x52c10c], 0
je 0x40e0ae
test eax, eax
je 0x40e0ae
mov dword [0x52c0fc], edi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x40e8b0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x52c118], 0
jne 0x40e8be
call fcn.0040e830
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x52c11c]
call esi
test eax, eax
jne 0x40e8e1
call fcn.0040e830
push dword [0x52c11c]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x40e8f0
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x40e950
mov ebx, 0x10
test edi, edi
jns 0x40e959
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40e922
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41183c
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 0x4119b2
mov eax, dword [esp + 0x24]
dec eax
je 0x411995
dec eax
jne 0x4119b2
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.004117f5
pop ecx
test eax, eax
je 0x4118f3
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x4118b6
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x411991
dec ebx
je 0x41198d
dec ebx
je 0x41196c
dec ebx
je 0x411926
sub ebx, 4
jne 0x4119b2
test edi, edi
jne 0x4119b2
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4119b2
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 0x4118b6
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x4118b1
sub edi, 0
je 0x41195e
dec edi
je 0x411950
dec edi
je 0x411942
dec edi
jne 0x4119b2
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4119b2
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4119b2
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4119b2
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4119b2
sub edi, 0
je 0x411989
dec edi
je 0x411985
dec edi
jne 0x4119b2
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4119b2
push 0x3c
jmp 0x4119b1
push 0x32
jmp 0x4119b1
push 0x14
jmp 0x4119b1
push 5
jmp 0x4119b1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4119af
cmp eax, 0xa
je 0x4119ab
cmp eax, 0x5a
jne 0x4119b2
push 0x28
jmp 0x4119b1
push 0x1e
jmp 0x4119b1
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x412a67
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 0x412aff
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x412afc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x412afc
lea eax, [esi - 1]
push eax
push dword [0x52cb24]
call fcn.0041e90c
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x412afe
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x412af3
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x412be6
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x412ad9
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x412ba5
push eax
call esi
test al, al
jns 0x412ba5
push 0x11
call esi
test al, al
js 0x412ba5
push 0x10
call esi
test al, al
js 0x412ba5
push 0x12
call esi
test al, al
js 0x412ba5
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x412ba5
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x412b79
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x412b90
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x412bf0
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x412bf0
test ebp, ebp
je 0x412bc9
push 0x11
call esi
test al, al
js 0x412bc1
push 0x10
call esi
test al, al
js 0x412bc1
push 0x12
call esi
test al, al
jns 0x412bc9
push 1
push ebp
call fcn.00412bfc
test ebx, ebx
je 0x412bdd
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x412bf0
test edi, edi
je 0x412bf0
mov eax, dword [edi + 8]
jmp 0x412bf2
and dword [esp + 0x14], 0
jmp 0x412afe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x412ee8
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 0x413030
xor ecx, ecx
cmp word [eax], cx
je 0x413030
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 0x412f41
cmp eax, 3
jne 0x412f7b
cmp word [esp + 0xa], 0x3a
jne 0x412f7b
cmp eax, 2
jne 0x412f5f
lea eax, [esp + 8]
push 0x4954c8
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 0x413030
push 0xfffffffffffffffe
pop edi
jmp 0x413030
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x412f90
cmp ax, bx
jne 0x412f9a
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x412f83
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x412fd9
test byte [esp + 0x21c], 0x10
je 0x412fc0
push 0xfffffffffffffffe
pop edi
jmp 0x412fd0
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41302e
cmp word [esp + 0x10], bp
jne 0x412fe7
cmp word [esp + 0x12], bp
je 0x413006
cmp word [esp + 0x10], bx
jne 0x412ff5
cmp word [esp + 0x12], bx
je 0x413006
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x41302e
cmp word [esp + 0x12], ax
jne 0x41302e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x41301b
test al, 0x10
je 0x41302e
jmp 0x41302b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41302e
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 0x41304f
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x413078
test byte [esp + 8], 2
je 0x41306c
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 0x41307a
xor eax, eax
ret 8

Function at 0x4130e2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x41315a
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 0x41313b
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x413138
cmp ecx, 0x5c
je 0x413138
cmp ecx, 0x2f
jne 0x413145
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x413125
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x41315c
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x413585
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41365a
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 0x413659
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.00415902
push esi
mov word [ebp - 0x20], ax
call fcn.00415928
push esi
mov word [ebp - 0x1e], ax
call fcn.0041594a
push esi
mov word [ebp - 0x1c], ax
call fcn.0041596b
push esi
mov word [ebp - 0x1a], ax
call fcn.0041598c
push esi
mov word [ebp - 0x18], ax
call fcn.004159ad
push esi
mov word [ebp - 0x16], ax
call fcn.004159ce
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 0x413638
lea eax, [ebp - 8]
jmp 0x413646
cmp dword [ebp + 0xc], 2
jne 0x413643
lea ecx, [ebp - 8]
jmp 0x413646
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 0x413663
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x413679
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41367c
or eax, 0xffffffff
ret 4

Function at 0x41367f
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x41368d
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x413a40
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 0x413a7c
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 0x413f10
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x413f75
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x413f6d
push dword [esp + 0x10]
push dword [0x52cb3c]
call fcn.0041e90c
test eax, eax
je 0x413f63
cmp dword [eax + 4], 0
je 0x413f52
push edi
push esi
push eax
call fcn.00414470
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 0x414470
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 0x414577
cmp dword [esi + 0x14], 1
jne 0x4144bb
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 0x414538
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x414523
dec eax
je 0x41450c
sub eax, 2
je 0x4144f7
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.00413a40
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x414565
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 0x4144e1
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x414580
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x4145a1
push esi
call fcn.00413a40
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x414615
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x414602
dec ecx
je 0x4145ed
sub ecx, 2
je 0x4145da
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
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 0x41465a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
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 0x41467b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x414bc0
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x414be7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00414580
mov dword [esp + 4], eax
jmp 0x414c01
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x414c0d
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x414c29
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x414c39
mov esi, 2
jmp 0x414c55
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x414c48
mov esi, 3
jmp 0x414c55
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x414cb2
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x414c84
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.00414580
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8

Function at 0x41610b
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x41a740
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x41a772
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a76d
cmp dword [esp + 0xc], esi
je 0x41a789
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret