joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4147c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4148e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.004025a8
mov dword [ebp - 4], eax
call sub.user32.dll_GetForegroundWindow
push 0xc8
mov edx, dword [ebp - 4]
push edx
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040364c
mov edx, dword [ebp - 8]
mov eax, dword [0x416364]
call fcn.00403980
test eax, eax
jle 0x4148bf
mov eax, dword [0x416554]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4148bf
xor eax, eax
push ebp
push 0x4148b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x416554]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4148ab
inc ebx
xor esi, esi
lea ecx, [ebp - 0xc]
mov eax, dword [0x416554]
mov eax, dword [eax]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00403980
test eax, eax
jle 0x4148a7
mov edx, dword [0x416548]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc]
call fcn.00403980
test eax, eax
jg 0x4148ab
mov eax, dword [0x416548]
push dword [eax]
push dword [ebp - 0xc]
push 0x4148f8
mov eax, dword [0x416548]
mov edx, 3
call fcn.004037b0
jmp 0x4148ab
inc esi
dec ebx
jne 0x414853
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4148bf
mov eax, dword [ebp - 4]
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4148e9
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004034b8
ret
Function at 0x414a70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x414c6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.004025a8
mov dword [ebp - 4], eax
mov eax, 0xc8
call fcn.004025a8
mov ebx, eax
mov byte [ebp - 0xd], 1
call sub.user32.dll_GetForegroundWindow
mov esi, eax
push 0xc8
mov eax, dword [ebp - 4]
push eax
push esi
call sub.user32.dll_GetClassNameA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.0040364c
mov eax, dword [ebp - 0x14]
mov edx, 0x414c84
call fcn.00403800
je 0x414ae1
mov byte [ebp - 0xd], 0
push 0xc8
push ebx
push esi
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.0040364c
mov eax, dword [ebp - 0x18]
mov edx, 0x414c94
call fcn.00403800
je 0x414b0a
mov byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
jne 0x414b2b
cmp dword [edi + 0x4c], 0
je 0x414c37
mov eax, edi
call fcn.00414a04
xor eax, eax
mov dword [edi + 0x4c], eax
jmp 0x414c37
mov dword [edi + 0x4c], esi
push 0
push 0x414ca0
push 0
push esi
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x414b74
push ebx
push 0xc8
push 0xd
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 0x414cb4
call fcn.0040373c
lea eax, [edi + 0x44]
mov edx, dword [ebp - 8]
call fcn.004034e8
push 0
push 0x414cbc
push 0
push esi
call sub.user32.dll_FindWindowExA
mov esi, eax
test esi, esi
je 0x414c37
mov eax, dword [0x416440]
mov eax, dword [eax]
mov edx, 0x414ccc
call fcn.00403800
jne 0x414bd5
push ebx
push 0xc8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 0x414cd8
call fcn.0040373c
lea eax, [edi + 0x48]
mov edx, dword [ebp - 8]
call fcn.004034e8
jmp 0x414c37
push 0
push 0
push 0xcc
push esi
call sub.user32.dll_PostMessageA
push ebx
push 0xc8
push 0xd
push esi
call sub.user32.dll_SendMessageA
push 0
push 0x2a
push 0xcc
push esi
call sub.user32.dll_PostMessageA
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.0040364c
cmp dword [ebp - 0xc], 0
je 0x414c37
lea eax, [edi + 0x30]
mov edx, dword [ebp - 0xc]
call fcn.004034e8
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, 0x414cd8
call fcn.0040373c
lea eax, [edi + 0x48]
mov edx, dword [ebp - 8]
call fcn.004034e8
mov eax, dword [ebp - 4]
call fcn.004025c0
mov eax, ebx
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414c75
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004034b8
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004034b8
ret
Function at 0x414fa4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4151a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.004025a8
mov dword [ebp - 8], eax
mov eax, 0xc8
call fcn.004025a8
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 1
call sub.user32.dll_GetForegroundWindow
mov ebx, eax
push 0xc8
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.user32.dll_GetClassNameA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.0040364c
mov eax, dword [ebp - 0x14]
mov edx, 0x4151b8
call fcn.00403800
je 0x41501a
mov byte [ebp - 0xd], 0
push 0xc8
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.0040364c
mov eax, dword [ebp - 0x18]
mov edx, 0x4151c8
call fcn.00403800
je 0x415047
mov byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
jne 0x415068
cmp dword [esi + 0x3c], 0
je 0x41516d
mov eax, esi
call fcn.00414f18
xor eax, eax
mov dword [esi + 0x3c], eax
jmp 0x41516d
mov dword [esi + 0x3c], ebx
xor edx, edx
push ebp
push 0x415163
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x4151d4
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov edi, eax
test edi, edi
je 0x415159
mov eax, dword [ebp - 4]
push eax
push 0xc8
push 0xd
push edi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040364c
lea eax, [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4151e4
call fcn.0040373c
push 0
push 0x4151d4
push edi
push ebx
call sub.user32.dll_FindWindowExA
mov edi, eax
test edi, edi
je 0x415159
mov eax, dword [ebp - 4]
push eax
push 0xc8
push 0xd
push edi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040364c
lea eax, [esi + 0x38]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4151f8
call fcn.0040373c
push 0
push 0x4151d4
push edi
push ebx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x415159
mov edx, dword [ebp - 4]
push edx
push 0xc8
push 0xd
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040364c
lea eax, [esi + 0x34]
mov edx, 0x41520c
call fcn.004034e8
mov edx, dword [ebp - 0xc]
mov eax, 0x415220
call fcn.00403980
test eax, eax
jg 0x415159
lea eax, [esi + 0x34]
mov edx, dword [ebp - 0xc]
call fcn.004036f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41516d
mov eax, dword [ebp - 8]
call fcn.004025c0
mov eax, dword [ebp - 4]
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4151a7
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004034b8
lea eax, [ebp - 0xc]
call fcn.00403494
ret
Function at 0x4154a4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004038a4
xor eax, eax
push ebp
push 0x41561e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40ecd4]
call fcn.00402af4
mov ebx, eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040352c
lea eax, [ebp - 0x14c]
push eax
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040ed28
mov eax, dword [ebp - 0x14c]
mov edx, 0x415634
call fcn.00403800
je 0x41554e
push dword [ebp - 4]
push 0x415634
push 0x415640
lea eax, [ebp - 4]
mov edx, 3
call fcn.004037b0
lea eax, [ebp - 8]
mov ecx, 0x415634
mov edx, dword [ebp - 4]
call fcn.0040373c
jmp 0x41555b
lea eax, [ebp - 4]
mov edx, 0x415640
call fcn.004036f8
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4155f3
mov eax, dword [ebp - 0x148]
add eax, 0xfffffff0
sub eax, 8
jb 0x41558d
add eax, 0xffffffe8
sub eax, 8
jae 0x4155dc
lea eax, [ebp - 0x11c]
cmp eax, 0x2e
je 0x4155dc
lea eax, [ebp - 0x11c]
cmp eax, 0x415644
je 0x4155dc
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.004036c4
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 8]
call fcn.0040373c
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x148]
push eax
push ebx
call sub.KERNEL32.DLL_FindNextFileA
neg eax
sbb eax, eax
neg eax
test al, al
jne 0x415577
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415625
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.004034b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004034b8
ret
Function at 0x401025
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
push 0x104
lea eax, [ebp - 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40106c
xor eax, eax
jmp 0x4010b6
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.0040148f
pop ecx
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
shr esi, 2
je 0x4010aa
mov eax, dword [ebp - 4]
xor edi, dword [eax]
add eax, 4
dec esi
jne 0x4010a2
push dword [ebp - 4]
call fcn.004014a3
pop ecx
mov eax, edi
pop esi
pop edi
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x13a87020
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x27f5512
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x4038fa
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fa], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404658], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045ec], eax
mov dword [0x4040f2], eax
mov dword [0x4045d8], 0x30
mov dword [0x4045dc], 2
jmp 0x40393f
mov dword [0x4045e0], 0x403153
mov dword [0x4045e4], 0
mov dword [0x4045e8], 0
mov dword [0x404600], 0x40454e
mov dword [0x4045f8], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045f0], eax
mov dword [0x404604], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045f4], eax
push 0x4045d8
fadd dword [ebp + 0x40]
add bh, bh
adc eax, sym.imp.user32.dll_RegisterClassExA
push 0
push dword [0x4040f2]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push 0x40454e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404650], eax
push 5
push dword [0x404650]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404650]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404608]
jmp 0x403a13
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a05
mov eax, dword [0x404610]
jmp 0x403a2e
call 0x402bd5
ret
Function at 0x401890
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
push ebp
mov ebp, dword [esp + 0x120]
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
mov edi, ecx
mov ecx, dword [esp + 0x130]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push edx
mov dword [esp + 0x30], 0x104
call esi
test eax, eax
jne 0x40192c
lea ecx, [ecx]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, edi
call fcn.00401890
test eax, eax
jne 0x40192c
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push edx
mov dword [esp + 0x30], 0x104
call esi
test eax, eax
je 0x4018f0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x124]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebp
add esp, 0x114
ret 8

Function at 0x401960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401979
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40198d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4019ae
cmp esi, eax
jae 0x401987
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4019a0
cmp esi, eax
jae 0x401987
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401a00
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push edi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x20006
push 0
push 0x4206d8
push 0
push edx
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x401a3a
xor eax, eax
pop edi
ret 0x10
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x401a56
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
ret 0x10
mov eax, edx
push esi
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a60
sub eax, esi
push eax
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x401a86
xor edi, edi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
ret 0x10
Function at 0x402be0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x44
mov edx, dword [esp + 0x50]
push edi
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0xf
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x4c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x4c]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x18], 0x40
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x402c73
lea eax, [esp]
push eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x58]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402c73
lea eax, [esp + 4]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c50
mov ecx, dword [esp + 0x54]
sub eax, edx
push eax
lea edx, [esp + 8]
push edx
call fcn.00401440
mov eax, 1
add esp, 0x44
ret 0x10
mov ecx, dword [esp + 0x54]
call fcn.004012b0
xor eax, eax
add esp, 0x44
ret 0x10

Function at 0x402c90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41f690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x70]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x20]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push edi
push eax
mov dword [esp + 0x90], 0
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402d6f
call fcn.004192a2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
push 0x38
push str.The_program_couldnt_be_executed._Please_try_again_later
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 1
call fcn.00401440
mov esi, dword [esp + 8]
push 0x40
push str.CINEUP114
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esi - 0x10]
mov byte [esp + 0x68], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x68], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x402d9b
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
lea eax, [edi - 0x10]
mov dword [esp + 0x68], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402da5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x60]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x403e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x18]
push eax
push ecx
push esi
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
je 0x403e2f
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403e35
pop esi
xor eax, eax
pop ebp
pop ecx
ret
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x403e97
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x403e68
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x24]
pop ebx
mov byte [esp + 0xb], 1
pop esi
mov dword [edx], eax
movzx eax, byte [esp + 7]
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x24]
push edi
mov edi, dword [eax]
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp edi, eax
jl 0x403e96
mov ecx, edi
mov edi, dword [esp + 0x24]
mov edx, ecx
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x13], 1
pop edi
movzx eax, byte [esp + 0xf]
pop ebx
pop esi
pop ebp
pop ecx
ret

Function at 0x4042b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41f823
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0041b7cf
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], method.CDC.virtual_0
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov byte [esp + 0x24], 1
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x404377
mov eax, dword [ebx]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call dword [eax + 0x50]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0041ba99
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, edx
push eax
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0041bc5c
test ebp, ebp
je 0x404355
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 4]
push ebp
push edx
call fcn.0041bce5
mov ecx, dword [edi]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x24]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.0041b91f
jmp 0x404389
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x404c20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0xc]
lea edi, [esi + 4]
push edi
push 0x20019
push 0
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404c99
mov eax, dword [esi + 8]
push ebx
lea ecx, [esp + 0xc]
push ecx
lea ebx, [esi + 0x10]
push ebx
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404c86
mov ecx, dword [edi]
push ecx
mov dword [esi + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx]
pop ebx
pop edi
pop esi
add esp, 8
ret
mov edx, dword [edi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x14]
pop ebx
pop edi
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x14]
pop edi
pop esi
add esp, 8
ret

Function at 0x404cb0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
lea edi, [esi + 4]
push edi
push 0
push 0x20006
push 0
push 0x4206d8
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404d0a
mov eax, dword [esi + 8]
mov edx, dword [edi]
push 4
lea ecx, [esi + 0x10]
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x404d01
mov dword [esi + 0x18], 1
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ecx
ret