joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5128d4
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x6b1ce8], 0
jne 0x5129a5
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x6b2c5c
mov dword [0x6b1ce8], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x6aef98]
mov dword [0x6b21ac], eax
mov dword [0x6b1cec], 0x1f4
call esi
mov dword [0x6b21bc], eax
mov eax, dword [0x6b1cec]
add eax, eax
push eax
push 8
push dword [0x6aef98]
call esi
xor ebx, ebx
mov dword [0x6b21b8], eax
push 0x6b21c8
mov dword [0x6b21b0], ebx
mov dword [0x6b21b4], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x6b21e0], eax
call esi
mov dword [0x6b21e4], eax
cmp dword [0x6b21e0], ebx
je 0x51299c
test eax, eax
je 0x51299c
lea eax, [esp + 0xc]
mov dword [0x6b21c0], ebx
push eax
push ebx
push ebx
push 0x5123d7
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6b21c4], eax
jmp 0x5129a2
mov dword [0x6b21c0], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x513133
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 0x5132a9
mov eax, dword [esp + 0x24]
dec eax
je 0x51328c
dec eax
jne 0x5132a9
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.005130ec
pop ecx
test eax, eax
je 0x5131ea
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x5131ad
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x513288
dec ebx
je 0x513284
dec ebx
je 0x513263
dec ebx
je 0x51321d
sub ebx, 4
jne 0x5132a9
test edi, edi
jne 0x5132a9
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x5132a9
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 0x5131ad
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x5131a8
sub edi, 0
je 0x513255
dec edi
je 0x513247
dec edi
je 0x513239
dec edi
jne 0x5132a9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x5132a9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x5132a9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x5132a9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x5132a9
sub edi, 0
je 0x513280
dec edi
je 0x51327c
dec edi
jne 0x5132a9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x5132a9
push 0x3c
jmp 0x5132a8
push 0x32
jmp 0x5132a8
push 0x14
jmp 0x5132a8
push 5
jmp 0x5132a8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5132a6
cmp eax, 0xa
je 0x5132a2
cmp eax, 0x5a
jne 0x5132a9
push 0x28
jmp 0x5132a8
push 0x1e
jmp 0x5132a8
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x5136c3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x6b2c78]
call fcn.0052e739
mov esi, eax
test esi, esi
je 0x51379d
cmp dword [ebp + 0xc], 0
je 0x51370f
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x513700
cmp dword [esi + 0x1c], 0
jne 0x513700
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x51379d
test byte [ebp + 0x10], 3
je 0x51372a
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.005150f9
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x51374f
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x513763
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x513780
test ebx, ebx
je 0x513774
push 8
jmp 0x513786
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x513793
test ebx, ebx
je 0x513789
push 3
pop ecx
jmp 0x513793
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x513c6f
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor esi, esi
push dword [0x6b2c78]
call fcn.0052e739
mov edi, eax
test edi, edi
je 0x513c92
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
push dword [esp + 0x10]
push esi
call fcn.0052ef50
test esi, esi
je 0x513caf
lea ecx, [esi + 1]
push ecx
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x513cb4
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
ret 8
Function at 0x514e05
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 0x514e9d
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x514e9a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x514e9a
lea eax, [esi - 1]
push eax
push dword [0x6b2c78]
call fcn.0052e739
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x514e9c
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x514e91
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x514f84
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x514e77
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x514f43
push eax
call esi
test al, al
jns 0x514f43
push 0x11
call esi
test al, al
js 0x514f43
push 0x10
call esi
test al, al
js 0x514f43
push 0x12
call esi
test al, al
js 0x514f43
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x514f43
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x514f17
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x514f2e
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x514f8e
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x514f8e
test ebp, ebp
je 0x514f67
push 0x11
call esi
test al, al
js 0x514f5f
push 0x10
call esi
test al, al
js 0x514f5f
push 0x12
call esi
test al, al
jns 0x514f67
push 1
push ebp
call fcn.00514f9a
test ebx, ebx
je 0x514f7b
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x514f8e
test edi, edi
je 0x514f8e
mov eax, dword [edi + 8]
jmp 0x514f90
and dword [esp + 0x14], 0
jmp 0x514e9c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x515492
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x5154bb
test byte [esp + 8], 2
je 0x5154af
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 0x5154bd
xor eax, eax
ret 8
Function at 0x5154e7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x51555f
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 0x515540
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x51553d
cmp ecx, 0x5c
je 0x51553d
cmp ecx, 0x2f
jne 0x51554a
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x51552a
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x515561
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x5158f7
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x6b2230]
push esi
test eax, eax
jne 0x51591c
push fcn.00515a24
push 0x10
push 0x258
call fcn.0052e80c
mov dword [0x6b2230], eax
push dword [esp + 0xc]
push eax
call fcn.0052e778
mov esi, eax
test esi, esi
je 0x515a1d
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x51593e
mov edi, section..rdata
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x51594e
xor eax, eax
cmp word [ebx], ax
jne 0x515953
mov ebx, 0x5cc334
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x6aef98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x515a04
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x5159b4
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x5159b8
push 0x5cc328
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x5159b8
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x5159dc
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x5159f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x5159f0
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x6aef98]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x515a1b
cmp dword [esp + 0x14], 0xffffffff
je 0x515a0f
mov esi, dword [esp + 0x14]
push esi
push dword [0x6b2230]
call fcn.0052e6ea
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x515d6f
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 0x515eb7
xor ecx, ecx
cmp word [eax], cx
je 0x515eb7
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 0x515dc8
cmp eax, 3
jne 0x515e02
cmp word [esp + 0xa], 0x3a
jne 0x515e02
cmp eax, 2
jne 0x515de6
lea eax, [esp + 8]
push 0x5cc328
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 0x515eb7
push 0xfffffffffffffffe
pop edi
jmp 0x515eb7
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x515e17
cmp ax, bx
jne 0x515e21
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x515e0a
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x515e60
test byte [esp + 0x21c], 0x10
je 0x515e47
push 0xfffffffffffffffe
pop edi
jmp 0x515e57
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x515eb5
cmp word [esp + 0x10], bp
jne 0x515e6e
cmp word [esp + 0x12], bp
je 0x515e8d
cmp word [esp + 0x10], bx
jne 0x515e7c
cmp word [esp + 0x12], bx
je 0x515e8d
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x515eb5
cmp word [esp + 0x12], ax
jne 0x515eb5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x515ea2
test al, 0x10
je 0x515eb5
jmp 0x515eb2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x515eb5
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 0x515ec6
Capabilities:
Copy file

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

Function at 0x5160b0
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 0x5160ec
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 0x516570
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x6b2c8c]
call fcn.0052e739
test eax, eax
je case.0x51659e.3
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 0x17
ja case.0x51659e.3
movzx ecx, byte [ecx + 0x5166a8]
jmp dword [ecx*4 + 0x516690]
cmp dword [eax + 4], 0
je 0x5165bb
push 2
push 0x5cc8d8
push eax
call fcn.00516da0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x5cc8d8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x5165ea
push 3
push 0x5cbe40
push eax
call fcn.00516da0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 3
push 0x5cbe40
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x516619
push 2
push 0x5cc8dc
push eax
call fcn.00516da0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x5cc8dc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x516648
push 4
push 0x5cc8e0
push eax
call fcn.00516da0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x5cc8e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x516677
push 4
push 0x5cc8e8
push eax
call fcn.00516da0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x5cc8e8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x516760
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x6b2c8c]
call fcn.0052e739
test eax, eax
je 0x5167ab
cmp dword [eax + 4], 0
je 0x516795
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.00516fc0
movsx 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]
movsx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x5167c0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x6b2c8c]
call fcn.0052e739
test eax, eax
je 0x51680d
cmp dword [eax + 4], 0
je 0x5167f7
push 2
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00516fc0
movsx eax, word [esp]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 2
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, word [esp]
pop ecx
ret 4
Function at 0x516900
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push ebx
push dword [0x6b2c8c]
mov dword [esp + 0x10], 0
call fcn.0052e739
mov ebp, eax
test ebp, ebp
je 0x516a5c
push esi
push edi
push ebx
call fcn.00516820
cmp dword [ebp + 4], 0
mov esi, eax
mov edi, edx
je 0x51694c
push 4
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00516fc0
mov ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x516967
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
cmp ecx, 2
jl 0x516995
lea edx, [esp + 0x18]
mov eax, 0xfeff
cmp word [edx], ax
jne 0x516995
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.00516890
pop edi
pop esi
pop ebp
mov eax, 0x19
pop ebx
pop ecx
ret 4
cmp ecx, 3
jl 0x5169c6
lea edx, [esp + 0x18]
cmp word [edx], 0xbbef
jne 0x5169c6
cmp byte [edx + 2], 0xbf
jne 0x5169c6
add esi, 3
adc edi, 0
push edi
push esi
push ebx
call fcn.00516890
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
pop ecx
ret 4
cmp ecx, 2
jl 0x5169f4
lea edx, [esp + 0x18]
mov eax, 0xfffe
cmp word [edx], ax
jne 0x5169f4
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.00516890
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
pop ecx
ret 4
cmp ecx, 4
jl 0x516a47
lea eax, [esp + 0x18]
cmp dword [eax], 0xfeff
jne 0x516a20
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.00516890
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
cmp dword [eax], 0xfffe0000
jne 0x516a47
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.00516890
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
pop ecx
ret 4
push edi
push esi
push ebx
call fcn.00516890
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4

Function at 0x516a70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x6b2c8c]
call fcn.0052e739
mov esi, eax
test esi, esi
je 0x516aef
cmp dword [esi + 4], 0
je 0x516ac0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00516fc0
test eax, eax
je 0x516ab4
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 0x516afa
cmp dword [esp + 8], 0
je 0x516afa
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 0x516c70
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x6b2c8c]
call fcn.0052e739
test eax, eax
je 0x516cbc
cmp dword [eax + 4], 0
je 0x516ca6
push 4
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00516fc0
mov eax, dword [esp]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4
Function at 0x516cd0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x6b2c8c]
call fcn.0052e739
test eax, eax
je 0x516d1d
cmp dword [eax + 4], 0
je 0x516d07
push 2
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00516fc0
movzx eax, word [esp]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 2
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, word [esp]
pop ecx
ret 4

Function at 0x516d30
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x516d95
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x516d8d
push dword [esp + 0x10]
push dword [0x6b2c8c]
call fcn.0052e739
test eax, eax
je 0x516d83
cmp dword [eax + 4], 0
je 0x516d72
push edi
push esi
push eax
call fcn.00516da0
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 0x516da0
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 0x516ea7
cmp dword [esi + 0x14], 1
jne 0x516deb
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 0x516e68
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x516e53
dec eax
je 0x516e3c
sub eax, 2
je 0x516e27
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.005160b0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x516e95
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 0x516e11
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x516eb0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x516fb8
cmp word [edx], 0
je 0x516fb8
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x516ede
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x516f3d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x516f10
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x516ef0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00516da0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x516f10
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.00517590
mov edi, eax
test edi, edi
je 0x516f33
cmp dword [esi + 4], 0
je 0x516f8b
push dword [esp + 0x14]
push edi
push esi
call fcn.00516da0
push edi
push 0
push dword [0x6aef98]
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 [0x6aef98]
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