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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60149a50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.6011ee20
mov edi, dword [ebp + 8]
push 4
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [ebp - 0x1c], ebx
call fcn.6011e9b0
mov esi, eax
cmp esi, ebx
jl 0x601205bb
mov dword [ebp - 0x18], ebx
jmp 0x601204c0
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x1c]
jae 0x601205af
mov ecx, dword [edi + 8]
push ebx
lea edx, [ebp - 0x20]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x60120577
call fcn.601180b0
mov ebx, eax
test ebx, ebx
jl 0x60120545
cmp byte [edi], 0
je 0x60120545
mov ecx, dword [edi + 4]
mov esi, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div esi
mov al, byte [ebp - 0x14]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x14], al
xor edx, edx
mov eax, 1
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x13], al
xor edx, edx
mov eax, 2
div esi
mov al, byte [ebp - 0x12]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x12], al
xor edx, edx
mov eax, 3
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x11], al
test ebx, ebx
mov esi, ebx
jl 0x601205b3
push 0x1c
lea ecx, [ebp - 0x40]
push ecx
mov ecx, edi
call fcn.6011e9b0
mov esi, eax
test esi, esi
jl 0x601205b3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x40]
push edx
push eax
mov dword [ebp - 4], 0
call fcn.60120400
jmp 0x6012059a
cmp dword [ebp - 0x20], 4
je 0x601204f7
mov ebx, 0x80070026
jmp 0x60120545
test esi, esi
mov dword [ebp - 4], 0xffffffff
jl 0x601205b3
inc dword [ebp - 0x18]
xor ebx, ebx
jmp 0x601204c0
cmp esi, ebx
jge 0x601205bb
mov ecx, dword [ebp + 0xc]
call fcn.6011ee20
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x60120fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60149a60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.6011ec90
mov edi, dword [ebp + 8]
push 4
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [ebp - 0x1c], ebx
call fcn.6011e9b0
mov esi, eax
cmp esi, ebx
jl 0x60121141
mov dword [ebp - 0x18], ebx
jmp 0x60121030
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x1c]
jae 0x60121135
mov ecx, dword [edi + 8]
push ebx
lea edx, [ebp - 0x20]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x601210fa
call fcn.601180b0
mov ebx, eax
xor eax, eax
cmp ebx, eax
jl 0x601210b9
cmp byte [edi], 0
je 0x601210b9
mov ecx, dword [edi + 4]
mov esi, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div esi
mov al, byte [ebp - 0x14]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x14], al
xor edx, edx
mov eax, 1
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x13], al
xor edx, edx
mov eax, 2
div esi
mov al, byte [ebp - 0x12]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x12], al
xor edx, edx
mov eax, 3
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x11], al
xor eax, eax
cmp ebx, eax
mov esi, ebx
jl 0x60121139
lea ecx, [ebp - 0x38]
push ecx
push edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.6011f880
mov esi, eax
add esp, 8
test esi, esi
jl 0x60121139
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x38]
push edx
push eax
mov dword [ebp - 4], 0
call fcn.60120e70
jmp 0x60121120
cmp dword [ebp - 0x20], 4
je 0x60121107
mov ebx, 0x80070026
jmp 0x601210b7
xor eax, eax
jmp 0x60121069
test esi, esi
mov dword [ebp - 4], 0xffffffff
jl 0x60121139
inc dword [ebp - 0x18]
xor ebx, ebx
jmp 0x60121030
cmp esi, ebx
jge 0x60121141
mov ecx, dword [ebp + 0xc]
call fcn.6011ec90
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x60123660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60149be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.601225c0
mov edi, dword [ebp + 8]
push 4
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [ebp - 0x1c], ebx
call fcn.6011e9b0
mov esi, eax
cmp esi, ebx
jl 0x601237ce
mov dword [ebp - 0x18], ebx
jmp 0x601236b0
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x1c]
jae 0x601237c2
mov ecx, dword [edi + 8]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x20]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x601237e1
call fcn.601180b0
mov ebx, eax
test ebx, ebx
jl 0x60123737
cmp byte [edi], 0
je 0x60123737
mov ecx, dword [edi + 4]
mov esi, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div esi
mov al, byte [ebp - 0x14]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x14], al
xor edx, edx
mov eax, 1
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x13], al
xor edx, edx
mov eax, 2
div esi
mov al, byte [ebp - 0x12]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x12], al
xor edx, edx
mov eax, 3
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x11], al
test ebx, ebx
mov esi, ebx
jl 0x601237c6
mov edx, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [edx + 0xc]
add eax, 0x10
xor esi, esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
call fcn.601041b0
push 4
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.6011e9b0
mov esi, eax
test esi, esi
jl 0x6012378b
lea ecx, [ebp - 0x28]
push ecx
push edi
call fcn.6011f2a0
mov esi, eax
add esp, 8
test esi, esi
jge 0x601237f5
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
call fcn.601041b0
test esi, esi
jge 0x601237f5
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x601237c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jge 0x601237ce
mov ecx, dword [ebp + 0xc]
call fcn.601225c0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20], 4
je 0x601236e9
mov ebx, 0x80070026
jmp 0x60123737
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.60122f80
jmp 0x6012381d
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test esi, esi
jge 0x60123840
test edx, edx
jmp 0x601237b8
test edx, edx
jg 0x6012384c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc dword [ebp - 0x18]
jmp 0x601236b0
Function at 0x60123aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60149c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.601220e0
mov edi, dword [ebp + 8]
push 4
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
mov ecx, edi
mov dword [ebp - 0x1c], esi
call fcn.6011e9b0
mov ebx, eax
cmp ebx, esi
jl 0x60123bea
mov dword [ebp - 0x18], esi
jmp 0x60123af0
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x1c]
jae 0x60123bde
mov ecx, dword [edi + 8]
push esi
lea edx, [ebp - 0x20]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x60123bfd
call fcn.601180b0
mov ebx, eax
cmp ebx, esi
jl 0x60123be2
cmp byte [edi], 0
je 0x60123b7b
mov ecx, dword [edi + 4]
mov esi, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div esi
mov al, byte [ebp - 0x14]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x14], al
xor edx, edx
mov eax, 1
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x13], al
xor edx, edx
mov eax, 2
div esi
mov al, byte [ebp - 0x12]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x12], al
xor edx, edx
mov eax, 3
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x11], al
xor esi, esi
cmp ebx, esi
jl 0x60123be2
lea ecx, [ebp - 0x3c]
call fcn.6011ea80
lea ecx, [ebp - 0x3c]
push ecx
push edi
mov dword [ebp - 4], esi
call fcn.6011f650
mov ebx, eax
add esp, 8
cmp ebx, esi
jge 0x60123c14
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x60123bc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60123bde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebx, esi
jge 0x60123bea
mov ecx, dword [ebp + 0xc]
call fcn.601220e0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20], 4
je 0x60123c0d
mov ebx, 0x80070026
jmp 0x60123b7b
xor ebx, ebx
jmp 0x60123b2b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.60123140
jmp 0x60123c3e
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp ebx, esi
jge 0x60123c61
test edx, edx
jmp 0x60123bb7
test edx, edx
jg 0x60123c6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60123c8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc dword [ebp - 0x18]
jmp 0x60123af0
Function at 0x60123ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60149c48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.60122280
mov edi, dword [ebp + 8]
push 4
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [ebp - 0x20], ebx
call fcn.6011e9b0
mov esi, eax
cmp esi, ebx
jl 0x60123e53
mov dword [ebp - 0x1c], ebx
jmp 0x60123cf0
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x20]
jae 0x60123e47
mov ecx, dword [edi + 8]
push ebx
lea edx, [ebp - 0x24]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x60123dde
call fcn.601180b0
cmp eax, ebx
mov dword [ebp - 0x18], eax
jl 0x60123d75
cmp byte [edi], bl
je 0x60123d75
mov ecx, dword [edi + 4]
mov esi, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div esi
mov al, byte [ebp - 0x14]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x14], al
xor edx, edx
mov eax, 1
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x13], al
xor edx, edx
mov eax, 2
div esi
mov al, byte [ebp - 0x12]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x12], al
xor edx, edx
mov eax, 3
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x11], al
mov esi, dword [ebp - 0x18]
cmp esi, ebx
jl 0x60123e4b
mov edx, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.601041b0
mov byte [ebp - 0x38], bl
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x44]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.6011fb50
mov esi, eax
add esp, 8
cmp esi, ebx
jge 0x60123df5
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
jmp 0x60123e3b
cmp dword [ebp - 0x24], 4
je 0x60123ded
mov dword [ebp - 0x18], 0x80070026
jmp 0x60123d75
mov dword [ebp - 0x18], ebx
jmp 0x60123d28
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x44]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.60123260
jmp 0x60123e1f
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
or edx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp esi, ebx
jge 0x60123e66
test edx, edx
jg 0x60123e47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, ebx
jge 0x60123e53
mov ecx, dword [ebp + 0xc]
call fcn.60122280
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jg 0x60123e72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc dword [ebp - 0x1c]
jmp 0x60123cf0
Function at 0x60123e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60149c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.60122420
mov edi, dword [ebp + 8]
push 4
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [ebp - 0x1c], ebx
call fcn.6011e9b0
mov esi, eax
cmp esi, ebx
jl 0x60124024
mov dword [ebp - 0x18], ebx
jmp 0x60123ed0
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x1c]
jae 0x60124018
mov ecx, dword [edi + 8]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x20]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x60123fb5
call fcn.601180b0
mov ebx, eax
test ebx, ebx
jl 0x60123f57
cmp byte [edi], 0
je 0x60123f57
mov ecx, dword [edi + 4]
mov esi, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div esi
mov al, byte [ebp - 0x14]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x14], al
xor edx, edx
mov eax, 1
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x13], al
xor edx, edx
mov eax, 2
div esi
mov al, byte [ebp - 0x12]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x12], al
xor edx, edx
mov eax, 3
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x11], al
test ebx, ebx
mov esi, ebx
jl 0x6012401c
mov edx, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [edx + 0xc]
add eax, 0x10
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.601041b0
lea eax, [ebp - 0x30]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.6011f5f0
mov esi, eax
add esp, 8
cmp esi, ebx
jge 0x60123fc6
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
jmp 0x6012400c
cmp dword [ebp - 0x20], 4
je 0x60123f09
mov ebx, 0x80070026
jmp 0x60123f57
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.60123380
jmp 0x60123ff0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp esi, ebx
jge 0x60124037
test edx, edx
jg 0x60124018
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jge 0x60124024
mov ecx, dword [ebp + 0xc]
call fcn.60122420
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jg 0x60124043
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc dword [ebp - 0x18]
jmp 0x60123ed0
Function at 0x60124050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60149c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.60122420
mov edi, dword [ebp + 8]
push 4
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [ebp - 0x1c], ebx
call fcn.6011e9b0
mov esi, eax
cmp esi, ebx
jl 0x601241f4
mov dword [ebp - 0x18], ebx
jmp 0x601240a0
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x1c]
jae 0x601241e8
mov ecx, dword [edi + 8]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x20]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x60124185
call fcn.601180b0
mov ebx, eax
test ebx, ebx
jl 0x60124127
cmp byte [edi], 0
je 0x60124127
mov ecx, dword [edi + 4]
mov esi, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div esi
mov al, byte [ebp - 0x14]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x14], al
xor edx, edx
mov eax, 1
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x13], al
xor edx, edx
mov eax, 2
div esi
mov al, byte [ebp - 0x12]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x12], al
xor edx, edx
mov eax, 3
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x11], al
test ebx, ebx
mov esi, ebx
jl 0x601241ec
mov edx, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [edx + 0xc]
add eax, 0x10
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.601041b0
lea eax, [ebp - 0x30]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.6011f390
mov esi, eax
add esp, 8
cmp esi, ebx
jge 0x60124196
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
jmp 0x601241dc
cmp dword [ebp - 0x20], 4
je 0x601240d9
mov ebx, 0x80070026
jmp 0x60124127
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.60123450
jmp 0x601241c0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp esi, ebx
jge 0x60124207
test edx, edx
jg 0x601241e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jge 0x601241f4
mov ecx, dword [ebp + 0xc]
call fcn.60122420
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jg 0x60124213
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc dword [ebp - 0x18]
jmp 0x601240a0
Function at 0x60124220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60149ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.601225c0
mov edi, dword [ebp + 8]
push 4
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [ebp - 0x1c], ebx
call fcn.6011e9b0
mov esi, eax
cmp esi, ebx
jl 0x601243bf
mov dword [ebp - 0x18], ebx
jmp 0x60124270
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x1c]
jae 0x601243b3
mov ecx, dword [edi + 8]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x20]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x60124352
call fcn.601180b0
mov ebx, eax
test ebx, ebx
jl 0x601242f7
cmp byte [edi], 0
je 0x601242f7
mov ecx, dword [edi + 4]
mov esi, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div esi
mov al, byte [ebp - 0x14]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x14], al
xor edx, edx
mov eax, 1
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x13], al
xor edx, edx
mov eax, 2
div esi
mov al, byte [ebp - 0x12]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x12], al
xor edx, edx
mov eax, 3
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x11], al
test ebx, ebx
mov esi, ebx
jl 0x601243b7
mov edx, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [edx + 0xc]
add eax, 0x10
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
call fcn.601041b0
lea eax, [ebp - 0x2c]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.6011f520
mov esi, eax
add esp, 8
cmp esi, ebx
jge 0x60124363
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
jmp 0x601243a7
cmp dword [ebp - 0x20], 4
je 0x601242a9
mov ebx, 0x80070026
jmp 0x601242f7
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.60123520
jmp 0x6012438b
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test esi, esi
jge 0x601243d2
test edx, edx
jg 0x601243b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jge 0x601243bf
mov ecx, dword [ebp + 0xc]
call fcn.601225c0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jg 0x601243de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc dword [ebp - 0x18]
jmp 0x60124270
Function at 0x60126500
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x25c
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x60126586
push esi
push 0x6014fb98
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x6014fac0
lea ecx, [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x268]
push edx
lea eax, [esp + 0x10]
push eax
call esi
push 0x6014fb90
lea ecx, [esp + 0x10]
push ecx
call esi
push 0
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [edi]
shl eax, 1
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
xor eax, eax
pop edi
add esp, 0x25c
ret 4
mov eax, 0xfffffffe
pop edi
add esp, 0x25c
ret 4

Function at 0x601265a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4b4
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x60126651
push esi
push 0x6014fb9c
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x6014fac0
lea ecx, [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x4c0]
push edx
lea eax, [esp + 0x10]
push eax
call esi
push 0x6014fb98
lea ecx, [esp + 0x10]
push ecx
call esi
push 0x6014fac0
lea edx, [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x4c4]
push eax
lea ecx, [esp + 0x10]
push ecx
call esi
push 0x6014fb90
lea edx, [esp + 0x10]
push edx
call esi
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov eax, dword [edi]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
xor eax, eax
pop edi
add esp, 0x4b4
ret 8
mov eax, 0xfffffffe
pop edi
add esp, 0x4b4
ret 8