joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441630
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47d848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004726b4
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00440fd0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004725e2
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046ebd6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046ebd6
push 1
push 0
push 0
mov ecx, esi
call fcn.0046eb7e
push 1
push 0
push 1
mov ecx, esi
call fcn.0046eb7e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00472726
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4417b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47d868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004726b4
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00440fd0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004725e2
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x441874
cmp dword [esp + 0x40], 1
jne 0x441872
cmp ecx, eax
jge 0x441874
mov eax, ecx
cmp eax, 0xc8
jge 0x441880
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00441630
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00472726
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x441ff0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47d8d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046cfc2
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047295c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00475328
test eax, eax
je 0x44210c
mov ecx, dword [esp + 0x3c]
call fcn.00472989
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4420d0
push edi
mov ecx, esi
call fcn.0046ff24
mov ecx, esi
call fcn.00442270
cmp dword [esp + 0x38], 1
jne 0x442105
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004700b7
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x444b20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444b53
push esi
call fcn.00447c10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x444b4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x444bd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444bc2
mov eax, dword [esi + 8]
test eax, eax
je 0x444b77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x444bbe
cmp eax, 2
je 0x444bc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444b6a
cmp eax, 3
je 0x444b9d
cmp eax, 1
jne 0x444b6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x444b6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x444b6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444c00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444be8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444c00
add esp, 4
pop esi
ret

Function at 0x46c7a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00476914
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c7d1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0046c7e4
pop edi
pop esi
pop ebx
ret 8

Function at 0x46ddb8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46ddf0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046be01
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046bdd9
jmp 0x46ddfc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46f6a8
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 0x46f6ea
call fcn.00476914
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46f6ea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f6e1
xor eax, eax
jmp 0x46f6f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f6f8
pop edi
pop esi
pop ebx
ret 4
Function at 0x476e44
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x476e72
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x476e90
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00476daa
jmp 0x476e90
mov eax, dword [esi + 0x14]
test eax, eax
je 0x476e90
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00476daa
test edi, edi
mov eax, edi
jne 0x476e7a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403969
Capabilities:
Encode data using xor

Disassembly:
pop esi
push esi
xor dword [esi], ebx
lodsd eax, dword [esi]
add ebx, eax
test eax, eax
jne 0x40396b
ret

Function at 0x405730
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
test ebx, ebx
bswap ecx
stc
add byte [eax], al
pop ecx
push esi
mov esi, ebx
mov eax, dword [esi]
push 0xffffffffffffffbe
push 0
mov byte [0x5ae85000], al
mov ebx, 0x763d0000
xchg ecx, eax
add dword [eax], eax
je 0x405764
invalid
xchg byte [esi + 8], dh
test esi, esi
jne 0x405748
mov ebx, dword [edx]
mov eax, dword [esi + 4]
test eax, eax
je 0x405786
xchg ebx, eax
push cs
mov edi, 0xb2000001
push 9
push ecx
mov dword [esi - 0x3c], edi
call 0xa440a3d0
mov ebx, dword [esi]
or byte [ebp - 0x7abf8a0a], al
inc edi
je 0x405806
mov ebx, 0x1500b71b
pop ds
xchg edi, eax
invalid
mov esi, ebx
cmp dword [esi - 0x4a], 2
jne 0x405818
mov eax, dword [esi]
push 9
push eax
jmp 0x40a3dc
dec ebx
add byte [eax], al
xor ecx, dword [ebx + 0x50510c4d]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test dword [ebp + 0x75], esi
js 0x40a443
mov esi, dword [0x40c062]
call esi
test eax, eax
pop ecx
add eax, 0x8c25d5e
add bh, bh
salc
add eax, 0xafcbf
pop esi
pop ebp
ret 8
inc eax
rol byte [eax + 0x7d], 0x8b
inc ebp
or byte [eax + 0x20], ch
leave
sbb al, 0x7e
push 0x40a470
popfd
sub byte [edi], al
inc ecx
pop ebx
push eax
call fcn.00408b00
call 0x91042824
popfd
nop
add al, 0x90
nop
nop
nop
nop
nop
nop
mov dword [eax + 0x41073568], edx
add bh, bh
adc eax, sym.imp.KERNEL32.dll_DeleteCriticalSection
xor eax, eax
ret
Function at 0x40100a
Capabilities:
Get common file path

Disassembly:
jmp 0x4072d0
push 0xffffffffffffffff
push 0x4150c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
mov eax, dword [esp + 0x414]
push ebx
mov ebx, ecx
push ebp
push edi
push eax
lea ecx, [ebx + 4]
mov dword [esp + 0x10], ebx
mov dword [ebx], 0x41704c
call fcn.00401230
mov ecx, dword [esp + 0x424]
lea ebp, [ebx + 0x10]
push ecx
mov ecx, ebp
mov dword [esp + 0x41c], 0
call fcn.00401230
mov edx, dword [esp + 0x428]
lea ecx, [ebx + 0x20]
mov byte [esp + 0x418], 1
mov dword [ebx + 0x1c], edx
call fcn.0040108c
lea eax, [esp + 0x10]
push 0x400
push eax
mov dword [esp + 0x420], 2
mov dword [ebx], 0x417078
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x5c
je 0x4073a7
mov edi, 0x41bfac
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov ecx, ebp
call fcn.00401140
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + 0x20]
push str._sVmm32_s.VXD
push eax
call fcn.00401055
mov ecx, dword [esp + 0x420]
add esp, 0x10
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop ebp
pop ebx
add esp, 0x410
ret 0xc
Function at 0x401212
Capabilities:
Check os version

Disassembly:
jmp 0x405960
mov eax, dword [0x41d8d4]
sub esp, 0x94
test eax, eax
jne 0x405a1b
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40599b
mov eax, 1
mov dword [0x41d8d4], eax
add esp, 0x94
ret
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x4059d7
mov eax, dword [esp + 4]
cmp eax, 4
ja 0x4059be
mov eax, 4
mov dword [0x41d8d4], eax
add esp, 0x94
ret
xor ecx, ecx
cmp eax, 5
setne cl
add ecx, 5
mov eax, ecx
mov dword [0x41d8d4], eax
add esp, 0x94
ret
cmp eax, 1
je 0x4059ed
mov eax, 1
mov dword [0x41d8d4], eax
add esp, 0x94
ret
mov eax, dword [esp + 4]
cmp eax, 4
ja 0x405a11
jne 0x405a00
mov eax, dword [esp + 8]
test eax, eax
ja 0x405a11
mov eax, 2
mov dword [0x41d8d4], eax
add esp, 0x94
ret
mov eax, 3
mov dword [0x41d8d4], eax
add esp, 0x94
ret

Function at 0x40127b
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x402930
push 0xffffffffffffffff
push 0x414a90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push edi
push eax
lea ecx, [esp + 8]
call fcn.00401230
push 0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0
call fcn.0040112c
push eax
call fcn.00401172
add esp, 8
lea ecx, [esp + 0x2c]
push ecx
push 2
push 0
lea ecx, [esp + 0x10]
call fcn.00401140
push eax
call dword [0x41d81c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402a06
lea edx, [esp + 0x10]
push edx
call fcn.00401096
add esp, 4
mov ecx, eax
mov byte [esp + 0x24], 1
call fcn.00401140
push eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0xc]
call fcn.00401140
push eax
mov ecx, 0x41d868
call fcn.00401140
push eax
push str._sFailed_opening_INF_file__s_line__d:__s_n
push 0x41d868
call fcn.00401055
add esp, 0x18
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.004010af
lea ecx, [esp + 4]
mov dword [esp + 0x24], edi
call fcn.004010af
xor eax, eax
pop edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push ebp
push esi
call dword [0x41d830]
push 0x2000
mov esi, eax
push 0
push str.DriverInstall
push esi
push 0
push edi
call dword [0x41d888]
push 0
call dword [0x41d87c]
mov ecx, dword [0x41d898]
mov ebp, eax
push ebp
push ecx
push esi
push 0
call dword [0x41d83c]
push ebp
call dword [0x41d814]
push esi
call dword [0x41d844]
push edi
call dword [0x41d848]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004010af
mov ecx, dword [esp + 0x24]
pop esi
pop ebp
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x407210
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x41d8d8]
sub esp, 0x24
test eax, eax
jne 0x407278
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp]
and eax, 0xffff
cmp eax, 0xa
ja case.0x40723d.3
xor ecx, ecx
mov cl, byte [eax + 0x40728c]
jmp dword [ecx*4 + 0x40727c]
mov eax, str.ntx86
mov dword [0x41d8d8], eax
add esp, 0x24
ret
mov eax, str.ia64
mov dword [0x41d8d8], eax
add esp, 0x24
ret
mov eax, str.ntamd64
mov dword [0x41d8d8], eax
add esp, 0x24
ret
mov eax, str.unknown
mov dword [0x41d8d8], eax
add esp, 0x24
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d7f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004100ba
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40d812
test byte [esp + 8], 2
je 0x40d812
mov dword [0x41ec7c], 0xd
mov dword [0x41ec80], 5
jmp 0x40d7ed
xor eax, eax
ret

Function at 0x40e22d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41cd38
cmp edx, dword [eax]
je 0x40e24f
add eax, 8
inc ecx
cmp eax, 0x41cdc8
jl 0x40e240
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41cd38]
jne 0x40e37d
mov eax, dword [0x41ec44]
cmp eax, 1
je 0x40e357
test eax, eax
jne 0x40e280
cmp dword [0x41c964], 1
je 0x40e357
cmp edx, 0xfc
je 0x40e37d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e2b7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040faa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040e9b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e2fa
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040e9b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x417550
push edi
call fcn.00410790
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040faa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040fab0
lea eax, [ebp - 0xa0]
push 0x417530
push eax
call fcn.0040fab0
push dword [esi + 0x41cd3c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040fab0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004106fe
add esp, 0x2c
pop edi
jmp 0x40e37d
lea eax, [ebp + 8]
lea esi, [esi + 0x41cd3c]
push 0
push eax
push dword [esi]
call fcn.0040e9b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
push esi
push edi
push 0x41fe7c
push 0x67
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x41fe80
push str.dinput.dll
mov edi, eax
call fcn.0040a6c5
mov esi, eax
push esi
push ebx
push 1
push edi
call fcn.0040a3a6
push esi
call fcn.0040a974
add esp, 0x1c
pop edi
pop esi
pop ebx
ret

Function at 0x401110
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x230
mov eax, dword [0x42494c]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
push 0
push str.Drop
push str.Successfully_patched__enjoy_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 9
mov esi, str.iuuq_00xxx_xsfudi_dd0cmph0tifoh3390
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
pop edi
xor eax, eax
pop esi
mov edi, edi
mov cl, byte [esp + eax + 8]
mov byte [esp + eax + 0x2c], cl
add eax, 1
test cl, cl
jne 0x401150
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401166
sub eax, edx
mov ecx, eax
xor eax, eax
test ecx, ecx
jle 0x40118c
lea esp, [esp]
add byte [esp + eax + 0x2c], 0xff
add eax, 1
cmp eax, ecx
jl 0x401180
mov eax, dword [str.pqfo]
mov cl, byte [0x41feb8]
mov dword [esp], eax
mov byte [esp + 4], cl
xor eax, eax
mov cl, byte [esp + eax]
mov byte [esp + eax + 0x12c], cl
add eax, 1
test cl, cl
jne 0x4011a0
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4011b7
sub eax, edx
mov ecx, eax
xor eax, eax
test ecx, ecx
jle 0x4011df
lea ebx, [ebx]
add byte [esp + eax + 0x12c], 0xff
add eax, 1
cmp eax, ecx
jl 0x4011d0
push 7
push 0
push 0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x13c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0040a8f3
add esp, 0x230
ret

Function at 0x401210
Capabilities:
Set registry value

Disassembly:
sub esp, 8
call fcn.004010b0
lea eax, [esp]
push eax
push 0xf003f
push 0
push 0x41fe48
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push str.EngineD3D
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00401110
xor eax, eax
add esp, 8
ret

Function at 0x40a8f3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42494c]
jne 0x40a8fd
repz ret
jmp fcn.00411423
Function at 0x40f7a6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x424ea0]
je 0x40f7c1
inc edi
cmp edi, 0x17
jb 0x40f7b2
cmp edi, 0x17
jae 0x40f941
push ebp
push 3
call fcn.00416a76
cmp eax, 1
pop ecx
je 0x40f90d
push 3
call fcn.00416a76
test eax, eax
pop ecx
jne 0x40f7f5
cmp dword [0x424948], 1
je 0x40f90d
cmp ebx, 0xfc
je 0x40f940
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x427cf8
push ebp
call fcn.0040d35a
add esp, 0xc
test eax, eax
je 0x40f82b
push esi
push esi
push esi
push esi
push esi
call fcn.0040d9e5
add esp, 0x14
push 0x104
mov esi, 0x427d11
push esi
push 0
mov byte [0x427e15], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f86f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040d35a
add esp, 0xc
test eax, eax
je 0x40f86f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040d9e5
add esp, 0x14
push esi
call fcn.0040acb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40f8b4
push esi
call fcn.0040acb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42800c
push 0x41ea14
sub ecx, eax
push ecx
push eax
call fcn.0040d567
add esp, 0x14
test eax, eax
je 0x40f8b4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040d9e5
add esp, 0x14
jmp 0x40f8b6
xor esi, esi
push 0x41ea10
push ebx
push ebp
call fcn.0040d936
add esp, 0xc
test eax, eax
je 0x40f8d6
push esi
push esi
push esi
push esi
push esi
call fcn.0040d9e5
add esp, 0x14
push dword [edi*8 + 0x424ea4]
push ebx
push ebp
call fcn.0040d936
add esp, 0xc
test eax, eax
je 0x40f8f8
push esi
push esi
push esi
push esi
push esi
call fcn.0040d9e5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004168b9
add esp, 0xc
jmp 0x40f940
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40f940
cmp ebp, 0xffffffff
je 0x40f940
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x424ea4]
push dword [esi]
call fcn.0040acb0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret