joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55604b
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 0
pop ebx
and edi, 1
je 0x5560da
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.Insertable
push dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0048684f
test eax, eax
jne 0x5560b3
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.Insertable
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0048684f
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x5560b3
inc ebx
test esi, esi
je 0x5560be
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x5560cd
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x55616a
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov eax, ecx
and al, 2
movzx esi, al
neg esi
sbb esi, esi
and esi, str.Apartment
test cl, 4
je 0x5560f5
mov esi, str.Free
and ecx, 6
cmp cl, 6
jne 0x556104
mov esi, str.Both
jmp 0x556108
test esi, esi
je 0x556187
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push str.InprocServer32
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x556157
push esi
call fcn.0060fe00
pop ecx
inc eax
push eax
push esi
push 1
push 0
push str.ThreadingModel
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
neg eax
sbb ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x556162
call fcn.00439739
cmp byte [eax + 0x14], 0
je 0x556187
test ebx, ebx
jne 0x556187
test edi, edi
je 0x556183
mov esi, str.Insertable
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, ebx
jmp 0x55618a
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x566ee9
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x67f4bd
call fcn.005f14c3
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x56707a
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x56704c
sub eax, 1
je 0x566f68
sub eax, 1
je 0x566f40
sub eax, 1
je 0x566f68
push 0x68e190
mov ecx, edi
call fcn.004025f0
mov eax, edi
call fcn.005f1472
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x566f2a
lea eax, [ebp - 0x28c]
push eax
jmp 0x566f2f
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x566f2a
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.00422690
test eax, eax
je 0x566f2a
lea ecx, [ebp - 0x3a0]
call fcn.004026b1
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x567002
test byte [ebp - 0x21c], 0x18
jne 0x567024
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x68dd90]
mov ecx, ebx
call esi
jmp 0x567024
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x68dd90]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.0040398f
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00406421
jmp 0x566f36
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x566f2a
lea eax, [ebp - 0x390]
jmp 0x566f65
call fcn.0041ee2b
int3

Function at 0x567231
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005c8dce
call fcn.0043978d
cmp dword [eax + 0x14], 0
jne 0x56724c
mov ecx, esi
pop esi
jmp fcn.005664f1
pop esi
ret

Function at 0x568014
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x71c1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x56807e
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x568063
lea eax, [ebp - 0x158]
push eax
jmp 0x568068
push 0x6b4df8
call fcn.004025f0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005f1450
leave
ret 8
call fcn.0041ee2b
int3

Function at 0x568563
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0042bbfb
call fcn.0043978d
cmp dword [eax + 0x14], 0
jne 0x56857e
mov ecx, esi
pop esi
jmp fcn.00567d48
pop esi
ret
Function at 0x583776
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x5837a3
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x5837b8
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x5837b8
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0042920a
jmp 0x583889
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0042920a
cmp eax, edi
jne 0x583893
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x583825
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x583869
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x583893
cmp eax, 0x205
je 0x583893
cmp eax, 0x201
je 0x583893
cmp eax, 0x204
je 0x583893
cmp eax, 0x100
jne 0x583851
cmp dword [ebp - 0x18], 0x1b
je 0x583893
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x583889
ja 0x583882
cmp eax, dword [0x74ab8c]
jbe 0x583889
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x5837da
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x583c87
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x583cbd
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.0042785c
test eax, eax
je 0x583ca5
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x58846c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x71b7d8], 0
push esi
push edi
je 0x5884f4
cmp dword [0x71bd64], 0xfffffffe
jne 0x5884e0
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x5884f4
mov edi, 0x74aba8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x74abc0], 0
jne 0x5884f8
push 0
push 0
push 0x5884fe
call fcn.0063d8ad
add esp, 0xc
mov dword [0x74abc0], eax
test eax, eax
je 0x5884d0
cmp eax, 0xffffffff
je 0x5884d0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x71bd64], esi
jmp 0x5884d7
and dword [0x74abc0], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x5884f4
mov eax, dword [ebp + 8]
mov dword [0x71bd64], eax
cmp eax, 0xffffffff
jne 0x5884f4
and dword [0x74abc0], 0
pop edi
pop esi
pop ebp
ret
call fcn.0041ee2b
int3
Function at 0x58f8c4
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00645760
pop ecx
test eax, eax
jne 0x58f906
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0043a87c
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x58f8cc
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x58fbde
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
mov eax, dword [esi]
push 1
mov edi, dword [eax + 0xe0]
mov ecx, edi
je 0x58fc19
push 0
call dword [0x68dd90]
mov ecx, esi
call edi
test eax, eax
je 0x58fc15
xor eax, eax
inc eax
jmp 0x58fc2c
xor eax, eax
jmp 0x58fc2c
push dword [esi + 0x24]
call dword [0x68dd90]
mov ecx, esi
call edi
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret
Function at 0x5a8598
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x683b45
call fcn.005f1490
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x5a867e
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x5a867e
cmp esi, 0x43
je 0x5a85da
cmp esi, 0x2d
jne 0x5a867e
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5a867e
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.004026b1
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00403e9b
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x5a866c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x5a866c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.00406421
push ebx
mov ecx, edi
call fcn.004354b1
call fcn.005f145e
ret 4

Function at 0x5c27a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x5c281d
cmp dword [ebp + 0xc], 0
je 0x5c281d
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x5c27cd
call fcn.00439739
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5c281d
push dword [ebp + 0xc]
mov dword [edi + 8], eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x5c281d
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x5c281d
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5c281d
mov ecx, dword [edi]
push eax
mov esi, dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push eax
mov ecx, esi
call dword [0x68dd90]
mov ecx, edi
call esi
jmp 0x5c281f
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x5e6af2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00602a90
mov eax, dword [ebp + 8]
add esp, 0xc
and dword [ebp - 0x34], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
leave
ret 0x14
Function at 0x5f2386
Capabilities:
Parse pe header

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

Function at 0x5f6430
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68aa94
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x71c1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
test eax, eax
js 0x5f6525
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push eax
push 1
call fcn.0043c55c
mov edi, eax
test edi, edi
js 0x5f6528
mov ecx, ebx
call fcn.005f5cc0
mov esi, eax
xor ecx, ecx
mov edx, 0x4c
mov dword [ebp + 8], esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004389fd
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x5f64da
push 0x5f4490
push 0x5f42b0
push dword [ebp + 8]
mov dword [eax], esi
lea esi, [eax + 4]
push 0x4c
push esi
call fcn.005f062f
jmp 0x5f64dc
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x5f6525
mov eax, dword [ebp + 0x10]
mov ecx, ebx
push esi
push 0
push 0
push 0
push 0
push 4
push 0
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0xc], 0xffffffff
call fcn.0043cb7f
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5fad90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
mov ecx, dword [edx + 0x8c]
test ecx, ecx
je 0x5fada5
pop ebp
jmp fcn.00429cd6
add edx, 0x90
cmp dword [edx + 0x14], 0xf
jbe 0x5fadb3
mov edx, dword [edx]
test edx, edx
jne 0x5fadc7
xor ecx, ecx
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.004065bc
pop ebp
ret 4
mov ecx, edx
push esi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5fadd0
sub ecx, esi
pop esi
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.004065bc
pop ebp
ret 4
Function at 0x61230b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005f0b80
mov eax, dword [0x71c1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00643f81
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x61234d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x6124a9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005f0580
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x74bbe8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0064f4d3
mov ecx, dword [esi*4 + 0x74bbe8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x6124a2
cmp eax, dword [ecx + edi + 0x24]
jne 0x6124a2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6124a2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0064f4d3
add esp, 0x14
test edx, edx
jl 0x6124a2
jg 0x612418
test eax, eax
jb 0x6124a2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x6124a2
jl 0x612432
cmp dword [ebp - 0x1008], eax
ja 0x6124a2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x612450
test ebx, ebx
je 0x612489
cmp ecx, edi
jae 0x612489
mov al, byte [ecx]
cmp al, 0xd
jne 0x61246a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x612476
cmp byte [ecx + 1], 0xa
jne 0x612476
inc ecx
jmp 0x612476
movzx eax, al
movsx eax, byte [eax + 0x71c3f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x612450
cmp edx, ebx
jne 0x612450
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x6124a7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005f1450
leave
ret

Function at 0x63022e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x63026d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x63026d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x63026d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x63026d
cmp dword [ecx + 0x74], 0xe
jbe 0x63026d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x64e21e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x74bbe8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x64e25e
cmp byte [ebx], 0xa
jne 0x64e25e
or byte [edi + eax + 0x28], 4
jmp 0x64e263
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x64e362
mov dl, byte [eax]
cmp dl, 0x1a
je 0x64e345
inc eax
cmp dl, 0xd
je 0x64e28f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x64e2b5
cmp eax, ecx
jae 0x64e2c3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x64e277
jmp 0x64e362
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x64e340
cmp dword [ebp - 0x10], 0
je 0x64e340
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x74bbe8]
test byte [eax + edi + 0x28], 0x48
je 0x64e31a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x64e305
mov byte [esi], dl
jmp 0x64e316
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x74bbe8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x64e362
cmp byte [ebp - 1], 0xa
jne 0x64e329
cmp esi, ebx
jne 0x64e329
mov byte [esi], 0xa
jmp 0x64e361
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0064f4f1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x64e362
mov byte [esi], 0xd
jmp 0x64e361
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x74bbe8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x64e35f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x64e362
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x64e36b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x74bbe8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x64e3b1
cmp word [ebx], dx
jne 0x64e3b1
or byte [eax + edi + 0x28], 4
jmp 0x64e3b6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x64e519
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x64e4f9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x64e3f7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x64e42d
cmp eax, edx
jae 0x64e43b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x64e3d2
jmp 0x64e519
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x64e4f4
cmp dword [ebp - 0x18], 0
je 0x64e4f4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x74bbe8]
test byte [eax + edi + 0x28], 0x48
je 0x64e4ca
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x64e48e
mov word [esi], cx
jmp 0x64e4c5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x74bbe8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x74bbe8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x74bbe8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x64e519
pop eax
cmp word [ebp - 4], ax
jne 0x64e4da
cmp esi, ebx
jne 0x64e4da
mov word [esi], ax
jmp 0x64e516
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0064f4f1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x64e519
push 0xd
pop eax
jmp 0x64e4d5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x74bbe8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x64e513
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x64e519
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret