joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dda10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x6963f4]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
lea eax, [esp + 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesComDlg32
mov dword [esp + 0x14], ebx
push SysReAllocStringLen
mov byte [esp + 0x24], bl
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4dda8d
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push str.NoPlacesBar
push ecx
mov dword [esp + 0x1c], 0x104
mov byte [esp + 0x28], bl
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x4dda82
mov byte [esp + 0x10], bl
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00404e10
mov ecx, dword [esp + 0x118]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.0059e0c2
add esp, 0x118
ret

Function at 0x4ddac0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push esi
lea eax, [esp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push ecx
push edx
mov dword [esp + 0x20], 3
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ddb39
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExA]
push edi
push eax
lea eax, [esp + 0x18]
push eax
push esi
push ebp
push ecx
mov dword [edi], esi
call ebx
test eax, eax
jne 0x4ddb2d
mov eax, dword [edi]
test eax, eax
jbe 0x4ddb2d
push eax
call fcn.005a0b1e
mov esi, eax
add esp, 4
test esi, esi
je 0x4ddb2d
mov eax, dword [esp + 0xc]
push edi
push esi
lea edx, [esp + 0x18]
push edx
push 0
push ebp
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 8
ret

Function at 0x4ddb50
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x4ddb8f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push 3
push esi
push edx
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x4ddba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push reloc.oleaut32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ddbfe
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x6541c4
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x4ddbf3
mov dword [esp], esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x10
ret
Function at 0x4ddc10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
xor edi, edi
push edi
mov esi, eax
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x4ddc84
call dword [sym.imp.user32.dll_EmptyClipboard]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4ddc30
sub eax, edx
add eax, 1
push eax
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov cl, byte [esi]
mov byte [eax], cl
add esi, 1
add eax, 1
test cl, cl
jne 0x4ddc53
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.user32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x4ddff0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0xc
lea ecx, [esp]
push ecx
push 0x4de380
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.user32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 0xc
ret

Function at 0x4de030
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x6b43dc]
test eax, eax
jne 0x4de061
mov eax, dword [0x6b43d4]
test eax, eax
jne 0x4de043
ret
mov ecx, dword [0x6b43c0]
mov edx, dword [0x6b43bc]
push ecx
push edx
push 0
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [0x6b43dc], eax
ret

Function at 0x4de140
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4de148
ret
mov ecx, dword [esi + 8]
push ecx
push 0
push 0
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
xor edx, edx
test eax, eax
setne dl
mov dword [esi + 0x24], eax
mov eax, edx
ret

Function at 0x4dee60
Capabilities:
Hash data with md5

Disassembly:
jmp 0x4df090
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4e26e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x6963f4]
xor eax, esp
mov dword [esp + 0x25c], eax
push esi
push edi
mov esi, ecx
push 0x6554c8
push esi
xor edi, edi
call fcn.005a8720
add esp, 8
test eax, eax
je 0x4e2728
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0059e0c2
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4e275d
mov edi, dword [esp + 8]
push eax
and edi, 0x10
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0059e0c2
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x148]
push ecx
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
push esi
mov esi, dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
je 0x4e2747
lea edx, [esp + 0x148]
push edx
call esi
mov ecx, dword [esp + 0x264]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0059e0c2
mov esp, ebp
pop ebp
ret

Function at 0x4e3a90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
test ecx, ecx
push ebx
mov ebx, eax
je 0x4e3b4b
cmp dword [ecx + 0x1c], 0
je 0x4e3b4b
movzx eax, word [ebx + 0x2e]
cmp ax, word [ecx + 0x2e]
jne 0x4e3b4b
mov edx, dword [ecx + 0x448]
push ebp
mov ebp, dword [ebx + 0x448]
push esi
push edi
movzx edi, ax
mov eax, dword [ebx + 0x24]
push edi
mov dword [esp + 0x18], edx
call fcn.004e3070
mov esi, eax
mov eax, dword [ecx + 0x24]
push edi
mov dword [esp + 0x20], esi
call fcn.004e3070
add esp, 8
cmp esi, eax
jge 0x4e3af3
mov edi, esi
mov dword [esp + 0x10], edi
jmp 0x4e3af9
mov dword [esp + 0x10], eax
mov edi, eax
mov ecx, dword [ecx + 0x28]
mov ebx, dword [ebx + 0x28]
cmp ebx, ecx
jge 0x4e3b05
mov ecx, ebx
test ecx, ecx
jle 0x4e3b3e
mov esi, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
test edi, edi
mov ecx, esi
jle 0x4e3b31
mov edx, ebp
sub edx, esi
lea ecx, [ecx]
mov bl, byte [edx + ecx]
xor byte [ecx], bl
add ecx, 1
sub edi, 1
jne 0x4e3b20
mov edi, dword [esp + 0x10]
add esi, dword [esp + 0x18]
add ebp, eax
sub dword [esp + 0x14], 1
jne 0x4e3b13
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4e81c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x24
push ebp
push edi
xor edi, edi
cmp esi, edi
je 0x4e81e5
push edi
push 2
mov ecx, esi
call fcn.00571890
test eax, eax
jne 0x4e8213
push edi
push 8
mov ecx, esi
call fcn.00571890
jmp 0x4e820f
mov ebp, dword [sym.imp.user32.dll_IsClipboardFormatAvailable]
push 2
call ebp
test eax, eax
jne 0x4e8208
push 8
call ebp
test eax, eax
jne 0x4e8208
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov eax, ebx
pop edi
pop ebp
add esp, 0x24
ret
push edi
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x4e81fb
cmp esi, edi
je 0x4e8223
push edi
push 2
mov ecx, esi
call fcn.0057191d
jmp 0x4e822b
push 2
call dword [sym.imp.user32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
jne 0x4e8241
test esi, esi
je 0x4e8281
push eax
push 8
mov ecx, esi
call fcn.0057191d
mov edi, eax
test esi, esi
jne 0x4e824b
call dword [sym.imp.user32.dll_CloseClipboard]
test ebp, ebp
je 0x4e828d
lea eax, [esp + 0x10]
push eax
push 0x18
push ebp
call dword [sym.imp.gdi32.dll_GetObjectA]
test eax, eax
je 0x4e82c5
test esi, esi
je 0x4e826c
push ebp
call dword [sym.imp.kernel32.dll_GlobalFree]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov eax, ebx
pop edi
pop ebp
add esp, 0x24
ret
push 8
call dword [sym.imp.user32.dll_GetClipboardData]
mov edi, eax
jmp 0x4e8245
test edi, edi
je 0x4e82c5
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ebp, dword [eax + 4]
mov eax, dword [eax + 8]
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
test esi, esi
je 0x4e82b4
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
mov ecx, dword [esp + 0xc]
mov dword [ebx], ebp
mov dword [ebx + 4], ecx
mov eax, ebx
pop edi
pop ebp
add esp, 0x24
ret
pop edi
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov eax, ebx
pop ebp
add esp, 0x24
ret
Function at 0x4e90b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x6963f4]
xor eax, esp
mov dword [esp + 0x10c], eax
lea eax, [esp]
push eax
push 0x20019
push 0
push str.Control_PanelCursors
push SysReAllocStringLen
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4e916c
push ebx
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExA]
push ebp
mov ebp, dword [sym.imp.user32.dll_LoadCursorFromFileA]
push esi
mov esi, 0x69d424
jmp 0x4e9100
mov eax, dword [esi]
test eax, eax
je 0x4e910d
push eax
call dword [sym.imp.user32.dll_DestroyCursor]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esi - 0x18]
push ecx
push edx
mov dword [esi], 0
mov dword [esi - 4], 0
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x4e915e
lea eax, [esp + 0x18]
push eax
call ebp
test eax, eax
mov dword [esi], eax
je 0x4e915e
mov ecx, dword [esi - 0x1c]
push ecx
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [esi - 4], eax
add esi, 0x20
cmp esi, 0x69d5c4
jl 0x4e9100
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0059e0c2
add esp, 0x110
ret
Function at 0x4e9190
Capabilities:
Check os version
Log keystrokes

Disassembly:
sub esp, 0xc4
mov eax, dword [0x6963f4]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [0x6a5a0c]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, 1
jne 0x4e928f
push str.user32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov esi, eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [esp + 0x40], 2
jne 0x4e9273
cmp dword [esp + 0x34], 5
jae 0x4e9273
mov dword [0x6a5a0c], edi
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.user32.dll_GetCursorPos]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.user32.dll_WindowFromPoint]
mov edi, dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push 1
mov esi, eax
call edi
mov ebx, dword [sym.imp.user32.dll_GetWindowThreadProcessId]
push eax
push 0
push esi
call ebx
mov ebp, dword [sym.imp.user32.dll_AttachThreadInput]
push eax
call ebp
call dword [sym.imp.user32.dll_GetCursor]
push 0
mov dword [esp + 0x14], eax
call edi
push eax
push 0
push esi
call ebx
push eax
call ebp
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4e926f
mov eax, 0x69d424
cmp edx, dword [eax - 4]
jne 0x4e9265
mov ecx, dword [eax]
test ecx, ecx
je 0x4e9265
mov dword [esp + 0x10], ecx
mov edx, ecx
add eax, 0x20
cmp eax, 0x69d5c4
jl 0x4e9254
mov eax, edx
jmp 0x4e92d1
test esi, esi
je 0x4e928a
push str.GetCursorInfo
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6a5a0c], eax
jmp 0x4e928f
mov eax, dword [0x6a5a0c]
test eax, eax
je 0x4e91f4
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x14
call eax
test eax, eax
je 0x4e92cf
cmp dword [esp + 0x18], edi
je 0x4e92cf
mov edx, dword [esp + 0x1c]
jmp 0x4e924b
mov eax, edi
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059e0c2
add esp, 0xc4
ret
Function at 0x4e9e0b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4e9e63
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x639ce8
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e9e56
inc esi
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
jmp 0x4e9e65
xor eax, eax
pop esi
leave
ret 4

Function at 0x4ecc10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x114
push esi
push edi
push 0x6b6200
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
call fcn.004f1ab0
push 0x6b6220
call fcn.004eca40
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.004eccc0
mov esi, dword [0x6b6220]
mov edi, dword [esp + 0x14]
mov ecx, 0x41
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x18]
mov ecx, 0x40
mov edi, dword [eax]
add eax, 4
xor edi, 0xfffffffe
dec ecx
mov dword [eax - 4], edi
jne 0x4ecc5e
push 0x6b6220
call fcn.004eca40
lea edx, [esp + 0xc]
push edx
call fcn.004eca40
add esp, 8
push 0x6b6200
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x124]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0x120]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x114
ret
Function at 0x4f3330
Capabilities:
Create thread
Read file on windows

Disassembly:
mov eax, dword [0x686418]
sub esp, 0x88
cmp eax, 0xffffffff
je 0x4f339c
push 0xa
push eax
call dword [sym.imp.kernel32.dll_PurgeComm]
mov edx, dword [0x686418]
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push 0x80
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4f339c
cmp dword [esp + 4], 0x80
jne 0x4f339c
lea eax, [esp + 8]
push 0x80
push eax
call fcn.004ecb20
push 0x43
mov dword [0x6b622c], 0
call fcn.004f97f0
add esp, 0xc
test eax, eax
jne 0x4f33dd
mov eax, dword [0x6a5c4c]
test eax, eax
jne 0x4f33dd
mov eax, dword [0x6b6018]
test eax, eax
je 0x4f33be
lea ecx, [esp]
push ecx
push 0
push 0
push 0x4f2df0
jmp 0x4f33cc
lea edx, [esp]
push edx
push 0
push 0
push 0x4f30c0
push 0
push 0
call fcn.005a282f
add esp, 0x18
mov dword [0x6a5c4c], eax
add esp, 0x88
ret

Function at 0x4f3450
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x80
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x686418], eax
je 0x4f357f
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetCommState]
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.kernel32.dll_BuildCommDCBA]
mov ecx, dword [esp + 0x2c]
mov eax, dword [0x686418]
and ch, 0xef
lea edx, [esp + 0x24]
or ch, 0x20
push edx
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.kernel32.dll_SetCommState]
test eax, eax
je 0x4f357a
mov edx, dword [0x686418]
lea ecx, [esp + 0x40]
push ecx
push edx
mov word [esp + 0x48], 0x40
call dword [sym.imp.kernel32.dll_GetCommProperties]
test byte [esp + 0x5c], 0x80
je 0x4f3522
mov ecx, dword [0x686418]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetCommTimeouts]
mov eax, dword [0x686418]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0xa
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x20], 0x64
call dword [sym.imp.kernel32.dll_SetCommTimeouts]
mov ecx, dword [0x686418]
push esi
mov esi, dword [sym.imp.kernel32.dll_PurgeComm]
push 0xa
push ecx
call esi
push 0xfa
call dword [sym.imp.kernel32.dll_Sleep]
mov edx, dword [0x686418]
push 0xa
push edx
call esi
mov edx, dword [0x686418]
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push 0xa
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
pop esi
je 0x4f357a
cmp dword [esp], 0xa
jne 0x4f357a
xor eax, eax
add esp, 0x80
ret
call fcn.004f3590
or eax, 0xffffffff
add esp, 0x80
ret
Function at 0x4f41d0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x4f426e
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4f4266
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4f4209
mov al, byte [esi + 0x1c]
mov dword [esi + 0x20], 0
mov byte [esp + 0xc], al
mov eax, dword [esp + 0xc]
and eax, 0xff
pop esi
pop ecx
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x4f4233
cmp eax, 0xffffffff
je 0x4f421f
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp ecx, eax
jge 0x4f4266
mov ecx, dword [esi + 8]
mov edx, dword [esi]
xor eax, eax
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 8], ecx
pop esi
pop ecx
ret
mov edx, dword [esi + 0x10]
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4f4266
mov eax, dword [esp + 4]
test eax, eax
je 0x4f4266
mov eax, dword [esp + 0xc]
and eax, 0xff
mov dword [esi + 0x1c], eax
pop esi
pop ecx
ret
mov eax, 0xffffff69
mov dword [esi + 0x18], eax
pop esi
pop ecx
ret

Function at 0x4f4280
Capabilities:
Write file on windows

Disassembly:
mov cl, byte [esp + 8]
push esi
mov esi, dword [esp + 8]
mov byte [esp + 0xc], cl
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x4f432d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f42aa
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4f42c3
mov eax, dword [esi + 8]
test eax, eax
je 0x4f42c3
dec eax
mov dword [esi + 0x20], 0
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4f42fd
cmp eax, 0xffffffff
je 0x4f42de
cmp dword [esi + 8], eax
jl 0x4f42de
mov eax, 0xffffff6a
mov dword [esi + 0x18], eax
pop esi
ret
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov byte [eax + edx], cl
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
inc edx
mov eax, edx
mov dword [esi + 8], edx
cmp ecx, eax
jge 0x4f42f9
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
ret
mov edx, dword [esi + 0x10]
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4f4325
mov eax, dword [esp + 8]
test eax, eax
je 0x4f4325
xor eax, eax
pop esi
ret
mov eax, 0xffffff36
mov dword [esi + 0x18], eax
pop esi
ret
Function at 0x4f4360
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov eax, dword [ebx + 0x18]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x4f443c
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4f4389
mov eax, 0xffffff69
pop edi
mov dword [ebx + 0x18], eax
pop ebp
pop ebx
ret
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x4f4397
pop edi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4f43b4
mov al, byte [ebx + 0x1c]
mov byte [edi], al
inc edi
dec ebp
mov dword [ebx + 0x20], 0
jne 0x4f43b4
pop edi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f4411
cmp eax, 0xffffffff
je 0x4f43ea
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add ecx, ebp
cmp ecx, eax
jle 0x4f43ea
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0xffffff69
pop edi
mov dword [ebx + 0x18], eax
pop ebp
pop ebx
ret
mov eax, dword [ebx + 8]
push esi
mov esi, dword [ebx]
mov ecx, ebp
add esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 8]
pop esi
add eax, ebp
pop edi
mov dword [ebx + 8], eax
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [ebx + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push edi
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4f4434
cmp dword [esp + 0x14], ebp
jne 0x4f4434
pop edi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xffffff37
mov dword [ebx + 0x18], eax
pop edi
pop ebp
pop ebx
ret

Function at 0x4f4440
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x4f44f6
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x4f445c
pop ebp
pop ebx
ret
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4f4470
mov eax, dword [ebx + 8]
add eax, ebp
pop ebp
mov dword [ebx + 8], eax
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f44c8
cmp eax, 0xffffffff
je 0x4f4490
mov ecx, dword [ebx + 8]
add ecx, ebp
cmp ecx, eax
jle 0x4f4490
mov eax, 0xffffff6a
pop ebp
mov dword [ebx + 0x18], eax
pop ebx
ret
mov edx, dword [ebx + 8]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [ebx]
mov ecx, ebp
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
add edx, ebp
pop edi
mov eax, edx
mov dword [ebx + 8], edx
cmp ecx, eax
pop esi
jge 0x4f44c3
mov dword [ebx + 0xc], eax
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push ebp
push ecx
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4f44ee
cmp dword [esp + 0x10], ebp
jne 0x4f44ee
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xffffff36
mov dword [ebx + 0x18], eax
pop ebp
pop ebx
ret
Function at 0x4f54d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
mov ebx, dword [esi]
push esi
call fcn.004f5610
mov edi, eax
add esp, 8
test edi, edi
jge 0x4f54f1
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esi + 4]
mov eax, dword [ebx + 0x40]
cmp ecx, 2
jne 0x4f5582
test eax, eax
jne 0x4f550d
pop edi
pop esi
mov eax, 0xffffff9c
pop ebx
ret
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4f5536
lea ecx, [edi*8]
push ecx
push esi
call eax
add esp, 8
test eax, eax
jne 0x4f5601
mov dword [esi + 0xc], 1
pop edi
pop esi
pop ebx
ret
lea eax, [esp + 0x10]
lea edx, [edi*8]
push eax
push 0
push esi
push 0x4f5440
push 0
push 0
mov dword [esi + 0x1a8], 0
mov dword [esi + 0x1a4], 0
mov dword [esi + 0x1ac], 0
mov dword [esi + 0x10], edx
call fcn.005a282f
add esp, 0x18
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
dec eax
pop ebx
ret
test eax, eax
je 0x4f55b8
lea ecx, [edi*8]
push ecx
push esi
call eax
add esp, 8
test eax, eax
jne 0x4f5601
mov edx, dword [esi + 4]
mov ecx, 1
cmp edx, ecx
jne 0x4f55ae
mov dword [esi + 0x130], ecx
pop edi
pop esi
pop ebx
ret
mov dword [esi + 0x10c], ecx
pop edi
pop esi
pop ebx
ret
cmp ecx, 1
jne 0x4f55db
lea ebx, [esi + 8]
push edi
push ebx
call fcn.004ecd20
add esp, 8
test eax, eax
jne 0x4f55df
push edi
push ebx
push esi
call fcn.004f5380
add esp, 0xc
jmp 0x4f55df
mov eax, dword [esp + 0x10]
cmp dword [esi + 4], 4
jne 0x4f5601
lea ebx, [esi + 8]
push edi
push ebx
call fcn.004ecd20
add esp, 8
test eax, eax
jne 0x4f5601
push edi
push ebx
push esi
call fcn.004f5380
add esp, 0xc
pop edi
pop esi
pop ebx
ret