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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c92f7
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x62a780]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4f72a4
push 0x5d1ffc
push str.dat_terrain_bytes.raw
call fcn.0056868c
add esp, 8
mov edi, eax
jmp 0x4f72c2
cmp ebx, 1
jne 0x4f72bf
push 0x5d1ffc
push str.dat_terrain2_bytes.raw
call fcn.0056868c
add esp, 8
mov edi, eax
jmp 0x4f72c2
mov edi, dword [ebp + 8]
push edi
push 0x10000
lea eax, [esi + 0x128]
push 1
push eax
call fcn.005911ae
push edi
call fcn.0056839e
push 0x280004
mov dword [esi + 0x108], 0x100
mov dword [esi + 0x10c], 0x100
mov dword [esi + 0x124], ebx
call fcn.00558d96
add esp, 0x18
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4f7333
push fcn.0050c120
push 0x4ee840
push 0x10000
lea edi, [eax + 4]
mov dword [eax], 0x10000
push 0x28
push edi
call fcn.00559160
jmp 0x4f7335
xor edi, edi
push 0
push 0
push 0x100
push 0x100
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x120], edi
call fcn.0052a1d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4fb0c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
mov ecx, 0x62d1cc
push str.GroundObjectTiles::Generate
call fcn.004480d0
cmp dword [ebp + 0x14], 0
jne 0x4fb0e1
call fcn.00568035
mov ecx, dword [ebx + 0x128]
test ecx, ecx
je 0x4fb0fb
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x128], 0
push edi
lea edi, [ebx + 0x108]
mov dword [ebx + 0x10c], 0x100
mov dword [edi], 0x100
push 0x1c0000
call fcn.00558d96
mov ecx, dword [ebx + 0x10c]
xor edx, edx
add esp, 4
mov dword [ebx + 0x120], eax
mov dword [ebp + 0x14], edx
test ecx, ecx
jle 0x4fb201
nop dword [eax + eax]
xor eax, eax
cmp dword [edi], eax
jle 0x4fb1e4
nop word [eax + eax]
xor esi, esi
mov ecx, dword [edi]
imul ecx, edx
add ecx, eax
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [ebx + 0x120]
lea ecx, [ecx + edx*4]
mov byte [ecx + esi], 0
mov ecx, dword [edi]
imul ecx, dword [ebp + 0x14]
add ecx, eax
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [ebx + 0x120]
lea ecx, [ecx + edx*4]
mov byte [ecx + esi + 1], 0
mov ecx, dword [edi]
imul ecx, dword [ebp + 0x14]
add ecx, eax
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [ebx + 0x120]
lea ecx, [ecx + edx*4]
mov byte [ecx + esi + 2], 0
mov ecx, dword [edi]
imul ecx, dword [ebp + 0x14]
add ecx, eax
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [ebx + 0x120]
lea ecx, [ecx + edx*4]
mov edx, dword [ebp + 0x14]
mov byte [ecx + esi + 3], 0
add esi, 4
cmp esi, 0x1c
jl 0x4fb152
inc eax
cmp eax, dword [edi]
jl 0x4fb150
mov ecx, dword [ebx + 0x10c]
inc edx
mov dword [ebp + 0x14], edx
cmp edx, ecx
jl 0x4fb140
lea esi, [ebx + 0x108]
mov dword [ebp + 0x14], esi
jmp 0x4fb204
mov dword [ebp + 0x14], edi
mov eax, dword [edi]
imul eax, ecx
push eax
call fcn.00558d96
add esp, 4
mov dword [ebx + 0x198], eax
mov eax, dword [ebx + 0x110]
pop edi
test eax, eax
jne 0x4fb242
push 0x5d1ffc
push str.dat_roads_256.raw
call fcn.0056868c
mov esi, eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
imul ecx, dword [ebx + 0x10c]
jmp 0x4fb264
cmp eax, 1
jne 0x4fb27c
push 0x5d1ffc
push str.dat_roads2_256.raw
call fcn.0056868c
mov ecx, dword [ebx + 0x10c]
mov esi, eax
mov eax, dword [ebp + 0x14]
imul ecx, dword [eax]
push esi
push ecx
push 1
push dword [ebx + 0x198]
call fcn.005911ae
push esi
call fcn.0056839e
add esp, 0x1c
push str.Done_n
mov ecx, 0x62d1cc
call fcn.004480d0
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x503990
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x62ec28]
push edi
call fcn.004678d0
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, 0xc8
mov byte [ebp - 0xc], 0x13
setne bl
lea ebx, [ebx*2 + 1]
cmp edi, 0xc9
jne 0x5039ce
mov ebx, 2
jmp 0x5039dc
cmp edi, 0xcb
mov eax, 4
cmove ebx, eax
mov ecx, dword [esi + 0x20c]
push 0x19
add ecx, 0x140
call fcn.0044e250
test eax, eax
jne 0x503a41
mov ecx, dword [esi + 0x20c]
push dword [esi + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x20c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [0x62d4e8]
lea edx, [ebp - 0xc]
mov eax, dword [esi + 0x22e4]
push 0
push 0
mov byte [ebp - 7], bl
mov dword [ebp - 0xb], eax
mov eax, dword [ecx]
push edx
push 0xa
call dword [eax + 4]
mov eax, 0x22fc
mov dword [eax + esi], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp edi, dword [esi + 0x22fc]
jne 0x503a0f
mov ecx, dword [esi + 0x20c]
push dword [esi + 0x214]
add ecx, 0x140
call fcn.0044e560
mov ecx, dword [esi + 0x20c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov eax, 0x22fc
pop edi
mov dword [eax + esi], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x50ee90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9fb4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x62a780]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push esi
push ebx
push edi
call fcn.0052a1d0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x124], edi
mov dword [ecx + 0x108], edi
imul edi, ebx
mov dword [ecx + 0x128], ebx
mov dword [ecx + 0x10c], ebx
mov dword [ecx + 0x12c], esi
mov dword [ecx + 0x130], eax
push edi
call fcn.00558d96
mov ebx, dword [ebp - 0x10]
push 0x5d1ffc
push dword [ebp + 8]
mov dword [ebx + 0x138], eax
call fcn.0056868c
mov ecx, dword [ebx + 0x128]
mov esi, eax
imul ecx, dword [ebx + 0x124]
push esi
push ecx
push 1
push dword [ebx + 0x138]
call fcn.005911ae
push esi
call fcn.0056839e
mov edi, dword [ebx + 0x128]
xor ecx, ecx
imul edi, dword [ebx + 0x124]
mov edx, 0x28
mov eax, edi
mov dword [ebp + 0x18], edi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00558d96
add esp, 0x24
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x50ef99
push fcn.0050c120
push 0x4ee840
push edi
lea esi, [eax + 4]
mov dword [eax], edi
push 0x28
push esi
call fcn.00559160
jmp 0x50ef9b
xor esi, esi
mov eax, dword [ebx + 0x128]
xor ecx, ecx
imul eax, dword [ebx + 0x124]
mov edx, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x120], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00558d96
add esp, 4
mov dword [ebx + 0x13c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x524320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb084
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x62a780]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push esi
push ebx
push edi
call fcn.0052a1d0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x124], edi
mov dword [ecx + 0x108], edi
imul edi, ebx
mov dword [ecx + 0x128], ebx
mov dword [ecx + 0x10c], ebx
mov dword [ecx + 0x12c], esi
mov dword [ecx + 0x130], eax
push edi
call fcn.00558d96
mov ebx, dword [ebp - 0x10]
push 0x5d1ffc
push dword [ebp + 8]
mov dword [ebx + 0x138], eax
call fcn.0056868c
mov ecx, dword [ebx + 0x128]
mov esi, eax
imul ecx, dword [ebx + 0x124]
push esi
push ecx
push 1
push dword [ebx + 0x138]
call fcn.005911ae
push esi
call fcn.0056839e
mov edi, dword [ebx + 0x128]
xor ecx, ecx
imul edi, dword [ebx + 0x124]
mov edx, 0x28
mov eax, edi
mov dword [ebp + 0x18], edi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00558d96
add esp, 0x24
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x524441
push fcn.0050c120
push 0x4ee840
push edi
lea esi, [eax + 4]
mov dword [eax], edi
push 0x28
push esi
call fcn.00559160
mov dword [ebx + 0x120], 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 0x14
mov dword [ebx + 0x120], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x52b100
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb95b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x62a780]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x20]
lea eax, [edi + 0x10c]
push eax
mov eax, dword [0x62d3c8]
push 0
push 0
push 0xffff00ff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x15
push 0
push 0
push 0
push 0
push str.datmouseart.png
push dword [eax + 0x2a3d8]
call fcn.00408a02
push 0x170
call fcn.00558849
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x52b1ac
mov ecx, dword [0x62d3c8]
push 0
push str.WINDOW
call fcn.0045f120
mov ecx, dword [0x62d3c8]
push eax
call fcn.0045f130
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0046baf0
jmp 0x52b1ae
xor eax, eax
mov dword [edi + 0x19c], eax
mov byte [eax + 0x168], 0
mov eax, dword [edi + 0x19c]
push 0x1ac
mov dword [ebp - 4], 0xffffffff
mov byte [eax + 0x139], 1
call fcn.00558849
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x52b222
mov ecx, dword [0x62d3c8]
push 0
push str.ARTTEXTBUTTON
call fcn.0045f120
mov ecx, dword [0x62d3c8]
push eax
push 0xff
call fcn.0045f120
sub eax, 0x7f
mov ecx, esi
push eax
push 0
push 0
call fcn.00468140
mov esi, eax
jmp 0x52b224
xor esi, esi
mov eax, dword [esi]
mov ecx, esi
push str.Continue
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
push 0
push str.datcornerButt2High.png
push 1
mov ecx, esi
mov byte [esi + 0x168], 0
mov dword [esi + 0x150], 0x52b650
mov dword [esi + 0x16c], 9
call fcn.00468370
push 0
push str.datcornerButt2Down.png
push 2
mov ecx, esi
call fcn.00468370
push 0
push str.datcornerButt2Up.png
push 0
mov ecx, esi
call fcn.00468370
mov dword [esi + 0x18c], 0xffffffd3
mov dword [esi + 0x190], 0x52
mov ecx, dword [edi + 0x19c]
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0x17c
call fcn.00558849
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x52b2f5
mov ecx, dword [0x62d3c8]
push 0
push str.TEXTBOX
call fcn.0045f120
mov ecx, dword [0x62d3c8]
sub eax, 0x64
push eax
call fcn.0045f130
sub eax, 0x46
mov ecx, esi
push eax
push 0x64
push 0x46
push 1
call fcn.0046b360
mov esi, eax
jmp 0x52b2f7
xor esi, esi
mov edx, dword [esi]
lea eax, [edi + 0x1a0]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x52b650
mov byte [esi + 0x168], 0
mov dword [esi + 0x16c], 9
mov ecx, dword [edi + 0x19c]
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [edi + 0x19c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x547df1
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x547e14
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x547e02
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x557fb8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0059d034
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x557ff7
sub eax, 1
je 0x557ff2
sub eax, 1
je 0x557fee
xor eax, eax
leave
ret
push 3
jmp 0x557ff9
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x55a5a0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x55a5df
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x55a5df
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x55a5df
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x55a5df
cmp dword [ecx + 0x74], 0xe
jbe 0x55a5df
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x59629d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x62a780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5962e0
call fcn.0059d6fa
mov dword [eax], 0xf
call fcn.0059d70d
mov dword [eax], 0xd
call fcn.0058ffd0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558887
leave
ret
test eax, eax
jne 0x5962e7
inc eax
jmp 0x5962d4
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5962d2
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5962d4

Function at 0x59ccc6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x59cd05
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x59cd05
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x59cd05
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x59cd05
cmp dword [ecx + 0x74], 0xe
jbe 0x59cd05
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x5a9013
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5f3f74
push 0x5f3f6c
push str.FlsAlloc
push 0x1f
call fcn.005a8ce1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5a9047
push dword [ebp + 8]
mov ecx, esi
call dword [0x5d0484]
call esi
jmp 0x5a904d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x5a9091
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5f3f84
push 0x5f3f7c
push str.FlsGetValue
push 0x21
call fcn.005a8ce1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5a90c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x5d0484]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5a90d0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5f3f8c
push 0x5f3f84
push str.FlsSetValue
push 0x22
call fcn.005a8ce1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5a910a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5d0484]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5ac431
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00559130
mov eax, dword [0x62a780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.005a6122
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5ac473
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5ac5cf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00559500
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x64ab68]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005ad9d3
mov ecx, dword [esi*4 + 0x64ab68]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x5ac5c8
cmp eax, dword [ecx + edi + 0x24]
jne 0x5ac5c8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5ac5c8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005ad9d3
add esp, 0x14
test edx, edx
jl 0x5ac5c8
jg 0x5ac53e
test eax, eax
jb 0x5ac5c8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5ac5c8
jl 0x5ac558
cmp dword [ebp - 0x1008], eax
ja 0x5ac5c8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5ac576
test ebx, ebx
je 0x5ac5af
cmp ecx, edi
jae 0x5ac5af
mov al, byte [ecx]
cmp al, 0xd
jne 0x5ac590
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5ac59c
cmp byte [ecx + 1], 0xa
jne 0x5ac59c
inc ecx
jmp 0x5ac59c
movzx eax, al
movsx eax, byte [eax + 0x62aa68]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5ac576
cmp edx, ebx
jne 0x5ac576
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5ac5cd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00558887
leave
ret
Function at 0x5acb4d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x64ab68]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5acb8d
cmp byte [ebx], 0xa
jne 0x5acb8d
or byte [edi + eax + 0x28], 4
jmp 0x5acb92
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x5acc91
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5acc74
inc eax
cmp dl, 0xd
je 0x5acbbe
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5acbe4
cmp eax, ecx
jae 0x5acbf2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x5acba6
jmp 0x5acc91
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5acc6f
cmp dword [ebp - 0x10], 0
je 0x5acc6f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x64ab68]
test byte [eax + edi + 0x28], 0x48
je 0x5acc49
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5acc34
mov byte [esi], dl
jmp 0x5acc45
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x64ab68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5acc91
cmp byte [ebp - 1], 0xa
jne 0x5acc58
cmp esi, ebx
jne 0x5acc58
mov byte [esi], 0xa
jmp 0x5acc90
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005ad9f1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5acc91
mov byte [esi], 0xd
jmp 0x5acc90
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x64ab68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5acc8e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5acc91
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5acc9a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x64ab68]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5acce0
cmp word [ebx], dx
jne 0x5acce0
or byte [eax + edi + 0x28], 4
jmp 0x5acce5
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x5ace48
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x5ace28
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5acd26
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5acd5c
cmp eax, edx
jae 0x5acd6a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x5acd01
jmp 0x5ace48
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5ace23
cmp dword [ebp - 0x18], 0
je 0x5ace23
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x64ab68]
test byte [eax + edi + 0x28], 0x48
je 0x5acdf9
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x5acdbd
mov word [esi], cx
jmp 0x5acdf4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x64ab68]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x64ab68]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x64ab68]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5ace48
pop eax
cmp word [ebp - 4], ax
jne 0x5ace09
cmp esi, ebx
jne 0x5ace09
mov word [esi], ax
jmp 0x5ace45
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005ad9f1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5ace48
push 0xd
pop eax
jmp 0x5ace04
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x64ab68]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5ace42
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5ace48
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret