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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00423388
cmp ebx, dword [ebp - 8]
jge 0x476bfb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00423628
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00423628
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00423654
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x476bc1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x476c04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00423388
cmp ebx, dword [ebp - 8]
jge 0x476c67
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00423628
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00423628
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00423654
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x476c2d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x47d244
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47d272
mov eax, ebx
call fcn.0047dcf8
cmp dword [ebx + 0x40], 0
je 0x47d26b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47d2e3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47d2d5
cmp dword [ebx + 8], 0
je 0x47d294
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47d2a6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47d2d5
cmp dword [ebx + 8], 0
je 0x47d287
cmp eax, 3
je 0x47d2b9
dec eax
jne 0x47d287
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47d287
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47d287
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47d301
cmp dword [ebx + 0x14], 0xcc
je 0x47d301
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047d30c
pop ebx
ret
Function at 0x4066f6
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x41a140]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.004054d4
push 0x4021f0
lea ecx, [esp + 0x1c]
call fcn.0040538e
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x406776
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40679c
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.004060ee
mov edi, eax
jmp 0x40679c
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.004065db
mov ebx, eax
test ebx, ebx
jns 0x4067a2
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.004060d1
mov edi, ebx
test esi, esi
je 0x4067b6
jmp 0x4067b0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.004064de
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00419610
mov esp, ebp
pop ebp
ret 8
Function at 0x4092ac
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0x10], ecx
call fcn.004082d2
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
call fcn.00417174
test eax, eax
jne 0x4092d7
inc eax
jmp 0x40949d
push edi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
test edi, edi
jns 0x4092f2
call fcn.00417243
xor eax, eax
inc eax
jmp 0x40949c
cmp byte [0x41a62d], 0
push ebx
je 0x409360
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 4], eax
push 2
pop edx
test eax, eax
je 0x409321
mov ecx, eax
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, edx
cmp ax, si
jne 0x409311
sub ecx, ebx
sar ecx, 1
jmp 0x409323
mov ecx, esi
lea eax, [ecx + 1]
xor ecx, ecx
mov dword [ebp - 0xc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004195a6
mov ebx, eax
mov dword [ebp - 8], ebx
pop ecx
test ebx, ebx
jne 0x40934e
mov edi, 0x8007000e
jmp 0x409487
push dword [ebp - 4]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
jmp 0x4093a8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push esi
push esi
push 0xffffffffffffffff
push eax
push esi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov dword [ebp - 0xc], eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004195a6
mov ebx, eax
mov dword [ebp - 8], eax
pop ecx
test ebx, ebx
je 0x409344
push dword [ebp - 0xc]
push ebx
push 0xffffffffffffffff
push dword [ebp - 4]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov ecx, ebx
call fcn.00416bfe
xor ecx, ecx
inc eax
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004195a6
mov dword [ebp - 4], eax
pop ecx
test eax, eax
jne 0x4093d8
mov edi, 0x8007000e
jmp 0x409480
mov edx, eax
mov ecx, ebx
call fcn.00416bfe
mov ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov dword [eax + ecx*4], esi
cmp ecx, 2
jne 0x40946a
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], 0x2d
movzx edx, word [ebx]
cmp word [ebp - 0xc], dx
je 0x409411
mov dword [ebp - 0xc], 0x2f
cmp word [ebp - 0xc], dx
jne 0x40946a
add ebx, 2
mov edx, 0x402260
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00416ce0
test eax, eax
jne 0x40942f
call fcn.0040843c
mov edi, eax
jmp 0x409474
push 0xffffffffffffffff
mov edx, 0x402274
mov ecx, ebx
call fcn.00416ce0
test eax, eax
jne 0x409448
call fcn.00408c5e
jmp 0x40942b
push 0xffffffffffffffff
mov edx, 0x40228c
mov ecx, ebx
call fcn.00416ce0
test eax, eax
jne 0x409464
mov ecx, dword [ebp - 0x10]
call fcn.0040830b
jmp 0x40942b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
push eax
mov edx, ecx
call fcn.00409228
mov esi, eax
push dword [ebp - 4]
call fcn.004195d5
mov ebx, dword [ebp - 8]
pop ecx
push ebx
call fcn.004195d5
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00417243
pop ebx
test edi, edi
jns 0x40949a
xor esi, esi
inc esi
mov eax, esi
pop edi
pop esi
leave
ret 8
Function at 0x40afff
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41a140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [ebp + 8]
push edi
mov dword [eax], ecx
cmp byte [0x41a62d], cl
je 0x40b0a9
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x40b051
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40b095
movzx eax, ax
or eax, 0x80070000
jmp 0x40b095
call fcn.00419a40
mov ebx, esp
push ebx
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40b03d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x402420
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40b03d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x10]
mov dword [edx], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419610
leave
ret 4
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push esi
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
je 0x40b03d
call fcn.00419a40
mov edi, esp
test edi, edi
jne 0x40b0d4
mov eax, 0x8007000e
jmp 0x40b095
xor eax, eax
push eax
push eax
push ebx
push edi
push 0xffffffffffffffff
push esi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40b03d
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
je 0x40b03d
call fcn.00419a40
mov ebx, esp
push ebx
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40b03d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x402424
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
jmp 0x40b07c

Function at 0x40b13c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40b199
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40b173
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b168
sub ecx, esi
jmp 0x40b175
xor ecx, ecx
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push 0x402600
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x40b1a4
movzx esi, si
or esi, 0x80070000
mov eax, esi
pop esi
leave
ret 8
Function at 0x40b33b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41a140]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
cmp ecx, 0x43
je 0x40b36c
cmp ecx, 0x57
je 0x40b365
mov eax, 0x80070057
jmp 0x40b49a
mov edi, 0x4024c8
jmp 0x40b371
mov edi, 0x4025a8
push ebx
push esi
xor ecx, ecx
lea eax, [ebp - 0x210]
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x108]
mov ebx, ecx
push eax
push ecx
jmp 0x40b452
test eax, eax
jne 0x40b4a7
cmp byte [ebp - 0x108], 0x2e
jne 0x40b43c
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b4a7
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x402600
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x214]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40b43c
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40b43c
dec eax
cmp eax, 0x104
jae 0x40b4b3
push 1
mov edx, edi
mov byte [ebp + eax - 0x108], 0
lea ecx, [ebp - 0x20c]
call fcn.0040b279
test eax, eax
js 0x40b498
inc ebx
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push SysReAllocString
mov dword [ebp - 0x210], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x40b38f
push 0
mov edx, edi
mov ecx, 0x4025d0
call fcn.0040b279
test eax, eax
js 0x40b498
push 0
mov edx, edi
mov ecx, 0x4024d0
call fcn.0040b279
test eax, eax
js 0x40b498
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00419610
leave
ret
jle 0x40b498
movzx eax, ax
or eax, 0x80070000
jmp 0x40b498
call fcn.00419808
int3
Function at 0x40d6ad
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, edx
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
push edi
mov dword [eax], edi
lea eax, [ebp - 1]
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
test esi, esi
jne 0x40d6f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40d793
movzx edi, di
or edi, 0x80070000
jmp 0x40d793
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d6fa
sub ecx, edx
lea eax, [esi + 2]
add eax, ecx
push eax
mov dword [ebp - 8], eax
call fcn.004195a6
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x40d71f
mov edi, 0x8007000e
jmp 0x40d793
lea eax, [esi + 1]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, eax
test ecx, ecx
jne 0x40d747
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40d78c
movzx edi, di
or edi, 0x80070000
jmp 0x40d78c
mov eax, dword [ebp - 8]
lea esi, [ecx + ebx]
sub eax, ecx
push 0x402424
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.msvcrt.dll_strcpy_s]
push dword [ebp - 0xc]
mov eax, dword [ebp - 8]
dec eax
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.msvcrt.dll_strcpy_s]
add esp, 0x18
push 0x800
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ecx, eax
test ecx, ecx
je 0x40d730
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
push ebx
call fcn.004195d5
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ff3e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
mov ebx, ecx
mov dword [ebp - 4], esi
push 0x402914
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebx], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
js 0x40ffb1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x402948
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
js 0x40ffb1
mov eax, dword [ebp - 8]
test eax, eax
jne 0x410005
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x402914
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
js 0x410015
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x402948
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
js 0x410015
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x410010
cmp dword [ebp - 0xc], 1
jne 0x410013
xor esi, esi
inc esi
mov dword [ebx], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411891
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x20
mov ebx, edx
mov esi, ecx
call fcn.004195a6
mov edi, eax
pop ecx
test edi, edi
je 0x41194d
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 0x18], eax
mov dword [edi + 8], esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x411903
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4118f3
movzx esi, si
or esi, 0x80070000
mov ecx, edi
call fcn.004114ea
push edi
call fcn.004195d5
pop ecx
jmp 0x411952
lea eax, [edi + 0x14]
push eax
push esi
push edi
push 0x411960
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x10], eax
test eax, eax
je 0x4118de
push ecx
push ecx
mov ecx, dword [edi + 0x1c]
call fcn.00411486
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x1c], esi
mov esi, dword [edi + 0xc]
test esi, esi
jle 0x411945
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4118f3
mov dword [ebx], edi
xor esi, esi
jmp 0x411952
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
pop ebx
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x41a140]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x41a62d], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x41402c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4140b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4140ac
lea eax, [ebp - 0x398]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
jmp 0x414098
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
jne 0x414057
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4140c1
movzx eax, ax
or eax, 0x80070000
jmp 0x4140c1
call fcn.00419a40
mov edi, esp
xor eax, eax
push eax
push eax
push ebx
push edi
push 0xffffffffffffffff
push esi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x414043
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4140b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4140ac
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test eax, eax
je 0x4140ac
cmp eax, 0xffffffff
je 0x4140ac
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4140c1
mov eax, 0x80070002
jmp 0x4140c1
and al, 0x10
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x80070002
lea esp, [ebp - 0x3a8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419610
leave
ret
Function at 0x417174
Capabilities:
Check os version

Disassembly:
push 0xa0
push 0x419b30
call fcn.00419958
mov dword [0x41a628], 0x9c4
mov dword [0x41a630], ecx
and dword [ebp - 4], 0
push 0x41a644
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41722b
cmp dword [ebp - 0xac], 6
sbb al, al
inc al
mov byte [0x41a62e], al
call fcn.00417279
mov dword [0x41a63c], eax
cmp dword [ebp - 0xa0], 2
jne 0x417210
mov byte [0x41a62d], 1
cmp dword [ebp - 0xac], 5
jne 0x417200
cmp dword [ebp - 0xa8], 1
jae 0x417209
cmp dword [ebp - 0xac], 6
jb 0x417210
mov byte [0x41a638], 1
xor eax, eax
cmp dword [0x41a630], eax
setne al
jmp 0x41722d
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4177fb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41a140]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x41a62d], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x41788e
mov eax, dword [ebp + 0xc]
xor esi, esi
push 2
pop ecx
mul ecx
cmp edx, esi
ja 0x4178cc
jb 0x417838
cmp eax, 0xffffffff
ja 0x4178cc
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x417860
jle 0x41787a
movzx eax, ax
or eax, 0x80070000
jmp 0x41787a
cmp dword [ebp - 8], 1
je 0x41786c
cmp dword [ebp - 8], 2
jne 0x4178cc
mov eax, dword [ebp - 0xc]
shr eax, 1
cmp word [edi + eax*2 - 2], si
jne 0x4178cc
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419610
leave
ret 8
mov esi, dword [ebp + 0xc]
inc esi
mov eax, esi
call fcn.00419a40
mov edi, esp
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417854
cmp dword [ebp - 8], 1
je 0x4178c2
cmp dword [ebp - 8], 2
jne 0x4178cc
mov eax, dword [ebp - 0xc]
cmp byte [edi + eax - 1], 0
je 0x4178d3
mov eax, 0x80040153
jmp 0x41787a
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffffffffffffffff
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x417878
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jmp 0x417854
Function at 0x4178fb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41a140]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x41a62d], 0
mov eax, ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 4
je 0x41793e
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x4179a1
xor esi, esi
test edi, edi
je 0x4179bc
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x41796e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4179c5
movzx eax, ax
or eax, 0x80070000
jmp 0x4179c5
call fcn.00419a40
mov ebx, esp
push esi
push esi
push dword [ebp - 0x10]
push ebx
push 0xffffffffffffffff
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x41795a
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417962
cmp dword [ebp - 0xc], 4
jne 0x4179c0
mov eax, dword [ebp - 8]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0x80040153
jmp 0x4179c5
mov ebx, esi
jmp 0x41798d
mov eax, 0x80040153
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419610
leave
ret 4

Function at 0x4179df
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41a140]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x41a62d], 0
mov eax, ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], eax
je 0x417a18
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x417a6c
xor esi, esi
test edi, edi
je 0x417a8c
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 8], eax
test eax, eax
jne 0x417a3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417a6c
call fcn.00419a40
mov ebx, esp
push esi
push esi
push dword [ebp - 8]
push ebx
push 0xffffffffffffffff
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x417a34
mov eax, dword [ebp - 0xc]
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jle 0x417a78
movzx eax, ax
or eax, 0x80070000
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419610
leave
ret 4
mov ebx, esi
jmp 0x417a5b