joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4adfea
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x4e7c78
call fcn.004baf44
sub esp, 0x414
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x520360
mov esi, 0x508530
cmp dword [edi + 0x10], 0
je 0x4ae025
push 0x2a
push ebx
push 0x510198
push 0x508548
push esi
call fcn.00401466
add esp, 0x14
call fcn.00437a61
test eax, eax
mov dword [edi + 0x10], eax
jne 0x4ae049
push 0x2d
push ebx
push 0x50c8d0
push 0x50a2f0
push esi
call fcn.00401466
add esp, 0x14
jmp 0x4ae074
mov edx, dword [eax]
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
test al, al
jne 0x4ae066
push 0x2e
push ebx
push 0x510180
push 0x50a714
jmp 0x4ae03e
mov ecx, dword [edi + 0x10]
push 9
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x4ae07b
xor al, al
jmp 0x4ae1a1
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
push eax
lea eax, [ebp - 0x420]
push 0x5202f0
push eax
call fcn.004bafeb
add esp, 0xc
call fcn.004a57ea
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
mov edx, dword [eax]
lea ecx, [ebp - 0x420]
push 1
push ecx
mov ecx, eax
call dword [edx + 4]
mov esi, eax
test esi, esi
je 0x4ae0e0
mov eax, dword [edi + 0x10]
push 0
mov ecx, esi
mov ebx, dword [eax]
mov eax, dword [esi]
call dword [eax + 0x4c]
mov ecx, dword [edi + 0x10]
push eax
push 0xa
call dword [ebx + 0x14]
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [edi + 0x10]
push 0x499602d2
mov eax, dword [ecx]
call dword [eax + 8]
push eax
lea eax, [ebp - 0x420]
push 0x52024c
push eax
call fcn.004bafeb
add esp, 0x10
call fcn.004a57ea
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
mov edx, dword [eax]
lea ecx, [ebp - 0x420]
push 1
push ecx
mov ecx, eax
call dword [edx + 4]
mov esi, eax
test esi, esi
je 0x4ae19f
mov eax, dword [esi]
mov ecx, esi
xor ebx, ebx
call dword [eax + 0x68]
test eax, eax
jle 0x4ae198
add edi, 4
mov dword [ebp - 0x10], edi
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x4c]
mov edi, eax
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x54]
and dword [ebp - 4], 0
lea ecx, [ebp + 0xb]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00403ed8
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], 1
call fcn.004aec6d
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.00403d38
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
inc ebx
call dword [eax + 0x6c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
cmp ebx, eax
jl 0x4ae137
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4b1a88
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 4]
mov dword [esi], 0x4ee230
test eax, eax
je 0x4b1aca
push 0
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4b1ac5
push 5
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_TerminateThread]
push 0x520a18
call fcn.00401394
pop ecx
push dword [esi + 4]
call edi
mov esi, dword [esi + 8]
test esi, esi
je 0x4b1ad4
push esi
call edi
pop edi
pop esi
ret

Function at 0x4b1b08
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x4b1b69
push edi
push edi
push edi
push edi
call dword [sym.imp.kernel32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x4b1b2f
push 0x520a90
jmp 0x4b1b6e
lea eax, [ebp - 4]
push eax
mov al, byte [ebp + 8]
neg al
sbb eax, eax
and al, 0xfc
add eax, 4
push eax
push esi
push 0x4b1c12
push edi
push edi
call dword [sym.imp.kernel32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 4], eax
je 0x4b1b59
mov al, 1
jmp 0x4b1b76
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x520a78
jmp 0x4b1b6e
push 0x520a4c
call fcn.00401466
pop ecx
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x4b1b7c
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x4b1b92
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x4b1ba5
mov al, 1
ret
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x520ab4
call fcn.00401466
pop ecx
pop ecx
xor al, al
ret

Function at 0x4b1ba8
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4b1bf0
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_SetEvent]
push dword [esp + 8]
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4b1bf6
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
push dword [esi + 4]
call edi
push dword [esi + 8]
and dword [esi + 4], 0
call edi
and dword [esi + 8], 0
pop edi
mov al, 1
pop esi
ret 4
xor al, al
jmp 0x4b1bf2

Function at 0x4b3088
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp dword [ebp + 8], 0
je 0x4b30c5
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push eax
call fcn.004bb200
mov esi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
call esi
push 0x5086d0
call esi
pop esi
leave
ret
Function at 0x4b5804
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
mov byte [ebp - 0x10], 0xa4
mov byte [ebp - 0xf], 0x49
mov byte [ebp - 0xe], 0x12
mov byte [ebp - 0xd], 0x11
mov byte [ebp - 0xc], 0x99
mov byte [ebp - 0xb], 0x53
mov byte [ebp - 0xa], 0xf0
mov byte [ebp - 9], 0x5f
mov byte [ebp - 8], 0x32
mov byte [ebp - 7], 0x77
mov byte [ebp - 6], 0xe4
mov byte [ebp - 5], 0x82
mov byte [ebp - 4], 0x2e
mov byte [ebp - 3], 0x6b
mov byte [ebp - 2], 0x10
mov byte [ebp - 1], 0x34
je 0x4b589e
cmp dword [ebp + 8], esi
je 0x4b589e
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004bdb60
push dword [ebp + 8]
call fcn.004d5c3b
add esp, 0x10
cmp eax, esi
mov dword [ebp + 0x10], eax
jle 0x4b589a
push ebx
push dword [ebp + 8]
call fcn.004bd869
pop ecx
mov ecx, eax
mov eax, esi
push 0x10
cdq
pop ebx
idiv ebx
xor cl, byte [ebp + edx - 0x10]
mov byte [esi + edi], cl
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x4b5879
pop ebx
and byte [esi + edi], 0
pop edi
mov al, 1
pop esi
leave
ret

Function at 0x4b7d41
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], 0x4ee410
cmp dword [esi + 0x1c], ebx
je 0x4b7dbf
cmp dword [esi + 0x1c], 1
jne 0x4b7d5d
call fcn.004b7e6c
cmp dword [esi + 0x1c], 3
je 0x4b7d6a
mov ecx, esi
call fcn.004b7dc2
push 0xbb8
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4b7d8d
push 0x115c
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_TerminateThread]
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
cmp eax, ebx
je 0x4b7da1
push eax
call edi
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x4b7dae
push eax
call edi
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4b7dbb
push eax
call edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4b7de2
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x1c], edi
jne 0x4b7e4b
mov ebx, dword [sym.imp.kernel32.dll_CreateEventA]
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x4b7e4b
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x14], eax
je 0x4b7e4b
xor eax, eax
cmp dword [esp + 0x10], edi
je 0x4b7e19
push 4
pop eax
lea ecx, [esi + 0x18]
push ecx
push eax
push esi
push 0x4b7c5a
push edi
push edi
call fcn.004bdeee
add esp, 0x18
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x4b7e4f
push dword [esi + 0x10]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
push dword [esi + 0x14]
mov dword [esi + 0x10], edi
call ebx
mov dword [esi + 0x14], edi
xor eax, eax
jmp 0x4b7e66
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
xor eax, eax
cmp dword [esp + 0x10], edi
sete al
inc eax
mov dword [esi + 0x1c], eax
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x4b7e6c
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 1
jne 0x4b7e8a
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x4b7e8a
mov dword [esi + 0x1c], 2
pop esi
ret
Function at 0x4cc8e0
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.004bb490
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4cc9ab
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 0x4cc9ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4cc95e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4cc969
or bh, 8
and edi, 0x8000000
je 0x4cc984
mov eax, dword [0x52b0dc]
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 0x4cc9ab
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 0x4ccd80
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 0x4ccdab
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 0x4ccdcf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push pe_nt_image_headers32
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4ccdea
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 0x4da26a
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 0x4da2ac
call fcn.004dcd72
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x4da2ac
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x4da2a3
xor eax, eax
jmp 0x4da2b4
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004da2ba
pop edi
pop esi
pop ebx
ret 4

Function at 0x4dd595
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 0x4dd5c3
push dword [esi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4dd5e1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004dd4fb
jmp 0x4dd5e1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4dd5e1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004dd4fb
test edi, edi
mov eax, edi
jne 0x4dd5cb
pop edi
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x52f5bf
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x52f5dc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x52f5cd
add dl, dl
jne 0x52f5e7
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x52f633
xor eax, eax
add dl, dl
jne 0x52f5f4
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x52f6d0
add dl, dl
jne 0x52f603
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x52f60e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x52f619
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x52f624
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x52f62e
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x52f5d3
mov eax, 1
add dl, dl
jne 0x52f641
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x52f64c
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x52f638
sub eax, 2
jne 0x52f67b
mov ecx, 1
add dl, dl
jne 0x52f661
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x52f66c
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x52f658
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x52f5d3
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x52f692
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x52f69d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x52f689
cmp eax, 0x7d00
jae 0x52f6c0
cmp eax, 0x500
jb 0x52f6bb
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x52f5d3
cmp eax, 0x7f
ja 0x52f6c3
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x52f5d3
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x52f6ec
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x52f5d3
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x409c24
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40a350
call fcn.00409ee8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x409c84
cmp eax, 0xffffffff
je 0x409c84
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x409c7d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x409c7d
cmp edx, 0x10000000
jae 0x409c7d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x409c7a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x409cf0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x409d2e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x409d26
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x409d30
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x409d16
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x409e00
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x409e31
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x409e31
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x409e31
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1001152
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.010010e4
cmp eax, 1
jl 0x100121b
push ebx
xor ebx, ebx
cmp byte [ebp - 0x170], bl
push esi
lea esi, [ebp - 0x170]
je 0x10011bb
cmp byte [esi], 0x3a
je 0x100119e
inc esi
cmp byte [esi], bl
jne 0x1001192
jmp 0x10011a1
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x10011bb
push 0x10010ac
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10011c1
lea esi, [ebp - 0x170]
push 0x29
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1001219
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x1001219
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1001219
push ebx
lea eax, [ebp - 0x14]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
xor eax, eax
leave
ret 0x10
Function at 0x401370
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x41416c]
push esi
mov esi, dword [esp + 8]
push 0
push esi
push eax
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x35]
cmp eax, 0xbf
pop esi
ja case.0x40139b.54
movzx ecx, byte [eax + 0x401408]
jmp dword [ecx*4 + 0x4013ec]
mov edx, dword [0x414190]
push edx
call fcn.00403540
add esp, 4
ret
jmp fcn.004036d0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x414158
jmp fcn.004033b0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x414158
jmp fcn.004033b0
jmp fcn.00404300
jmp 0x402d00
sub esp, 0x414
mov eax, dword [0x41301c]
xor eax, esp
mov dword [esp + 0x410], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.004045c0
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x206
lea edx, [esp + 0x20e]
push 0
push edx
mov word [esp + 0x214], 0
call fcn.004045c0
lea eax, [esp + 0xc]
push eax
push str._sMediaWindows_Navigation_Start.wav
lea ecx, [esp + 0x21c]
push 0x104
push ecx
call fcn.00404d3a
add esp, 0x1c
push 0x20001
push 0
lea edx, [esp + 0x210]
push edx
call dword [sym.imp.WINMM.dll_PlaySoundW]
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004045a9
add esp, 0x414
ret

Function at 0x402d00
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x41416c]
push esi
mov esi, dword [esp + 8]
push 0
push esi
push eax
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x35]
cmp eax, 0xbf
pop esi
ja case.0x40139b.54
movzx ecx, byte [eax + 0x401408]
jmp dword [ecx*4 + 0x4013ec]
mov edx, dword [0x414190]
push edx
call fcn.00403540
add esp, 4
ret
jmp fcn.004036d0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x414158
jmp fcn.004033b0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x414158
jmp fcn.004033b0
jmp fcn.00404300
jmp 0x402d00
sub esp, 0x414
mov eax, dword [0x41301c]
xor eax, esp
mov dword [esp + 0x410], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.004045c0
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x206
lea edx, [esp + 0x20e]
push 0
push edx
mov word [esp + 0x214], 0
call fcn.004045c0
lea eax, [esp + 0xc]
push eax
push str._sMediaWindows_Navigation_Start.wav
lea ecx, [esp + 0x21c]
push 0x104
push ecx
call fcn.00404d3a
add esp, 0x1c
push 0x20001
push 0
lea edx, [esp + 0x210]
push edx
call dword [sym.imp.WINMM.dll_PlaySoundW]
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004045a9
add esp, 0x414
ret