joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4106e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov al, 0x6c
push ebx
mov byte [esp + 0x11], al
mov byte [esp + 0x16], al
mov byte [esp + 0x17], al
mov eax, dword [0x4d9540]
lea ecx, [esp + 0xc]
push ebp
xor ebx, ebx
push esi
test ecx, ecx
push edi
mov byte [esp + 0x18], 0x4b
mov byte [esp + 0x19], 0x65
mov byte [esp + 0x1a], 0x72
mov byte [esp + 0x1b], 0x6e
mov byte [esp + 0x1c], 0x65
mov byte [esp + 0x1e], 0x33
mov byte [esp + 0x1f], 0x32
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], 0x64
mov byte [esp + 0x24], bl
mov dword [esp + 0x10], eax
je 0x4107a5
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebx
je 0x4107a5
lea eax, [esi + esi + 0xe]
push eax
call fcn.004c58a5
add esp, 4
cmp eax, ebx
je 0x4107a5
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], bx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
lea ecx, [esi + 1]
add eax, 0xc
cmp ecx, ebx
mov dword [esp + 0x10], eax
mov esi, eax
jne 0x410780
cmp eax, ebx
jne 0x41079a
push ecx
push eax
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jle 0x41079a
mov word [esi + eax*2 - 2], bx
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00401970
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edx
call ebp
mov edx, dword [0x4d9544]
mov esi, eax
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4107e3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4107e3
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, ebx
je 0x410865
mov al, 0x67
mov cl, 0x73
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
lea eax, [esp + 0x28]
mov byte [esp + 0x28], 0x49
push eax
push esi
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], 0x44
mov byte [esp + 0x33], 0x65
mov byte [esp + 0x34], 0x62
mov byte [esp + 0x35], 0x75
mov byte [esp + 0x38], 0x65
mov byte [esp + 0x39], 0x72
mov byte [esp + 0x3a], 0x50
mov byte [esp + 0x3b], 0x72
mov byte [esp + 0x3c], 0x65
mov byte [esp + 0x3d], cl
mov byte [esp + 0x3e], 0x65
mov byte [esp + 0x3f], 0x6e
mov byte [esp + 0x40], 0x74
mov byte [esp + 0x41], bl
call edi
cmp eax, ebx
je 0x410865
call eax
test eax, eax
je 0x410865
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
push str.ntdll.dll
mov dword [esp + 0x18], ebx
call ebp
cmp eax, ebx
je 0x4108ac
push str.NtQueryInformationProcess
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x4108ac
push ebx
lea ecx, [esp + 0x18]
push 4
push ecx
push 7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x4108ac
cmp dword [esp + 0x14], ebx
je 0x4108ac
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
Function at 0x4108c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov dword [esp + 0x38], eax
mov dword [0x4e3cd4], eax
mov eax, dword [esp + 0x44]
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x1c], 0x4d3954
mov dword [esp + 0x38], ebp
je 0x410922
call fcn.0045b250
mov ecx, 0x4ee224
call fcn.00482280
mov eax, dword [0x4dcab0]
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push str.m_lang_id
push 0x4d9844
call fcn.00480e80
add esp, 0x14
mov dword [0x4dcab0], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x4ee014
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4ee048]
lea eax, [esp + 0x24]
push 0x4ee014
mov dword [esp + 0x30], edx
mov dword [0x4ee048], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x4edfe8]
call fcn.00412490
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push 0x1a3
push esi
call edi
push 0xf0
push 0x1a3
push esi
mov ebx, eax
call edi
mov edi, eax
mov dword [esp + 0x4c], ebp
test edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x48], 0xffffffff
je 0x4109bc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebx, ebx
je 0x410a1a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebp
push ebx
call fcn.00412020
mov ecx, dword [esp + 0x18]
add esp, 8
mov edi, eax
push 0
push 0x410630
push ecx
push edi
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
cmp edi, ebx
mov dword [esp + 0x48], eax
je 0x410a0b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, dword [esp + 0x18]
test ebp, ebp
je 0x410a2d
test edi, edi
je 0x410a2d
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x419540
Capabilities:
Get common file path
Hide graphical window

Disassembly:
sub esp, 0x3c
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x419554
xor eax, eax
pop esi
add esp, 0x3c
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esi + 0xc4]
mov ecx, dword [esp + 4]
test eax, eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], ecx
jne 0x419609
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x24], 0x4194f0
mov dword [esp + 0x44], str.NotifyWnd_123
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push SHChangeNotifyDeregister
push 0
push str.NotifyWnd_123
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [esi + 0xc4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc4]
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop ebx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x41961e
push eax
call dword [sym.imp.SHELL32.dll_SHChangeNotifyDeregister]
mov dword [esi + 0x40], 0
mov edx, dword [esi + 0xc4]
lea ecx, [esp + 8]
push ecx
push 1
push 0x400
push 0x201ff
push 2
push edx
call dword [sym.imp.SHELL32.dll_SHChangeNotifyRegister]
mov dword [esi + 0x40], eax
mov eax, 1
pop esi
add esp, 0x3c
ret
Function at 0x41b680
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, ecx
lea edx, [esp + 8]
mov ecx, eax
push edi
and ecx, 0xffff
push edx
shr eax, 0x10
mov dword [ebx], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0xc]
xor edx, edx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
push edx
push 0
push 0x1111
push eax
mov dword [esp + 0x28], ecx
call edi
lea ecx, [esp + 0x34]
test ecx, ecx
mov ecx, dword [esp + 0x1c]
jne 0x41b709
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
je 0x41b76c
mov dword [ebx], 1
mov edx, dword [esi + 4]
push eax
push 9
push 0x110b
push edx
call edi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x41b75d
mov dword [0x4edee0], 1
mov eax, dword [esi + 0x24]
push 0
push 0x6f
push 0x111
push eax
call edi
pop edi
pop esi
mov dword [0x4edee0], 0
xor eax, eax
pop ebx
add esp, 0x18
ret 0x10
mov ecx, dword [esi + 0x24]
push 0
push 0x6f
push 0x111
push ecx
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret 0x10
Function at 0x41cb70
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41cb89
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0xec]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call edi
mov ecx, dword [esi + 0x2c]
push 0
push ecx
call edi
lea eax, [esi + 0x50]
sub esp, 8
test eax, eax
mov edi, esp
je 0x41cbb3
add eax, 4
jmp 0x41cbb5
xor eax, eax
push eax
lea ecx, [edi + 4]
call fcn.00402130
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov dword [edi], 0x4d3914
call fcn.0041c7f0
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0xec]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 0xec]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call edi
mov eax, dword [esi + 0xec]
push 0
push 0
push 0xb7
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 0x64
push 0x3e8
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [esi + 0xec]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 8]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41cc5b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41cc5b
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
pop edi
pop esi
pop ecx
ret 4
Function at 0x41cc70
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
cmp eax, 0x3e8
push edi
mov esi, ecx
jne 0x41ccc4
mov edi, dword [esi + 0xec]
call dword [sym.imp.USER32.dll_GetFocus]
cmp edi, eax
je 0x41cdc7
mov eax, dword [esi + 0xec]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
mov ecx, dword [esi + 0x2c]
push 5
push ecx
call edi
mov edx, dword [esi + 4]
push 0x3e8
push edx
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop edi
pop esi
pop ebx
ret 0x10
cmp eax, 0x7d0
jne 0x41cdc7
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov edi, dword [sym.imp.USER32.dll_GetFocus]
mov ebx, dword [esi + 0xec]
call edi
cmp ebx, eax
je 0x41cdc7
call edi
mov ecx, dword [esi + 0xec]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ecx
mov dword [esi + 0x34], eax
call edi
mov edx, dword [esi + 0x2c]
push 0
push edx
call edi
lea eax, [esi + 0x50]
sub esp, 8
test eax, eax
mov edi, esp
je 0x41cd1f
add eax, 4
jmp 0x41cd21
xor eax, eax
push eax
lea ecx, [edi + 4]
call fcn.00402130
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
mov dword [edi], 0x4d3914
call fcn.0041c7f0
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xec]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 0xec]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call edi
mov ecx, dword [esi + 0xec]
push 0
push 0
push 0xb7
push ecx
call edi
mov edx, dword [esi + 4]
push 0
push 0x64
push 0x3e8
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esi + 0xec]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41cdc7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41cdc7
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x41d7e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x41d7fc
push 0
push eax
call edi
mov eax, dword [esi + 0x90]
test eax, eax
je 0x41d80b
push 0
push eax
call edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x41d89c
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub edx, eax
push 0xc
push edx
mov edx, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x3c]
push ecx
push 0
mov ecx, dword [eax + 4]
push ecx
call edi
fild dword [esp + 0x1c]
push 0x31
fstp qword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 8], eax
fild dword [esp + 8]
fmul qword [0x4d3db8]
fsubr qword [esp + 0xc]
call fcn.004c64c8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
sub edx, ecx
push 4
push edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
sub eax, edx
push eax
mov eax, dword [esi + 0x3c]
push ecx
push edx
mov ecx, dword [eax + 4]
push 0
push ecx
call edi
pop edi
pop esi
add esp, 0x1c
ret 4
Function at 0x41f9e0
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
mov esi, dword [ecx + 0xa0]
test esi, esi
push edi
je 0x41fad5
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0xec]
push 5
push eax
call edi
mov ecx, dword [esi + 0x2c]
push 0
push ecx
call edi
lea eax, [esi + 0x50]
sub esp, 8
test eax, eax
mov edi, esp
je 0x41fa24
add eax, 4
jmp 0x41fa26
xor eax, eax
push eax
lea ecx, [edi + 4]
call fcn.00402130
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov dword [edi], 0x4d3914
call fcn.0041c7f0
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0xec]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 0xec]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call edi
mov eax, dword [esi + 0xec]
push 0
push 0
push 0xb7
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 0x64
push 0x3e8
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [esi + 0xec]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 8]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41fae1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41fae1
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, 1
pop edi
pop esi
pop ecx
ret
call fcn.0041f880
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x420e10
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x4da9d0]
sub esp, 0x230
cmp eax, 0xffffffff
jne 0x420edb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
push edi
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0xc]
mov dword [0x4da9d0], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
call ebx
mov eax, dword [esp + 0x10]
mov esi, dword [0x4d9540]
cmp eax, 5
jb 0x420e9d
mov ecx, 0x47
xor eax, eax
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x120]
mov dword [esp + 0x120], 0x11c
push ecx
call ebx
mov eax, dword [esp + 0x124]
mov edx, dword [esp + 0x128]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp eax, 6
jb 0x420eac
mov dword [0x4da9d0], 1
mov ecx, dword [0x4d9544]
mov edi, dword [0x4da9d0]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x420ed6
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420ed6
push esi
call fcn.004c5432
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x230
ret
Function at 0x421bb0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x3c
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x421cab
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x421cab
mov ecx, dword [edi + 4]
push ebx
lea eax, [esp + 0x14]
push ebp
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov ebp, ecx
sub ecx, dword [esp + 0x1c]
mov ebx, eax
sub eax, edx
mov dword [esp + 0x2c], edx
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x28]
mov esi, eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov ecx, edi
call fcn.00423950
mov eax, dword [edi + 0x48]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x421c60
mov edx, dword [esp + 0x10]
push esi
push edx
mov ecx, edi
call fcn.00422e50
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x421c43
mov eax, dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_ReleaseDC]
push esi
push eax
call edi
mov ecx, dword [esp + 0x30]
push 0xcc0020
push 0
push 0
sub ebp, ecx
mov ecx, dword [esp + 0x20]
push esi
push ebp
sub ebx, dword [esp + 0x40]
push ebx
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
push 0
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x3c
ret
Function at 0x422cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
mov ecx, dword [ebx + 4]
cmp ecx, edi
je 0x422cc5
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebx + 8]
mov dword [ebx + 4], edi
cmp eax, edi
je 0x422ce3
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 8], edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x422dfe
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x422dfe
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x422dfe
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebp
mov dword [ebx + 8], eax
je 0x422dfe
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
je 0x422df1
mov ecx, edi
mov edi, eax
mov edx, ecx
lea eax, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x20], ebp
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x422de7
mov edi, dword [esp + 0x18]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebp
je 0x422dae
lea edx, [esp + 0x14]
mov dword [esi], 0x4d3e88
push edx
push edi
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
jmp 0x422db0
xor esi, esi
mov eax, dword [esp + 0x18]
mov dword [ebx + 4], esi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0x422de7
mov ecx, dword [eax + 8]
mov dword [eax + 8], ebp
cmp ecx, ebp
jne 0x422dd7
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
mov ecx, dword [ebx + 4]
cmp ecx, ebp
je 0x422de4
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [ebx + 4], ebp
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 8], ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
Function at 0x428ff0
Capabilities:
Create pipe
Create thread
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3f30
push 0x4c66dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x94], esi
mov eax, dword [esi]
call dword [eax + 0xc]
xor edi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x3c], edi
mov dword [ebp - 4], edi
push edi
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x429170
push 2
push 1
push edi
lea ecx, [ebp - 0x38]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
push eax
mov edx, dword [ebp - 0x30]
push edx
call edi
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call ebx
test eax, eax
je 0x42916e
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x42916e
push 2
push 0
push 0
lea eax, [esi + 0x18]
push eax
call edi
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call edi
push eax
call ebx
test eax, eax
je 0x42916e
push 2
push 0
push 0
lea edx, [esi + 0x14]
push edx
call edi
push eax
mov eax, dword [ebp - 0x20]
push eax
call edi
push eax
call ebx
test eax, eax
je 0x42916e
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
call fcn.004295f0
lea edx, [ebp - 0x20]
push edx
mov ecx, esi
call fcn.004295f0
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.004292b0
test eax, eax
je 0x42916e
lea ecx, [ebp - 0x30]
push ecx
mov ecx, esi
call fcn.004295f0
lea edx, [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.004295f0
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.004295f0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
lea ecx, [esi + 0xc]
push ecx
push 0
push esi
push 0x429610
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x42916e
mov dword [ebp - 0x3c], 1
xor edi, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00429199
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4292b0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x54
push esi
mov esi, ecx
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x10
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x74]
push 1
push 0
push 0
push edx
push 0
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], 0
mov dword [esp + 0x6c], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x429322
pop edi
pop esi
add esp, 0x54
ret 0x10
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ecx
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x54
ret 0x10
Function at 0x42c0c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
ret