joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c
xor eax, eax
mov ecx, 1
push ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x80], ecx
lea ecx, [esp + 0x34]
push ebp
mov edx, 2
mov dword [esp + 8], ecx
push esi
xor ecx, ecx
push edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0x11
mov dword [esp + 0x68], 0x12
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0x13
mov dword [esp + 0x74], 0x14
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0x15
mov dword [esp + 0x90], 0x16
mov dword [esp + 0x94], 0x17
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0x18
mov dword [esp + 0xa0], 0x19
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], 0x1a
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 5
mov dword [esp + 0x3c], 9
mov dword [esp + 0x28], 0x55b3e8
mov dword [esp + 0x2c], 0x55b568
mov dword [esp + 0x30], 0x55bb68
mov dword [esp + 0x1c], ecx
lea esp, [esp]
mov edx, dword [esp + ecx + 0x34]
mov eax, dword [esp + ecx + 0x28]
mov dword [esp + 0x20], edx
test edx, edx
jle 0x488a8b
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov ebx, ecx
mov dword [esp + 0x24], edx
jmp 0x488a54
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x24], edx
jmp 0x488a54
mov edx, dword [esp + 0x20]
mov esi, dword [ebx]
mov ecx, dword [esp + 0x10]
lea ebx, [ebx]
mov ebp, dword [ecx]
mov dword [eax], ebp
mov dword [eax + 4], esi
mov dword [eax + 8], edi
add eax, 0xc
add ecx, 4
dec edx
jne 0x488a60
add ebx, 4
dec dword [esp + 0x24]
jne 0x488a50
add dword [esp + 0x14], 4
dec dword [esp + 0x18]
jne 0x488a36
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x10], 0x24
add ecx, 4
mov dword [esp + 0x1c], ecx
cmp ecx, 0xc
jl 0x488a10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
Function at 0x4a8780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ecx + 0x7c]
push esi
xor esi, esi
push edi
test ebx, ebx
jle 0x4a87d1
mov ecx, dword [ecx + 0x78]
mov dword [ebp - 4], ecx
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a87c0
test dl, dl
je 0x4a87bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a87c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a87a0
xor eax, eax
jmp 0x4a87c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a880e
inc esi
add edi, 0x4c
cmp esi, ebx
jl 0x4a8798
fldz
mov eax, dword [ebp + 8]
fst dword [eax]
pop edi
fst dword [eax + 4]
pop esi
fst dword [eax + 8]
pop ebx
fst dword [eax + 0xc]
fst dword [eax + 0x10]
fst dword [eax + 0x14]
fst dword [eax + 0x18]
fst dword [eax + 0x1c]
fst dword [eax + 0x20]
fst dword [eax + 0x24]
fst dword [eax + 0x28]
fst dword [eax + 0x2c]
fst dword [eax + 0x30]
fst dword [eax + 0x34]
fst dword [eax + 0x38]
fstp dword [eax + 0x3c]
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
imul esi, esi, 0x4c
lea esi, [esi + eax + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x10
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4a8e70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x509e38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x546190]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov eax, dword [ebx + 4]
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.004a9ef0
push edi
mov dword [esp + 0x34], 0xffffffff
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esi + 4]
mov ecx, dword [ebx]
mov edx, dword [esi]
add esp, 4
call fcn.004aa3b0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4acf50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506a13
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x546190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], vtable.gr::ShadowingSurfaceData.0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov ebx, dword [ebp + 0x18]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], ebx
mov ebx, dword [ebp + 0x1c]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edx
mov ebx, dword [eax]
mov dword [esi + 0x2c], ebx
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
mov dword [esi + 0x30], ebx
call fcn.004e64a0
mov ebx, eax
cmp ebx, dword [esi + 0x18]
jle 0x4acfd6
push ebx
lea ecx, [esi + 0x10]
call fcn.00422640
mov eax, dword [esi + 0x14]
cmp eax, ebx
jge 0x4acfec
lea ecx, [ecx]
mov ecx, dword [esi + 0x10]
mov byte [eax + ecx], 0
inc eax
cmp eax, ebx
jl 0x4acfe0
mov eax, ebx
cmp ebx, dword [esi + 0x14]
jge 0x4ad000
mov edx, dword [esi + 0x10]
mov byte [eax + edx], 0
inc eax
cmp eax, dword [esi + 0x14]
jl 0x4acff3
mov eax, dword [ebp + 0x14]
push ebx
mov dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x10]
push eax
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4bdb10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x505878
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x546190]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 8]
xor esi, esi
xor eax, eax
jmp 0x4bdb50
cmp dword [eax*4 + 0x51aa7c], ecx
jg 0x4bdcbe
inc eax
cmp eax, 0xd
jl 0x4bdb50
add ecx, 0x1f97b
or ecx, 1
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x14]
call fcn.004be5a0
mov dword [esp + 0x20], eax
mov dword [ebx + 0x38], esi
mov dword [esp + 0x1c], esi
cmp dword [ebx + 8], esi
jle 0x4bdc7f
mov dword [esp + 0x18], esi
mov esi, dword [ebx + 0xc]
add esi, dword [esp + 0x18]
je 0x4bdc68
cmp byte [esi + 0x38], 0
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x24], ecx
je 0x4bdbf6
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push edx
push ebx
mov edx, esi
call fcn.004bdcd0
mov ebx, dword [esi + 0x18]
mov edi, eax
test ebx, ebx
je 0x4bdbc8
inc dword [ebx + 4]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x4bdbdc
dec dword [ecx + 4]
jne 0x4bdbdc
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x1c]
push eax
lea ecx, [edi + 0x1c]
mov dword [edi + 0x18], ebx
call fcn.00439650
mov ebx, dword [ebp + 8]
mov byte [edi + 0x38], 1
xor eax, eax
mov dword [esi + 0x34], eax
mov ecx, dword [ebx + 0xc]
add ecx, dword [esp + 0x18]
cmp ecx, esi
je 0x4bdc5c
mov dword [esp + 0x28], esi
mov edi, 0x10
mov dword [esp + 0x38], eax
cmp dword [esi + 0x30], edi
jl 0x4bdc25
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4bdc39
dec dword [ecx + 4]
jne 0x4bdc39
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x38], 0xffffffff
cmp dword [esi + 0x14], edi
jl 0x4bdc52
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x4bdb9e
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], 0x3c
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [ebx + 8]
jl 0x4bdb91
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
push edx
push eax
call fcn.004be640
fld dword [ebx + 0x10]
fimul dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
call fcn.00500300
mov dword [ebx + 0x18], eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax*4 + 0x51aa7c]
mov dword [esp + 0x14], eax
jmp 0x4bdb70
Function at 0x4c5600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5099f8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
mov eax, dword [0x546190]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea eax, [esp + 0xc]
mov dword [esp + 0x40], ebx
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, esi
call fcn.004c5680
push ebx
mov dword [esp + 0x44], 0xffffffff
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov edx, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [esi]
add esp, 4
call fcn.004c5b70
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c9500
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4c9551
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push 0x1c
push 1
push esi
call ecx
mov dword [esi + 0x180], eax
mov dword [eax], 0x4d2830
mov dword [eax + 4], 0x4d2990
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.004d2670
cmp byte [esi + 0x40], 0
je 0x4c954a
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4c95cb
mov edx, dword [esi + 0x190]
cmp byte [edx + 0x10], 0
je 0x4c95bb
mov eax, dword [esi + 8]
test eax, eax
je 0x4c9576
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov ecx, dword [esi + 0x190]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
test eax, eax
je 0x4c95b7
cmp eax, 2
je 0x4c95bb
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4c9567
cmp eax, 3
je 0x4c959e
cmp eax, 1
jne 0x4c9567
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jl 0x4c9567
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x4c9567
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.004c9600
pop esi
ret
cmp eax, 0xcc
je 0x4c95ed
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
call fcn.004c9600
pop esi
ret
Function at 0x4ce290
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x546190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov bl, byte [ecx + 8]
push esi
mov esi, edx
mov dword [ebp - 0x18], eax
cmp bl, 3
je 0x4ce450
mov edx, dword [ecx]
push edi
mov dword [ebp - 0x1c], 0
test bl, 2
je 0x4ce2f1
movzx eax, byte [ecx + 9]
movzx edi, byte [esi]
mov ebx, eax
sub ebx, edi
movzx edi, byte [esi + 1]
mov dword [ebp - 0x14], ebx
mov ebx, eax
sub ebx, edi
movzx edi, byte [esi + 2]
sub eax, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
mov edi, 3
jmp 0x4ce303
movzx edi, byte [esi + 3]
movzx ebx, byte [ecx + 9]
sub ebx, edi
mov dword [ebp - 0x14], ebx
mov edi, 1
test byte [ecx + 8], 4
je 0x4ce318
movzx esi, byte [esi + 4]
movzx ebx, byte [ecx + 9]
sub ebx, esi
mov dword [ebp + edi*4 - 0x14], ebx
inc edi
xor esi, esi
test edi, edi
jle case.0x4ce361.3
cmp dword [ebp + esi*4 - 0x14], 0
jg 0x4ce333
mov dword [ebp + esi*4 - 0x14], 0
jmp 0x4ce33a
mov dword [ebp - 0x1c], 1
inc esi
cmp esi, edi
jl 0x4ce322
cmp word [ebp - 0x1c], 0
je case.0x4ce361.3
movzx esi, byte [ecx + 9]
add esi, 0xfffffffe
cmp esi, 0xe
ja case.0x4ce361.3
movzx esi, byte [esi + 0x4ce474]
jmp dword [esi*4 + 0x4ce460]
mov ecx, dword [ecx + 4]
test ecx, ecx
je case.0x4ce361.3
mov dl, byte [eax]
shr dl, 1
and dl, 0x55
mov byte [eax], dl
inc eax
dec ecx
jne 0x4ce373
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffd1c
mov esp, ebp
pop ebp
ret
mov edi, dword [ecx + 4]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edx, 0xf0
sar edx, cl
mov ebx, 0xf
sar ebx, cl
and dl, 0xf0
or dl, bl
test edi, edi
je case.0x4ce361.3
mov bl, byte [esi]
mov cl, al
shr bl, cl
inc esi
and bl, dl
dec edi
mov byte [esi - 1], bl
jne 0x4ce3b6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffd1c
mov esp, ebp
pop ebp
ret
imul edx, edi
xor ebx, ebx
mov esi, eax
mov dword [ebp - 0x18], edx
test edx, edx
je case.0x4ce361.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
cmp ebx, dword [ebp - 0x18]
jb 0x4ce3e4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffd1c
mov esp, ebp
pop ebp
ret
imul edx, edi
xor ebx, ebx
mov esi, eax
mov dword [ebp - 0x18], edx
test edx, edx
je case.0x4ce361.3
xor edx, edx
mov eax, ebx
div edi
movzx eax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc ebx
add esi, 2
movzx ecx, word [ebp + edx*4 - 0x14]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, dword [ebp - 0x18]
jb 0x4ce417
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004ffd1c
mov esp, ebp
pop ebp
ret
Function at 0x4d3b70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
xor edi, edi
push 0x54
mov dword [ebx + 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x4d3ba9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x36
mov ecx, dword [ebx]
mov dword [ecx + 0x18], edi
mov edx, dword [ebx]
mov eax, dword [edx]
push ebx
call eax
add esp, 4
mov dword [esi], fcn.004d2f70
mov dword [esi + 4], fcn.004d30c0
mov dword [esi + 8], fcn.004d3190
mov dword [esi + 0xc], fcn.004d3240
mov dword [esi + 0x10], 0x4d32f0
mov dword [esi + 0x14], 0x4d3360
mov dword [esi + 0x18], 0x4d33d0
mov dword [esi + 0x1c], 0x4d3690
mov dword [esi + 0x20], 0x4d37e0
mov dword [esi + 0x24], 0x4d3930
mov dword [esi + 0x28], 0x4d3a40
mov dword [esi + 0x30], 0x3b9aca00
mov ecx, dword [ebp - 8]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [ebx + 4], esi
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
cmp eax, edi
je 0x4d3c7e
lea edx, [ebp - 1]
push edx
lea ecx, [ebp - 8]
push ecx
push str._ld_c
push eax
mov byte [ebp - 1], 0x78
call dword [sym.imp.MSVCR100.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x4d3c7e
mov al, byte [ebp - 1]
cmp al, 0x6d
je 0x4d3c5a
cmp al, 0x4d
jne 0x4d3c72
mov eax, dword [ebp - 8]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
pop edi
mov dword [esi + 0x2c], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d8cd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x4c], 1
push esi
mov esi, dword [ebx + 0x1a8]
push edi
mov dword [ebp - 0x14], esi
jne 0x4d8cf8
mov dword [ebp - 4], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x4d8d03
mov dword [ebp - 4], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push ebx
call eax
xor edi, edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [ebp - 8], edi
cmp dword [ebx + 0x64], edi
jle 0x4d8e0f
jmp 0x4d8d3e
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + edi*4 + 0x20]
cdq
idiv ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
je 0x4d8d5e
mov edx, dword [esi + 0x18]
add dword [edx + edi*4], 0xff
lea eax, [edx + edi*4]
mov eax, dword [esi + 0x18]
mov edi, dword [eax + edi*4]
lea eax, [ecx + 0xfe]
lea esi, [ecx + ecx - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [ebp - 0x18], edi
xor ecx, ecx
mov esi, eax
lea ebx, [ebx]
cmp ecx, esi
jle 0x4d8dbc
mov eax, dword [ebp - 0xc]
mov edx, ebx
imul edx, edx, 0x1fe
lea edi, [edx + eax + 0xfe]
jmp 0x4d8da0
mov esi, dword [ebp - 0xc]
add edi, 0x1fe
mov eax, edi
cdq
lea esi, [esi + esi - 2]
idiv esi
inc ebx
mov esi, eax
cmp ecx, esi
jg 0x4d8da0
mov edi, dword [ebp - 0x18]
mov al, byte [ebp - 0x10]
imul bl
mov byte [ecx + edi], al
inc ecx
cmp ecx, 0xff
jle 0x4d8d80
cmp dword [ebp - 4], 0
je 0x4d8dfc
mov eax, 1
lea ecx, [edi - 1]
jmp 0x4d8de0
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
inc eax
dec ecx
cmp eax, 0xff
jle 0x4d8de0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0x64]
jl 0x4d8d35
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f1ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x18]
push edi
mov edi, ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 4], eax
cmp ecx, eax
je 0x4f1bca
mov edx, dword [eax + 0x78]
test edx, edx
je 0x4f1b2f
cmp dword [edx], ecx
jne 0x4f1b25
mov eax, dword [edx + 4]
mov esi, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [ebp + 8], eax
cmp esi, ebx
jne 0x4f1b14
cmp eax, dword [ebp + 0xc]
je 0x4f1bca
cmp esi, dword [ebp + 0xc]
jne 0x4f1b22
cmp dword [ebp + 8], ebx
je 0x4f1bca
mov eax, dword [ebp - 4]
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4f1af7
mov esi, dword [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.004ec6f0
test al, al
je 0x4f1bca
mov ecx, dword [edi + 0x44]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push ebx
call eax
test al, al
je 0x4f1bca
mov ecx, dword [edi + 0x4c]
push ecx
push esi
push ebx
call fcn.004f3cf0
mov edx, dword [eax + 0x30]
mov ecx, dword [edx + 0x18]
mov edx, dword [eax + 0x34]
mov edx, dword [edx + 0x18]
mov dword [eax + 8], 0
mov esi, dword [edi + 0x3c]
mov dword [eax + 0xc], esi
mov esi, dword [edi + 0x3c]
add esp, 0xc
test esi, esi
je 0x4f1b80
mov dword [esi + 8], eax
mov dword [edi + 0x3c], eax
lea esi, [eax + 0x10]
mov dword [eax + 0x14], eax
mov dword [esi], edx
mov dword [eax + 0x18], 0
mov ebx, dword [ecx + 0x78]
mov dword [eax + 0x1c], ebx
mov ebx, dword [ecx + 0x78]
test ebx, ebx
je 0x4f1ba2
mov dword [ebx + 8], esi
mov dword [ecx + 0x78], esi
lea esi, [eax + 0x20]
mov dword [eax + 0x24], eax
mov dword [esi], ecx
mov dword [eax + 0x28], 0
mov ecx, dword [edx + 0x78]
mov dword [eax + 0x2c], ecx
mov eax, dword [edx + 0x78]
test eax, eax
je 0x4f1bc4
mov dword [eax + 8], esi
mov dword [edx + 0x78], esi
inc dword [edi + 0x40]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ffd1c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x546190]
jne 0x4ffd26
repz ret
jmp fcn.005003b8

Function at 0x5009d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502d83
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x546190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [esi + 0xc], eax
sub eax, edi
mov dword [esi + 8], ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
je 0x500abc
sub eax, 0xd
je 0x500ab3
dec eax
je 0x500aa3
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 0x68]
push edx
call eax
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], edi
call fcn.0043a670
push 0x2f
push str.Unsupported_audio_file_format_while_reading_0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0xf
call fcn.00439740
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
call fcn.00438910
sub esp, 0x1b0
mov dword [ebp - 0x21c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 3
call fcn.00438600
call fcn.0042d0a0
mov ecx, esi
call fcn.00501f20
mov ecx, esi
call fcn.00501ff0
jmp 0x500ac4
mov ecx, esi
call fcn.00502380
jmp 0x500ac4
push edx
mov ecx, esi
call fcn.005022d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ffd1c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x500d60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502e98
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x546190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.0043a920
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [esi + 8], ecx
push edi
mov ecx, esi
mov dword [ebp - 4], eax
mov dword [esi], vtable.audio::AudioReader.0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
call fcn.005022d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ffd1c
mov esp, ebp
pop ebp
ret 8