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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x44e134]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallNVIDIA_nView_Desktop_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4032da
mov dword [ebp - 0x218], 0x208
mov dword [ebp - 0x21c], 1
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x446a60
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4032d0
push 0x446a5c
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], 0
jne 0x4032f3
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041c275
mov esp, ebp
pop ebp
ret
Function at 0x406590
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x44e134]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
cmp dword [ebp + 0xc], 0
je 0x4065b5
cmp dword [ebp + 8], 0
jne 0x4065bc
xor eax, eax
jmp 0x40664b
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0041c290
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x406618
push 0x104
lea eax, [ebp - 0x210]
push eax
push str.windir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x214], 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
push str._s_nview_nvtb__08X__08X.bmp
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c275
mov esp, ebp
pop ebp
ret 8

Function at 0x406690
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x44e134]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
cmp dword [ebp + 0x10], 0
je 0x4066b5
cmp dword [ebp + 8], 0
jne 0x4066bc
xor eax, eax
jmp 0x40673e
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0041c290
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x406718
push 0x104
lea eax, [ebp - 0x210]
push eax
push str.windir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x210]
push eax
push str._s_nview_nvtb_thumb__08X__08X.bmp
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c275
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4073d0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xfffffffffffffff0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x20000000
je 0x4073ff
push 9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push 2
call dword [sym.imp.USER32.dll_LockSetForegroundWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40742e
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
je 0x40745e
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 4]
je 0x40749e
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esp, ebp
pop ebp
ret
Function at 0x407cc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44e134]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jb 0x407cfa
mov eax, 1
jmp 0x407cfc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c275
mov esp, ebp
pop ebp
ret
Function at 0x412140
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x44e134]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x42c], ecx
cmp dword [ebp + 0xc], 0
jne 0x412166
xor eax, eax
jmp 0x4122fd
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax + 0x304]
mov dword [ebp - 8], ecx
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0041c290
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x26c9
call fcn.0040127b
add esp, 0xc
mov edx, dword [ebp - 0x42c]
mov eax, dword [edx + 0x2c4]
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xa0
lea edx, [eax + ecx + 0xff08]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4121fb
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax + 0x2c4]
mov edx, dword [ebp - 8]
imul edx, edx, 0xa0
lea eax, [ecx + edx + 0xff08]
mov dword [ebp - 0x430], eax
jmp 0x412207
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x430], ecx
mov edx, dword [ebp - 0x430]
push edx
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax + 0x2c4]
mov edx, dword [ebp - 8]
imul edx, edx, 0xa0
lea eax, [ecx + edx + 0xc088]
push eax
push str._s___s_
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, dword [ebp - 0x42c]
mov eax, dword [edx + 0x2c4]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4 + 0x13f18]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
and eax, 0xf00
cmp eax, 0x500
jne 0x4122f8
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x21c]
push ecx
push 0x23
push 1
mov edx, dword [ebp - 0x42c]
mov ecx, dword [edx + 0x2c4]
call fcn.004014ab
xor eax, eax
mov word [ebp - 0x428], ax
push 0x206
push 0
lea ecx, [ebp - 0x426]
push ecx
call fcn.0041c290
add esp, 0xc
push 0x104
lea edx, [ebp - 0x428]
push edx
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4122f8
push 0x4482c4
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041c275
mov esp, ebp
pop ebp
ret 8
Function at 0x4158a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x44e134]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x120], 0
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0041c290
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 2
jne 0x415909
cmp dword [ebp - 0x11c], 5
jbe 0x415909
xor eax, eax
jmp 0x415a5b
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x12c]
call fcn.004013e3
test eax, eax
jne 0x415927
xor eax, eax
jmp 0x415a5b
mov ecx, dword [ebp - 0x12c]
mov dword [ecx + 0x300], 0
mov dword [ebp - 0x124], 0
jmp 0x415952
mov edx, dword [ebp - 0x124]
add edx, 1
mov dword [ebp - 0x124], edx
cmp dword [ebp - 0x124], 0x12
jae 0x4159c2
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 0x2c0]
add edx, 0x14
push edx
mov eax, dword [0x44f780]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconW]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x4159c0
mov ecx, dword [ebp - 0x128]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x2e0]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [ebp - 0x128], 0
jmp 0x415943
mov edx, dword [ebp - 0x12c]
mov dword [edx + 0x2fc], 0
push 0x200
push 0x800000
push str.NVTBZoomWindowClass
push 0x401410
mov ecx, dword [ebp - 0x12c]
call fcn.00401203
mov ecx, dword [ebp - 0x12c]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x2e0]
push eax
push 0
push 0x430
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x401389
mov ecx, dword [ebp - 0x12c]
call fcn.00401104
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [eax + 0x2d8], 1
mov ecx, dword [ebp - 0x12c]
mov dword [ecx + 4], 0
mov ecx, dword [ebp - 0x12c]
call fcn.00401073
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041c275
mov esp, ebp
pop ebp
ret 8

Function at 0x4162d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], 0
mov eax, dword [0x44f780]
push eax
push str.NVTBZoomWindowClass
call dword [sym.imp.USER32.dll_UnregisterClassW]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x2e4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x41aff0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x44e134]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp - 0x218]
cmp dword [eax + 0x594], 0
je 0x41b050
push 0
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx + 0x594]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 0x594]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x218]
mov dword [edx + 0x594], 0
mov eax, dword [ebp - 0x218]
cmp dword [eax + 0x18], 0
je 0x41b0cd
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.0041c290
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x218]
mov dword [edx + 0x18], 0
mov eax, dword [0x44f780]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_UnregisterClassW]
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
jmp 0x41b0e8
mov edx, dword [ebp - 0x214]
add edx, 1
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0x20
jae 0x41b15d
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x218]
cmp dword [ecx + eax*4 + 0xd0c0], 0
jne 0x41b109
jmp 0x41b0d9
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + edx*4 + 0xd0c0]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41b141
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + edx*4 + 0xd0c0]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x218]
mov dword [eax + edx*4 + 0xd0c0], 0
jmp 0x41b0d9
mov ecx, dword [ebp - 0x218]
call fcn.00401429
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041c275
mov esp, ebp
pop ebp
ret

Function at 0x41c275
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e134]
jne 0x41c27f
repz ret
jmp fcn.0041ee5c
Function at 0x42c047
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.0041e78d
and dword [ebp - 4], 0
cmp dword [0x4501f8], 0
mov ebx, eax
jne 0x42c0f8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42c1a9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42c1a9
push eax
call fcn.0041e71b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4501f8], eax
call esi
push eax
call fcn.0041e71b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4501fc], eax
call esi
push eax
call fcn.0041e71b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x450200], eax
call esi
push eax
call fcn.0041e71b
pop ecx
mov dword [0x450208], eax
test eax, eax
je 0x42c0f8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e71b
pop ecx
mov dword [0x450204], eax
mov eax, dword [0x450204]
cmp eax, ebx
je 0x42c150
cmp dword [0x450208], ebx
je 0x42c150
push eax
call fcn.0041e796
push dword [0x450208]
mov esi, eax
call fcn.0041e796
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42c150
test edi, edi
je 0x42c150
call esi
test eax, eax
je 0x42c147
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42c147
test byte [ebp - 0xc], 1
jne 0x42c150
or dword [ebp + 0x10], 0x200000
jmp 0x42c189
mov eax, dword [0x4501fc]
cmp eax, ebx
je 0x42c189
push eax
call fcn.0041e796
pop ecx
test eax, eax
je 0x42c189
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42c189
mov eax, dword [0x450200]
cmp eax, ebx
je 0x42c189
push eax
call fcn.0041e796
pop ecx
test eax, eax
je 0x42c189
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4501f8]
call fcn.0041e796
pop ecx
test eax, eax
je 0x42c1a9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42c1ab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401162
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x884
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
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
xor esi, esi
mov edx, 0x82
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov ecx, edx
mov word [ebp - 0x264], si
lea edi, [ebp - 0x262]
rep stosd dword es:[edi], eax
mov ecx, edx
mov word [ebp - 0x470], si
lea edi, [ebp - 0x46e]
rep stosd dword es:[edi], eax
mov word [ebp - 0x884], si
mov ecx, 0x104
lea edi, [ebp - 0x882]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x105
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x54], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x401277
lea eax, [ebp + eax*2 - 0x266]
cmp word [eax], 0x5c
jne 0x4011f3
mov word [eax], si
mov edi, dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x470]
push 0x4010ec
push eax
call edi
add esp, 0xc
call fcn.00401134
test eax, eax
je 0x401238
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf70]
lea ecx, [ebp - 0x470]
mov dword [eax + 0x14c0], ecx
mov dword [eax + 0x14c4], esi
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x884]
push 0x4010c0
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x884]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4012b8
push esi
push esi
lea eax, [ebp - 4]
push eax
push 0x400
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x4012c8
push 0x10
push 0x4010ac
push dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4012c8
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x4012ce
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x401108
call fcn.0040146c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x401309
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401309
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401321
cmp eax, 0x20b
je 0x40130e
mov dword [ebp - 0x1c], edi
jmp 0x401335
cmp dword [ecx + 0x84], 0xe
jbe 0x401309
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40132f
cmp dword [ecx + 0x74], 0xe
jbe 0x401309
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x402014], 0xffffffff
or dword [0x402018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x402010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x40200c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40201c], eax
call fcn.00401466
cmp dword [section..data], edi
jne 0x401390
push fcn.00401466
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00401454
push 0x401084
push 0x401080
call sub.msvcrt.dll__initterm
mov eax, dword [0x402008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x402004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x40107c
push 0x401078
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00401162
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x401407
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40143c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004014a5
ret
Function at 0x402a28
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423fb0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d54
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x423fb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423fb0], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x40302c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x4170a4]
sub esi, dword [0x40b010]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423f0c], eax
jle 0x403196
push dword [0x41f0b4]
call fcn.004031da
push ebx
push ebx
push dword [0x40b010]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f0b0], esi
mov dword [0x4170a0], ebx
mov ebp, 0x40b0a0
mov eax, dword [0x4170a8]
mov edi, 0x4000
sub eax, dword [0x41f0b4]
cmp eax, edi
jg 0x4030a1
mov edi, eax
mov esi, 0x4130a0
push edi
push esi
call fcn.004031a8
test eax, eax
je 0x403188
add dword [0x41f0b4], edi
mov dword [0x40b030], esi
mov dword [0x40b034], edi
cmp dword [0x423f10], ebx
je 0x4030f8
cmp dword [0x423fa0], ebx
jne 0x4030f8
mov eax, dword [0x41f0b0]
push ebx
sub eax, dword [0x4170a4]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40b010]
mov dword [0x4170a0], eax
call fcn.00402bc5
pop ecx
mov ecx, 0x40b018
mov dword [0x40b038], ebp
mov dword [0x40b03c], 0x8000
call fcn.00405e4e
test eax, eax
jl 0x403191
mov esi, dword [0x40b038]
sub esi, ebp
je 0x403152
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40318d
cmp esi, dword [esp + 0x10]
jne 0x40318d
add dword [0x40b010], esi
cmp dword [0x40b034], ebx
jne 0x4030c7
jmp 0x40315e
cmp dword [0x40b034], ebx
jne 0x403191
cmp edi, ebx
je 0x403191
mov eax, dword [0x4170a4]
mov ecx, eax
sub ecx, dword [0x40b010]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x40308b
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403196
or eax, 0xffffffff
jmp 0x4031a0
push 0xfffffffffffffffe
jmp 0x403193
push 0xfffffffffffffffd
pop eax
jmp 0x4031a0
push 1
call fcn.00402bc5
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4