joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b6c40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100fb337
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.100e89bd
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.100e89bd
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.100b7760
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x100b77b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100fb410
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.100f4775
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x100b77e3
xor al, al
jmp 0x100b790f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x100b7805
xor al, al
jmp 0x100b790f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x100b7818
xor al, al
jmp 0x100b790f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x100b782c
xor al, al
jmp 0x100b790f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.100e8a82
test eax, eax
jne 0x100b7860
xor al, al
jmp 0x100b790f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x1015f7f4
mov dword [esp + 0x20], ebp
call fcn.100f4775
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.100f158a
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.100f15e1
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x100b78f4
mov ax, word [ebx]
test ax, ax
je 0x100b78e6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.100b7930
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x100b78ca
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.100f15e1
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x100b7e30
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.100f2d37
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x100b7e76
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.100d9488
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x1017f210
push ecx
call fcn.100db07f
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x100b8a80
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x100b8b23
test eax, eax
jbe 0x100b8b23
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x100b8b23
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x100b8ace
xor esi, esi
jmp 0x100b8ad4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x100b8aff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.100b4ab0
add esi, eax
push esi
mov ebx, esi
call fcn.100b4ab0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x100b8ae0
pop ebp
test edi, edi
pop edi
jne 0x100b8b23
test ebx, ebx
je 0x100b8b23
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.100d9ef0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x100b8c40
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x100b8d5d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100b8d5d
mov eax, dword [esi + 0x3c]
push eax
call fcn.100ec192
mov esi, eax
test esi, esi
je 0x100b8d5d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x100b8d5d
mov ecx, esi
call fcn.100b8bd0
cmp edi, eax
jge 0x100b8d5d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x100b8ce3
mov dword [esp + 0x34], 1
jmp 0x100b8d3e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x100b8d5d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.100b81c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x100c6360
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.100cc770
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x100c6459
lea ecx, [esp + 0x10]
push ecx
push str..htm
push accept
mov ecx, esi
call fcn.100451d0
test eax, eax
jne 0x100c6459
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push accept
mov ecx, esi
call fcn.100451d0
test eax, eax
jne 0x100c6459
lea edx, [esp + 0x10]
push 0x10180774
push edx
call fcn.100da630
mov esi, eax
add esp, 8
test esi, esi
jne 0x100c642a
lea eax, [esp + 0x10]
push 0x10180770
push eax
call fcn.100da630
mov esi, eax
add esp, 8
test esi, esi
jne 0x100c642a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x100c642d
mov byte [esi], 0
push 0x1017ff38
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x100cc6b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100fc4f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x100cc760
mov eax, dword [0x10181254]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.100eab39
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.100eab88
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.100eaae5
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x100cc747
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x100cc747
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.100ea755
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x100cf860
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100fc980
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x100cfa07
mov ecx, dword [0x10181254]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x100cf95c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.100ce580
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.100ea842
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.100ea755
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x1017ff38
call fcn.100ea7c3
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.100ce940
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.100ea842
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.100ea755
lea ecx, [esp + 0xc]
call fcn.100eac1d
mov ecx, dword [esp + 0xc]
push 0x10180974
push ecx
call fcn.100d95b4
add esp, 8
test eax, eax
je 0x100cf984
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x100cf8bd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.100ea755
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.100ea755
jmp 0x100cfa0b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.100cf600
test eax, eax
push 0
je 0x100cf9ef
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.100cdca0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x100cf9d5
cmp eax, 0x64
jg 0x100cf9c3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x100cf960
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x100cf960
cmp eax, 0x64
jge 0x100cf95c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x100cf960
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.100cdca0
mov esi, eax
jmp 0x100cf960
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x100cfa15
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x100d7550
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x100fcb0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push esi
mov esi, dword [esp + 0x144]
push esi
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.100ea7c3
mov eax, dword [esp + 0x148]
test eax, eax
jne 0x100d7622
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x100d75ba
lea ecx, [esp + 4]
mov dword [esp + 0x13c], 0xffffffff
call fcn.100ea755
xor eax, eax
jmp 0x100d7672
push esi
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x100d75d5
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x100d7626
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100d7626
mov ecx, dword [esp + 4]
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.100d9663
add esp, 8
test eax, eax
je 0x100d761e
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100d75f7
jmp 0x100d7626
mov eax, dword [esp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
test eax, eax
jne 0x100d7646
lea ecx, [esp + 4]
mov dword [esp + 0x13c], 0xffffffff
call fcn.100ea755
xor eax, eax
jmp 0x100d7672
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x13c], 0xffffffff
call fcn.100ea755
mov eax, esi
mov ecx, dword [esp + 0x134]
pop esi
mov dword fs:[0], ecx
add esp, 0x13c
ret 8

Function at 0x100ecb36
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100ecb6e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100eabb0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100eab88
jmp 0x100ecb7a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100ee32d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100ee36f
call fcn.100f4775
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100ee36f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100ee366
xor eax, eax
jmp 0x100ee377
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100ee37d
pop edi
pop esi
pop ebx
ret 4
Function at 0x401000
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [str.asdasd]
push edi
mov di, word [0x40213c]
push 0
push 0
mov dword [esp + 0x1c], eax
mov al, byte [0x40213e]
push 0
push 0
mov byte [esp + 0x23], al
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov al, byte [esp + 0x13]
mov ecx, 0x7b
push 0
push 0
push 0
mov dword [ecx], esi
mov word [ecx + 4], di
push 0
mov byte [ecx + 6], al
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push 0
push 0x7b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movups xmm0, xmmword [str.Sample_Window_Class]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x60]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
movups xmmword [esp + 0x60], xmm0
push eax
movups xmm0, xmmword [0x402150]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x4011a0
movups xmmword [esp + 0x74], xmm0
mov dword [esp + 0x2c], esi
movq xmm0, qword [0x402160]
movq qword [esp + 0x84], xmm0
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push esi
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Learn_to_Program_Windows
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x401184
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x40]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
push 0
push eax
movaps xmmword [esp + 0x50], xmm0
movq qword [esp + 0x60], xmm0
call esi
test eax, eax
jle 0x401184
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x40]
push eax
call edi
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
call esi
test eax, eax
jg 0x401161
mov ecx, dword [esp + 0x9c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0040123d
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401a6d
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x398
mov eax, dword [0x1004080]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov esi, 0x80
push esi
lea eax, [ebp - 0x388]
xor edi, edi
push eax
push 0x1001180
mov dword [ebp - 0x390], edi
mov dword [ebp - 0x394], edi
mov dword [ebp - 0x398], edi
call dword [sym.imp.ole32.dll_StringFromGUID2]
push esi
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.msvcrt.dll_wcstombs]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea eax, [ebp - 0x38c]
push eax
push 1
push edi
push 0x10011ec
mov edi, 0x80000000
push edi
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x10017b5
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x38c]
call sub.NPPTools.dll_recursiveDeleteKey
pop ecx
pop ecx
push dword [ebp - 0x38c]
call ebx
lea eax, [ebp - 0x38c]
push eax
push 1
push 0
push 0x10011e4
push edi
call esi
test eax, eax
jne 0x10017e8
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x38c]
call sub.NPPTools.dll_recursiveDeleteKey
pop ecx
pop ecx
push dword [ebp - 0x38c]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10011dc
lea eax, [ebp - 0x104]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
call edi
push 0x10011d4
lea eax, [ebp - 0x184]
push eax
call esi
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x184]
push eax
call edi
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x10011bc
push edi
call esi
inc eax
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push 0
push dword [ebp - 0x390]
call edi
lea eax, [ebp - 0x84]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x84]
push eax
push 1
push 0
push 0x10011e4
push dword [ebp - 0x390]
call edi
lea eax, [ebp - 0x394]
push eax
push 0x10011ac
push dword [ebp - 0x390]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 0x104
lea eax, [ebp - 0x288]
push eax
push dword [0x10040b0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x288]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x288]
push eax
push 1
push 0
push 0
push dword [ebp - 0x394]
call edi
push 0x10011a0
call esi
inc eax
push eax
push 0x10011a0
push 1
push 0
push 0x1001190
push dword [ebp - 0x394]
call edi
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x184]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push dword [ebp - 0x390]
call ebx
push dword [ebp - 0x394]
call ebx
push dword [ebp - 0x398]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.01003218
leave
ret
Function at 0x1001945
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1004080]
and dword [ebp - 0x208], 0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov esi, 0x80
push esi
lea eax, [ebp - 0x204]
push eax
push 0x1001180
call dword [sym.imp.ole32.dll_StringFromGUID2]
push esi
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.msvcrt.dll_wcstombs]
add esp, 0xc
push 0x10011dc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
mov edi, 0x80000000
push edi
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jne 0x10019f7
push 0x10011ac
push dword [ebp - 0x208]
call ebx
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x208]
push eax
push 0x10011ec
push edi
call esi
test eax, eax
jne 0x1001a25
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x208]
call ebx
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x208]
push eax
push 0x10011e4
push edi
call esi
test eax, eax
jne 0x1001a53
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x208]
call ebx
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.01003218
leave
ret