joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49acd0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub esp, 0x208
mov eax, dword [str.IRNPF]
mov cx, word [0x50a40c]
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x16]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 5
mov esi, str.IResearch_IRNPF_Driver
lea edi, [esp + 0x90]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x1a
lea edi, [esp + 0xa7]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x110]
mov byte [esp + 0xc], 0
push edx
xor ebp, ebp
stosb byte es:[edi], al
call fcn.0049dd30
lea eax, [esp + 0x114]
push eax
call fcn.0049dc40
push 0x5188e8
push str.InstallDriver
call fcn.0043d750
add esp, 0x10
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x49ad74
pop edi
pop esi
pop ebp
add esp, 0x208
ret
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x120]
push 0
push ecx
push 1
push 2
push 1
lea edx, [esp + 0xb4]
push 0xf01ff
lea eax, [esp + 0x38]
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x49ae06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 0x431
jne 0x49ae58
push 0x5188e8
push str.Service_IRNPF.sys_already_exists
call fcn.0043d750
add esp, 8
xor ebp, ebp
mov byte [esp + 0xc], 1
push str.WINPCAPSUCC3.exe
call fcn.00418160
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
pop edi
pop esi
and eax, 0xff
pop ebp
add esp, 0x208
ret
push 0x5188e8
push str.Created_service_for_IRNPF.sys
call fcn.0043d750
add esp, 8
mov byte [esp + 0xc], 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x49ae42
push str.IRNPAPFAIL4.exe
call fcn.00418160
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x49add8
push str.WINPCAPSUCC2.exe
call fcn.00418160
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x49add8
push str.IRNPAPFAIL3.exe
call fcn.00418160
push 0x5188e8
push str.InstallDriver_failed
call fcn.0043d750
add esp, 0xc
jmp 0x49ade5
Function at 0x49d340
Capabilities:
Enumerate processes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e674b
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
mov esi, dword [esp + 0x144]
test esi, esi
je 0x49d481
lea eax, [esp + 8]
push esi
push eax
call fcn.00405cd0
add esp, 8
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x49d3c3
mov ecx, dword [esp + 0x148]
push 0x31
push eax
push ecx
call fcn.004b01f0
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x13c], 0xffffffff
call fcn.004d482d
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
add esp, 0x138
ret
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49d3fa
lea ecx, [esp + 8]
mov dword [esp + 0x13c], eax
call fcn.004d482d
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
add esp, 0x138
ret
push ebp
push edi
lea edx, [esp + 0x14]
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], pe_nt_image_headers32
push edx
rep stosd dword es:[edi], eax
push ebx
call sub.KERNEL32.dll_Process32First
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x49d468
cmp dword [esp + 0x1c], esi
je 0x49d43d
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x49d426
jmp 0x49d468
push ebx
call ebp
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], 0xffffffff
call fcn.004d482d
pop edi
pop ebp
mov ecx, dword [esp + 0x134]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x49d7c0
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
sub esp, 0x248
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov ebp, dword [esp + 0x258]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp], 0
mov eax, dword [0x518b28]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x114]
push ecx
push str.ProData.dat
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
je 0x49d929
mov al, byte [esp + 0x114]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test al, 0x10
jne 0x49d887
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x14c]
push 0x104
push eax
call ebx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49d862
lea ecx, [esp + 0x14]
push ebp
push ecx
call fcn.004b0a20
add esp, 8
test eax, eax
jle 0x49d887
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x49d912
test byte [esp + 0x118], 0x10
jne 0x49d8ff
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x14c]
push 0x104
push edx
call ebx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49d8da
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004b0a20
add esp, 8
test eax, eax
jle 0x49d8ff
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x49d89a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x248
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x248
ret
Function at 0x49dc40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e67e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x513458]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov dword [esp + 0x18], 0
mov dword [esp], eax
lea eax, [esp + 0xc]
mov byte [esp + 0x18], 1
push eax
push 1
push 0
push str.SYSTEMCurrentControlSet_servicesIRNPF
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49dcfe
push esi
push 0x104
call fcn.004d456e
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push esi
push 0
push 0
push str.ImagePath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49dcf4
push edi
push esi
lea ecx, [esp + 0xc]
call fcn.004d49b6
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push edi
call fcn.004d49b6
push 0
push edi
lea ecx, [esp + 0x10]
call fcn.004d354a
test eax, eax
pop edi
jge 0x49dcf4
call fcn.0049aa30
push esi
call fcn.004d4597
add esp, 4
pop esi
lea ecx, [esp]
mov byte [esp + 0x18], 0
call fcn.004d482d
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.004d482d
mov ecx, dword [esp + 0x10]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x49dd30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [esp + 0x114]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ax, word [esp + 0xc]
mov ecx, edx
mov edi, str.iResearchCommon_npf.sys
mov word [ecx], ax
mov al, byte [esp + 0xe]
mov byte [ecx + 2], al
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x49eff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e6a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
xor ebx, ebx
push 0x50a2d8
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
call fcn.004d353c
mov esi, eax
cmp esi, 0xffffffff
jle 0x49f07b
push esi
lea eax, [esp + 0xc]
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.004d3390
mov ecx, dword [esp + 0x20]
push eax
mov byte [esp + 0x18], 1
call fcn.004d4966
lea ecx, [esp + 8]
mov byte [esp + 0x14], bl
call fcn.004d482d
inc esi
lea ecx, [esp + 0x20]
push esi
push ecx
lea ecx, [esp + 0x24]
call fcn.004d336d
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 2
call fcn.004d4966
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d482d
push 0x50a2d8
lea ecx, [esp + 0x20]
call fcn.004d353c
mov esi, eax
cmp esi, 0xffffffff
jle 0x49f0e8
push esi
lea edx, [esp + 0x24]
push ebx
push edx
lea ecx, [esp + 0x28]
call fcn.004d3390
mov ecx, dword [esp + 0x24]
push eax
mov byte [esp + 0x18], 3
call fcn.004d4966
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d482d
inc esi
lea eax, [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.004d336d
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 4
call fcn.004d4966
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d482d
push 0x50a2d8
lea ecx, [esp + 0x20]
call fcn.004d353c
mov esi, eax
cmp esi, 0xffffffff
jle 0x49f155
push esi
lea ecx, [esp + 0x24]
push ebx
push ecx
lea ecx, [esp + 0x28]
call fcn.004d3390
mov ecx, dword [esp + 0x28]
push eax
mov byte [esp + 0x18], 5
call fcn.004d4966
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d482d
inc esi
lea edx, [esp + 0x20]
push esi
push edx
lea ecx, [esp + 0x24]
call fcn.004d336d
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 6
call fcn.004d4966
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d482d
push 0x50a2d8
lea ecx, [esp + 0x20]
call fcn.004d353c
mov esi, eax
cmp esi, 0xffffffff
jle 0x49f1c2
push esi
lea eax, [esp + 0x24]
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.004d3390
mov ecx, dword [esp + 0x2c]
push eax
mov byte [esp + 0x18], 7
call fcn.004d4966
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d482d
inc esi
lea ecx, [esp + 0x20]
push esi
push ecx
lea ecx, [esp + 0x24]
call fcn.004d336d
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 8
call fcn.004d4966
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call fcn.004d482d
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
call fcn.004d4966
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004d482d
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4a2540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e6e63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004c1164
lea ecx, [esp + 0xc]
mov dword [esi + 0x34], eax
call fcn.004c0910
mov edi, dword [0x51b880]
lea ecx, [esp + 8]
call fcn.004c0910
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x4a258c
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 8]
call fcn.004c09ac
lea ecx, [esp + 0xc]
call fcn.004c09ac
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
xor edi, edi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], edi
mov eax, dword [esi + 0x20]
push edi
push edi
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
push edi
mov dword [esp + 0x28], edi
mov dword [ecx], edi
mov ecx, esi
call fcn.00411680
mov cl, byte [esp + 0x24]
xor eax, eax
test cl, 1
mov dword [esi], 0x4f23fc
jne 0x4a25fa
mov eax, 4
test cl, 2
jne 0x4a2601
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov ecx, dword [esi + 0x2c]
mov dword [ecx], edi
mov edx, dword [esi + 0x10]
mov dword [edx], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
mov eax, esi
mov dword [ecx], edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4b2456
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b2476
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b3bea
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b2499
test byte [esp + 8], 2
je 0x4b2499
call fcn.004b3c5d
mov dword [eax], 0xd
call fcn.004b3c66
mov dword [eax], 5
jmp 0x4b2472
xor eax, eax
ret
Function at 0x4d2530
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004b0390
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4d25fb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4d25fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4d25ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4d25b9
or bh, 8
and edi, 0x8000000
je 0x4d25d4
mov eax, dword [0x51d27c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4d25fb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d29d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d29fb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4d2a1f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4d2a3a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4d620d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4d622f
cmp dword [edi + 0x3c], 0
jne 0x4d622f
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004dd795
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
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004d625c
pop edi
pop esi
pop ebx
ret 8

Function at 0x4d659c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4e73b0
call fcn.004b2928
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004dd795
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4d65db
call fcn.004dd795
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4d65e9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4d65f7
or eax, 0xffffffff
jmp 0x4d66df
mov ecx, esi
call fcn.004d6512
mov dword [ebp - 0x14], eax
call fcn.004d73cd
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4d662e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4d662e
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004d7381
push dword [ebp - 0x14]
call fcn.004d6eb3
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004d62aa
cmp eax, edi
je 0x4d66a1
test byte [esi + 0x24], 0x10
je 0x4d666f
push 4
mov ecx, esi
pop ebx
call fcn.004d5dc3
test ah, 1
je 0x4d6667
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004d8f08
cmp dword [esi + 0x1c], edi
je 0x4d66a1
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004d5ea9
jmp 0x4d66a1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4d66b5
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4d66ce
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4d66ce
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004d654c
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4d8db6
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 0x4d8df8
call fcn.004dd795
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d8df8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d8def
xor eax, eax
jmp 0x4d8e00
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d8e06
pop edi
pop esi
pop ebx
ret 4
Function at 0x40316f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447263
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x10]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x1c], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x20], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x24], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x28], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x30], 0
push 8
call fcn.0042a7a6
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x403219
and dword [ebp - 4], 0
push 1
call fcn.00428ed6
pop ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x40321d
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x34], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041d04b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret