joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e92ac
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x4e92ea
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4e9306
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004f3d89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4e9317
push ebx
call fcn.004f3d83
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4e932e
mov eax, 0x5d0987
push eax
push 1
mov ebx, 0x194
call fcn.004f4800
add esp, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
call fcn.004e94a7
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 1
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.004e94c8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esp
push 0x40
push 0x1000
push 0x64
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4e93ab
push 0x14e
push 0x401057c
push 6
call fcn.004f3d8f
add esp, 0xc
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 0x14]
push 0xa0000101
push 0
push 0x5e2dd9
push 3
mov ebx, 0x914
call fcn.004f5aa0
add esp, 0x28
push dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0x14]
mov dword [ebp - 0x18], esp
push 0x8000
push 0
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_VirtualFree]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4e942a
push 0xa61
push 0x401057c
push 6
call fcn.004f3d8f
add esp, 0xc
mov dword [ebp - 0x18], esp
push 0x8000
push 0
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_VirtualFree]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4e9460
push 0xa8d
push 0x401057c
push 6
call fcn.004f3d8f
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x4e947a
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004f3d89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4e948f
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4e94a0
push ebx
call fcn.004f3d83
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4eb46f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
call dword [0x5e3784]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4eb4b2
push 0x19
push 0x40105ad
push 6
call fcn.004f3d8f
add esp, 0xc
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.004f5780
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4eb4e8
push ebx
call fcn.004f3d83
add esp, 4
pop eax
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x5e29f8]
fstp qword [ebp - 0x18]
mov dword [ebp - 0x1c], esp
fld qword [ebp - 0x18]
call fcn.004e49bb
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4eb536
push 0x88
push 0x40105ad
push 6
call fcn.004f3d8f
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x4eb552
push eax
mov ebx, eax
call fcn.004e4d11
inc eax
push eax
call fcn.004f3d89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4eb557
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4eb568
push ebx
call fcn.004f3d83
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4f08b1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
call dword [0x5e3784]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4f08f4
push 0x2b
push 0x40105c2
push 6
call fcn.004f3d8f
add esp, 0xc
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x5e29f8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.004e49bb
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.004f5780
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4f0947
push ebx
call fcn.004f3d83
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4f097d
push 0x84
push 0x40105c2
push 6
call fcn.004f3d8f
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x4f0999
push eax
mov ebx, eax
call fcn.004e4d11
inc eax
push eax
call fcn.004f3d89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4f099e
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4f09af
push ebx
call fcn.004f3d83
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4f4b10
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4f4b2e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4f4b23
pop esi
ret
Function at 0x4f67b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x4f67c3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.004f84b0
add esp, 4
test eax, eax
jne 0x4f67d5
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x4f67e4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x4f683b
mov ebx, dword [ebx + 4]
push edi
call fcn.00507b1f
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4f681e
push ebp
call fcn.00507b48
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.004f76b0
push ebp
mov esi, eax
call fcn.00507b48
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4f687d
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.004f4210
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x4f687a
push esi
call fcn.004f42d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4f6b00
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x4f6b7f
push edi
call fcn.004f7720
add esp, 4
test eax, eax
jbe 0x4f6b7f
test esi, esi
je 0x4f6b3d
cmp esi, 0xffffffff
je 0x4f6b3d
push esi
call dword [sym.imp.kernel32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x4f6bc1
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x4f6b6b
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x4f6b7f
jmp 0x4f6b7a
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x4f6b7f
mov ebp, 1
test esi, esi
je 0x4f6bc1
cmp esi, 0xffffffff
je 0x4f6bc1
test ebp, ebp
jne 0x4f6bf8
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x4f6bce
call edi
test eax, eax
je 0x4f6bc1
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x4f6bf8
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x4f6ba9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x4f6bc1
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x4f6bf8
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x4f6bdb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call fcn.004f7720
inc eax
push eax
call fcn.004f4210
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0x4f9970
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5e3e40]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4f9983
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4f99c4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5e3ee8]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4f99f6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4f99fa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4f99eb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4f9a18
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4f9a1c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4f9a0d
xor ecx, ecx
mov eax, 0x5e3e50
xor ebx, ebx
mov bl, byte [ecx + 0x5e3ef8]
cmp byte [esp + ebx + 0x14], 0
je 0x4f9a47
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5e3f10]
cmp byte [esp + ebx + 0x14], 0
je 0x4f9a5e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4f9a2e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4f99b7
lea edx, [esp + 0x84]
push edx
call fcn.004f9aa0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x5103b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x61ba48]
xor edx, edx
cmp eax, edx
jne 0x5103d6
xor eax, eax
mov byte [eax + 0x61b948], al
inc eax
cmp eax, 0x100
jl 0x5103be
mov dword [0x61ba48], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x61b948
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x510467
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x51043a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x510408
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x510470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5104c3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5104aa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x516e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54376e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00517790
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5b2fcc
call fcn.005352a8
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x516f03
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005352a8
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x516efc
push 0
mov ecx, eax
call fcn.0050dfe0
mov dword [esi + 0xc], eax
jmp 0x516f05
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x516f05
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x537938
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x537970
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.005359c2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0053599a
jmp 0x53797c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x539026
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 0x539068
call fcn.0053eb22
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x539068
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x53905f
xor eax, eax
jmp 0x539070
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00539076
pop edi
pop esi
pop ebx
ret 4

Function at 0x53f052
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_1]
cmp dword [esp + 0x10], 0
jne 0x53f080
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x53f09e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053efb8
jmp 0x53f09e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53f09e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053efb8
test edi, edi
mov eax, edi
jne 0x53f088
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x403068
push 0x403053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40201c
ret
mov edi, edi
mov esi, 0x4020c7
mov edi, esi
push 1
push 0x403086
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
mov edx, eax
pop ebx
mov ecx, 0x3ab
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x402040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x402066
xor eax, eax
mov dword [0x403099], eax
add esp, 4
ret
Function at 0x433100
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e519b
push eax
mov dword fs:[0], esp
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x18]
mov dword [esi], vtable.GameFlow.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
lea ebx, [esi + 0x20]
mov ecx, 0xc
mov edi, ebx
mov dword [esp + 0x14], eax
rep stosd dword es:[edi], eax
call fcn.0042fe30
mov dword [ebx], eax
call fcn.0042f6c0
mov dword [esi + 0x24], eax
call fcn.00430000
mov dword [esi + 0x28], eax
call fcn.00431e70
mov dword [esi + 0x2c], eax
call fcn.00431730
mov dword [esi + 0x30], eax
call fcn.00431fd0
mov dword [esi + 0x38], eax
call fcn.00432120
mov dword [esi + 0x3c], eax
call fcn.00432960
mov dword [esi + 0x34], eax
call fcn.00431600
mov dword [esi + 0x40], eax
call fcn.00430c30
mov dword [esi + 0x44], eax
call fcn.00430530
mov dword [esi + 0x48], eax
call fcn.0042fec0
mov edx, dword [esi + 8]
mov dword [esi + 0x4c], eax
mov ecx, dword [esi + edx*4 + 0x20]
call fcn.0042fd80
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4

Function at 0x4354f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e400f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
lea esi, [ebx + 4]
mov dword [esi], vtable.GameDataHandler.0
xor ebp, ebp
mov dword [ebx], vtable.InputManager.1.0
mov dword [esi], vtable.InputManager.0
push edi
mov dword [ebx + 8], ebp
push fcn.00437270
push 0x4362a0
push 4
push 0x700
lea eax, [ebx + 0xc]
push eax
mov dword [esp + 0x30], ebp
call fcn.005c7c83
mov cl, byte [ebx + 0x1c10]
and cl, 0xe4
or cl, 4
mov byte [ebx + 0x1c10], cl
mov cl, byte [ebx + 0x1c28]
mov dword [ebx + 0x1c0c], 0xffffffff
or edx, 0xffffffff
and cl, 0xfe
mov byte [ebx + 0x1c28], cl
mov dword [ebx + 0x1c14], edx
mov dword [ebx + 0x1c18], edx
mov dword [ebx + 0x1c1c], edx
push str.Input_Manager
push esi
mov byte [esp + 0x24], 1
mov dword [ebx + 0x1c20], edx
call fcn.0050bd90
mov edi, 1
call fcn.0050bf60
push 0x30
call fcn.00445250
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebp
mov byte [esp + 0x1c], 2
je 0x4355cc
mov esi, eax
call fcn.004332c0
mov dword [ebx + 0x1c2c], eax
jmp 0x4355d2
mov dword [ebx + 0x1c2c], ebp
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x442600
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
push str.The_Simpsons_Hit__Run
xor edi, edi
push edi
push edi
mov esi, eax
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x6c8980], eax
call ebx
cmp eax, 0xb7
jne 0x442676
push edi
push str.The_Simpsons_Hit__Run
call dword [sym.imp.user32.dll_FindWindowA]
mov ebp, eax
cmp ebp, edi
je 0x442676
lea eax, [esp + 0x50]
push eax
push ebp
call dword [sym.imp.user32.dll_GetWindowPlacement]
test eax, eax
je 0x442665
mov eax, dword [esp + 0x58]
cmp eax, 6
je 0x44265c
cmp eax, 2
jne 0x442665
push 9
push ebp
call dword [sym.imp.user32.dll_ShowWindow]
push ebp
call dword [sym.imp.user32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x6c
ret
push 0x40
push edi
push edi
push 1
push str.IDI_SIMPSONS
push esi
mov dword [0x6c8978], esi
mov dword [esp + 0x40], 3
mov dword [esp + 0x44], 0x4445f0
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], esi
call dword [sym.imp.user32.dll_LoadImageA]
mov dword [esp + 0x3c], eax
call ebx
push 0x7f00
push edi
call dword [sym.imp.user32.dll_LoadCursorA]
push 4
mov dword [esp + 0x44], eax
call dword [sym.imp.gdi32.dll_GetStockObject]
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], str.The_Simpsons_Hit__Run
call dword [sym.imp.user32.dll_RegisterClassA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
mov edx, 1
call fcn.00444320
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
call dword [sym.imp.user32.dll_GetSystemMetrics]
push 1
mov esi, eax
call dword [sym.imp.user32.dll_GetSystemMetrics]
cmp esi, 0x640
mov dword [esp + 0x14], eax
jle 0x442741
lea ebx, [ebx]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x640
jg 0x442730
mov eax, esi
sub eax, ebx
mov ebx, dword [esp + 0x24]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, ebp
mov ebp, dword [esp + 0x20]
cdq
sub eax, edx
push edi
sar ecx, 1
sar eax, 1
push 0xca0000
lea edx, [esp + 0x20]
add ebp, ecx
add ebx, eax
push edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
call dword [sym.imp.user32.dll_AdjustWindowRect]
mov eax, dword [0x6c8978]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push edi
push eax
mov eax, dword [esp + 0x24]
push edi
push edi
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
push edx
push eax
push ecx
push 0xca0000
push str.The_Simpsons_Hit__Run
push str.The_Simpsons_Hit__Run
push edi
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x6c897c], eax
xor al, al
call fcn.00444530
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x6c
ret