joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424064
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
push ecx
push 0x403130
push 0x40414c
mov dword [ebp - 0x424], eax
mov ebx, edx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], esi
push 0x103
push eax
call fcn.00418481
add esp, 0x14
lea eax, [ebp - 0x420]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42429f
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x418], 1
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x41c], 0x208
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push 0x406578
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4241c2
cmp dword [ebp - 0x418], 1
je 0x424131
cmp dword [ebp - 0x418], 2
jne 0x4241c2
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x42413a
sub ecx, edx
sar ecx, 1
cmp ecx, 5
jbe 0x4241c2
cmp dword [ebp - 0x418], 2
jne 0x424197
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x424293
lea eax, [ebp - 0x414]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x20c]
call fcn.00418392
test eax, eax
js 0x424293
push 1
push ecx
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x20c]
call fcn.0042834b
test eax, eax
js 0x4241c2
lea ecx, [ebp - 0x414]
call fcn.00425077
test eax, eax
je 0x424293
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x12c
push eax
push ebx
lea eax, [ebp - 0x418]
push eax
push esi
push 0x404130
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424293
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x418], ebx
jne 0x424293
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x12c
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x418]
push eax
push esi
push 0x406758
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424293
cmp dword [ebp - 0x418], ebx
jne 0x424293
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x208
push eax
push edi
lea eax, [ebp - 0x418]
push eax
push esi
push 0x4025d8
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424280
cmp dword [ebp - 0x418], ebx
je 0x424291
cmp dword [ebp - 0x418], 2
je 0x424291
push 0x401064
mov edx, 0x208
mov ecx, edi
call fcn.004183cc
mov esi, ebx
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4242b9
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
push ecx
push 0x403130
push 0x40676c
push 0x103
xor edi, edi
mov esi, edx
push eax
mov dword [ebp - 0x41c], edi
call fcn.00418481
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4244d4
lea eax, [ebp - 0x420]
mov dword [ebp - 0x418], 1
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x418]
push eax
push edi
push 0x406578
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42440e
cmp dword [ebp - 0x418], 1
je 0x42437d
cmp dword [ebp - 0x418], 2
jne 0x42440e
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x424386
sub ecx, edx
sar ecx, 1
cmp ecx, 5
jbe 0x42440e
cmp dword [ebp - 0x418], 2
jne 0x4243e3
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4244c8
lea eax, [ebp - 0x414]
mov edx, 0x208
push eax
lea ecx, [ebp - 0x20c]
call fcn.004183cc
test eax, eax
js 0x4244c8
push 1
push ecx
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x20c]
call fcn.0042834b
test eax, eax
js 0x42440e
lea ecx, [ebp - 0x414]
call fcn.00425077
test eax, eax
je 0x4244c8
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
push esi
lea eax, [ebp - 0x418]
push eax
push edi
push 0x4041c8
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x424444
push 0x406788
jmp 0x42445b
cmp dword [ebp - 0x418], 2
je 0x424467
cmp dword [ebp - 0x418], 1
je 0x424467
push 0x40678c
mov edx, 0x208
mov ecx, esi
call fcn.004183cc
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
push ebx
lea eax, [ebp - 0x418]
push eax
push edi
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4244b4
cmp dword [ebp - 0x418], 1
jne 0x4244b4
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0x4244a0
sub esi, ecx
sar esi, 1
cmp esi, 2
jae 0x4244c5
push 0x401064
mov edx, 0x103
mov ecx, ebx
call fcn.00418392
xor edi, edi
inc edi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret 0xc
Function at 0x424fe2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test ecx, ecx
je 0x425061
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.00418392
test eax, eax
js 0x425061
jmp 0x425039
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x42501e
sub ecx, edx
sar ecx, 1
je 0x425048
xor eax, eax
mov word [ebp + ecx*2 - 0x20e], ax
lea ecx, [ebp - 0x20c]
call fcn.00424d37
test eax, eax
jne 0x425015
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425061
test al, 0x10
je 0x425061
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00429770
mov esp, ebp
pop ebp
ret

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

Disassembly:
test ecx, ecx
je 0x42508f
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42508f
test al, 0x10
jne 0x42508f
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x425097
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1ac], 0x80
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x1a0], 0x114
xor esi, esi
inc ebx
push eax
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 0x1a8], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4250ec
xor edx, edx
jmp 0x4251f7
mov edi, dword [ebp - 0x19c]
xor eax, eax
shld eax, edi, 0x10
lea eax, [ebp - 0x1a4]
shl edi, 0x10
or edi, dword [ebp - 0x198]
cmp dword [ebp - 0x190], 2
push eax
push ebx
push esi
jne 0x425187
push 0x406850
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4251f3
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x1a8]
push eax
push esi
push 0x4068ac
push dword [ebp - 0x1a4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4251e7
cmp dword [ebp - 0x1a8], ebx
jne 0x4251e7
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov ecx, 0x10000
mov dword [ebp - 0x1ac], eax
mul ecx
add esi, eax
adc edi, edx
jmp 0x4251e7
push 0x4068d8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4251f3
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1ac], 0x80
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x1a8]
push eax
push esi
push 0x40692c
push dword [ebp - 0x1a4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4251e7
cmp dword [ebp - 0x1a8], ebx
jne 0x4251e7
lea ecx, [ebp - 0x88]
call fcn.00424dfc
mov esi, eax
mov edi, edx
push dword [ebp - 0x1a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x426285
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x426332
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x2001f
push ebx
push edi
push esi
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426331
jmp 0x4262ed
test eax, eax
jne 0x42631d
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.00426285
test eax, eax
jne 0x42631d
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x4262d4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00429770
mov esp, ebp
pop ebp
ret

Function at 0x426347
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
xor ebx, ebx
mov dword [ebp - 4], ebx
test esi, esi
jne 0x42635f
push 6
pop eax
jmp 0x426399
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x426386
cmp dword [ebp + 8], ebx
jne 0x42637f
cmp dword [ebp - 4], 2
jbe 0x426386
mov eax, 0xb7
jmp 0x426399
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42804f
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov esi, 0x80004005
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], ecx
push edi
mov edi, edx
test ebx, ebx
jne 0x42808a
lea eax, [esi - 2]
jmp 0x428194
lea eax, [ebp - 0x210]
push eax
push 1
push ecx
push 0x4068d8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x428192
mov eax, 0x208
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], 1
cmp edi, eax
jbe 0x4280cb
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x218]
xor esi, esi
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push 0x4095a4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42812d
cmp dword [ebp - 0x214], 1
jne 0x42812d
lea ecx, [ebp - 0x20c]
call fcn.00424fe2
test eax, eax
jne 0x428143
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x20c]
call fcn.00424fe2
test eax, eax
jne 0x428143
mov edx, 0x208
lea ecx, [ebp - 0x20c]
call fcn.00427db5
mov esi, eax
test esi, esi
jne 0x428186
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x21c]
jne 0x42814c
sub edx, ecx
shr edi, 1
sar edx, 1
lea eax, [edx + 1]
cmp edi, eax
jbe 0x42817a
lea eax, [ebp - 0x20c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.00418392
jmp 0x428186
mov esi, 0x8007007a
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x4281aa
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], edx
push eax
xor esi, esi
mov dword [ebp - 0x21c], ecx
push 0x23
push esi
mov dword [ebp - 0x214], esi
mov ebx, esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edi, eax
test edi, edi
js 0x428257
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x42820c
inc ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x428253
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x428253
mov eax, dword [ecx]
push dword [ebp - 0x214]
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x42e290]
call esi
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e290]
call esi
test ebx, ebx
jne 0x4282af
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4282aa
push ecx
lea eax, [ebp - 0x210]
mov edx, esi
push eax
lea ecx, [ebp - 0x20c]
call fcn.00418514
test eax, eax
js 0x4282aa
mov eax, dword [ebp - 0x210]
sub esi, eax
push ecx
push 0x4095c4
push ecx
lea ecx, [ebp - 0x20c]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.00418577
test eax, eax
jns 0x4282af
mov edi, 0x80070057
test edi, edi
js 0x4282eb
lea ecx, [ebp - 0x20c]
call fcn.00424fe2
xor esi, esi
test eax, eax
je 0x4282c8
mov edi, esi
jmp 0x4282f1
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x20c]
call fcn.00424fe2
neg eax
sbb eax, eax
not eax
and edi, eax
jmp 0x4282ed
xor esi, esi
test edi, edi
jne 0x428333
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x4282fa
sub edx, ecx
mov ecx, dword [ebp - 0x218]
sar edx, 1
shr ecx, 1
lea eax, [edx + 1]
cmp ecx, eax
jbe 0x42832e
lea eax, [ebp - 0x20c]
mov edx, ecx
mov ecx, dword [ebp - 0x21c]
push eax
call fcn.00418392
jmp 0x428333
mov edi, 0x8007007a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x42891c
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x19c], esi
test ecx, ecx
je 0x428ac7
push ecx
push 0x404054
lea eax, [ebp - 0x194]
push 0xc7
push eax
call fcn.00418481
add esp, 0x10
test eax, eax
js 0x428ac7
lea eax, [ebp - 0x198]
push eax
push 3
push esi
lea eax, [ebp - 0x194]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x428ac7
push ebx
push edi
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0x190
push eax
lea eax, [ebp - 0x194]
mov edi, 0x401058
push eax
lea eax, [ebp - 0x1a0]
xor ebx, ebx
push eax
push esi
push edi
push dword [ebp - 0x198]
inc ebx
mov dword [ebp - 0x1a0], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428ab9
cmp dword [ebp - 0x1a0], ebx
jne 0x428ab9
lea ecx, [ebp - 0x194]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4289e8
sub ecx, edx
sar ecx, 1
je 0x428ab9
xor edx, edx
lea ecx, [ebp - 0x194]
call fcn.0042887f
test eax, eax
je 0x428ab9
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0x190
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x1a0]
push eax
push esi
push 0x409778
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428aac
cmp dword [ebp - 0x1a0], ebx
jne 0x428aac
xor edx, edx
lea ecx, [ebp - 0x194]
call fcn.0042887f
test eax, eax
je 0x428a6f
push edi
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x428aa5
lea ecx, [ebp - 0x194]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x428a78
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x194]
push eax
push ebx
push esi
push edi
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x409778
jmp 0x428aad
push edi
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x429520
Capabilities:
Terminate process

Disassembly:
call fcn.00429c48
jmp 0x42952f
push 0x5c
push 0x429fa0
call fcn.00429d14
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x42d470
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x42957c
cmp eax, edi
jne 0x42958e
mov esi, ebx
cmp dword [0x42d474], ebx
jne 0x42959b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4295ca
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x429565
cmp dword [0x42d474], 0
jne 0x4295c4
mov dword [0x42d474], ebx
push 0x40101c
push 0x401010
call fcn.0042971a
pop ecx
pop ecx
test eax, eax
je 0x4295ca
jmp 0x429703
mov dword [0x42c444], ebx
cmp dword [0x42d474], ebx
jne 0x4295ed
push 0x40100c
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x42d474], 2
test esi, esi
jne 0x4295fa
xor eax, eax
mov ecx, 0x42d470
xchg dword [ecx], eax
cmp dword [0x42d478], 0
je 0x429628
push 0x42d478
call fcn.00429b40
pop ecx
test eax, eax
je 0x429628
push 0
push 2
push 0
mov esi, dword [0x42d478]
mov ecx, esi
call dword [0x42e290]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x429686
test cl, cl
je 0x429644
test edi, edi
jne 0x429686
mov al, byte [esi]
test al, al
je 0x429654
cmp al, 0x20
ja 0x429654
inc esi
mov dword [ebp - 0x20], esi
jmp 0x429644
test byte [ebp - 0x40], 1
je 0x429660
movzx eax, word [ebp - 0x3c]
jmp 0x429663
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x42c440], eax
cmp dword [0x42c458], 0
jne 0x4296df
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x429697
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x4296aa
inc esi
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x429635
cmp dword [0x42c444], 0
jne 0x4296f3
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x42c440]
mov dword [ebp - 4], 0xfffffffe
jmp 0x42970f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00429d5c
ret

Function at 0x429a1f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x429fc8
call fcn.00429e68
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x429a7f
cmp eax, 0xffffffff
je 0x429a7f
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x429a78
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x429a78
cmp edx, 0x10000000
jae 0x429a78
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x429a75
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00429ead
ret 4
Function at 0x429af0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x429b2e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x429b26
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x429b30
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x429b16
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x429c10
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x429c26
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x429c41
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x55582e52
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x142f7706
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219