joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call fcn.00597fff
mov esi, dword [ebp + 0xc]
mov byte [esi], al
push dword [edi]
call fcn.00597fff
mov byte [esi + 1], al
push dword [edi]
call fcn.00597fff
mov byte [esi + 2], al
push dword [edi]
call fcn.00597fff
push edi
mov byte [esi + 3], al
call fcn.0045d070
push edi
mov dword [esi + 4], eax
call fcn.0045d070
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
push dword [edi]
push 1
push 0x1e
push eax
call fcn.00595b79
push edi
call fcn.0045d070
mov dword [esi + 0x2c], eax
lea eax, [ebp - 8]
push eax
push edi
call fcn.0045cf30
movsd xmm0, qword [ebp - 8]
lea eax, [esi + 0x34]
cvtpd2ps xmm0, xmm0
movss dword [esi + 0x30], xmm0
push dword [edi]
push 1
push 0x20
push eax
call fcn.00595b79
add esp, 0x44
push dword [edi]
call fcn.00595867
add esp, 4
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48f9c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0045d070
mov esi, dword [ebp + 0xc]
push edi
mov dword [esi], eax
call fcn.0045d070
mov dword [esi + 4], eax
lea eax, [esi + 8]
push dword [edi]
push 1
push 0x64
push eax
call fcn.00595b79
push dword [edi]
lea eax, [esi + 0x6c]
push 1
push 0xc
push eax
call fcn.00595b79
push dword [edi]
lea eax, [esi + 0x78]
push 1
push 0xc
push eax
call fcn.00595b79
push dword [edi]
lea eax, [esi + 0x84]
push 1
push 0x40
push eax
call fcn.00595b79
add esp, 0x48
lea eax, [esi + 0xc4]
push dword [edi]
push 1
push 0x20
push eax
call fcn.00595b79
push dword [edi]
lea eax, [esi + 0xe4]
push 1
push 0x20
push eax
call fcn.00595b79
lea eax, [ebp - 8]
push eax
push edi
call fcn.0045cf30
movsd xmm0, qword [ebp - 8]
lea eax, [ebp - 8]
cvtpd2ps xmm0, xmm0
push eax
push edi
movss dword [esi + 0x104], xmm0
call fcn.0045cf30
movsd xmm0, qword [ebp - 8]
lea eax, [ebp - 8]
cvtpd2ps xmm0, xmm0
push eax
push edi
movss dword [esi + 0x108], xmm0
call fcn.0045cf30
movsd xmm0, qword [ebp - 8]
lea eax, [esi + 0x110]
cvtpd2ps xmm0, xmm0
movss dword [esi + 0x10c], xmm0
push dword [edi]
push 1
push 0x28
push eax
call fcn.00595b79
add esp, 0x48
push dword [edi]
call fcn.00595867
add esp, 4
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4904f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push str.GS:___s__n
call fcn.005927a9
add esp, 8
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
test eax, eax
je 0x4906ac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.gsapi_new_instance
push eax
call esi
push str.gsapi_init_with_args
push dword [ebp - 8]
mov ebx, eax
call esi
push str.gsapi_run_string
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call esi
push str.gsapi_exit
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call esi
push str.gsapi_delete_instance
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
call esi
push str.gsapi_set_stdio
push dword [ebp - 8]
mov dword [ebp - 0x18], eax
call esi
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x4906a2
cmp dword [ebp - 0xc], 0
je 0x4906a2
cmp dword [ebp - 0x10], 0
je 0x4906a2
cmp dword [ebp - 0x14], 0
je 0x4906a2
cmp dword [ebp - 0x18], 0
je 0x4906a2
test eax, eax
je 0x4906a2
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call ebx
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
js 0x490694
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0x10], ebx
jle 0x490604
mov edi, dword [ebp + 0xc]
mov edx, dword [edi + esi*4]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4905e0
sub ecx, dword [ebp - 0x1c]
push edx
push esi
push str.ARG__d__s__n
add ebx, ecx
call fcn.005927a9
inc esi
add esp, 0xc
cmp esi, dword [ebp + 0x10]
jl 0x4905d2
mov edi, dword [ebp - 0x20]
push ebx
push str.___d__n
call fcn.005927a9
add esp, 8
push 0x492770
push 0x4927c0
push 0x4927b0
push dword [ebp - 4]
call dword [ebp - 0x24]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [ebp - 0xc]
test eax, eax
jne 0x490668
lea eax, [ebp - 0x28]
push eax
push 0
push str.systemdict__start_get_exec_n
push dword [ebp - 4]
call dword [ebp - 0x10]
push dword [ebp - 4]
mov edi, eax
call dword [ebp - 0x14]
push dword [ebp - 4]
call dword [ebp - 0x18]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
push str.ERROR:__d__n
call fcn.005927a9
add esp, 8
push dword [ebp - 4]
call dword [ebp - 0x14]
push dword [ebp - 4]
call dword [ebp - 0x18]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push str.CANT_START_GS_instance___d_____n
call fcn.005927a9
add esp, 8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4924b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0xc], ebx
je 0x492578
push edi
mov edi, dword [ebp + 8]
lea esp, [esp]
push dword [edi]
lea eax, [ebp - 4]
push 1
push 2
push eax
call fcn.00595b79
mov ax, word [ebp - 4]
add esp, 0x10
cmp al, 0x50
jne 0x492577
cmp ah, 0x34
jne 0x4924fa
mov esi, 1
jmp 0x492511
cmp ah, 0x35
jne 0x492506
mov esi, 8
jmp 0x492511
cmp ah, 0x36
mov eax, 0x18
cmove esi, eax
lea eax, [ebp - 8]
push eax
push edi
call fcn.00492800
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00492800
add esp, 0x10
cmp esi, 1
je 0x492553
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00492800
xor eax, eax
add esp, 8
cmp esi, 0x18
sete al
lea eax, [eax*2 + 1]
imul eax, dword [ebp - 0xc]
imul eax, dword [ebp - 8]
jmp 0x492563
mov eax, dword [ebp - 8]
add eax, 7
and eax, 0xfffffff8
imul eax, dword [ebp - 0xc]
shr eax, 3
push eax
push edi
call fcn.0045d3f0
inc ebx
add esp, 8
cmp ebx, dword [ebp + 0xc]
jne 0x4924d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x492580
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x104]
mov dword [esi], 0
push str.Software_s
push eax
call fcn.005933b1
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x104]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4926ba
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [ebp - 0x104]
push edi
push 0x100
push eax
xor edi, edi
push edi
push dword [ebp - 0x108]
call ebx
test eax, eax
jne 0x4926a3
lea ecx, [ecx]
mov cl, byte [ebp - 0x104]
inc edi
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x492686
xor edx, edx
lea eax, [ebp - 0x104]
test cl, cl
je 0x49264d
lea ebx, [ebx]
cmp cl, 0x2e
je 0x492652
movsx ecx, cl
inc eax
sub ecx, 0x30
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx*4]
mov cl, byte [eax]
add edx, edx
test cl, cl
jne 0x492630
cmp byte [eax], 0x2e
jne 0x492653
inc eax
mov cl, byte [eax]
test cl, cl
je 0x492674
movsx ecx, cl
inc eax
sub ecx, 0x30
mov al, byte [eax]
lea ecx, [ecx + ecx*4]
lea edx, [edx + ecx*2]
test al, al
je 0x492674
movsx eax, al
add edx, 0xffffffd0
add edx, eax
mov eax, dword [esi]
cmp eax, dword [ebp + 0x10]
jge 0x492686
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + eax*4], edx
inc dword [esi]
push 0x100
lea eax, [ebp - 0x104]
push eax
push edi
push dword [ebp - 0x108]
call ebx
test eax, eax
je 0x492610
cmp dword [esi], 0
pop edi
pop ebx
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4926d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x492756
mov esi, dword [ebp + 0x18]
lea ecx, [ebp - 4]
push ecx
test edi, edi
mov dword [ebp - 0xc], 1
mov eax, dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp + 0x17]
cmovne eax, edi
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x492740
mov eax, dword [ebp - 4]
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0xea
jne 0x492756
mov eax, dword [ebp - 4]
mov dword [esi], eax
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x494410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push dword [esi]
push 1
push 2
push eax
call fcn.00595b79
add esp, 0x10
cmp eax, 1
jne 0x4944b7
mov ax, word [ebp + 8]
cmp al, 0x4d
jne 0x4944b7
cmp ah, al
jne 0x4944b7
push 0
push 0x226
push dword [esi]
call fcn.00595cb4
push esi
call fcn.0045d240
movzx eax, ax
add esp, 0x10
cmp eax, 0x1ed
jne 0x494478
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x200
mov dword [eax + 0xc], 0xa
mov dword [eax + 0x18], 0x3e40
jmp 0x494496
cmp eax, 0x140
jne 0x4944b7
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x100
mov dword [eax + 0xc], 8
mov dword [eax + 0x18], 0x3d40
mov dword [eax + 0x14], 1
mov dword [eax + 0x10], 1
mov dword [eax + 8], 2
mov dword [eax + 4], 0xf3
xor eax, eax
pop esi
pop ebp
ret
mov eax, 2
pop esi
pop ebp
ret

Function at 0x4948d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp + 8]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x10
cmp eax, 1
je 0x4948f4
mov eax, 2
pop ebp
ret
push 4
lea eax, [ebp + 8]
push str.COMET
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
jne 0x4948ed
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x200
mov dword [eax + 4], 0xf3
mov dword [eax + 8], 2
mov dword [eax + 0xc], 0xa
mov dword [eax + 0x10], 1
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], 0x280
xor eax, eax
pop ebp
ret

Function at 0x495150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x49516b
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.005361c0
add esp, 0xc
pop ebp
ret
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00595b79
add esp, 0x10
pop ebp
ret
Function at 0x4956f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push dword [edi]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x495739
pop edi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xc], 0x52
jne 0x495724
cmp byte [ebp - 0xb], 0x49
jne 0x495724
cmp byte [ebp - 0xa], 0x46
jne 0x495724
cmp byte [ebp - 9], 0x46
jne 0x495724
push edi
call fcn.0045d030
push dword [edi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x495724
cmp byte [ebp - 0xc], 0x41
jne 0x495724
cmp byte [ebp - 0xb], 0x43
jne 0x495724
cmp byte [ebp - 0xa], 0x4f
jne 0x495724
cmp byte [ebp - 9], 0x4e
jne 0x495724
push esi
mov dword [ebx], 0
push dword [edi]
call fcn.00595867
add esp, 4
test eax, eax
jne 0x495832
mov edi, edi
push dword [edi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4958b9
mov al, byte [ebp - 0xc]
cmp al, 0x49
jne 0x4957d3
cmp byte [ebp - 0xb], 0x4e
jne 0x4957ed
cmp byte [ebp - 0xa], 0x46
jne 0x4957ed
cmp byte [ebp - 9], 0x4f
jmp 0x4957e7
cmp al, 0x66
jne 0x4957ed
cmp byte [ebp - 0xb], 0x72
jne 0x4957ed
cmp byte [ebp - 0xa], 0x61
jne 0x4957ed
cmp byte [ebp - 9], 0x6d
je 0x4958a2
push edi
call fcn.0045d030
mov esi, eax
add esp, 4
mov ecx, esi
and ecx, 0x80000001
jns 0x495807
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x495814
lea eax, [esi + 1]
cdq
sub eax, edx
mov esi, eax
and esi, 0xfffffffe
mov al, byte [ebp - 0xc]
cmp al, 0x69
jne 0x49584f
cmp byte [ebp - 0xb], 0x63
jne 0x495898
cmp byte [ebp - 0xa], 0x6f
jne 0x495898
cmp byte [ebp - 9], 0x6e
jne 0x495898
mov eax, dword [ebp - 0x10]
mov dword [eax], esi
xor eax, eax
mov ecx, 2
cmp dword [ebx], eax
pop esi
pop edi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
cmp al, 0x61
jne 0x495882
cmp byte [ebp - 0xb], 0x6e
jne 0x495898
cmp byte [ebp - 0xa], 0x69
jne 0x495898
cmp byte [ebp - 9], 0x68
jne 0x495898
push edi
call fcn.0045d030
push edi
call fcn.0045d030
push edi
mov dword [ebx], eax
call fcn.0045d030
mov al, byte [ebp - 0xc]
add esp, 0xc
sub esi, 0xc
cmp al, 0x4c
jne 0x495898
cmp byte [ebp - 0xb], 0x49
jne 0x495898
cmp byte [ebp - 0xa], 0x53
jne 0x495898
cmp byte [ebp - 9], 0x54
je 0x4958a2
push esi
push edi
call fcn.0045d3f0
add esp, 8
push dword [edi]
call fcn.00595867
add esp, 4
test eax, eax
je 0x4957a0
jmp 0x495832
mov ecx, dword [ebp - 4]
mov eax, 4
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x495c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
push dword [edi]
push 1
push 7
push 0x6451bc
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x495c26
mov eax, 4
pop edi
pop ebp
ret
push esi
xor esi, esi
lea esp, [esp]
push dword [edi]
call fcn.00597fff
add esp, 4
mov cl, al
cmp byte [0x6451bc], 0x70
mov byte [0x6451c3], cl
jne 0x495c85
cmp byte [0x6451bd], 0
jne 0x495c85
cmp byte [0x6451be], 0x91
jne 0x495c85
cmp byte [0x6451bf], 1
jne 0x495c85
cmp byte [0x6451c0], 0xff
jne 0x495c85
cmp byte [0x6451c1], 0x94
jne 0x495c85
cmp byte [0x6451c2], 9
jne 0x495c85
test cl, cl
je 0x495caa
mov eax, dword [0x6451bd]
inc esi
mov dword [0x6451bc], eax
mov ax, word [0x6451c1]
mov word [0x6451c0], ax
mov byte [0x6451c2], cl
cmp esi, 0x100
jl 0x495c30
cmp esi, 0x100
je 0x495d52
push dword [edi]
call fcn.00597fff
push dword [edi]
call fcn.00597fff
push dword [edi]
call fcn.00597fff
push dword [edi]
call fcn.00597fff
push edi
call fcn.0045d240
movzx ecx, ax
mov eax, dword [ebp + 0xc]
push edi
mov dword [eax], ecx
call fcn.0045d240
movzx ecx, ax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
push dword [edi]
call fcn.00597fff
push dword [edi]
call fcn.00597fff
push dword [edi]
call fcn.00597fff
mov ecx, dword [ebp + 0x14]
mov byte [ecx], al
push dword [edi]
call fcn.00597fff
add esp, 0x28
mov byte [0x6451bc], al
xor esi, esi
lea esp, [esp]
push dword [edi]
call fcn.00597fff
add esp, 4
mov byte [0x6451bd], al
cmp byte [0x6451bc], 0xfe
jne 0x495d3c
cmp al, 0x92
je 0x495d4a
inc esi
mov byte [0x6451bc], al
cmp esi, 0x80
jl 0x495d20
cmp esi, 0x80
jne 0x495d5b
pop esi
mov eax, 2
pop edi
pop ebp
ret
push dword [edi]
call fcn.00597fff
push dword [edi]
call fcn.00597fff
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebp
ret

Function at 0x496200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, 0x3e8
push edi
mov edi, dword [ebp + 8]
push ebx
mov dword [ebp - 0x108], edi
mov dword [esi], 0
call fcn.00593e38
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x496253
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push dword [edi]
call fcn.00597fff
mov edi, eax
add esp, 4
test edi, edi
jle 0x4962d2
jmp 0x496270
mov eax, dword [ebp - 0x108]
push dword [eax]
lea eax, [ebp - 0x104]
push 1
push edi
push eax
call fcn.00595b79
mov eax, dword [esi]
add esp, 0x10
add eax, edi
cmp eax, ebx
jle 0x4962a7
add ebx, ebx
push ebx
push dword [esi + 4]
call fcn.00593eca
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x49623d
push edi
lea eax, [ebp - 0x104]
push eax
mov eax, dword [esi + 4]
add eax, dword [esi]
push eax
call fcn.00592150
mov eax, dword [ebp - 0x108]
add dword [esi], edi
push dword [eax]
call fcn.00597fff
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x496270
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4962f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
push 3
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00595b79
add esp, 0x10
xor eax, eax
pop ebp
ret
Function at 0x498e20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x94], ecx
mov dword [edi], 0
mov dword [ebx], 0
push dword [ecx]
push 1
push 0x80
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x498e8a
pop edi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x84]
cmp dword [eax], 0x64637273
jne 0x498ea9
cmp dword [eax + 4], 0x6469636f
jne 0x498ea9
cmp word [eax + 8], 0x203a
je 0x498ec9
lea eax, [ebp - 0x84]
cmp dword [eax], 0x63657073
jne 0x498e75
cmp dword [eax + 4], 0x73726576
jne 0x498e75
cmp dword [eax + 8], 0x3a6e6f69
jne 0x498e75
push esi
mov esi, 1
nop
mov eax, dword [ebp - 0x94]
push dword [eax]
lea eax, [ebp - 0x84]
push 1
push 0x80
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x498fae
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push str.rtype:__d
push eax
call fcn.00593320
add esp, 0xc
cmp eax, 1
jne 0x498f22
cmp dword [ebp - 0x88], eax
jne 0x498fae
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push str.rdensity:__d
push eax
call fcn.00593320
add esp, 0xc
cmp eax, 1
jne 0x498f50
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
mov dword [ecx], eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push str.rpelcnt:__d__d
push eax
call fcn.00593320
add esp, 0x10
cmp eax, 2
jne 0x498f87
mov eax, dword [ebp - 0x88]
mov dword [ebx], eax
mov eax, dword [ebp - 0x90]
mov dword [edi], eax
inc esi
cmp esi, 0x10
jl 0x498ed0
cmp dword [ebx], 0
je 0x498fae
cmp dword [edi], 0
je 0x498fae
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4997f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 0x10
test ecx, ecx
je 0x499955
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
lea ebx, [ebx]
mov eax, edi
mov dword [ebp - 0x10], edi
add edi, esi
mov dword [ebp - 8], eax
xor bl, bl
mov dword [ebp + 0xc], edi
xor edx, edx
mov byte [ebp - 1], bl
test esi, esi
jle 0x499847
sub eax, edi
mov ecx, edi
mov dword [ebp - 0xc], eax
mov edi, eax
mov al, byte [edi + ecx]
cmp al, byte [ecx]
jne 0x49983e
inc edx
inc ecx
cmp edx, esi
jl 0x499831
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
cmp edx, esi
jne 0x4998e0
mov edx, esi
sub ecx, esi
neg edx
mov dword [ebp + 0x10], ecx
mov ebx, eax
mov dword [ebp - 0xc], edx
mov ah, byte [ebp - 1]
sub ebx, edi
test ecx, ecx
je 0x499895
xor edx, edx
test esi, esi
jle 0x499880
mov ecx, edi
mov edi, edi
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x49987d
inc edx
inc ecx
cmp edx, esi
jl 0x499870
mov ecx, dword [ebp + 0x10]
cmp edx, esi
jne 0x499895
add ebx, dword [ebp - 0xc]
inc ah
sub ecx, esi
add edi, esi
mov dword [ebp + 0x10], ecx
cmp ah, 0x7f
jb 0x499862
mov ecx, dword [ebp + 8]
movzx eax, ah
or eax, 0x80
mov dword [ebp + 0xc], edi
push dword [ecx]
push eax
call fcn.005958b3
add esp, 8
xor ebx, ebx
test esi, esi
jle 0x499947
mov edi, dword [ebp - 8]
jmp 0x4998c0
mov eax, dword [ebp + 8]
push dword [eax]
movzx eax, byte [ebx + edi]
push eax
call fcn.005958b3
inc ebx
add esp, 8
cmp ebx, esi
jl 0x4998c0
mov edi, dword [ebp + 0xc]
jmp 0x499947
test ecx, ecx
je 0x49991d
xor edx, edx
test esi, esi
jle 0x499906
sub eax, edi
mov ecx, edi
mov dword [ebp - 8], eax
mov edi, eax
mov al, byte [ecx + edi]
cmp al, byte [ecx]
jne 0x499900
inc edx
inc ecx
cmp edx, esi
jl 0x4998f3
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp edx, esi
je 0x49991d
mov eax, edi
inc bl
add edi, esi
sub ecx, esi
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], ecx
cmp bl, 0x7f
jb 0x4998e0
mov eax, dword [ebp + 8]
dec bl
sub edi, esi
push dword [eax]
movzx eax, bl
push eax
call fcn.005958b3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push dword [eax]
mov eax, edi
push 1
sub eax, ecx
push eax
push ecx
call fcn.0059628c
add esp, 0x18
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x499810
pop edi
pop esi
pop ebx
xor eax, eax
mov esp, ebp
pop ebp
ret