joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e6b5
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1003e6e6
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x1003e6e1
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1003e79c
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x1003e743
mov dword [ebp - 0x44], 1
jmp 0x1003e747
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x1003e75d
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1003e75d
and dword [ebp - 0xc], 0
jmp 0x1003e764
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x1003e790
mov dword [ebp - 0x1c], 1
jmp 0x1003e794
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10041c4b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10041c60
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x10041c68
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
ret

Function at 0x10041d12
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10041ddd
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
imul eax, dword [ecx]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x5145ccb9
jle 0x10041d7d
mov dword [ebp - 0xc], 1
jmp 0x10041d81
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jl 0x10041d94
mov dword [ebp - 0x10], 1
jmp 0x10041d98
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
mov dword [eax], 0xfffffffb
mov eax, dword [ebp - 0x10]
sub eax, 5
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jl 0x10041db7
mov dword [ebp - 0x28], 1
jmp 0x10041dbb
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
imul eax, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
jmp 0x10041de5
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esp, ebp
pop ebp
ret

Function at 0x100420e6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004210f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 4
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x10042121
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10042121
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esp, ebp
pop ebp
ret
Function at 0x1004288d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x100428fb
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
add ecx, dword [eax + 0x20]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x28]
mov edx, dword [edx]
mov dword [ecx + eax], edx
jmp 0x10042903
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esp, ebp
pop ebp
ret
Function at 0x1007db05
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008538c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006b57a
mov dword [ebp - 0x14], eax
cmp dword [0x10672570], esi
jne 0x1007dbf8
push 0x800
push esi
push 0x10007d8c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007db85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007dcd8
push esi
push esi
push 0x10007d8c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007dcd8
push 0x10007da4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007dcd8
push eax
call ebx
push 0x10007db0
push edi
mov dword [0x10672570], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007dc0
push edi
mov dword [0x10672574], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007dd4
push edi
mov dword [0x10672578], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10672580], eax
test eax, eax
je 0x1007dbf5
push 0x10007df0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1067257c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007dc1d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007dc10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007dc32
push 4
pop eax
jmp 0x1007dcda
cmp dword [ebp - 0x14], esi
je 0x1007dc32
push dword [0x10672570]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007dc17
mov eax, dword [0x1067257c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007dc90
cmp dword [0x10672580], edi
je 0x1007dc90
push eax
call ebx
push dword [0x10672580]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007dc90
test eax, eax
je 0x1007dc90
call ecx
test eax, eax
je 0x1007dc85
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007dc85
test byte [ebp - 8], 1
jne 0x1007dc90
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007dcc0
mov eax, dword [0x10672574]
cmp eax, edi
je 0x1007dcbd
push eax
call ebx
test eax, eax
je 0x1007dcbd
call eax
mov esi, eax
test esi, esi
je 0x1007dcbd
mov eax, dword [0x10672578]
cmp eax, edi
je 0x1007dcbd
push eax
call ebx
test eax, eax
je 0x1007dcbd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10672570]
call ebx
test eax, eax
je 0x1007dcd8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007dcda
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10067045
mov esp, ebp
pop ebp
ret
Function at 0x4093a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x34], 0x10
lea edx, [ebp + 0x20]
push esi
push dword [ebp + 0x30]
cmovae edx, dword [ebp + 0x20]
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push edx
cmovae eax, dword [ebp + 8]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 0x1c]
mov esi, eax
cmp edx, 0x10
jb 0x4093fc
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4093f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409443
push edx
push ecx
call fcn.005150f8
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40943e
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409434
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409443
push edx
push ecx
call fcn.005150f8
add esp, 8
mov eax, esi
pop esi
pop ebp
ret
call fcn.00519e03
int3

Function at 0x409450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f850
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5932e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], ebx
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x800
movq qword [ebp - 0x20], xmm0
call fcn.00409780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
mov edi, dword [ebp - 0x20]
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push ecx
cmovae eax, dword [ebp + 8]
push edi
push 0
push 0xffff
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
test eax, eax
je 0x40953b
test edi, edi
je 0x409513
mov ecx, dword [ebp - 0x18]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x409509
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40957c
push ecx
push edi
call fcn.005150f8
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40955e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409554
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409581
jmp 0x409554
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409540
sub ecx, edx
push ecx
push edi
mov ecx, ebx
call fcn.00409ab0
jmp 0x4094e6
push edx
push ecx
call fcn.005150f8
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
call fcn.00519e03
call fcn.00519e03
int3
Function at 0x40cae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ebx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov edx, dword [ebp + 0x1c]
cmp eax, 0xffffffff
setne bl
cmp edx, 0x10
jb 0x40cb2c
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb31
push edx
push ecx
call fcn.005150f8
add esp, 8
mov al, bl
pop ebx
pop ebp
ret
call fcn.00519e03
int3
Function at 0x40dbd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x5932e0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x40dd9c
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x128
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_Process32First]
test eax, eax
je 0x40dd9c
lea ecx, [esp + 0x54]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
lea edx, [ecx + 1]
mov byte [esp + 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dc40
sub ecx, edx
lea eax, [esp + 0x54]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00409ab0
add edi, 0x104
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x40dc68
mov ecx, dword [edi]
push dword [edi + 0x10]
cmp dword [esp + 0x30], 0x10
lea eax, [esp + 0x1c]
mov esi, dword [esp + 0x1c]
push ecx
push dword [esp + 0x30]
cmovae eax, esi
push eax
call fcn.0042a3f0
mov byte [esp + 0x23], al
add esp, 0x10
mov eax, dword [esp + 0x2c]
cmp eax, 0x10
jb 0x40dcc1
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40dcb7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ddd4
push ecx
push esi
call fcn.005150f8
add esp, 8
cmp byte [esp + 0x13], 0
jne 0x40ddbd
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_Process32Next]
test eax, eax
je 0x40dd95
lea eax, [esp + 0x54]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
lea edx, [eax + 1]
mov byte [esp + 0x18], 0
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dd00
sub eax, edx
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00409ab0
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x40dd22
mov ecx, dword [edi]
push dword [edi + 0x10]
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
mov esi, dword [esp + 0x1c]
cmp ebx, 0x10
push ecx
push dword [esp + 0x30]
cmovae eax, esi
push eax
call fcn.0042a3f0
add esp, 0x10
mov byte [esp + 0x13], al
cmp ebx, 0x10
jb 0x40dd79
lea ecx, [ebx + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40dd6b
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ddd4
push ecx
push esi
call fcn.005150f8
mov al, byte [esp + 0x1b]
add esp, 8
test al, al
jne 0x40ddb3
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_Process32Next]
test eax, eax
jne 0x40dce0
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x15c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
call fcn.00519e03
int3
Function at 0x413ca0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550acb
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x5932e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push 0x59a908
push eax
call fcn.00425780
add esp, 0xc
push 0xb0
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.00517340
add esp, 4
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xd8]
push 2
push eax
call fcn.0041af30
mov byte [ebp - 4], 4
lea eax, [ebp + 0x38]
cmp dword [ebp + 0x4c], 0x10
lea ecx, [ebp - 0xd8]
push 0
push dword [ebp + 0x48]
cmovae eax, dword [ebp + 0x38]
push eax
call fcn.0041c290
lea ecx, [ebp - 0xd8]
call fcn.0041aec0
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00425780
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x413d5c
mov eax, dword [eax]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push eax
cmovae ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
mov edx, dword [ebp - 0xdc]
cmp edx, 0x10
jb 0x413da9
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413d9f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413ecb
push edx
push ecx
call fcn.005150f8
add esp, 8
lea ecx, [ebp - 0xd8]
call fcn.004126d0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x413de8
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413dde
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413ed0
push edx
push ecx
call fcn.005150f8
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x413e2e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413e24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413ed5
push edx
push ecx
call fcn.005150f8
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x413e70
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413e66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413eda
push edx
push ecx
call fcn.005150f8
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x413eb2
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413ea8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413edf
push edx
push ecx
call fcn.005150f8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
int3
Function at 0x41b4d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x41b4fb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041c480
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x41b51d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41b51f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x41b5a3
jg 0x41b534
test esi, esi
je 0x41b5a3
test ecx, ecx
jl 0x41b57d
jg 0x41b53e
test eax, eax
je 0x41b57d
cmp edi, ecx
jg 0x41b552
jl 0x41b548
cmp esi, eax
jae 0x41b552
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00516840
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x41b580
mov edx, dword [ebp + 8]
test edi, edi
jl 0x41b5a3
jg 0x41b58a
test esi, esi
je 0x41b5a3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x41b5a3
push eax
push esi
push 1
push edx
call fcn.005208c5
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b5c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x41b5eb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041c570
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x41b60d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x41b60f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x41b6ae
jg 0x41b62c
test esi, esi
je 0x41b6ae
test ecx, ecx
jl 0x41b679
jg 0x41b636
test eax, eax
je 0x41b679
cmp ebx, ecx
jg 0x41b64a
jl 0x41b640
cmp esi, eax
jae 0x41b64a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00516840
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x41b680
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x41b6ae
jg 0x41b68a
test esi, esi
je 0x41b6ae
cmp dword [edi + 0x4c], 0
je 0x41b6ae
mov ecx, edi
call fcn.0041e9a0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0052103f
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ba40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5932e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x41ba70
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x41baac
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x41baac
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x4c], 0
je 0x41bba3
mov esi, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [esi], eax
jne 0x41bad4
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], edx
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x41bb0a
push dword [edi + 0x4c]
movsx eax, bl
push eax
call fcn.00519e7d
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov esi, dword [eax]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [esi + 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x55d39c]
mov ecx, dword [ebp - 0x34]
call esi
test eax, eax
js 0x41bba3
cmp eax, 1
jle 0x41bb76
cmp eax, 3
jne 0x41bba3
push dword [edi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00519e7d
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x41bb93
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.005208c5
add esp, 0x10
cmp esi, eax
jne 0x41bba3
lea eax, [ebp - 0x25]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x41ba97
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00514e1d
mov esp, ebp
pop ebp
ret 4