joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017bb0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x10035080]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x10017db1
cmp dword [esp + 0x2f8], 0
je 0x10017db1
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.1001a970
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x1002d54c
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10017d78
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x10017d6b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10017d39
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10017d2e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.1001a970
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.10017aa0
add esp, 0x14
test eax, eax
je 0x10017d2e
cmp byte [esp + 0x24], 0
je 0x10017cf2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x10017d2e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x10017d21
mov cl, byte [esi + eax]
test cl, cl
je 0x10017d21
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x10017d06
jmp 0x10017d25
test edx, edx
jne 0x10017d26
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10017c50
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x10017db1
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.100047b0
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.10019069
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.10019069
add esp, 0x2ec
ret
Function at 0x10018020
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x10035080]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x1001819d
cmp ebp, 0x20
jb 0x1001819d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.1001a970
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x1002d5bc
push str.Software360SafeLiveup
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x1001819d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100180b0
sub eax, edx
cmp eax, 0x40
jne 0x1001819d
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x100180ee
mov cl, byte [esi + eax]
test cl, cl
je 0x100180ee
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x100180d6
jmp 0x100180f2
test edx, edx
jne 0x100180f3
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x1001812b
mov cl, byte [edx + eax]
test cl, cl
je 0x1001812b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x10018110
jmp 0x1001812f
test esi, esi
jne 0x10018130
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.1001a970
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.10017220
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x1001819d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.100047b0
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.10019069
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.10019069
add esp, 0x50c
ret

Function at 0x100181c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x10035080]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.1001a970
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.10017220
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1001822b
mov cl, byte [esi + eax]
test cl, cl
je 0x1001822b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x10018210
jmp 0x1001822f
test edx, edx
jne 0x10018230
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.1000fce0
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10018256
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x1002d5bc
push str.Software360SafeLiveup
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.10019069
add esp, 0x188
ret
Function at 0x10019069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10035080]
jne 0x10019073
repz ret
jmp fcn.1001cb6e

Function at 0x100287ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1001dc18
and dword [ebp - 4], 0
cmp dword [0x1003881c], 0
mov ebx, eax
jne 0x1002885d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1002890e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1002890e
push eax
call fcn.1001dba6
mov dword [esp], 0x1002e264
push edi
mov dword [0x1003881c], eax
call esi
push eax
call fcn.1001dba6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10038820], eax
call esi
push eax
call fcn.1001dba6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10038824], eax
call esi
push eax
call fcn.1001dba6
pop ecx
mov dword [0x1003882c], eax
test eax, eax
je 0x1002885d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001dba6
pop ecx
mov dword [0x10038828], eax
mov eax, dword [0x10038828]
cmp eax, ebx
je 0x100288b5
cmp dword [0x1003882c], ebx
je 0x100288b5
push eax
call fcn.1001dc21
push dword [0x1003882c]
mov esi, eax
call fcn.1001dc21
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100288b5
test edi, edi
je 0x100288b5
call esi
test eax, eax
je 0x100288ac
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100288ac
test byte [ebp - 0xc], 1
jne 0x100288b5
or dword [ebp + 0x10], 0x200000
jmp 0x100288ee
mov eax, dword [0x10038820]
cmp eax, ebx
je 0x100288ee
push eax
call fcn.1001dc21
pop ecx
test eax, eax
je 0x100288ee
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100288ee
mov eax, dword [0x10038824]
cmp eax, ebx
je 0x100288ee
push eax
call fcn.1001dc21
pop ecx
test eax, eax
je 0x100288ee
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003881c]
call fcn.1001dc21
pop ecx
test eax, eax
je 0x1002890e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10028910
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4047ce
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x404872
push esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404832
test dl, dl
je 0x40482e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404832
add eax, 2
add ecx, 2
test dl, dl
jne 0x404812
xor eax, eax
jmp 0x404837
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404860
push dword [ebp - 0x124]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404860
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404809
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004051af
leave
ret

Function at 0x405146
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.127.0.0.1
lea ecx, [ebp - 0x1c]
call fcn.00404dc1
push 0x1a0a
lea ecx, [ebp - 0x1c]
call fcn.0040509e
push eax
call fcn.00404f3f
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00404eb1
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004051af
leave
ret

Function at 0x405a4f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405a8e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405a8e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405a8e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405a8e
cmp dword [ecx + 0x74], 0xe
jbe 0x405a8e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40b4da
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b577
push ebx
push esi
call fcn.0040b4a3
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b437
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b524
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b576
push edi
push eax
call fcn.00409e3b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b544
call fcn.00409f96
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b575
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b437
add esp, 0x20
test eax, eax
jne 0x40b563
push edi
call fcn.00409f96
jmp 0x40b56b
push ebx
call fcn.00409f96
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40c786
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415708
push 0x415700
push str.FlsAlloc
push 0x1f
call fcn.0040c645
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c7ba
push dword [ebp + 8]
mov ecx, esi
call dword [0x412148]
call esi
jmp 0x40c7c0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40c804
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415718
push 0x415710
push str.FlsGetValue
push 0x21
call fcn.0040c645
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c83b
push dword [ebp + 8]
mov ecx, esi
call dword [0x412148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40c843
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415720
push 0x415718
push str.FlsSetValue
push 0x22
call fcn.0040c645
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c87d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x412148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x411c40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x411c6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411c6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x300063f9
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [section..cdata]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.300063f9
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [section..cdata]
jne 0x300062d1
ret

Function at 0x40a5d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov al, 0xec
loopne 0x40a62a
pop ebp
adc bl, dl
fninit
mov dword [ebp - 4], 0xcb0000
jge 0x40a5f9
mov eax, dword [ebp + 0xc]
xor edx, dword [ebp - 0xffc787]
or dword [ebx + 0x43049810], ecx
test dword [edx + 0x48df775], ebx
popfd
add al, 0
add byte [eax], al
lea eax, [ebx*4 + 4]
push esi
push eax
cmp dl, byte [0x40c12e]
add esp, 4
mov edi, eax
test ebx, ebx
mov dword [ebp - 0xc], edi
jle 0x40a64a
mov eax, dword [ebp + 0xc]
mov esi, edi
dec edi
invalid
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx]
xor byte [ecx + 0x1b], dl
adc eax, sym.imp.MSVCRT.dll_wcslen
sbb edx, dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
ror byte [ecx - 0x39cccce], 1
add edx, eax
mov eax, dword [ebp - 8]
add esi, 0xffffff99
dec eax
mov dword [edx], esp
cld
mov dword [ebp - 8], eax
jne 0x40a623
mov edx, dword [ecx]
insb byte es:[edi], dx
lodsb al, byte [esi]
and al, 0x40
add dword [eax - 0x77], edx
movsd dword es:[edi], dword [esi]
and bh, bh
adc eax, 0x20407e5c
push es
test dword [ebx + esi], eax
leave
test ebx, ebx
mov dword [ebp - 8], eax
mov byte [0x8bc57ef0], al
inc ebp
or al, 0x8b
in al, dx
hlt
Function at 0x4010ea
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x401189
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xfb8]
mov eax, 0x1038
call fcn.00406be0
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp + 0xfb4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x20019
push esi
push 0x4083e0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x50], edi
call fcn.0040109b
mov ebx, eax
cmp ebx, edi
jne 0x401310
push esi
push 0x4083f4
push dword [ebp - 0x74]
lea ecx, [ebp - 0x80]
call fcn.0040109b
mov ebx, eax
cmp ebx, edi
jne 0x401310
push esi
push 0x408408
push dword [ebp - 0x80]
lea ecx, [ebp - 0x5c]
call fcn.0040109b
mov esi, eax
cmp esi, edi
je 0x40124f
lea ecx, [ebp - 0x68]
call fcn.00401080
lea ecx, [ebp - 0x5c]
call fcn.00401080
lea ecx, [ebp - 0x80]
call fcn.00401080
lea ecx, [ebp - 0x74]
call fcn.00401080
mov eax, esi
jmp 0x401332
mov esi, 0x800
push esi
lea eax, [ebp - 0x4c]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x4c]
push eax
push edi
jmp 0x4012ba
inc dword [ebp - 0x50]
mov ecx, 0x408424
lea eax, [ebp - 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40129b
cmp dx, di
je 0x401297
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40129b
add eax, 4
add ecx, 4
cmp dx, di
jne 0x401275
xor eax, eax
jmp 0x4012a0
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
lea eax, [ebp - 0x4c]
je 0x4012cb
push esi
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
cmp ebx, edi
je 0x40126a
jmp 0x401310
push 0x2001f
push eax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x68]
call fcn.0040109b
mov esi, eax
cmp esi, edi
jne 0x401228
mov eax, dword [ebp + 0xfc0]
push 4
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push 4
push edi
push 0x408438
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x68]
mov ebx, eax
call fcn.00401080
lea ecx, [ebp - 0x68]
call fcn.00401080
lea ecx, [ebp - 0x5c]
call fcn.00401080
lea ecx, [ebp - 0x80]
call fcn.00401080
lea ecx, [ebp - 0x74]
call fcn.00401080
mov eax, ebx
mov ecx, dword [ebp + 0xfb4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406b00
add ebp, 0xfb8
leave
ret
Function at 0x40295e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.0040109b
mov ebx, eax
cmp ebx, esi
je 0x4029d1
lea ecx, [ebp - 0x74]
call fcn.00401080
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406b00
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4029e9
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040295e
cmp eax, esi
jne 0x402a1b
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x4029d9
lea ecx, [ebp - 0x74]
call fcn.00401080
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00402302
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00401080
mov eax, esi
jmp 0x4029b7
Function at 0x404135
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40419e
cmp dword [ebp + 0x10], 1
je 0x404176
cmp dword [ebp + 0x10], 2
je 0x404176
push 0xd
pop eax
jmp 0x40419e
mov eax, dword [ebp - 4]
test edi, edi
je 0x404198
test eax, eax
je 0x404193
test al, 1
jne 0x404171
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x404198
jmp 0x404171
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x4044d0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp + 0x9c], eax
cmp dword [0x40c278], 0
je 0x4044fb
mov eax, dword [0x40c274]
jmp 0x404557
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x70], 2
jne 0x40454a
cmp dword [ebp - 0x7c], 6
jne 0x40454a
cmp dword [ebp - 0x78], 0
jne 0x40454a
cmp byte [ebp + 0x9a], cl
jne 0x40454a
cmp word [ebp + 0x94], 0
jne 0x40454a
mov eax, ecx
jmp 0x40454c
xor eax, eax
mov dword [0x40c274], eax
mov dword [0x40c278], ecx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00406b00
add ebp, 0xa0
leave
ret

Function at 0x4046dd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x404773
cmp eax, edi
ja 0x404773
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR100.dll_memset
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x409aac
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x404775
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406b00
leave
ret