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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x540c80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x545d90]
push edi
lea eax, [esi + 2]
lea ecx, [esi + 1]
imul eax, ecx
imul eax, esi
cdq
mov edi, 0x11
idiv edi
cmp edx, 0xc
jne 0x4470e5
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [0x545d90]
cmp byte [0x54704d], 0
jne 0x4471b9
xor eax, eax
mov dword [ebp - 0x34], 0x70009
mov dword [ebp - 0x30], 0x28001d
mov dword [ebp - 0x2c], 0x8001b
mov dword [ebp - 0x28], 0xe0011
mov dword [ebp - 0x24], 0x2b0011
mov dword [ebp - 0x20], 0x1f0003
mov dword [ebp - 0x1c], 0xa0001
mov dword [ebp - 0x18], 0x2a000e
mov dword [ebp - 0x14], 0x140036
mov dword [ebp - 0x10], 0x1c
mov dword [ebp - 0xc], 0x41005c
mov word [ebp - 8], ax
jmp 0x447150
movzx ecx, byte [eax + 0x542360]
xor cx, word [ebp + eax*2 - 0x34]
add eax, 2
mov word [eax*2 + 0x542518], cx
movzx ecx, byte [eax + 0x54235f]
xor cx, word [ebp + eax*2 - 0x36]
mov word [eax*2 + 0x54251a], cx
cmp eax, 0x16
jl 0x447150
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 0xe
jne 0x4471b2
lea ecx, [edx - 0xd]
cmp esi, ecx
jle 0x4471ac
mov eax, esi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, esi
jl 0x4471a0
mov dword [0x545d90], ecx
mov byte [0x54704d], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 0x54251c
pop esi
call fcn.004af5ba
mov esp, ebp
pop ebp
ret

Function at 0x4471d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x540c80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x54706a], 0
jne 0x4472c3
mov dword [ebp - 0x38], 0x140000
mov dword [ebp - 0x34], 0x3a0019
mov dword [ebp - 0x30], 0x20001
mov dword [ebp - 0x2c], 0x1a0001
mov dword [ebp - 0x28], 0x60004
mov dword [ebp - 0x24], 0x50001
mov dword [ebp - 0x20], 0x20000
mov dword [ebp - 0x1c], 0x80034
mov dword [ebp - 0x18], 0x13000d
mov dword [ebp - 0x14], 0x11
mov dword [ebp - 0x10], 0x90039
mov dword [ebp - 0xc], 0x10009
mov dword [ebp - 8], 0x1d
xor eax, eax
lea ebx, [ebx]
movzx ecx, byte [eax + 0x542360]
xor cx, word [ebp + eax*2 - 0x38]
add eax, 5
mov word [eax*2 + 0x542882], cx
movzx ecx, byte [eax + 0x54235c]
xor cx, word [ebp + eax*2 - 0x40]
mov word [eax*2 + 0x542884], cx
movzx ecx, byte [eax + 0x54235d]
xor cx, word [ebp + eax*2 - 0x3e]
mov word [eax*2 + 0x542886], cx
movzx ecx, byte [eax + 0x54235e]
xor cx, word [ebp + eax*2 - 0x3c]
mov word [eax*2 + 0x542888], cx
movzx ecx, byte [eax + 0x54235f]
xor cx, word [ebp + eax*2 - 0x3a]
mov word [eax*2 + 0x54288a], cx
cmp eax, 0x19
jl 0x447250
mov byte [0x54706a], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x54288c
call fcn.004af5ba
mov esp, ebp
pop ebp
ret
Function at 0x4472e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x540c80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x54705e], 0
jne 0x447362
mov dword [ebp - 0x2c], 0x230038
mov dword [ebp - 0x28], 0x90005
mov dword [ebp - 0x24], 0xf001b
mov dword [ebp - 0x20], 0x1a0021
mov dword [ebp - 0x1c], 0x2d0046
mov dword [ebp - 0x18], 0x5c0016
mov dword [ebp - 0x14], 0x130036
mov dword [ebp - 0x10], 0x70008
mov dword [ebp - 0xc], 0x30007
mov dword [ebp - 8], 3
xor eax, eax
movzx ecx, byte [eax + 0x542360]
xor cx, word [ebp + eax*2 - 0x2c]
inc eax
mov word [eax*2 + 0x54258e], cx
cmp eax, 0x13
jl 0x447341
mov byte [0x54705e], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x542590
call fcn.004af5ba
mov esp, ebp
pop ebp
ret

Function at 0x447380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x540c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x545d90]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x11
idiv ecx
cmp edx, 0xc
jne 0x4473d1
push esi
lea eax, [ecx + 0x33]
mov esi, 0x3f
test esi, esi
je 0x4473c9
cdq
idiv esi
mov ecx, esi
mov eax, ecx
mov esi, edx
test ecx, ecx
jne 0x4473b8
add eax, esi
mov dword [0x545d90], eax
pop esi
cmp byte [0x54704b], 0
jne 0x44747f
xor eax, eax
mov dword [ebp - 0x28], 0x3001e
mov dword [ebp - 0x24], 0x1b
mov dword [ebp - 0x20], 0x18001a
mov dword [ebp - 0x1c], 0x120044
mov dword [ebp - 0x18], 0xc0006
mov dword [ebp - 0x14], 0x510001
mov dword [ebp - 0x10], 0x7000b
mov dword [ebp - 0xc], 0x10006
mov word [ebp - 8], ax
lea esp, [esp]
movzx ecx, byte [eax + 0x542360]
xor cx, word [ebp + eax*2 - 0x28]
add eax, 4
mov word [eax*2 + 0x542b64], cx
movzx ecx, byte [eax + 0x54235d]
xor cx, word [ebp + eax*2 - 0x2e]
mov word [eax*2 + 0x542b66], cx
movzx ecx, byte [eax + 0x54235e]
xor cx, word [ebp + eax*2 - 0x2c]
mov word [eax*2 + 0x542b68], cx
movzx ecx, byte [eax + 0x54235f]
xor cx, word [ebp + eax*2 - 0x2a]
mov word [eax*2 + 0x542b6a], cx
cmp eax, 0x10
jl 0x447420
mov byte [0x54704b], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x542b6c
call fcn.004af5ba
mov esp, ebp
pop ebp
ret
Function at 0x4475b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x540c80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x54703b], 0
jne 0x44766f
xor eax, eax
mov dword [ebp - 0x28], 0x120021
mov dword [ebp - 0x24], 0xb000c
mov dword [ebp - 0x20], 0x1e0024
mov dword [ebp - 0x1c], 0x1000b
mov dword [ebp - 0x18], 0x100011
mov dword [ebp - 0x14], 0x510011
mov dword [ebp - 0x10], 0x30016
mov dword [ebp - 0xc], 0x20007
mov word [ebp - 8], ax
jmp 0x447610
movzx ecx, byte [eax + 0x542360]
xor cx, word [ebp + eax*2 - 0x28]
add eax, 4
mov word [eax*2 + 0x5425d0], cx
movzx ecx, byte [eax + 0x54235d]
xor cx, word [ebp + eax*2 - 0x2e]
mov word [eax*2 + 0x5425d2], cx
movzx ecx, byte [eax + 0x54235e]
xor cx, word [ebp + eax*2 - 0x2c]
mov word [eax*2 + 0x5425d4], cx
movzx ecx, byte [eax + 0x54235f]
xor cx, word [ebp + eax*2 - 0x2a]
mov word [eax*2 + 0x5425d6], cx
cmp eax, 0x10
jl 0x447610
mov byte [0x54703b], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x5425d8
call fcn.004af5ba
mov esp, ebp
pop ebp
ret
Function at 0x44b2b0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dbb38
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x540c80]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x540c80]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
push 0x20028
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call fcn.00423a30
mov edx, esi
mov ecx, eax
call fcn.00436680
test eax, eax
jne 0x44b342
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x30]
call fcn.00443340
mov dword [esp + 0x58], 0
push eax
call fcn.00444980
push eax
lea ecx, [esp + 0x18]
call fcn.00447760
push 0x52accc
lea eax, [esp + 0x14]
push eax
call fcn.004b74bb
lea eax, [esp + 0x18]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x44b39a
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x30]
call fcn.00443340
mov dword [esp + 0x58], 1
push eax
call fcn.00445080
push eax
lea ecx, [esp + 0x18]
call fcn.00447760
push 0x52accc
lea eax, [esp + 0x14]
push eax
call fcn.004b74bb
mov esi, dword [0x545d90]
mov eax, esi
imul eax, esi
cdq
mov ecx, 0x17
idiv ecx
cmp edx, 0xb
jne 0x44b3ec
push 0x28
call fcn.004aed89
add esp, 4
mov edi, eax
xor esi, esi
call fcn.004aff67
add eax, dword [0x545d90]
inc esi
mov dword [edi + esi*4 - 4], eax
cmp esi, 0xa
jl 0x44b3c0
mov eax, dword [edi + 0x24]
push edi
mov dword [0x545d90], eax
call fcn.004afe1b
mov esi, dword [0x545d90]
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 2
mov dword [esp + 0x2c], eax
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x11
idiv ecx
mov dword [esp + 0x20], 1
cmp edx, 0xc
jne 0x44b441
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x545d90], edx
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0xc]
test eax, eax
jne 0x44b49e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x30]
call fcn.00443340
mov dword [esp + 0x58], 2
push eax
call fcn.00443e40
push eax
lea ecx, [esp + 0x18]
call fcn.00447760
push 0x52accc
lea eax, [esp + 0x14]
push eax
call fcn.004b74bb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004af5ba
mov esp, ebp
pop ebp
ret 4
Function at 0x44c9b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc1d2
mov eax, dword fs:[0]
push eax
sub esp, 0xc50
mov eax, dword [0x540c80]
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 edi, ecx
mov ebx, dword [ebp + 8]
push 0x5c
push dword [edi + 0xdc]
call fcn.004b1e24
add esp, 8
test eax, eax
jne 0x44c9fc
or eax, 0xffffffff
jmp 0x44ca04
sub eax, dword [edi + 0xdc]
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0xc58]
push eax
lea ecx, [edi + 0xdc]
call fcn.00422dc0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc5c]
push eax
push 0x2001f
push 0
push dword [edi + 0xdc]
push dword [edi + 0x194]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44caa7
call fcn.00444f30
push eax
lea edx, [ebp - 0xc58]
lea ecx, [ebp - 0xc54]
call fcn.00418660
add esp, 4
mov byte [ebp - 4], 1
push 0x20
push ebx
push 3
push 0
push dword [eax]
push dword [ebp - 0xc5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0xc54]
add esi, 0xfffffff0
or edx, 0xffffffff
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ca9c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x44caa7
mov bl, 1
jmp 0x44cb83
call fcn.00445620
push eax
lea ecx, [ebp - 0xc50]
call fcn.004025a0
mov byte [ebp - 4], 3
lea eax, [ebp - 0xc50]
push eax
mov ecx, edi
call fcn.0044d6c0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xc50]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44caee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x545d90]
mov eax, ecx
imul eax, ecx
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x44cb05
dec eax
or eax, 0xfffffff8
inc eax
cmp eax, 3
jne 0x44cb81
xor ebx, ebx
lea eax, [ebp - 0xc4c]
xor edx, edx
mov dword [ebp - 0xc54], edx
mov dword [ebp - 0xc50], eax
lea edi, [edx + 1]
mov eax, ecx
cdq
lea esi, [ebx + 1]
idiv esi
mov eax, ecx
sub eax, ebx
mov esi, edx
imul esi, eax
mov eax, ecx
cdq
idiv edi
add esi, eax
sub esi, dword [ebp - 0xc54]
push esi
push 0x526a7c
call fcn.004b05f1
mov eax, dword [ebp - 0xc50]
mov edx, edi
add eax, 4
add esp, 8
mov dword [ebp - 0xc54], edi
mov dword [ebp - 0xc50], eax
cmp edx, 0x1d
jge 0x44cb73
mov ecx, dword [0x545d90]
jmp 0x44cb20
inc ebx
cmp ebx, 0x1b
jge 0x44cb81
mov ecx, dword [0x545d90]
jmp 0x44cb12
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0xc58]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44cbaa
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.004af5ba
mov esp, ebp
pop ebp
ret 4
Function at 0x450ab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd05c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push edi
mov eax, dword [0x540c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
mov dword [ebx], 0x528a24
mov dword [ebx + 4], eax
mov byte [ebx + 8], 0
xorps xmm0, xmm0
movq qword [ebx + 0xc], xmm0
push 1
movq qword [ebx + 0x14], xmm0
push 0
mov dword [ebx + 0x1c], 0
call edi
mov dword [ebx + 0x20], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov byte [ebp - 4], 1
lea ecx, [ebx + 0x34]
push 0x1000
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.00424880
mov byte [ebp - 4], 2
push 0
push 0
mov byte [ebx + 0x40], 0
xorps xmm0, xmm0
movq qword [ebx + 0x44], xmm0
push 1
movq qword [ebx + 0x4c], xmm0
push 0
mov dword [ebx + 0x54], 0
call edi
mov dword [ebx + 0x58], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov byte [ebp - 4], 4
lea eax, [ebx + 0x74]
mov dword [ebx + 0x6c], 0
push eax
mov dword [ebx + 0x70], 0x528988
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 5
lea ecx, [ebx + 0x8c]
push ecx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], ecx
call fcn.0042e130
mov byte [ebp - 4], 8
push 0
push 0
push 1
push 0
call edi
mov dword [ebx + 0xa0], eax
mov byte [ebp - 4], 9
lea eax, [ebx + 0xa8]
push eax
mov dword [ebx + 0xa4], 0x528988
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 0xa
cmp dword [ebx + 0xa0], 0
mov byte [ebx + 0xc0], 1
jne 0x450c47
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], str.Failure_to_initialize_channel
call fcn.004b2892
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x1c], 0x5289d8
mov byte [ebp - 4], 0xa
push 0x52adb4
lea eax, [ebp - 0x1c]
push eax
call fcn.004b74bb
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x58]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x54], ecx
test eax, eax
je 0x450c77
test ecx, ecx
je 0x450c77
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], str.Failed_creating_channel_events
call fcn.004b2892
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x1c], 0x5289d8
mov byte [ebp - 4], 0xa
push 0x52adb4
lea eax, [ebp - 0x1c]
push eax
call fcn.004b74bb
int3
Function at 0x4511a0
Capabilities:
Get disk size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd498
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x540c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 8], 0
je 0x4511dd
call fcn.00451370
test al, al
je 0x451353
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1000
push dword [esi + 0x34]
mov dword [ebp - 0x10], 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x451251
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4512c9
cmp eax, 0x3e5
je 0x45124d
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], str.Channel_read_failure
call fcn.004b2892
mov dword [ebp - 4], 2
mov dword [ebp - 0x2c], 0x5289d8
mov dword [ebp - 4], 0xffffffff
push 0x52adb4
lea eax, [ebp - 0x2c]
push eax
call fcn.004b74bb
mov byte [esi + 8], 1
cmp byte [esi + 8], 0
jne 0x451302
mov ebx, dword [esi + 0x2c]
sub ebx, dword [esi + 0x28]
mov eax, dword [ebp - 0x10]
add eax, ebx
push eax
lea ecx, [esi + 0x28]
call fcn.00424880
mov ecx, dword [0x545d90]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 0x10
jne 0x451298
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push dword [ebp - 0x10]
mov eax, dword [esi + 0x28]
push dword [esi + 0x34]
add eax, ebx
push eax
call fcn.004b4120
add esp, 0xc
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.004b28f5
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x5289d8
mov dword [ebp - 4], 1
mov dword [ebp - 0x20], 0x528a38
mov dword [ebp - 4], 0xffffffff
push 0x52ad88
lea eax, [ebp - 0x20]
push eax
call fcn.004b74bb
mov esi, dword [0x545d90]
mov ecx, 0x17
lea eax, [esi + 1]
imul eax, esi
cdq
idiv ecx
cmp edx, 5
jne 0x451353
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x63]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004aed89
push eax
call fcn.004afe1b
add esp, 8
xor al, al
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 0x452c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
mov ebx, edx
mov edi, ecx
cmp dword [ebp + 8], esi
jle 0x452cba
sub ebx, edi
mov dword [ebp - 4], 0x89
jmp 0x452ca0
mov eax, esi
cdq
idiv dword [ebp - 4]
lea ecx, [esi + edi]
inc esi
mov al, byte [edx + str.When_thou_tillest_the_ground__it_shall_not_henceforth_yield_unto_thee_her_strength__a_fugitive_and_a_vagabond_shalt_thou_be_in_the_earth.]
xor al, byte [ebx + ecx]
mov byte [ecx], al
cmp esi, dword [ebp + 8]
jl 0x452ca0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4560d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dde42
mov eax, dword fs:[0]
push eax
mov eax, 0x1018
call fcn.004b4820
mov eax, dword [0x540c80]
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 ebx, ecx
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push str._ver
lea ecx, [ebp - 0x1018]
call fcn.00418660
mov dword [ebp - 4], 0
push 0xfff
lea eax, [ebp - 0x100f]
push 0
push eax
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1010], 0
call fcn.004b4a90
add esp, 0x10
lea eax, [ebp - 0x1024]
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x101c]
push eax
push 0
push dword [ebp - 0x1018]
mov dword [ebp - 0x1024], 0x1000
push dword [esi]
mov dword [ebp - 0x101c], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or edi, 0xffffffff
test eax, eax
jne 0x456207
cmp dword [ebp - 0x101c], 3
jne 0x456207
cmp dword [ebp - 0x1024], 0x1000
je 0x456207
mov eax, dword [ebp - 0x1010]
inc eax
push 4
mov dword [ebp - 0x1020], eax
lea eax, [ebp - 0x1020]
push eax
push 3
push 0
push dword [ebp - 0x1018]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x456200
push str.error_writing_ver
lea ecx, [ebp - 0x1014]
call fcn.00403560
mov byte [ebp - 4], 4
mov ecx, dword [ebx + 0x20]
lea eax, [ebp - 0x1014]
push eax
call fcn.0044d6c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1014]
call fcn.00402650
jmp 0x456290
mov bl, 1
jmp 0x456292
mov eax, dword [0x5406d8]
mov ecx, 0x5406d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1014], eax
mov byte [ebp - 4], 1
mov eax, str.error_reading_ver
test eax, 0xffff0000
jne 0x45624a
movzx esi, ax
mov ecx, esi
call fcn.00401b90
test eax, eax
je 0x45625a
push esi
push eax
lea ecx, [ebp - 0x1014]
call fcn.00402a00
jmp 0x45625a
push str.error_reading_ver
lea ecx, [ebp - 0x1014]
call fcn.00403700
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x20]
lea eax, [ebp - 0x1014]
push eax
call fcn.0044d6c0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1014]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456290
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1018]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4562b6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.004af5ba
mov esp, ebp
pop ebp
ret 8
Function at 0x456720
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x456739
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456745
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x456740
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x456d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de166
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x540c80]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x456ddc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x456ddc
call fcn.00404750
mov edi, eax
jmp 0x456f07
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x456dff
call fcn.00404750
jmp 0x456efa
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x456e1d
call fcn.00404750
jmp 0x456efa
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x420], edi
lea ecx, [edi + 1]
cmp ecx, edi
jae 0x456e3e
mov edi, 0x8007000e
jmp 0x456efc
mov byte [ebp - 4], 2
xor eax, eax
shld eax, ecx, 1
add ecx, ecx
test eax, eax
jne 0x456e85
cmp ecx, 0xffffffff
ja 0x456e85
cmp ecx, 0x400
jbe 0x456e70
push ecx
lea ecx, [ebp - 0x418]
call fcn.00459020
mov dword [ebp - 4], 1
jmp 0x456eae
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x456eae
push 0x80070216
call fcn.00401a60
mov eax, 0x456e95
ret
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x456ebf
mov edi, 0x8007000e
jmp 0x456efc
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x456eda
call fcn.00404750
jmp 0x456efa
xor edx, edx
mov eax, dword [ebp - 0x418]
mov word [eax + ecx*2], dx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00457c70
mov edi, eax
test esi, esi
je 0x456f07
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x456f24
lea ecx, [ebp - 0x418]
call fcn.00459010
mov dword [ebp - 4], 0xffffffff
mov eax, edi
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.004af5ba
mov esp, ebp
pop ebp
ret 0x10