joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c674
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e550]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040916a
mov dword [ebp - 0x14], eax
cmp dword [0x2c8afbc], esi
jne 0x40c767
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c6f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c847
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c847
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c847
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x2c8afbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x2c8afc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x2c8afc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c8afcc], eax
test eax, eax
je 0x40c764
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c8afc8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c78c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c77f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c7a1
push 4
pop eax
jmp 0x40c849
cmp dword [ebp - 0x14], esi
je 0x40c7a1
push dword [0x2c8afbc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c786
mov eax, dword [0x2c8afc8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c7ff
cmp dword [0x2c8afcc], edi
je 0x40c7ff
push eax
call ebx
push dword [0x2c8afcc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c7ff
test eax, eax
je 0x40c7ff
call ecx
test eax, eax
je 0x40c7f4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c7f4
test byte [ebp - 8], 1
jne 0x40c7ff
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c82f
mov eax, dword [0x2c8afc0]
cmp eax, edi
je 0x40c82c
push eax
call ebx
test eax, eax
je 0x40c82c
call eax
mov esi, eax
test esi, esi
je 0x40c82c
mov eax, dword [0x2c8afc4]
cmp eax, edi
je 0x40c82c
push eax
call ebx
test eax, eax
je 0x40c82c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2c8afbc]
call ebx
test eax, eax
je 0x40c847
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c849
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004042de
mov esp, ebp
pop ebp
ret
Function at 0x4013e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4013f9
cmp dword [ebp + 0xc], 0
jne 0x4013fd
xor eax, eax
jmp 0x401454
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401452
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x401452
mov eax, dword [ebp + 8]
jmp 0x401454
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x401479
cmp dword [ebp + 0xc], 0
jne 0x40147d
xor eax, eax
jmp 0x4014d6
mov eax, dword [ebp + 8]
mov word [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4014d4
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x4014d4
mov eax, dword [ebp + 8]
jmp 0x4014d6
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x411820
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
mov edi, dword [ecx + 0xc]
push 0x10
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
jne 0x411867
push 0xd
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
jne 0x411867
push 0x20
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
jne 0x411867
push 0x11
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
je 0x41186a
push 1
pop edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x4130ff
Capabilities:
Delete file

Disassembly:
mov eax, 0x45d648
call fcn.0045cfc0
mov eax, 0x1214
call fcn.0045cf90
and byte [ebp - 0x1220], 0
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x121f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x220], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x21f]
push 0xfff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1220]
mov esi, 0x103
push eax
lea eax, [ebp - 0x220]
push esi
push eax
push dword [ebp + 0xc]
and dword [ebp - 0x14], 0
push 0
push dword [ebp + 8]
call fcn.004396d3
add esp, 0x1c
test al, al
je 0x413269
push ebx
mov ebx, 0x40a168
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x1220]
push ecx
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x413238
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x1220]
mov dword [ebp - 0x18], eax
mov eax, dword [0x40a0f8]
mov dword [ebp - 0x10], eax
and byte [ebp - 0x11c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40a190
lea eax, [ebp - 0x11c]
push esi
push eax
push dword [0x532da0]
call fcn.00425ffa
add esp, 0x10
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x10]
push eax
call fcn.00414267
xor eax, eax
cmp dword [ebp - 0x18], eax
je 0x413217
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
call fcn.004142b4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00411a66
inc dword [ebp - 0x14]
lea eax, [ebp - 0x1220]
push 0xfff
push eax
lea eax, [ebp - 0x220]
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.004396d3
add esp, 0x1c
test al, al
jne 0x413180
pop ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00439c83
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
movzx eax, al
mov dword fs:[0], ecx
leave
ret
Function at 0x413287
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x45d65c
call fcn.0045cfc0
sub esp, 0x904
push ebx
push esi
mov esi, 0x45f128
mov eax, esi
test eax, eax
je 0x4132ab
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, 0x45fa60
push esi
push eax
mov ecx, ebx
call fcn.004141b2
cmp dword [ebp + 8], 0
je 0x4134a1
cmp dword [ebp + 0xc], 0
je 0x4134a1
and byte [ebp - 0x910], 0
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x90f]
push 0x7ff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x910]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004397a7
mov esi, 0x40a168
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x910]
push ecx
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x20
test eax, eax
jne 0x413437
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x40a0f8]
not ecx
dec ecx
mov dword [ebp + 0xc], eax
lea esi, [ebp + ecx - 0x910]
and byte [ebp - 0x110], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40a190
lea eax, [ebp - 0x110]
push 0x103
push eax
push dword [0x532da0]
call fcn.00425ffa
add esp, 0x10
lea eax, [ebp - 0x110]
lea ecx, [ebp + 0xc]
push eax
call fcn.00414267
test esi, esi
jne 0x413396
xor eax, eax
jmp 0x41339d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp + 0xc]
call fcn.004142b4
push 0
push dword [ebp + 0xc]
call fcn.004260d1
pop ecx
test eax, eax
pop ecx
je 0x413429
push 0x40a240
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
mov dword [ebp + 8], edi
je 0x413429
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [edi + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
push dword [ebp + 8]
mov esi, eax
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fread]
and byte [esi + edi], 0
add esp, 0x30
mov ecx, ebx
push esi
call fcn.00414267
push esi
call dword [sym.imp.MSVCRT.dll_free]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00411a66
jmp 0x413445
lea eax, [ebp - 0x910]
mov ecx, ebx
push eax
call fcn.00414267
mov eax, dword [0x45fa60]
mov eax, dword [eax - 8]
lea edi, [eax + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
test esi, esi
pop edi
je 0x4134a1
push dword [0x45fa60]
push esi
call fcn.00432f80
push 1
push 9
push 0x40a19c
push eax
push esi
push esi
call fcn.0045bab0
add esp, 0x20
mov ecx, ebx
push esi
call fcn.00414267
push esi
call fcn.0045cf75
pop ecx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4134b2
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x413a4d
push dword [esp + 0xc]
push 0x12d
push dword [0x532da0]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x414c68
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x45fa68], esi
jne 0x414caf
cmp dword [0x473b4c], esi
je 0x414caf
call fcn.00414f96
test eax, eax
je 0x414caf
call fcn.00427936
test eax, eax
je 0x414caf
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push esi
push 0x414e9f
push esi
push esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [0x45fa68], eax
pop esi
leave
ret

Function at 0x414cb2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
push 0x11
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
push 0x40
rep stosd dword es:[edi], eax
xor ebx, ebx
pop ecx
lea edi, [ebp - 0x15b]
mov byte [ebp - 0x15c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x144
xor eax, eax
lea edi, [ebp - 0x66f]
mov byte [ebp - 0x670], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x15c]
push 0x104
push eax
push dword [0x532da0]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], 0x44
call fcn.00425ffa
add esp, 0x10
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x15c]
push eax
push 0x40a2c4
lea eax, [ebp - 0x670]
push 0x514
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x4000000
push 1
push ebx
lea eax, [ebp - 0x670]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
xor eax, eax
cmp dword [ebp - 4], 1
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x414da3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
push 0x24
push 0x40a37c
push 0xcb
call fcn.00424a93
pop ecx
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x414e9c
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
push 0x40
lea edi, [ebp - 0x157]
pop ecx
mov byte [ebp - 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x144
xor eax, eax
lea edi, [ebp - 0x66b]
mov byte [ebp - 0x66c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x158]
push 0x104
push eax
push dword [0x532da0]
mov dword [ebp - 0x54], 0x44
call fcn.00425ffa
add esp, 0x10
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x158]
push eax
push 0x40a320
lea eax, [ebp - 0x66c]
push 0x514
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x4000000
push 1
push ebx
lea eax, [ebp - 0x66c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push dword [0x532504]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415adf
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0xffffffff
push esi
push edi
mov edi, ecx
jne 0x415af2
mov esi, dword [edi + 0x1fc08]
jmp 0x415aff
push dword [esp + 0xc]
mov ecx, edi
call fcn.004158f2
mov esi, eax
test esi, esi
je 0x415b91
mov eax, dword [edi + 0x1fc08]
cmp eax, esi
je 0x415b49
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x415b28
mov eax, dword [eax + 4]
test eax, eax
je 0x415b28
push 0
push eax
call ebx
push 5
mov dword [edi + 0x1fc08], esi
push dword [esi + 4]
call ebx
push esi
mov ecx, 0x495640
call fcn.0045a211
lea ecx, [esi + 0x24]
call fcn.004186b1
pop ebx
mov ecx, edi
call fcn.004176e8
mov ecx, edi
call fcn.00415332
mov eax, dword [edi + 0x1fc08]
mov ecx, 0x495668
push dword [eax + 0x10]
call fcn.00438a72
push 0
push 1
push 0x68
call fcn.00424a93
pop ecx
push eax
mov ecx, 0x4960b0
call fcn.00440e56
push esi
mov ecx, edi
call fcn.004159e1
push esi
mov ecx, edi
call fcn.00417ffc
pop edi
pop esi
ret 4
Function at 0x415f36
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x80b]
mov byte [ebp - 0x80c], bl
mov esi, SysReAllocString
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x80c]
push 0x800
push eax
push 0x40a470
push 0x40a468
mov dword [ebp - 0xc], 0x104
call fcn.00424191
add esp, 0x14
test eax, eax
je 0x415fa0
lea edi, [ebp - 0x80c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x415fd8
lea eax, [ebp - 8]
push eax
push 0x40a43c
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x415fd8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80c]
push eax
push ebx
push ebx
push 0x40a430
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [ebp - 0x80c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416020
cmp dword [0x471da4], ebx
je 0x41600b
mov ecx, dword [ebp - 4]
push 1
push ebx
lea eax, [ebp - 0x80c]
push dword [ebp + 8]
push 2
push eax
call fcn.00415cb4
jmp 0x41601b
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x80c]
push ebx
push eax
call fcn.00415de0
push 1
pop eax
jmp 0x416022
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4162d4
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45d7f4
call fcn.0045cfc0
push ecx
push ecx
mov al, byte [ebp - 0xd]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], esi
mov byte [esi + 4], al
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], edi
call fcn.0042c0ec
lea ecx, [esi + 0x14c]
mov byte [ebp - 4], 1
call fcn.00421c43
mov ecx, esi
mov byte [ebp - 4], 2
mov dword [esi], 0x401894
mov dword [esi + 0x144], edi
mov dword [esi + 0x3c], edi
call fcn.00417503
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x41789d
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 8]
mov edi, 0x40a5e0
push eax
mov esi, SysReAllocString
push edi
push esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4178de
lea eax, [ebp - 8]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4178de
xor eax, eax
jmp 0x41795a
lea eax, [ebp - 0xc]
xor edi, edi
push eax
lea eax, [ebp - 4]
push eax
push edi
mov esi, 0x40a5cc
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417914
cmp dword [ebp - 4], 1
sete al
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 4], edi
sete al
mov dword [ebp - 4], eax
jmp 0x41791b
mov dword [ebp - 4], 1
cmp dword [ebp + 8], edi
je 0x41792b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x417957
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push 4
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00425f30
mov ecx, 0x495688
call fcn.0041c300
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret 4
Function at 0x419857
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.0045cf90
push esi
mov esi, ecx
mov eax, dword [esi + 0x1fc08]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x41991e
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x78]
cmp dword [ebp - 4], 0
je 0x4198a8
lea eax, [ebp - 0x804]
push 0x800
push eax
push dword [ebp - 4]
call fcn.00424a26
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp + 8], 0
je 0x4198e0
mov eax, dword [esi + 0x1fc08]
mov ecx, esi
push dword [eax + 0x10]
call fcn.00419179
test eax, eax
jne 0x41991e
push 0x10
push 0x40a37c
push 0x9d
call fcn.00424a93
pop ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x41991e
lea eax, [ebp - 0x804]
push eax
push 0x40a898
lea eax, [ebp - 0x1804]
push 0x1000
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov eax, 0x45f128
push 5
push eax
push eax
lea eax, [ebp - 0x1804]
push eax
push 0x40a890
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
leave
ret 4

Function at 0x419923
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
mov esi, 0x104
push 0x40a8e4
mov dword [ebp - 8], ecx
push SysReAllocString
mov dword [ebp - 0xc], esi
call edi
test eax, eax
je 0x41996c
lea eax, [ebp - 0x10]
push eax
push 0x40a8c0
push SysReAllocString
call edi
test eax, eax
jne 0x419a1d
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push 0x45f128
push dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
lea esi, [ebp - 0x114]
jbe 0x419a1d
cmp byte [ebp - 0x114], 0x22
jne 0x4199af
lea esi, [ebp - 0x113]
push 0x22
push esi
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x4199c0
mov byte [eax], bl
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
mov eax, dword [eax + 0x1fc08]
mov eax, dword [eax + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x78]
cmp dword [ebp - 4], ebx
je 0x4199fb
lea eax, [ebp - 0x914]
push 0x800
push eax
push dword [ebp - 4]
call fcn.00424a26
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 5
lea eax, [ebp - 0x914]
push ebx
push eax
push esi
push 0x40a890
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x419a27
mov ecx, dword [ebp - 8]
push 2
call fcn.004177df
pop edi
pop esi
pop ebx
leave
ret