joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451670
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ebx
push ebp
xor ebp, ebp
test dword [ecx + 0xc], 0x4000000
push esi
push edi
mov dword [esp + 0x14], ebp
je 0x4517b6
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x24]
test edi, edi
je 0x4516dc
jmp 0x4516a0
mov eax, dword [edi + 0x14]
test eax, eax
jle 0x4516cd
lea edx, [edi + 0x24]
mov esi, eax
lea esp, [esp]
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x4516bc
or eax, 0xffffffff
jmp 0x4516c3
mov eax, 1
shl eax, cl
or ebp, eax
add edx, 8
sub esi, 1
jne 0x4516b0
mov edi, dword [edi + 4]
test edi, edi
jne 0x4516a0
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
mov edi, dword [ecx]
mov eax, edi
test edi, edi
jne 0x4516e8
xor ebx, ebx
jmp 0x4516ff
cmp byte [edi], 0
je 0x4516f6
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x4516f0
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov ecx, dword [ecx + 0x44]
add ecx, 0x34
cmp dword [ecx + 0xc], 0
mov dword [esp + 0x18], ecx
je 0x451749
xor eax, eax
mov esi, ebx
mov edx, edi
test ebx, ebx
jle 0x451743
lea esp, [esp]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x50a200]
lea ebp, [eax*8]
xor ecx, ebp
dec esi
xor eax, ecx
inc edx
test esi, esi
jg 0x451720
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
xor edx, edx
div dword [ecx]
jmp 0x45174b
xor edx, edx
push edi
call fcn.0041b6a0
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4517b6
mov edi, dword [eax + 8]
cmp edi, ebx
je 0x4517b6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
mov dword [esp + 0x28], ebx
call fcn.0044ffc0
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, ebx
je 0x4517af
mov ecx, dword [eax + 4]
cmp ecx, ebx
jle 0x4517af
mov edx, dword [eax + 8]
mov esi, ecx
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x45179e
or eax, 0xffffffff
jmp 0x4517a5
mov eax, 1
shl eax, cl
or ebp, eax
add edx, 4
sub esi, 1
jne 0x451792
mov edi, dword [edi + 0xc]
cmp edi, ebx
jne 0x451761
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4517c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
push esi
test ebx, ebx
jne 0x4517f2
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.00450ff0
test eax, eax
jne 0x4517e7
cmp dword [esi + 0x24], eax
jne 0x4517e7
pop esi
pop ebx
add esp, 0x14
ret
pop esi
mov eax, 1
pop ebx
add esp, 0x14
ret
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x45183b
nop
mov esi, dword [edi + 0x14]
xor edx, edx
test esi, esi
jle 0x451834
lea ecx, [edi + 0x24]
lea esp, [esp]
mov eax, dword [ecx]
cmp dword [ebx + eax*4], 0
jge 0x4519c3
cmp eax, dword [ebp + 4]
jne 0x45182c
cmp dword [esp + 0x30], 0
jne 0x4519c3
inc edx
add ecx, 8
cmp edx, esi
jl 0x451810
mov edi, dword [edi + 4]
test edi, edi
jne 0x451800
mov edi, dword [ebp]
mov eax, edi
test edi, edi
jne 0x451848
xor ebx, ebx
jmp 0x45185f
cmp byte [edi], 0
je 0x451856
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x451850
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov ecx, dword [ebp + 0x44]
add ecx, 0x34
cmp dword [ecx + 0xc], 0
mov dword [esp + 0x18], ecx
je 0x4518a9
xor eax, eax
mov esi, ebx
mov edx, edi
test ebx, ebx
jle 0x4518a3
lea esp, [esp]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x50a200]
lea ebp, [eax*8]
xor ecx, ebp
dec esi
xor eax, ecx
inc edx
test esi, esi
jg 0x451880
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
xor edx, edx
div dword [ecx]
jmp 0x4518ab
xor edx, edx
push edi
call fcn.0041b6a0
add esp, 4
test eax, eax
je 0x4519b9
mov edx, dword [eax + 8]
mov dword [esp + 0x18], edx
test edx, edx
je 0x4519b9
jmp 0x4518d0
mov eax, dword [edx + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
test eax, eax
jle 0x4519aa
mov ecx, dword [ebp + 8]
lea esi, [edx + 0x28]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x10]
mov ebp, dword [esi]
xor esi, esi
test ecx, ecx
jle 0x451990
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 0xc]
lea esp, [esp]
test ebp, ebp
je 0x451962
mov ecx, dword [edi]
mov al, byte [ecx]
mov edx, ebp
test al, al
je 0x45193d
mov edi, edi
movzx ebx, byte [edx]
movzx eax, al
mov al, byte [eax + 0x50a200]
cmp al, byte [ebx + 0x50a200]
jne 0x45193d
mov al, byte [ecx + 1]
inc ecx
inc edx
test al, al
jne 0x451920
movzx ecx, byte [ecx]
movzx edx, byte [edx]
movzx eax, byte [ecx + 0x50a200]
movzx ecx, byte [edx + 0x50a200]
mov edx, dword [esp + 0x18]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
neg eax
sbb eax, eax
inc eax
jmp 0x451966
movzx eax, byte [edi + 0x15]
test eax, eax
je 0x451984
mov eax, dword [esp + 0x2c]
cmp dword [eax + esi*4], 0
jge 0x4519c3
mov eax, dword [esp + 0x28]
cmp esi, dword [eax + 4]
jne 0x451984
cmp dword [esp + 0x30], 0
jne 0x4519c3
inc esi
add edi, 0x18
cmp esi, ecx
jl 0x451910
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
add dword [esp + 0x10], 8
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x4518f5
mov ebp, dword [esp + 0x28]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x18], edx
test edx, edx
jne 0x4518d0
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x477400
Capabilities:
Reference sql statements

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x20]
push edi
mov ebx, ecx
je 0x47745d
push eax
push str.PRAGMA__Q.page_size
call fcn.00419c70
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
push ebx
mov ecx, edi
call fcn.00477340
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x47747f
mov ecx, dword [esi + 0x18]
mov eax, dword [esp + 0x10]
imul ecx, ecx, 0x33
add eax, 0xffffffc0
add ecx, 4
cmp ecx, eax
mov dword [esi + 0x10], eax
jge 0x47747f
push edi
mov dword [esi + 0x10], ecx
call fcn.00418600
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
mov edx, dword [esi + 0x24]
push edx
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.00419c70
add esi, 0x10
mov edi, eax
push esi
push ebx
mov ecx, edi
call fcn.00477340
add esp, 0x14
mov ebx, eax
push edi
call fcn.00418600
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x48a6d0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0xc3d2e1f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov esp, ebp
pop ebp
ret

Function at 0x48d190
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec720
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x51eed4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x48d20c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x48d20c
mov byte [ebp - 0x11], 0
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [edx + 4], 0
jmp 0x48d229
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov cl, 0x20
call fcn.004c2a30
mov ecx, dword [ebp - 0x18]
xor esi, esi
or eax, ecx
or edx, esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x48d23c
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48d6c0
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec799
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1018
call fcn.004c0dd0
mov eax, dword [0x51eed4]
xor eax, ebp
mov dword [ebp - 0x20], 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 - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0x8000027
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x48d747
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x48d7de
mov dword [ebp - 0x1028], 0x51e218
push 0
lea edx, [ebp - 0x1024]
push edx
push 0x1000
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x48d7de
cmp dword [ebp - 0x1024], 0
je 0x48d7de
push esi
push edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edi, dword [ebp - 0x1028]
lea esi, [ebp - 0x1020]
mov ebx, dword [ebp - 0x1024]
lea edx, [esi + ebx]
xor eax, eax
mov bl, byte [esi]
mov al, cl
inc esi
xor al, bl
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
cmp edx, esi
jne 0x48d79e
pop edi
pop esi
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
push 0
lea edx, [ebp - 0x1024]
push edx
push 0x1000
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
jmp 0x48d773
jmp 0x48d7f4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x48d80b
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
not ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004be1d6
mov esp, ebp
pop ebp
ret
Function at 0x48d8a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
add eax, 0x16e1
mov ecx, dword [ebp + 0xc]
adc ecx, 0
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0048db70
test eax, eax
jne 0x48d907
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_At_SetSectorPosition__:__d
call fcn.004c2a71
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x261c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 0x261c], 0
xor al, al
jmp 0x48d9e0
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x48d973
push 0
mov edx, dword [ebp - 4]
add edx, 0x208
push edx
mov ecx, dword [ebp - 4]
call fcn.0048e180
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x261c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48d971
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4f3128
call fcn.004c2a71
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x261c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 0x261c], 0
xor al, al
jmp 0x48d9e0
jmp 0x48d9de
movzx eax, byte [ebp + 0x14]
cmp eax, 1
jne 0x48d9de
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x208
push ecx
mov ecx, dword [ebp - 4]
call fcn.0048e1d0
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x261c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48d9de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4f3140
call fcn.004c2a71
add esp, 8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x261c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x261c], 0
xor al, al
jmp 0x48d9e0
mov al, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48da60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x261c], 0
jne 0x48da83
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x261c], 0xffffffff
je 0x48db5b
push 0
push 0
push 0x2dc200
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x261c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x48dad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_At_SetFilePointer__:__d
call fcn.004c2a71
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x261c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 0x261c], 0
xor al, al
jmp 0x48db5d
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x208
push ecx
push 0x200
mov edx, dword [ebp - 4]
add edx, 8
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x261c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48db3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_At_ReadFile__:__d
call fcn.004c2a71
add esp, 8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x261c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x261c], 0
xor al, al
jmp 0x48db5d
push 0x200
mov edx, dword [ebp - 4]
add edx, 8
push edx
mov eax, dword [ebp - 4]
add eax, 0x218
push eax
call fcn.004c0830
add esp, 0xc
mov al, 1
jmp 0x48db5d
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x48e270
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
xor eax, eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
je 0x48e2d3
mov ecx, dword [ebp + 0xc]
xor edx, edx
push edx
push ecx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004c0530
mov word [ebp - 0xc], ax
movsx edx, word [ebp - 0xc]
test edx, edx
jle 0x48e2d1
movsx eax, word [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
xor edx, edx
add ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
adc eax, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
jmp 0x48e2e1
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x49ef60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x49ef9a
jmp 0x49efcb
mov eax, dword [ebp + 0x10]
push eax
call fcn.004c1e6c
add esp, 4
lea ecx, [eax + eax + 1]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x49efe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 8]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x49f01a
mov eax, dword [ebp + 0x10]
jmp 0x49f04b
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x49f03e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x49f080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x49f0ba
jmp 0x49f0dc
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x49fa60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x94], 0
je 0x49fa81
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x98], 0
ja 0x49fa85
xor al, al
jmp 0x49fae9
mov dword [ebp - 4], 0
push 0x4f2c04
mov ecx, dword [ebp + 8]
call fcn.00480e10
push eax
lea edx, [ebp - 4]
push edx
call fcn.004c126a
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x49fae7
cmp dword [ebp - 4], 0
je 0x49fae7
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x98]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x94]
push ecx
call fcn.004c110b
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.004c0f2d
add esp, 4
mov al, 1
jmp 0x49fae9
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x49fdc0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
je 0x49fdda
mov al, 1
jmp 0x49fddc
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x4a2aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee938
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x51eed4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x3c], 0
je 0x4a2ae0
mov ecx, dword [ebp - 0x64]
movzx edx, byte [ecx + 0x42]
test edx, edx
jne 0x4a2aec
mov al, 1
jmp 0x4a2c94
mov dword [ebp - 0x10], 8
call fcn.004a0840
movzx eax, ax
push eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x64]
mov eax, dword [edx + 4]
call eax
mov word [ebp - 0x3a], ax
call fcn.004a0840
mov word [ebp - 0x3c], ax
lea ecx, [ebp - 0x3a]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.004a08e0
add esp, 8
movzx eax, al
test eax, eax
je 0x4a2b34
xor al, al
jmp 0x4a2c94
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040c160
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.00487b20
mov ecx, eax
call fcn.004a2d60
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00480e30
add esi, eax
push esi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00487b20
mov ecx, eax
call fcn.004a2d60
push eax
mov ecx, dword [ebp - 0x64]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x64]
mov ecx, dword [edx + 0x3c]
call fcn.004a2cb0
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x4a2baf
cmp dword [ebp - 0x68], 1
je 0x4a2bb6
cmp dword [ebp - 0x68], 3
je 0x4a2c50
jmp 0x4a2c68
mov eax, dword [ebp - 0x64]
mov byte [eax + 0x42], 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00487b20
mov ecx, eax
call fcn.004a2d60
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x4a2c19
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00487b20
mov ecx, eax
call fcn.004a2d60
push eax
call fcn.004c110b
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x4a2c19
mov byte [ebp - 0x5d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402bb0
mov al, byte [ebp - 0x5d]
jmp 0x4a2c94
mov ecx, dword [ebp - 0x64]
movzx edx, byte [ecx + 0x42]
test edx, edx
jne 0x4a2c3c
mov byte [ebp - 0x5e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402bb0
mov al, byte [ebp - 0x5e]
jmp 0x4a2c94
cmp dword [ebp - 0x38], 0
jne 0x4a2c4e
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00409410
jmp 0x4a2c80
mov byte [ebp - 0x5f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402bb0
mov al, byte [ebp - 0x5f]
jmp 0x4a2c94
mov byte [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402bb0
mov al, byte [ebp - 0x60]
jmp 0x4a2c94
jmp 0x4a2b47
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004be1d6
mov esp, ebp
pop ebp
ret
Function at 0x4a5d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eec68
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x51eed4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x3c], 0
je 0x4a5da0
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x4a5dac
mov al, 1
jmp 0x4a5f4f
mov dword [ebp - 0x10], 8
call fcn.00405fe0
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00405fe0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00405fc0
add esp, 8
movzx eax, al
test eax, eax
je 0x4a5def
xor al, al
jmp 0x4a5f4f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040c160
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.00487b20
mov ecx, eax
call fcn.004a2d60
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00480e30
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00487b20
mov ecx, eax
call fcn.004a2d60
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x3c]
call fcn.004a2cb0
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4a5e6a
cmp dword [ebp - 0x6c], 1
je 0x4a5e71
cmp dword [ebp - 0x6c], 3
je 0x4a5f0b
jmp 0x4a5f23
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00487b20
mov ecx, eax
call fcn.004a2d60
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x4a5ed4
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.00487b20
mov ecx, eax
call fcn.004a2d60
push eax
call fcn.004c110b
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x4a5ed4
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402bb0
mov al, byte [ebp - 0x61]
jmp 0x4a5f4f
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x4a5ef7
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402bb0
mov al, byte [ebp - 0x62]
jmp 0x4a5f4f
cmp dword [ebp - 0x38], 0
jne 0x4a5f09
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00409410
jmp 0x4a5f3b
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402bb0
mov al, byte [ebp - 0x63]
jmp 0x4a5f4f
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402bb0
mov al, byte [ebp - 0x64]
jmp 0x4a5f4f
jmp 0x4a5e02
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004be1d6
mov esp, ebp
pop ebp
ret