joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41682e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x423f30]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x41686a
xor eax, eax
jmp 0x4169d4
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4253e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4168a8
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00418fc5
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x416942
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x4169a5
jmp 0x4168cc
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x416907
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4168f8
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x4168d8
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416966
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41696f
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x4168ca
jmp 0x41696f
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416966
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x41696f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x4169cf
cmp dword [ebp - 0x68], eax
je 0x4169a2
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x416997
call fcn.004115a9
mov dword [eax], 9
call fcn.004115b2
mov dword [eax], esi
jmp 0x4169ca
push dword [ebp - 0x68]
call fcn.004115bb
pop ecx
jmp 0x4169ca
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4169b7
cmp byte [edi], 0x1a
jne 0x4169b7
xor eax, eax
jmp 0x4169d2
call fcn.004115a9
mov dword [eax], 0x1c
call fcn.004115b2
and dword [eax], 0
or eax, 0xffffffff
jmp 0x4169d2
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00417198
add ebp, 0x3a4
leave
ret
Function at 0x416e33
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x416e61
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x416e68
cmp ebx, dword [eax + 4]
jae 0x416e68
xor eax, eax
jmp 0x417058
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x416e79
xor eax, eax
inc eax
jmp 0x417057
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x416e8f
cmp ecx, edx
jae 0x416fd4
cmp dword [eax + 4], 0
je 0x416e98
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x416e80
cmp dword [ebp + 8], 0
je 0x416eba
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x416fd4
cmp eax, esi
jae 0x416fd4
mov eax, dword [0x424f20]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x416edf
cmp dword [esi*4 + 0x424f28], edi
je 0x416fd8
inc esi
cmp esi, eax
jl 0x416ecd
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417054
cmp dword [ebp - 8], 0x1000000
jne 0x417054
test byte [ebp - 0xc], 0xcc
je 0x416f5d
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x417054
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x417054
cmp word [eax + 0x18], 0x10b
jne 0x417054
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x417054
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x416f5d
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x416f5d
test byte [ecx + 0x27], 0x80
jne 0x416fd4
push 1
push 0x424f68
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x416e71
mov ecx, dword [0x424f20]
test ecx, ecx
mov edx, ecx
jle 0x416f91
lea eax, [ecx*4 + 0x424f24]
cmp dword [eax], edi
je 0x416f91
dec edx
sub eax, 4
test edx, edx
jg 0x416f85
test edx, edx
jne 0x416fc2
push 0xf
pop ebx
cmp ecx, ebx
jg 0x416f9e
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x416fb6
lea eax, [edx*4 + 0x424f28]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x416fa4
cmp ecx, 0x10
jge 0x416fc2
inc ecx
mov dword [0x424f20], ecx
push 0
push 0x424f68
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x416e71
xor eax, eax
jmp 0x417057
test esi, esi
jle 0x416e71
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x424f68
call ebx
test eax, eax
jne 0x416e71
cmp dword [esi*4 + 0x424f28], edi
je 0x41702e
mov eax, dword [0x424f20]
lea esi, [eax - 1]
test esi, esi
jl 0x41701c
cmp dword [esi*4 + 0x424f28], edi
je 0x417018
dec esi
jns 0x41700c
test esi, esi
jge 0x41702c
cmp eax, 0x10
jge 0x417027
inc eax
mov dword [0x424f20], eax
lea esi, [eax - 1]
jmp 0x41702e
je 0x417046
xor ecx, ecx
test esi, esi
jl 0x417046
lea eax, [ecx*4 + 0x424f28]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x417034
push 0
push 0x424f68
call ebx
jmp 0x416e71
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4180ec
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x423f30]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x423f50]
je 0x418123
inc eax
cmp eax, 0x13
jb 0x418114
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x423f50]
jne 0x418246
mov eax, dword [0x424ca0]
cmp eax, 1
je 0x418221
cmp eax, edx
jne 0x418153
cmp dword [0x423800], 1
je 0x418221
cmp ecx, 0xfc
je 0x418246
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x418189
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00414ef0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00414ff0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4181bd
mov eax, edi
push eax
call fcn.00414ff0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x420918
push edi
call fcn.00410340
add esp, 0x10
push edi
call fcn.00414ff0
push dword [esi + 0x423f54]
mov ebx, eax
call fcn.00414ff0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00410740
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00414ef0
push edi
push ebx
call fcn.00414f00
push 0x4208f8
push ebx
call fcn.00414f00
push dword [esi + 0x423f54]
push ebx
call fcn.00414f00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041a7eb
add esp, 0x2c
jmp 0x418246
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x423f54]
push dword [esi]
call fcn.00414ff0
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 - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00417198
add ebp, 0x90
leave
ret
Function at 0x41a7eb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x425130], ebx
push esi
push edi
jne 0x41a86b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41a8a6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x421144
push edi
call esi
test eax, eax
mov dword [0x425130], eax
je 0x41a8a6
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x425134], eax
call esi
cmp dword [0x424cb8], 2
mov dword [0x425138], eax
jne 0x41a86b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x425140], eax
je 0x41a86b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42513c], eax
mov eax, dword [0x42513c]
test eax, eax
je 0x41a8b0
call eax
test eax, eax
je 0x41a897
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x425140]
test eax, eax
je 0x41a897
test byte [ebp - 8], 1
jne 0x41a8b0
cmp dword [0x424cc4], 4
jb 0x41a8aa
or byte [ebp + 0x12], 0x20
jmp 0x41a8cf
xor eax, eax
jmp 0x41a8df
or byte [ebp + 0x12], 4
jmp 0x41a8cf
mov eax, dword [0x425134]
test eax, eax
je 0x41a8cf
call eax
mov ebx, eax
test ebx, ebx
je 0x41a8cf
mov eax, dword [0x425138]
test eax, eax
je 0x41a8cf
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x425130]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a9a7
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00410740
mov eax, dword [0x423f30]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00416c93
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x41aadc
push 2
push esi
push dword [ebp + 8]
call fcn.00416c93
add esp, 0xc
cmp eax, ebx
je 0x41aadc
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41aa7c
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00418dd0
push 0x8000
push dword [ebp + 8]
call fcn.0041b2bd
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x41aa32
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0041682e
add esp, 0xc
cmp eax, 0xffffffff
je 0x41aa52
sub edi, eax
test edi, edi
jg 0x41aa2a
jmp 0x41aa6a
call fcn.004115b2
cmp dword [eax], 5
jne 0x41aa67
call fcn.004115a9
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041b2bd
pop ecx
pop ecx
jmp 0x41aac4
jge 0x41aac4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00416c93
push dword [ebp + 8]
call fcn.00419143
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x41aac4
call fcn.004115a9
mov dword [eax], 0xd
call fcn.004115b2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00416c93
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41aade
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00417198
leave
ret
Function at 0x41af40
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41af59
or eax, 0xffffffff
jmp 0x41afba
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x41afb6
push 0x3d
push esi
call fcn.0041a1ea
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41afb6
cmp esi, eax
je 0x41afb6
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x424cd8]
sete cl
cmp eax, dword [0x424cdc]
mov dword [ebp - 4], ecx
jne 0x41af9c
mov edi, eax
call fcn.0041aedf
mov dword [0x424cd8], eax
cmp eax, ebx
jne 0x41aff5
cmp dword [ebp + 0xc], ebx
je 0x41afbe
cmp dword [0x424ce0], ebx
je 0x41afbe
call fcn.0041a2b3
test eax, eax
je 0x41aff5
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x41afc7
xor eax, eax
jmp 0x41afb9
push 4
call fcn.00410c85
cmp eax, ebx
pop ecx
mov dword [0x424cd8], eax
je 0x41afb6
mov dword [eax], ebx
cmp dword [0x424ce0], ebx
jne 0x41aff5
push 4
call fcn.00410c85
cmp eax, ebx
pop ecx
mov dword [0x424ce0], eax
je 0x41afb6
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x424cd8]
sub edi, esi
push esi
call fcn.0041ae92
mov edi, eax
test edi, edi
pop ecx
jl 0x41b05c
cmp dword [ebx], 0
je 0x41b05c
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00410b6d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41b03c
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x41b09d
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x41b033
mov eax, edi
shl eax, 2
push eax
push dword [0x424cd8]
call fcn.00410d9e
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x41b09d
jmp 0x41b098
cmp dword [ebp - 4], 0
jne 0x41b104
test edi, edi
jge 0x41b06c
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x424cd8]
call fcn.00410d9e
test eax, eax
pop ecx
pop ecx
je 0x41afb6
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x424cd8], eax
cmp dword [ebp + 0xc], 0
je 0x41b0ef
push esi
call fcn.00414ff0
inc eax
inc eax
push eax
call fcn.00410c85
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41b0ef
push esi
push edi
call fcn.00414ef0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41b0e8
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00410b6d
pop ecx
cmp dword [ebp - 4], 0
je 0x41b0fc
push esi
call fcn.00410b6d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41afb9
push esi
call fcn.00410b6d
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x41afc3
Function at 0xe28b08
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
xor esi, esi
push ebx
mov dword [ebp + esi*4 - 0x410], esi
call fcn.00e380fa
pop ecx
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
inc esi
movzx eax, byte [edx + ebx]
mov dword [ebp + esi*4 - 0x814], eax
cmp esi, 0x100
jl 0xe28b1b
xor edx, edx
mov ecx, dword [ebp + edx - 0x810]
lea eax, [ebp + edx - 0x410]
mov esi, dword [eax]
add ecx, esi
add edi, ecx
and edi, 0x800000ff
jns 0xe28b6b
dec edi
or edi, 0xffffff00
inc edi
lea ecx, [ebp + edi*4 - 0x410]
mov ebx, dword [ecx]
add edx, 4
mov dword [eax], ebx
mov dword [ecx], esi
cmp edx, 0x400
jl 0xe28b47
push dword [ebp + 8]
call fcn.00e380fa
inc eax
push eax
call fcn.00e3fe0c
push dword [ebp + 8]
mov esi, eax
xor edi, edi
mov dword [ebp - 8], esi
xor ebx, ebx
mov dword [ebp - 4], edi
call fcn.00e380fa
add esp, 0xc
test eax, eax
jle 0xe28c4b
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
sub eax, esi
mov dword [ebp - 0xc], eax
jmp 0xe28bc1
mov ebx, dword [ebp - 0x10]
inc edi
and edi, 0x800000ff
jns 0xe28bd2
dec edi
or edi, 0xffffff00
inc edi
lea eax, [ebp + edi*4 - 0x410]
mov ecx, dword [eax]
lea edx, [ecx + ebx]
and edx, 0x800000ff
jns 0xe28bee
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x10], edx
lea edx, [ebp + edx*4 - 0x410]
mov ebx, dword [edx]
mov dword [eax], ebx
mov dword [edx], ecx
mov eax, dword [eax]
add eax, ecx
and eax, 0x800000ff
jns 0xe28c10
dec eax
or eax, 0xffffff00
inc eax
mov cl, byte [esi]
movzx edx, cl
lea eax, [ebp + eax*4 - 0x410]
cmp dword [eax], edx
jne 0xe28c28
mov eax, dword [ebp - 0xc]
mov byte [eax + esi], cl
jmp 0xe28c32
mov al, byte [eax]
xor al, cl
mov ecx, dword [ebp - 0xc]
mov byte [ecx + esi], al
push dword [ebp + 8]
inc dword [ebp - 4]
inc esi
call fcn.00e380fa
pop ecx
cmp dword [ebp - 4], eax
jl 0xe28bbe
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov byte [esi + eax], 0
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
pop esi
pop ebx
leave
ret

Function at 0xe2ccdd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0xe2ccfb
xor eax, eax
inc eax
jmp 0xe2cd8d
mov eax, 0x5a4d
cmp word [esi], ax
jne 0xe2cd8a
mov eax, dword [esi + 0x3c]
test eax, eax
je 0xe2cd8a
push dword [ebp + 0xc]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0xe2ccf3
cmp dword [edi], 0x4550
jne 0xe2cd8a
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0xe2cd8a
movzx eax, word [esi + 0x46]
test ax, ax
je 0xe2cd8a
imul eax, eax, 0x28
push eax
mov dword [esi + 0x140], eax
call fcn.00e380e3
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0xe2cd61
push 3
jmp 0xe2cd8c
push dword [ebp + 0xc]
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
push dword [esi + 0x140]
lea ecx, [ecx + edx + 0x18]
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0xe2cd8d
push 2
pop eax
pop edi
pop ebp
ret
Function at 0xe2d373
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0xe2d3ad
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0xe2d3ad
mov edx, 0x10b
cmp word [eax + ecx + 0x18], dx
jne 0xe2d3ad
push dword [ebp + 0xc]
push ecx
push dword [eax + ecx + 0x78]
call fcn.00e2d2d7
add esp, 0xc
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xe36658
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebx + 0x3c]
push edi
xor edi, edi
add esi, ebx
mov dword [ebp - 0xc], edi
cmp dword [esi], 0x4550
jne 0xe3671e
push 0x10
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00e3fde8
push 0x44
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.00e3fde8
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push edi
push 0x8000004
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [0xd21054]
test eax, eax
je 0xe3671e
push 4
push 0x1000
push 4
push edi
call dword [0xd21110]
mov edi, eax
push edi
mov dword [edi], 0x10007
push dword [ebp - 0x18]
call dword [0xd211ac]
test eax, eax
je 0xe3671e
push 0
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edi + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x1c]
call dword [0xd211b0]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [ebp - 0x1c]
call dword [0xd20ffc]
mov dword [ebp - 8], eax
test eax, eax
jne 0xe36725
push dword [ebp - 0x18]
call dword [0xd211c4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0
push dword [esi + 0x54]
push ebx
push eax
push dword [ebp - 0x1c]
call dword [0xd2100c]
and dword [ebp - 4], 0
xor eax, eax
cmp ax, word [esi + 6]
jae 0xe3677c
and dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x3c]
add eax, dword [ebp + 0xc]
push 0
lea eax, [eax + ebx + 0xf8]
push dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 8]
add ecx, ebx
push ecx
push eax
push dword [ebp - 0x1c]
call dword [0xd2100c]
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add dword [ebp + 0xc], 0x28
cmp dword [ebp - 4], eax
jl 0xe36744
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [edi + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x1c]
call dword [0xd2100c]
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 8]
push edi
mov dword [edi + 0xb0], eax
push dword [ebp - 0x18]
call dword [0xd20fe0]
push dword [ebp - 0x18]
call dword [0xd211c4]
mov eax, dword [ebp - 0x14]
jmp 0xe36720
Function at 0x10001e00
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
test byte [0x1003c018], 8
mov ecx, dword [ebp + 8]
je 0x10001e64
sub esp, 0x28
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.__p_____p___lu__0x_lx__0x_lx___p__n
mov dword [esp + 8], str.IXACT3EngineImpl_CreateSoundBank
mov dword [esp], 3
call dbg.wine_dbg_log
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
add esp, 0x28
lea eax, [ebp - 0x10]
push eax
push edx
push edi
push ebx
push esi
push dword [ecx + 4]
mov edi, ecx
call dbg.FACTAudioEngine_CreateSoundBank
add esp, 0x18
test eax, eax
je 0x10001ebd
mov esi, 0x80004005
test byte [0x1003c018], 2
je 0x10001eb1
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_CreateSoundBank:__d_n
mov dword [esp + 8], str.IXACT3EngineImpl_CreateSoundBank
mov dword [esp], 1
call dbg.wine_dbg_log
add esp, 0x14
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
push 0xc
push 8
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x10001f35
mov ebx, eax
mov dword [ebp - 0x14], esi
mov ecx, edi
push eax
call dbg.wrapper_add_entry
add esp, 4
test eax, eax
js 0x10001f77
mov dword [ebx], dbg._IXACT3SoundBankImpl_GetCueIndex_8
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
xor esi, esi
test byte [0x1003c018], 8
je 0x10001eb1
sub esp, 0x14
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Created_SoundBank:__p_n
mov dword [esp + 8], str.IXACT3EngineImpl_CreateSoundBank
mov dword [esp], 3
jmp 0x10001ea9
push edx
call dbg.FACTSoundBank_Destroy
add esp, 4
mov esi, 0x8007000e
test byte [0x1003c018], 2
je 0x10001eb1
sub esp, 0x10
mov dword [esp + 0xc], str.Failed_to_allocate_XACT3SoundBankImpl__n
mov dword [esp + 8], str.IXACT3EngineImpl_CreateSoundBank
mov dword [esp], 1
call dbg.wine_dbg_log
add esp, 0x10
jmp 0x10001eb1
mov esi, eax
push dword [ebp - 0x10]
call dbg.FACTSoundBank_Destroy
add esp, 4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x10001eb1