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

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
mov ebx, ecx
push 0x8002
push eax
mov dword [esp + 0x10], ebx
xor esi, esi
call dword [sym.imp.MSVCRT.dll__open]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jle 0x4877eb
push ebp
push edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
mov esi, dword [edi + 8]
shl esi, 1
call fcn.004b53f0
mov cl, byte [edi + 4]
lea eax, [eax + esi - 1]
test cl, cl
jne 0x48772e
mov esi, dword [edi + 8]
mov ecx, edi
shr esi, 3
call fcn.004b5410
mov ecx, dword [edi + 8]
lea eax, [eax + ecx - 1]
shr eax, 3
mov ecx, dword [ebx + 4]
mov ebp, eax
sub ebp, esi
inc ebp
inc eax
cmp ecx, eax
jge 0x48773d
mov eax, ecx
sub eax, esi
xor edx, edx
test eax, eax
setle dl
dec edx
and edx, eax
test esi, esi
mov edi, edx
jge 0x487751
xor edi, edi
mov ebx, ebp
sub ebx, edi
test edi, edi
jle 0x48777b
mov eax, dword [esp + 0x18]
push 0
push esi
push eax
call dword [sym.imp.MSVCRT.dll__lseek]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push edi
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0x18
test ebx, ebx
jle 0x4877b0
mov eax, dword [esp + 0x18]
push 2
push 0
push eax
call dword [sym.imp.MSVCRT.dll__lseek]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp eax, dword [ecx + 4]
jle 0x4877b0
mov eax, dword [esp + 0x20]
lea edx, [edi + esi]
push ebx
push edx
mov edx, dword [esp + 0x20]
add edi, eax
push edi
push edx
call fcn.00487d60
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 4]
test cl, cl
jne 0x4877d0
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x20]
and eax, 7
push eax
push ebp
push ecx
call fcn.004a8dd0
add esp, 0xc
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
mov eax, 1
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, esi
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x487bb0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x3004
call fcn.0051c710
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3014]
mov ebx, ecx
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov ecx, ebx
push eax
push esi
call fcn.00487b40
mov ebp, dword [sym.imp.MSVCRT.dll__lseek]
mov edi, dword [ebx + 4]
push 2
push 0
push esi
call ebp
add esp, 0xc
cmp eax, edi
jne 0x487c15
lea ecx, [esp + 0x14]
push 0x1000
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__write]
add esp, 0xc
jmp 0x487c2f
push 0
push edi
push esi
call ebp
lea edx, [esp + 0x20]
push 0x1000
push edx
push esi
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0x18
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x1018]
mov dword [esp + 0x1014], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x301c]
sar eax, 0x16
and eax, 0x3ff
lea edi, [esp + eax*4 + 0x14]
mov dword [esp + 0x10], edi
mov eax, dword [edi]
test eax, eax
jne 0x487ca0
push 2
push eax
push esi
call ebp
mov dword [edi], eax
mov edi, dword [sym.imp.MSVCRT.dll__write]
lea eax, [esp + 0x1020]
push 0x1000
push eax
push esi
call edi
mov ecx, dword [ebx + 4]
push 0
push ecx
push esi
call ebp
lea edx, [esp + 0x38]
push 0x1000
push edx
push esi
call edi
add esp, 0x30
jmp 0x487cbd
push 0
push eax
push esi
call ebp
lea eax, [esp + 0x1020]
push 0x1000
push eax
push esi
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0x18
mov eax, dword [esp + 0x301c]
sar eax, 0xc
and eax, 0x3ff
lea ebx, [esp + eax*4 + 0x1014]
mov eax, dword [esp + eax*4 + 0x1014]
test eax, eax
jne 0x487d37
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x2015]
mov byte [esp + 0x2014], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 2
push 0
push esi
stosb byte es:[edi], al
call ebp
mov edi, dword [sym.imp.MSVCRT.dll__write]
lea ecx, [esp + 0x2020]
push 0x1000
push ecx
push esi
mov dword [ebx], eax
call edi
mov edx, dword [esp + 0x28]
push 0
mov eax, dword [edx]
push eax
push esi
call ebp
lea ecx, [esp + 0x1038]
push 0x1000
push ecx
push esi
call edi
add esp, 0x30
mov eax, dword [esp + 0x301c]
mov ecx, dword [ebx]
pop edi
and eax, 0xfff
pop esi
pop ebp
add eax, ecx
pop ebx
add esp, 0x3004
ret 8

Function at 0x487d60
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 4], ecx
test edi, edi
mov dword [esp + 0x10], eax
jle 0x487dda
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.00487bb0
mov ecx, ebp
mov esi, 0x1000
and ecx, 0xfff
sub esi, ecx
cmp esi, edi
jl 0x487da1
mov esi, edi
push 0
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__lseek]
mov edx, dword [esp + 0x28]
push esi
push edx
push ebx
call dword [sym.imp.MSVCRT.dll__read]
mov edx, dword [esp + 0x34]
sub edi, esi
add esp, 0x18
add ebp, esi
add edx, esi
test edi, edi
mov dword [esp + 0x1c], edx
jg 0x487d81
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
pop ecx
ret 0x10
mov eax, 1
pop edi
pop ecx
ret 0x10
Function at 0x488fd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push 0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0
mov dword [esi + 0x20], eax
mov edx, dword [0x659a18]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x659a18]
push eax
push 1
push 0x10
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
mov ecx, esi
call fcn.00489060
mov eax, esi
pop esi
ret 8

Function at 0x4892d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x110
push ebx
push ebp
push esi
push 0x180
push 0
push eax
call dword [sym.imp.MSVCRT.dll__open]
mov ebp, eax
add esp, 0xc
test ebp, ebp
jge 0x4892fe
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov esi, dword [sym.imp.MSVCRT.dll__lseek]
push 0
push 0
push ebp
mov dword [esp + 0x18], 0
call esi
mov ebx, dword [sym.imp.MSVCRT.dll__read]
lea ecx, [esp + 0x18]
push 4
push ecx
push ebp
call ebx
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x24]
add esp, 0x18
cmp eax, ecx
jl 0x48934e
push ebp
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
mov eax, 0xfffffffd
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
lea edx, [eax + eax*2]
push edi
push 0
lea eax, [edx*4 + 4]
push eax
push ebp
call esi
lea ecx, [esp + 0x20]
push 0xc
push ecx
push ebp
call ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
add esp, 0x18
test eax, eax
jbe 0x4893a3
mov edx, dword [esp + 0x18]
push 0
push edx
push ebp
call esi
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push ecx
push ebp
call ebx
add esp, 0x18
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__close]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret

Function at 0x4893f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x180
push 0
push eax
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x48940e
pop esi
ret
push 0
push 0
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCRT.dll__lseek]
lea ecx, [esp + 0x14]
push 4
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__read]
mov eax, dword [esp + 0x20]
add esp, 0x18
cmp eax, 0x3e8
jbe 0x489445
mov dword [esp + 8], 0
push esi
call dword [sym.imp.MSVCRT.dll__close]
mov eax, dword [esp + 0xc]
add esp, 4
pop esi
ret
Function at 0x489ce0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__lseek]
push ebp
push esi
mov esi, dword [esp + 0x21c]
xor ebp, ebp
push edi
push ebp
mov edi, ecx
push ebp
push esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebp
call ebx
lea eax, [esp + 0x24]
push 2
mov dword [esp + 0x28], ebp
mov ebp, dword [sym.imp.MSVCRT.dll__read]
push eax
push esi
call ebp
mov eax, dword [esp + 0x30]
add esp, 0x18
cmp eax, 0xfeff
jne 0x489dbf
mov ecx, dword [edi]
xor eax, eax
or ecx, 1
mov word [esp + 0x1c], 0
mov dword [edi], ecx
mov ecx, 0x7f
lea edi, [esp + 0x1e]
push 0x200
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
push esi
stosw word es:[edi], ax
call ebp
mov edx, dword [esp + 0x20]
add esp, 0xc
xor eax, eax
test byte [edx], 2
je 0x489d7e
lea edx, [esp + 0x1c]
mov cx, word [edx]
inc eax
add edx, 2
cmp cx, 0xa
je 0x489d7e
cmp eax, 0x100
jl 0x489d6a
cmp eax, 0x100
mov esi, eax
jge 0x489db9
lea edx, [esp + eax*2 + 0x1c]
mov ecx, edx
mov di, word [ecx]
inc eax
add ecx, 2
cmp di, 0xa
je 0x489da1
cmp eax, 0x100
jl 0x489d8d
cmp esi, eax
jge 0x489db9
mov ecx, eax
sub ecx, esi
cmp word [edx], 9
jne 0x489db3
inc dword [esp + 0x10]
add edx, 2
dec ecx
jne 0x489da9
lea esi, [eax + eax + 2]
jmp 0x489e38
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0
push esi
stosb byte es:[edi], al
call ebx
lea eax, [esp + 0x28]
push pe_nt_image_headers32
push eax
push esi
call ebp
mov ecx, dword [esp + 0x2c]
add esp, 0x18
xor eax, eax
test byte [ecx], 2
je 0x489e07
mov cl, byte [esp + eax + 0x1c]
inc eax
cmp cl, 0xa
je 0x489e07
cmp eax, 0x100
jl 0x489df6
cmp eax, 0x100
mov ecx, eax
jge 0x489e36
mov dl, byte [esp + eax + 0x1c]
inc eax
cmp dl, 0xa
je 0x489e21
cmp eax, 0x100
jl 0x489e10
cmp ecx, eax
jge 0x489e36
mov dl, 0x2c
cmp byte [esp + ecx + 0x1c], dl
jne 0x489e31
inc dword [esp + 0x10]
inc ecx
cmp ecx, eax
jl 0x489e27
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
call fcn.00489770
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 4
Function at 0x48a4c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x53161b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x5c]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
call fcn.004b04e0
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x60], ebx
mov dword [esi], 0x53e1b4
mov edx, dword [0x659a18]
push ebx
push ecx
push edx
mov dword [esp + 0x38], ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x659a18]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push eax
lea ebp, [esi + 4]
push 1
push 4
push ebp
call edi
mov ecx, dword [0x659a18]
lea edx, [esi + 8]
push ecx
push 1
push 0x20
push edx
call edi
mov eax, dword [0x659a18]
lea ecx, [esi + 0x28]
push eax
push 1
push 4
push ecx
call edi
mov edx, dword [0x659a18]
lea eax, [esi + 0x2c]
push edx
push 1
push 4
push eax
call edi
mov eax, dword [0x659a18]
add esp, 0x4c
lea ecx, [esp + 0x14]
push eax
push 1
push 0x10
push ecx
call edi
mov edx, dword [0x659a18]
lea eax, [esi + 0x30]
push edx
push 1
push 0x10
push eax
call edi
mov eax, dword [0x659a50]
mov ecx, dword [ebp]
add esp, 0x20
test eax, ecx
jne 0x48a5af
xor ecx, ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
test byte [ebp], 8
je 0x48a5d8
push 0x24
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x48a5d3
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, eax
call fcn.00489020
jmp 0x48a5d5
xor eax, eax
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x2c]
cmp eax, ebx
jbe 0x48a5eb
push eax
call fcn.00470b90
add esp, 4
mov dword [esi + 0x44], eax
mov ecx, 8
xor eax, eax
lea edi, [esi + 0x6c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x48b400
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2000
call fcn.0051c710
test byte [ecx + 0x54], 1
je 0x48b44f
mov edx, dword [esp + 0x2004]
push esi
mov esi, dword [esp + 0x2010]
lea ecx, [esp + 4]
lea eax, [esi + esi]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__read]
mov eax, dword [esp + 0x2018]
push esi
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00472140
add esp, 0x18
pop esi
add esp, 0x2000
ret 0xc
mov edx, dword [esp + 0x200c]
mov eax, dword [esp + 0x2008]
mov ecx, dword [esp + 0x2004]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
add esp, 0x2000
ret 0xc
Function at 0x48b700
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor bl, bl
xor esi, esi
test edi, edi
jle 0x48b744
push ebp
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov al, byte [esi + ebp]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
xor bl, al
push ecx
push edx
movsx eax, al
push edi
push esi
push eax
call fcn.0048b560
add esp, 0x1c
mov byte [esi + ebp], al
inc esi
cmp esi, edi
jl 0x48b714
pop ebp
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
jle 0x48b75a
mov edx, dword [esp + 0x1c]
xor bl, byte [eax + edx]
inc eax
cmp eax, ecx
jl 0x48b74e
mov al, bl
pop edi
pop esi
or al, 0x80
pop ebx
ret

Function at 0x48b770
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
xor ebp, ebp
xor esi, esi
test ebx, ebx
jle 0x48b7c1
push edi
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ax, word [edi]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [0x659ab0]
push ecx
mov ecx, dword [esp + 0x28]
xor ebp, eax
or edx, ecx
and eax, 0xffff
push edx
push ebx
push esi
push eax
call fcn.0048b560
add esp, 0x1c
mov word [edi], ax
inc esi
add edi, 2
cmp esi, ebx
jl 0x48b784
pop edi
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
jle 0x48b7db
mov edx, dword [esp + 0x1c]
movzx dx, byte [eax + edx]
xor ebp, edx
inc eax
cmp eax, ecx
jl 0x48b7cb
mov ax, bp
pop esi
pop ebp
pop ebx
ret
Function at 0x490580
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x659a18]
push ebx
push esi
push eax
mov esi, ecx
push 1
push 0x10
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.00490560
add esp, 0x14
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4905ec
push edi
mov ecx, esi
call fcn.004b53f0
mov edi, eax
add edi, 0xc
push edi
call fcn.00470b90
mov dword [esi + 0x10], eax
mov dword [eax], 1
mov ecx, dword [esi + 0x10]
add esp, 4
mov dword [ecx + 4], edi
mov edx, dword [esi + 0x10]
mov ecx, dword [0x677d04]
push edx
push ebx
call fcn.004a2760
mov esi, dword [esi + 0x10]
pop edi
mov eax, dword [esi]
inc eax
mov dword [esi], eax
pop esi
pop ebx
ret 4
mov esi, dword [esi + 0x10]
mov eax, dword [esi]
inc eax
mov dword [esi], eax
pop esi
pop ebx
ret 4
Function at 0x493230
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ecx, ecx
push edi
mov dword [ebp + 0x24], 1
jle 0x4932d4
xor edi, edi
test ecx, ecx
jle 0x4932be
mov eax, dword [esp + 0x20]
add eax, 0xfffffffc
mov dword [esp + 0x14], eax
jmp 0x493264
mov ecx, dword [esp + 0x18]
mov bx, word [esi + 2]
movsx eax, word [esi + 6]
movsx edx, bx
sub eax, edx
inc eax
imul eax, edi
cdq
idiv ecx
test edi, edi
jle 0x49328a
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x49328a
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov cx, word [esi + 4]
mov dx, word [esi]
add eax, ebx
movsx ebx, ax
movsx ecx, cx
push ebx
push ecx
movsx eax, ax
movsx ecx, dx
push eax
push ecx
mov ecx, ebp
call fcn.00492360
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc edi
add ecx, 4
cmp edi, eax
mov dword [esp + 0x14], ecx
jl 0x493260
movsx eax, word [esi + 6]
movsx edx, word [esi + 4]
push eax
push edx
push eax
mov ecx, ebp
movsx eax, word [esi]
push eax
call fcn.00492360
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jle 0x493348
xor edi, edi
test ebx, ebx
jle 0x493331
mov cx, word [esi]
movsx eax, word [esi + 4]
movsx edx, cx
sub eax, edx
inc eax
imul eax, edi
cdq
idiv ebx
test edi, edi
jle 0x49330b
mov edx, dword [esp + 0x20]
test edx, edx
je 0x49330b
mov eax, dword [esp + 0x18]
add eax, edi
mov eax, dword [edx + eax*4 - 8]
mov dx, word [esi + 2]
add eax, ecx
mov cx, word [esi + 6]
movsx ecx, cx
push ecx
movsx ecx, ax
movsx edx, dx
movsx eax, ax
push ecx
push edx
push eax
mov ecx, ebp
call fcn.00492360
inc edi
cmp edi, ebx
jl 0x4932e2
movsx ecx, word [esi + 6]
movsx eax, word [esi + 4]
movsx edx, word [esi + 2]
push ecx
push eax
push edx
push eax
mov ecx, ebp
call fcn.00492360
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x493350
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, ecx
mov ebx, 1
test ebp, ebp
mov dword [edi + 0x24], ebx
jle 0x4933d4
cmp ebp, ebx
jle 0x4933d4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov bp, word [esi + 2]
movsx eax, word [esi + 6]
movsx ecx, bp
sub eax, ecx
inc eax
imul eax, ebx
cdq
idiv dword [esp + 0x18]
test ebx, ebx
jle 0x49339e
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x49339e
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov cx, word [esi + 4]
mov dx, word [esi]
add eax, ebp
movsx ebp, ax
movsx ecx, cx
push ebp
push ecx
movsx eax, ax
movsx ecx, dx
push eax
push ecx
mov ecx, edi
call fcn.00492360
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ebx
add ecx, 4
cmp ebx, eax
mov dword [esp + 0x14], ecx
jl 0x493376
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x493437
mov ebx, 1
cmp eax, ebx
jle 0x493437
mov cx, word [esi]
movsx eax, word [esi + 4]
movsx edx, cx
sub eax, edx
inc eax
imul eax, ebx
cdq
idiv dword [esp + 0x1c]
test ebx, ebx
jle 0x49340d
mov edx, dword [esp + 0x20]
test edx, edx
je 0x49340d
lea eax, [ebx + ebp]
mov eax, dword [edx + eax*4 - 8]
mov dx, word [esi + 2]
add eax, ecx
mov cx, word [esi + 6]
movsx ecx, cx
push ecx
movsx ecx, ax
movsx edx, dx
movsx eax, ax
push ecx
push edx
push eax
mov ecx, edi
call fcn.00492360
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x4933e5
mov eax, dword [esp + 0x24]
test eax, eax
je 0x493457
mov ecx, dword [eax]
mov dword [edi + 4], ecx
mov edx, dword [eax + 4]
mov dword [edi + 8], edx
cmp word [edi + 4], 0
jne 0x493457
mov word [edi + 6], 0
mov ax, word [esi]
movsx ecx, word [esi + 2]
movsx edx, ax
push ecx
push edx
mov ecx, edi
call fcn.004923f0
mov ax, word [esi + 4]
movsx ecx, word [esi + 2]
movsx edx, ax
push ecx
push edx
mov ecx, edi
call fcn.00492410
mov ax, word [esi + 4]
movsx ecx, word [esi + 6]
movsx edx, ax
push ecx
push edx
mov ecx, edi
call fcn.00492410
mov ax, word [esi]
movsx ecx, word [esi + 6]
movsx edx, ax
push ecx
push edx
mov ecx, edi
call fcn.00492410
mov ax, word [esi]
movsx ecx, word [esi + 2]
movsx edx, ax
push ecx
push edx
mov ecx, edi
call fcn.00492410
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x49ce60
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x10]
mov al, byte [esi]
imul edi, dword [esp + 0x14]
test al, 0xf0
je 0x49cec7
mov eax, dword [esi + 0x2250]
test eax, eax
jne 0x49ce98
lea eax, [esi + 0x2150]
push 0x56c118
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esi + 0x2250], eax
mov eax, dword [esi + 0x2250]
test eax, eax
je 0x49cec7
mov ecx, dword [esp + 0xc]
push eax
push edi
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi + 0x144]
add esp, 0x10
add ecx, eax
mov dword [esi + 0x144], ecx
pop edi
pop esi
ret 0xc
mov eax, edi
pop edi
pop esi
ret 0xc

Function at 0x49d480
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
mov esi, ecx
je 0x49d4af
push 0
push eax
mov eax, dword [0x659a18]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x659a18]
push ecx
push 1
push 0x24
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
pop esi
ret 4

Function at 0x49d6c0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
call fcn.0049e650
mov ecx, eax
call fcn.0049e630
test eax, eax
jne 0x49d6e0
cmp dword [0x65a634], 1
jne 0x49d731
mov eax, dword [str.stage.dat]
push 0x56c118
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x49d731
push esi
push 1
push 0xc
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
add edi, 4
push edi
push 0x2668
call fcn.00487160
mov ecx, eax
call fcn.00483bc0
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x49d850
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [str.stage.dat]
push ebx
push esi
push edi
push 0x56c990
mov edi, ecx
push eax
xor ebx, ebx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x49d8a5
lea ecx, [edi + 4]
push ecx
push 0x2668
call fcn.00487160
mov ecx, eax
call fcn.00483bc0
push esi
push 1
push 0xc
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x49d8c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x74
mov eax, dword [esp + 0x78]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x659a18]
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x659a18]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push edi
call esi
mov eax, dword [0x659a18]
lea ecx, [esp + 0x24]
push eax
push 1
push 0xc
push ecx
call esi
mov edx, dword [0x659a18]
lea eax, [edi + 4]
push edx
push 1
push 4
push eax
call esi
mov ecx, dword [0x659a18]
lea edx, [esp + 0x78]
push ecx
push 1
push 0x40
push edx
call esi
mov eax, dword [esp + 0x5e]
mov ecx, 0x3c
and eax, 0xffff
add esp, 0x4c
cdq
idiv ecx
mov eax, dword [esp + 0x10]
and eax, 0xffff
mov dword [esp + 0x18], edx
cdq
idiv ecx
mov eax, dword [esp + 0xe]
mov ecx, 0x18
and eax, 0xffff
mov dword [esp + 0x1c], edx
cdq
idiv ecx
mov eax, dword [esp + 0xc]
and eax, 0xffff
and eax, 0x8000001f
mov dword [esp + 0x20], edx
jns 0x49d975
dec eax
or eax, 0xffffffe0
inc eax
cmp eax, 1
mov dword [esp + 0x24], eax
jg 0x49d986
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0xa]
mov ecx, 0xd
and eax, 0xffff
cdq
idiv ecx
mov eax, edx
cmp eax, 1
jg 0x49d9a3
mov eax, 1
dec eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 8]
and eax, 0xffff
sub eax, 0x76c
cmp eax, 0x47
mov dword [esp + 0x2c], eax
jg 0x49d9c7
mov dword [esp + 0x2c], 0x47
xor edx, edx
lea eax, [esp + 0x18]
mov dword [esp + 0x30], edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
call dword [sym.imp.MSVCRT.dll_mktime]
add esp, 4
mov dword [edi + 8], eax
call fcn.0049e650
test byte [eax], 8
je 0x49d9ff
mov ecx, dword [esp + 0x3c]
mov dword [edi + 0xc], ecx
pop edi
pop esi
add esp, 0x74
ret 4
lea edx, [esp + 0x3c]
add edi, 0xc
push edx
push edi
call fcn.004a7a20
add esp, 8
pop edi
pop esi
add esp, 0x74
ret 4