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

Disassembly:
mov eax, dword [str.stage.dat]
push ebx
push esi
push edi
push 0x58593c
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 0x4af865
lea ecx, [edi + 4]
push ecx
push 0x2668
call fcn.00493e00
mov ecx, eax
call fcn.004906f0
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 0x4af880
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x74
mov eax, dword [esp + 0x78]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x67a8cc]
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push edi
call esi
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x24]
push eax
push 1
push 0xc
push ecx
call esi
mov edx, dword [0x67a8cc]
lea eax, [edi + 4]
push edx
push 1
push 4
push eax
call esi
mov ecx, dword [0x67a8cc]
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 0x4af935
dec eax
or eax, 0xffffffe0
inc eax
cmp eax, 1
mov dword [esp + 0x24], eax
jg 0x4af946
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 0x4af963
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 0x4af987
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.004b0620
test byte [eax], 8
je 0x4af9bf
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.004badb0
add esp, 8
pop edi
pop esi
add esp, 0x74
ret 4
Function at 0x4afa40
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x508
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
cmp eax, edi
je 0x4afb53
push edi
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 4
push ebp
call ebx
mov edx, dword [0x67a8cc]
lea eax, [ebp + 4]
push edx
push 1
push 4
push eax
call ebx
mov ecx, dword [0x67a8cc]
lea esi, [ebp + 8]
push ecx
push 1
push 4
push esi
call ebx
mov edx, dword [0x67a8cc]
lea eax, [esp + 0x50]
push edx
push 1
push 4
push eax
mov dword [esp + 0x60], edi
call ebx
add esp, 0x4c
mov ecx, ebp
call fcn.004b0600
test eax, eax
je 0x4afb51
mov edx, dword [0x67a8cc]
mov dword [esp + 0x18], edi
mov ecx, 0x13f
xor eax, eax
lea edi, [esp + 0x1c]
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x67a8cc]
mov ecx, dword [esi]
push eax
push ecx
lea edx, [esp + 0x2c]
push 4
push edx
call ebx
mov eax, dword [esi]
add esp, 0x1c
xor edi, edi
test eax, eax
jle 0x4afb33
lea eax, [ebp + 0xc]
lea ebx, [esp + 0x18]
mov dword [esp + 0x10], eax
mov ecx, dword [ebx]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004af880
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
inc edi
add ebx, 4
add ecx, 0x1c
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x4afb12
mov eax, 0xfff0bdc1
pop edi
mov dword [ebp + 0x390], eax
mov dword [ebp + 0x394], eax
pop esi
pop ebp
pop ebx
add esp, 0x508
ret 4
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x508
ret 4
Function at 0x4b0310
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004b0600
test eax, eax
je 0x4b0378
mov eax, dword [str.stage.cfg]
push 0x585050
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4b0378
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
lea edi, [ebx + 8]
push 1
push 4
push edi
call ebp
mov edi, dword [edi]
push esi
push 1
add ebx, 0xc
lea ecx, [edi*8]
sub ecx, edi
shl ecx, 2
push ecx
push ebx
call ebp
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x24
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4b0380
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
call fcn.004b0600
test eax, eax
je 0x4b03de
mov eax, dword [str.stage.cfg]
push 0x58593c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4b03f2
mov ecx, dword [edi + 8]
lea eax, [edi + 8]
push esi
push 1
lea edx, [ecx*8]
sub edx, ecx
lea ecx, [edx*4 + 4]
push ecx
push eax
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
test byte [edi], 1
jne 0x4b03f2
mov edx, dword [str.stage.dat]
push edx
call fcn.0047a070
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4b0780
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x58518c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4b07b7
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push 1
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop esi
ret

Function at 0x4b07c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
test eax, eax
mov esi, ecx
je 0x4b0852
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call edi
mov ecx, dword [0x67a8cc]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 0x2c
push esi
call ebx
mov eax, dword [esi + 0x24]
add esp, 0x1c
test eax, eax
jle 0x4b0852
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4b0852
mov edx, dword [0x67a8cc]
push 0
push eax
push edx
call edi
mov eax, dword [esi + 0x24]
add esp, 0xc
mov ecx, 0x6d07d8
push eax
call fcn.004bb1f0
mov ecx, dword [0x67a8cc]
mov edx, dword [esi + 0x24]
push ecx
mov edi, eax
push 1
push edx
push edi
call ebx
mov eax, dword [esi + 0x24]
add esi, 4
push eax
push edi
push esi
call fcn.004b0780
add esp, 0x1c
mov ecx, 0x6d07d8
push edi
call fcn.004bb220
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b0860
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4000
call fcn.005322e0
mov eax, dword [esp + 0x4004]
push ebx
push esi
push edi
test eax, eax
mov esi, ecx
je 0x4b0917
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call edi
mov ecx, dword [0x67a8cc]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 0xc
push esi
call ebx
mov eax, dword [esi + 4]
add esp, 0x1c
test eax, eax
jle 0x4b0917
mov eax, dword [esi + 8]
test eax, eax
je 0x4b0917
mov edx, dword [0x67a8cc]
push 0
push eax
push edx
call edi
mov eax, dword [0x67a8cc]
mov ecx, dword [esi + 4]
push eax
push ecx
lea edx, [esp + 0x20]
push 4
push edx
call ebx
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
shl edx, 2
push edx
call sub.MFC42u.DLL_operatornew
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
add esp, 0x20
xor edi, edi
test eax, eax
jle 0x4b0917
push ebp
xor ebp, ebp
lea ebx, [esp + 0x10]
mov eax, dword [ebx]
mov ecx, dword [esi + 8]
push eax
add ecx, ebp
call fcn.004b07c0
mov eax, dword [esi + 4]
inc edi
add ebx, 4
add ebp, 0x2c
cmp edi, eax
jl 0x4b08fb
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4000
ret 4

Function at 0x4b0940
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
mov esi, ecx
je 0x4b096f
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x18
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
pop esi
ret 4
Function at 0x4b1120
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x547b38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [0x67a8cc]
xor edi, edi
push edi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
push edx
push 1
push 0x48
push esi
call dword [sym.imp.MSVCRT.dll_fread]
lea ecx, [esi + 0x28]
xor eax, eax
mov edx, ecx
add esp, 0x1c
lea ebp, [esp + 0x10]
mov ebx, ecx
mov dword [edx], eax
mov dword [esp + 0x28], 2
mov dword [edx + 4], eax
lea edx, [esi + 0x30]
or eax, 0xffffffff
mov dword [edx], eax
mov dword [edx + 4], eax
mov eax, dword [esi]
mov edx, eax
mov dword [esi + 0x38], edi
shr eax, 3
and edx, 7
and eax, 7
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
lea edi, [esi + 8]
cmp dword [ebp], 0
je 0x4b11d5
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x4b11d1
push 1
push edi
mov ecx, eax
call fcn.00495db0
jmp 0x4b11d3
xor eax, eax
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
add ebp, 4
add ebx, 4
add edi, 0x10
dec eax
mov dword [esp + 0x28], eax
jne 0x4b11b1
mov eax, dword [esi + 4]
test eax, eax
je 0x4b12c2
mov ecx, dword [0x67a8cc]
mov dword [esp + 0x10], 0x549d88
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.00483660
mov dword [esi + 4], eax
mov ebx, dword [eax + 4]
lea edx, [ebx*4]
push edx
call fcn.004784e0
mov edx, eax
add esp, 4
test edx, edx
je 0x4b1249
lea eax, [ebx - 1]
test eax, eax
jl 0x4b124b
lea ecx, [eax + 1]
mov eax, 1
mov edi, edx
rep stosd dword es:[edi], eax
jmp 0x4b124b
xor edx, edx
xor ebp, ebp
mov dword [esi + 0x38], edx
test ebx, ebx
jle 0x4b128d
mov eax, dword [esi + 4]
xor edi, edi
cmp ebp, dword [eax + 4]
jae 0x4b1269
mov edi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
imul edi, ebp
add edi, ecx
mov ecx, edi
call fcn.004c9d30
mov cl, byte [edi + 4]
test cl, cl
jne 0x4b1280
mov ecx, edi
call fcn.004c9d50
shl eax, 1
mov edx, dword [esi + 0x3c]
add edx, eax
inc ebp
cmp ebp, ebx
mov dword [esi + 0x3c], edx
jl 0x4b1254
mov eax, dword [esi + 0x3c]
push eax
call fcn.00478e60
mov ecx, dword [esi + 0x3c]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x40], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x20], 0xffffffff
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x10]
call fcn.00483770
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4b17e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x547b5e
push eax
mov eax, 0x402c
mov dword fs:[0], esp
call fcn.005322e0
mov eax, dword [esp + 0x403c]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov esi, ecx
je 0x4b19fe
push ebx
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x128
push esi
call dword [sym.imp.MSVCRT.dll_fread]
lea edx, [esi + 0xd4]
mov ecx, 0xa
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, 0xa
or eax, 0xffffffff
lea edi, [esi + 0xfc]
add esp, 0x1c
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x124], ebx
cmp eax, ebx
jle 0x4b19f8
cmp dword [esi + 0x2c], ebx
je 0x4b19f8
mov eax, dword [esi]
push ebp
mov ecx, eax
mov dword [esp + 0x2c], 1
and ecx, 7
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, eax
shr ecx, 4
and ecx, 7
mov ebp, edx
mov dword [esp + 0x18], ecx
mov ecx, eax
shr ecx, 8
and ecx, 7
lea edi, [esi + 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, eax
shr ecx, 0xc
and ecx, 7
mov dword [esp + 0x10], 0xa
mov dword [esp + 0x20], ecx
mov ecx, eax
shr ecx, 0x10
and ecx, 7
mov dword [esp + 0x24], ecx
mov ecx, eax
shr ecx, 0x14
and ecx, 7
mov dword [esp + 0x28], ecx
mov ecx, eax
shr ecx, 0x18
and ecx, 7
mov dword [esp + 0x30], ecx
mov ecx, eax
and ecx, 0x80
and eax, 0x800
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
cmp dword [ebx], 0
je 0x4b191c
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x4b1917
push 1
push edi
mov ecx, eax
call fcn.00495db0
jmp 0x4b1919
xor eax, eax
mov dword [ebp], eax
mov eax, dword [esp + 0x10]
add edi, 0x10
add ebx, 4
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x4b18f8
mov edx, dword [esi + 0x2c]
mov eax, dword [0x67a8cc]
push 0
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
mov edx, dword [esi + 0x28]
push ecx
push edx
lea eax, [esp + 0x50]
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esi + 0x28]
lea ecx, [eax + eax*2]
shl ecx, 3
push ecx
call sub.MFC42u.DLL_operatornew
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x28]
add esp, 0x20
xor edi, edi
test eax, eax
jle 0x4b199b
xor ebp, ebp
lea ebx, [esp + 0x3c]
mov edx, dword [ebx]
mov ecx, ebp
push edx
mov edx, dword [esi + 0x2c]
add ecx, edx
call fcn.004b0940
mov eax, dword [esi + 0x28]
inc edi
add ebx, 4
add ebp, 0x18
cmp edi, eax
jl 0x4b197e
mov eax, dword [esi]
pop ebp
test eax, 0x8000000
je 0x4b19ec
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x4b19ec
push 0x48
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x4040], 0
je 0x4b19e2
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, eax
call fcn.004b1120
mov dword [esi + 0xd0], eax
jmp 0x4b19fe
xor eax, eax
mov dword [esi + 0xd0], eax
jmp 0x4b19fe
mov dword [esi + 0xd0], 0
jmp 0x4b19fe
mov dword [esi + 0xd0], ebx
mov ecx, dword [esp + 0x4038]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4038
ret 4
Function at 0x4b1a80
Capabilities:
Create directory

Disassembly:
sub esp, 0x100
push esi
mov edx, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
add edx, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x5561d8]
push edx
push eax
lea ecx, [esp + 0x10]
push str.rcp_s_s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [esp + 0x11c]
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
lea edx, [esp + 0x18]
push esi
push edx
call edi
add esp, 0x18
test eax, eax
jne 0x4b1af1
cmp byte [esi], 0x72
je 0x4b1af1
push eax
push 0x588728
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 8]
push esi
push eax
call edi
add esp, 8
pop edi
pop esi
add esp, 0x100
ret 4
Function at 0x4b1ba0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.005322e0
push ebp
push edi
mov edi, ecx
push 0x585050
mov dword [esp + 0x14], edi
call fcn.004b1a80
mov ebp, eax
test ebp, ebp
mov dword [esp + 8], ebp
je 0x4b1d79
push ebx
push esi
mov esi, dword [esp + 0x2020]
xor eax, eax
mov ecx, 3
xor ebx, ebx
mov ah, byte [esi + 2]
mov al, byte [esi + 5]
cdq
idiv ecx
cmp edx, 1
jne 0x4b1c12
mov edx, dword [edi + 0x28]
mov ebx, dword [edi + 0x114]
xor ecx, ecx
test edx, edx
jle 0x4b1c0d
mov eax, dword [edi + 0x2c]
mov edi, edx
add eax, 5
xor edx, edx
mov dl, byte [eax]
add eax, 0x18
add ecx, edx
dec edi
jne 0x4b1c01
imul ecx, ebx
mov ebx, ecx
mov ecx, esi
call fcn.004c9d30
mov edi, dword [esp + 0x2024]
mov ecx, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov al, byte [esi + 4]
test al, al
jne 0x4b1d3d
mov edi, dword [esi + 8]
push 0
shr edi, 3
lea eax, [edi + ebx]
push eax
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, esi
call fcn.004c9d50
mov ebp, eax
mov eax, dword [esi + 8]
mov ecx, 0x7ff
mov byte [esp + 0x1c], 0
lea ebx, [eax + ebp - 1]
xor eax, eax
shr ebx, 3
sub ebx, edi
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
inc ebx
stosw word es:[edi], ax
push ecx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_ftell]
mov ecx, dword [esp + 0x18]
add esp, 4
cmp eax, ecx
jne 0x4b1d1d
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push ebx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov esi, dword [esi + 8]
add esp, 0x10
and esi, 7
xor ecx, ecx
test ebp, ebp
jle 0x4b1d1d
mov edi, esi
and edi, 0x80000007
jns 0x4b1ccd
dec edi
or edi, 0xfffffff8
inc edi
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [esp + eax + 0x1c]
mov al, byte [edi*4 + 0x67a8e4]
test dl, al
je 0x4b1d17
mov eax, ecx
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x2024]
sar eax, 3
add eax, edx
mov edx, ecx
and edx, 0x80000007
jns 0x4b1d0a
dec edx
or edx, 0xfffffff8
inc edx
mov dl, byte [edx*4 + 0x67a8e4]
mov bl, byte [eax]
or bl, dl
mov byte [eax], bl
inc esi
inc ecx
cmp ecx, ebp
jl 0x4b1cbe
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebp
call fcn.004b1b00
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x200c
ret 8
mov eax, dword [esi + 8]
push 0
lea edi, [ebx + eax*2]
push edi
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
push ebp
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x10
cmp eax, edi
jne 0x4b1d21
push ebp
mov ecx, esi
call fcn.004c9d30
mov ecx, dword [esp + 0x2028]
push eax
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
jmp 0x4b1d21
mov ecx, dword [esp + 0x2018]
call fcn.004c9d30
mov edi, dword [esp + 0x201c]
mov ecx, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, 1
pop ebp
add esp, 0x200c
ret 8
Function at 0x4b29b0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4000
call fcn.005322e0
mov eax, dword [esp + 0x4004]
push ebx
push ebp
push esi
test eax, eax
push edi
mov esi, ecx
je 0x4b2a78
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call ebx
mov ecx, dword [0x67a8cc]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 0x58c
push esi
call ebp
mov ecx, 0x160
xor eax, eax
lea edi, [esi + 0xc]
add esp, 0x1c
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
test eax, eax
jle 0x4b2a78
mov eax, dword [esi + 8]
test eax, eax
je 0x4b2a78
mov edx, dword [0x67a8cc]
push 0
push eax
push edx
call ebx
mov eax, dword [0x67a8cc]
mov ecx, dword [esi + 4]
push eax
push ecx
lea edx, [esp + 0x24]
push 4
push edx
call ebp
mov eax, dword [esi + 4]
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*4]
shl edx, 3
push edx
call sub.MFC42u.DLL_operatornew
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
add esp, 0x20
xor edi, edi
test eax, eax
jle 0x4b2a78
xor ebp, ebp
lea ebx, [esp + 0x10]
mov eax, dword [ebx]
mov ecx, dword [esi + 8]
push eax
add ecx, ebp
call fcn.004b17e0
mov eax, dword [esi + 4]
inc edi
add ebx, 4
add ebp, 0x128
cmp edi, eax
jl 0x4b2a5a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x547bdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x18]
mov dword [esp + 0xc], esi
mov dword [esi], 1
mov word [esi + 4], bx
mov word [esi + 6], bx
mov word [esi + 8], bx
mov byte [esi + 0xa], bl
mov byte [esi + 0xb], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
call fcn.004b5e50
mov edi, dword [esp + 0x20]
mov ecx, esi
push edi
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x30], ebx
call fcn.004b7b70
push edi
mov ecx, esi
call fcn.004b70a0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4b6fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x547bfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov eax, dword [esi + 0x10]
xor ebx, ebx
push 4
push eax
mov dword [esp + 0x20], ebx
call fcn.004784f0
xor eax, eax
xor ecx, ecx
mov ax, word [esi + 8]
mov cx, word [esi + 6]
imul eax, ecx
mov edx, dword [esi + 0xc]
push eax
push edx
call fcn.00478eb0
mov edi, dword [esi + 0x30]
add esp, 0x10
cmp edi, ebx
je 0x4b7035
mov ecx, edi
call fcn.004bc350
push 0x18
push edi
call fcn.004784c0
add esp, 8
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x30], ebx
mov dword [esp + 0x18], 0xffffffff
call fcn.004b5eb0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4b7170
Capabilities:
Read file on windows

Disassembly:
mov edx, ecx
push esi
mov ecx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edx + 0x14]
mov eax, ecx
imul eax, edi
test esi, esi
je 0x4b71ab
mov edi, dword [esp + 0xc]
mov ecx, eax
push ebx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x14]
pop edi
add ecx, eax
pop esi
mov dword [edx + 0x14], ecx
ret 0x10
mov eax, dword [esp + 0x18]
push eax
push edi
push ecx
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
pop edi
pop esi
ret 0x10
Function at 0x4b90d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [0x67a8cc]
push edi
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
push edx
push 1
push 4
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
lea esi, [ebx + 8]
mov ebp, 2
mov edi, 4
mov ecx, esi
call fcn.004b9580
add esi, 8
dec edi
jne 0x4b910f
dec ebp
jne 0x4b910a
mov ecx, dword [0x67a8cc]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
xor eax, eax
push ecx
mov dword [esp + 0x15], eax
push 1
lea edx, [esp + 0x18]
mov word [esp + 0x1d], ax
push 4
push edx
mov byte [esp + 0x20], 0
mov byte [esp + 0x27], al
call ebp
lea edi, [ebx + 4]
add esp, 0x10
mov esi, str.FLAG
lea eax, [esp + 0x10]
mov dword [edi], 0
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4b9188
test cl, cl
je 0x4b9184
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4b9188
add eax, 2
add esi, 2
test cl, cl
jne 0x4b9160
xor eax, eax
jmp 0x4b918d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4b91a1
mov eax, dword [0x67a8cc]
push eax
push 1
push 4
push edi
call ebp
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x4b9580
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x67a8cc]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push ebp
push esi
push edi
push eax
mov esi, ecx
push 1
push 2
push esi
call ebx
mov ecx, dword [0x67a8cc]
lea edi, [esi + 2]
push ecx
push 1
push 2
push edi
call ebx
mov ax, word [edi]
add esp, 0x20
test ax, ax
jle 0x4b9600
movsx edx, ax
shl edx, 4
push edx
call fcn.004784e0
movsx edx, word [edi]
mov dword [esi + 4], eax
mov ecx, dword [0x67a8cc]
push ecx
push edx
push 0x10
push eax
call ebx
xor ebp, ebp
add esp, 0x14
cmp word [edi], bp
jle 0x4b9600
xor ebx, ebx
mov ecx, dword [esi + 4]
add ecx, ebx
call fcn.004c9d30
mov ecx, dword [esi + 4]
push eax
add ecx, ebx
call fcn.004c9eb0
movsx eax, word [edi]
inc ebp
add ebx, 0x10
cmp ebp, eax
jl 0x4b95e0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4babf0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret