joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3502042b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x102a6527
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x404cb0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push ebx
push esi
push edi
lea edi, [ebp - 0x38c]
mov ecx, 0xe3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x208], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x200]
push ecx
call fcn.00406bd0
add esp, 8
lea edx, [ebp - 0x200]
push edx
call fcn.004066e0
add esp, 4
movsx eax, byte [ebp + eax - 0x201]
cmp eax, 0x5c
jne 0x404d27
push 0x425574
lea ecx, [ebp - 0x200]
push ecx
call fcn.00406be0
add esp, 8
jmp 0x404d3b
push 0x425364
lea edx, [ebp - 0x200]
push edx
call fcn.00406be0
add esp, 8
mov esi, esp
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x200]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, esp
call fcn.00406760
mov dword [ebp - 0x20c], eax
movsx edx, byte [ebp - 0x320]
cmp edx, 0x2e
je 0x404dc9
movsx eax, byte [ebp - 0x320]
test eax, eax
je 0x404dc9
mov ecx, dword [ebp - 0x34c]
and ecx, 0x10
test ecx, ecx
je 0x404dc9
lea edx, [ebp - 0x320]
push edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x208]
push eax
call fcn.00406bd0
add esp, 8
lea ecx, [ebp - 0x320]
push ecx
call fcn.004066e0
add esp, 4
mov edx, dword [ebp - 0x208]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x204]
add ecx, 1
mov dword [ebp - 0x204], ecx
cmp dword [ebp - 0x208], 0x3e8
jle 0x404dd7
jmp 0x404dfc
mov esi, esp
lea edx, [ebp - 0x34c]
push edx
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp esi, esp
call fcn.00406760
test eax, eax
jne 0x404d5e
mov esi, esp
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call fcn.00406760
mov eax, dword [ebp - 0x204]
pop edi
pop esi
pop ebx
add esp, 0x38c
cmp ebp, esp
call fcn.00406760
mov esp, ebp
pop ebp
ret
Function at 0x406330
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d2e0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x874
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x884], ecx
mov dword [ebp - 4], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x878], eax
cmp dword [ebp - 0x878], 0xffffffff
jne 0x40638f
xor eax, eax
jmp 0x40649a
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.004f3280
add esp, 0xc
mov dword [ebp - 0x870], 0x22c
mov dword [ebp - 0x644], 0x428
lea edx, [ebp - 0x870]
push edx
mov eax, dword [ebp - 0x878]
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x880], eax
cmp dword [ebp - 0x880], 0
je 0x406470
lea ecx, [ebp - 0x84c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004065e0
add esp, 8
mov byte [ebp - 0x871], al
movzx eax, byte [ebp - 0x871]
test eax, eax
je 0x406451
mov ecx, dword [ebp - 0x868]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x87c], eax
cmp dword [ebp - 0x87c], 0
je 0x406451
push 0
mov edx, dword [ebp - 0x87c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x87c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
jne 0x406451
jmp 0x406470
lea ecx, [ebp - 0x870]
push ecx
mov edx, dword [ebp - 0x878]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x880], eax
jmp 0x4063dc
mov eax, dword [ebp - 0x878]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406485
mov dword [ebp - 4], 0xffffffff
jmp 0x406495
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret 8
Function at 0x406a90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00401c20
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x406ad5
mov eax, 1
jmp 0x406bad
mov eax, dword [0x1337de4]
push eax
push 0x59ccb4
mov ecx, dword [ebp + 8]
call fcn.00401bc0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [0x1337de4]
je 0x406ba4
mov edx, dword [ebp - 0x2c]
push edx
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401b70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401c20
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x406b51
lea ecx, [ebp - 0x28]
push ecx
call fcn.00406a90
add esp, 4
test eax, eax
jne 0x406b51
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401cd0
mov eax, dword [ebp - 0x30]
jmp 0x406bad
push 0
mov ecx, dword [ebp + 8]
call fcn.00401c20
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406b93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xb7
je 0x406b93
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401cd0
mov eax, dword [ebp - 0x38]
jmp 0x406bad
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401cd0
jmp 0x406ba8
xor eax, eax
jmp 0x406bad
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret
Function at 0x4075e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d3f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x13413f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 4
mov ecx, dword [ebp - 0x10]
push ecx
push 0x407880
push 0
push 0
call fcn.00500996
add esp, 0x18
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
lea ecx, [ebp - 0x30]
call fcn.00407400
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.004084e0
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
add eax, 0x24
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407400
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.004084e0
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x44
push edx
lea ecx, [ebp - 0x28]
call fcn.00407400
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.004084e0
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00407430
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00407430
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4078e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d468
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x13413f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
lea ecx, [ebp - 0x34]
call fcn.00407400
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.00407c10
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.00408430
push eax
lea ecx, [ebp - 0x14]
call fcn.00407bd0
movzx ecx, al
test ecx, ecx
je 0x407997
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x40796c
push 0
lea ecx, [ebp - 0x14]
call fcn.00407bb0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [ebp - 0x14]
call fcn.00407bb0
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.00407cb0
mov edx, dword [ebp - 0x10]
add edx, 0x24
push edx
lea ecx, [ebp - 0x30]
call fcn.00407400
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.00407c10
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.00408430
push eax
lea ecx, [ebp - 0x18]
call fcn.00407bd0
movzx eax, al
test eax, eax
je 0x4079f5
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.00407cb0
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00407400
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.00407c10
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.00408430
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407bd0
movzx edx, al
test edx, edx
je 0x407a53
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.00407cb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00407430
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00407430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407430
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x40af30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40af4c
mov dword [ebp - 4], 1
jmp 0x40af53
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40e8d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40e8e0
xor eax, eax
jmp 0x40ea7d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x40ea3e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x59e8c0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x59e8c0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x59e8c0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x59e8c0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x59e8c0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x59e8c0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x59e8c0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x59e8c0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x40e8e9
cmp dword [ebp + 0x10], 0
je 0x40ea77
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x59e8c0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x40ea44
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x40ea80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
movsx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax]
shr eax, 8
xor eax, dword [edx*4 + 0x59e8c0]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
shl edx, 0
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
and ecx, 0xff
mov eax, dword [ebp + 8]
add ecx, dword [eax + edx]
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
imul eax, dword [edx + ecx], 0x8088405
add eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, 4
shl eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 0x18
mov edx, dword [ebp + 8]
xor ecx, dword [edx + eax]
and ecx, 0xff
mov eax, 4
shl eax, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 8
xor eax, dword [ecx*4 + 0x59e8c0]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
pop ebp
ret

Function at 0x40fb70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x40fbbf
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40fbb5
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x40fc19
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x40fbdf
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f3650
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x411740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x41175a
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0xffffffff
je 0x411764
mov eax, 0x1000000
jmp 0x41187f
mov edx, dword [ebp - 8]
add edx, 0x244
push edx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 8]
add eax, 0x244
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [edx]
mov word [ebp - 4], ax
add dword [ebp - 0xc], 2
cmp word [ebp - 4], 0
jne 0x41178d
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx*2 + 0x242]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5c
je 0x4117f7
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
cmp edx, 0x2f
je 0x4117f7
mov eax, 2
shl eax, 0
mov ecx, 0x2f
mov edx, dword [ebp - 0x10]
mov word [edx + eax], cx
mov eax, 2
shl eax, 1
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov word [edx + eax], cx
cmp dword [ebp + 0x10], 1
jne 0x411837
mov eax, dword [ebp + 8]
push eax
call fcn.0040ae30
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x41181b
mov dword [ebp - 0x14], 1
jmp 0x411822
mov dword [ebp - 0x14], 0
mov cl, byte [ebp - 0x14]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x411837
mov eax, 0x2000000
jmp 0x41187f
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040f840
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41185d
mov eax, dword [ebp - 0x28]
jmp 0x41187f
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00410080
add esp, 4
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x41187d
mov eax, 0x200
jmp 0x41187f
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4140c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
movsx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax]
shr eax, 8
xor eax, dword [edx*4 + 0x5a0648]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
shl edx, 0
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
and ecx, 0xff
mov eax, dword [ebp + 8]
add ecx, dword [eax + edx]
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
imul eax, dword [edx + ecx], 0x8088405
add eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, 4
shl eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 0x18
mov edx, dword [ebp + 8]
xor ecx, dword [edx + eax]
and ecx, 0xff
mov eax, 4
shl eax, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 8
xor eax, dword [ecx*4 + 0x5a0648]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
pop ebp
ret
Function at 0x4142a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x2d]
test edx, edx
je 0x414382
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x4142f1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x40]
cmp edx, dword [ebp + 0xc]
jae 0x4142f1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004722b6
add esp, 4
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x3c], 0
jne 0x41431d
mov edx, dword [ebp + 0xc]
shl edx, 1
push edx
call fcn.004724c8
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.004f3650
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x414346
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x414379
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 8]
movzx ecx, byte [edx + eax]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x30
push edx
call fcn.004141a0
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ebp - 8]
mov byte [edx + ecx], al
jmp 0x41433d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x20], 0
je 0x4143dd
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 0x28]
jb 0x4143aa
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0x30000
xor eax, eax
jmp 0x414412
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x24]
push eax
call fcn.004f3650
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp + 0xc]
jmp 0x414412
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x414406
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
jmp 0x414412
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x414700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
call fcn.00401c20
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x414732
mov eax, dword [ebp - 4]
and eax, 0x10
jne 0x414732
mov dword [ebp - 8], 1
jmp 0x414739
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 4