joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b37d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, edx
mov esi, dword [0x10018b3c]
imul ebp, ecx, 0x2c
mov ecx, dword [esi + ebp]
movzx eax, byte [esi + ebp + 0x14]
xor edx, edx
test al, 1
sete dl
lea edx, [edx + edx*4]
lea edi, [ecx + edx]
add edi, 0xfffffffb
and eax, 1
lea eax, [eax*2 + 5]
mov ecx, esp
push ecx
push 0x40
mov dword [esp + 0x10], eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000b3f3
lea ecx, [esi + ebp]
add ecx, 0x14
test ebx, ebx
mov dword [esp + 4], ecx
je 0x1000b3fa
mov byte [edi], 0xe9
mov eax, dword [esi + ebp + 4]
sub eax, edi
add eax, 0xfffffffb
mov dword [edi + 1], eax
test byte [ecx], 1
je 0x1000b419
add esi, ebp
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1000b419
mov eax, 0xa
jmp 0x1000b455
test byte [ecx], 1
lea eax, [esi + ebp + 0xc]
jne 0x1000b40f
mov cl, byte [eax + 4]
mov byte [edi + 4], cl
mov eax, dword [eax]
mov dword [edi], eax
jmp 0x1000b419
mov ecx, dword [eax]
mov eax, dword [eax + 3]
mov dword [edi + 3], eax
mov dword [edi], ecx
mov eax, esp
push eax
push dword [esp + 4]
mov esi, dword [esp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esp + 4]
mov al, byte [edx]
and bl, 1
mov ecx, ebx
add cl, bl
and al, 0xf9
or al, cl
shl bl, 2
or bl, al
mov byte [edx], bl
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000b45d
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x1000b4b1
push ebp
push ebx
push edi
push esi
mov esi, ecx
cmp dword [ecx + 8], 0
je 0x1000b49e
xor ebx, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
push dword [eax + ebx*4]
push 0
push 0x5a
call ebp
test eax, eax
je 0x1000b496
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x1000b477
mov eax, dword [esi]
push eax
push 0
push dword [0x10018b38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000bd30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x1000bd41
jmp dword [eax*4 + 0x10015e0c]
cmp dword [0x100181a4], 0
je 0x1000be50
push 0x100181a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x100181c0]
test edi, edi
je 0x1000be45
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000bd8b
mov edi, dword [edi + 8]
test edi, edi
je 0x1000be45
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x1000bd80
test esi, esi
je 0x1000bd80
mov ecx, dword [edi + 4]
call dword [0x1001647c]
push esi
call ecx
add esp, 4
jmp 0x1000bd80
call fcn.10011350
jmp case.default.0x1000bd41
cmp dword [0x100181a4], 0
je case.default.0x1000bd41
push 0x100181a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x100181c0]
test edi, edi
je 0x1000be38
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000bdf7
mov edi, dword [edi + 8]
test edi, edi
je 0x1000be38
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x1000bdf0
test esi, esi
je 0x1000bdf0
mov ecx, dword [edi + 4]
call dword [0x1001647c]
push esi
call ecx
add esp, 4
jmp 0x1000bdf0
cmp dword [0x100181a4], 0
jne 0x1000be2c
push 0x100181a8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x100181a4], 1
jmp case.default.0x1000bd41
push 0x100181a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x1000bd41
push 0x100181a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x100181a4]
cmp eax, 1
jne case.default.0x1000bd41
mov eax, dword [0x100181c0]
test eax, eax
je 0x1000be82
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x1000be70
mov dword [0x100181c0], 0
mov dword [0x100181a4], 0
push 0x100181a8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000bfb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x10015dfc]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x1000c016
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x1000c016
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x1000c016
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x1000c016
mov edx, dword [esp + 0xc]
sub edx, dword [0x10015dfc]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x1000c006
add esi, 0x28
dec ecx
je 0x1000c016
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x1000c000
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x1000c000
mov eax, esi
pop esi
pop edi
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x406330
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d410
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.004f3400
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.00472312
mov esp, ebp
pop ebp
ret 8
Function at 0x406a90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d208
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 [0x1337dc4]
push eax
push 0x59cd6c
mov ecx, dword [ebp + 8]
call fcn.00401bc0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [0x1337dc4]
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.00472312
mov esp, ebp
pop ebp
ret
Function at 0x4075e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d528
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.00500b16
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 0x54d598
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 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 + 0x59e978]
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 + 0x59e978]
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.004f37d0
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 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.00472365
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.00472577
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.004f37d0
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.004f37d0
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 0x416e10
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54da2e
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x90]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00401c20
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x417023
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
call fcn.00404890
shl eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00401c20
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.00401c20
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
push 0x5a1b6c
lea ecx, [ebp - 0x58]
call fcn.00404c20
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x58]
call fcn.00404a20
push 0x5a1b70
lea ecx, [ebp - 0x58]
call fcn.004064c0
lea ecx, [ebp - 0x58]
call fcn.00404890
shl eax, 1
push eax
lea ecx, [ebp - 0x58]
call fcn.00401c20
push eax
push 1
push 0x5a1b78
mov ecx, dword [ebp + 8]
call fcn.00401c20
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
push 0x5a1b90
lea ecx, [ebp - 0x40]
call fcn.00404c20
mov byte [ebp - 4], 1
push 0x5a1bc0
lea ecx, [ebp - 0x28]
call fcn.00404c20
mov byte [ebp - 4], 2
mov dword [ebp - 0x8c], 0
jmp 0x416f3f
mov eax, dword [ebp - 0x8c]
add eax, 1
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 2
jge 0x416fdf
mov ecx, dword [ebp + 0x10]
push ecx
push 0x22
lea edx, [ebp - 0x88]
push edx
call fcn.00419470
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 3
push 0x5a1bf4
mov ecx, dword [ebp - 0x98]
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.00414be0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00401cd0
lea ecx, [ebp - 0x70]
call fcn.00404890
shl eax, 1
push eax
lea ecx, [ebp - 0x70]
call fcn.00401c20
push eax
push 1
push 0
imul eax, dword [ebp - 0x8c], 0x18
lea ecx, [ebp + eax - 0x40]
call fcn.00401c20
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
lea ecx, [ebp - 0x70]
call fcn.00401cd0
jmp 0x416f30
push 0
push 0
push 1
mov ecx, dword [ebp + 8]
call fcn.00401c20
push eax
push 0x5a1c04
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov byte [ebp - 4], 0
push fcn.00401cd0
push 2
push 0x18
lea ecx, [ebp - 0x40]
push ecx
call fcn.0047280b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472312
mov esp, ebp
pop ebp
ret