joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6dd011
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.006d0b97
push dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.006dc3be
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], esi
call fcn.006dc3be
add esp, 0xc
mov ebx, eax
jmp 0x6dd088
lea eax, [ebp - 0x24]
push eax
call fcn.006d0b97
sub esp, 0xc
lea esi, [ebp - 0x14]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.006d0c27
add esp, 0x20
test edx, edx
ja 0x6dd0b3
jb 0x6dd07d
cmp eax, 0x3e8
ja 0x6dd0b3
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 4]
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x6dd048
test esi, esi
je 0x6dd0a1
push esi
call fcn.00741f99
pop ecx
test ebx, ebx
je 0x6dd0ac
push ebx
call fcn.00741f99
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x6dd0c1
push eax
call fcn.00741f99
pop ecx
test ebx, ebx
je 0x6dd0cc
push ebx
call fcn.00741f99
pop ecx
xor eax, eax
inc eax
jmp 0x6dd0ae
Function at 0x6dd0f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
and dword [ebp - 0x10], edi
and dword [eax], edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x6dd241
push ebx
push esi
mov esi, dword [ebp - 8]
test esi, esi
je 0x6dd22c
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x6dd142
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6dd136
sub ecx, edx
inc ecx
jmp 0x6dd144
xor ecx, ecx
cmp dword [esi + 4], 2
mov dword [ebp - 0xc], ecx
jne 0x6dd151
push 0x10
jmp 0x6dd15d
cmp dword [esi + 4], 0x17
jne 0x6dd1f7
push 0x1c
cmp dword [esi + 0x18], 0
pop eax
mov dword [ebp - 4], eax
je 0x6dd1f7
cmp dword [esi + 0x10], 0
jbe 0x6dd1f7
cmp dword [esi + 0x10], eax
jb 0x6dd1f7
add ecx, 0x20
add eax, ecx
push eax
call dword [0x904f04]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x6dd223
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.007390e0
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x6dd1e5
mov eax, dword [ebx + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.007390e0
add esp, 0xc
mov eax, dword [ebp - 0x10]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x6dd1f4
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x6dd12c
mov ebx, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
je 0x6dd214
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x6dd228
push edi
call fcn.006dd0d1
pop ecx
xor edi, edi
jmp 0x6dd238
push 8
pop ebx
jmp 0x6dd205
test edi, edi
jne 0x6dd238
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
pop esi
mov dword [eax], edi
mov eax, ebx
pop ebx
pop edi
leave
ret

Function at 0x6dd5c3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call fcn.00757748
add esp, 0x18
test eax, eax
je 0x6dd5e3
cmp eax, 0xffffffff
jne 0x6dd5e5
xor eax, eax
pop ebp
ret
Function at 0x6de450
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
push 4
pop edi
push esi
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], esi
call fcn.00739c90
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push dword [ebp + 0x18]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x6de509
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x6de4ec
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x6de4ec
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x6de4ec
cmp esi, dword [ebp - 0xc]
jb 0x6de4ec
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
cmp dword [ebp - 4], ebx
je 0x6de4fa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x6de509
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6eb5b9
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 0xf0000040
inc ebx
mov dword [ebp - 0x1c], 8
push ebx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x6eb5fb
xor al, al
jmp 0x6eb688
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0x208
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x6601
push edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x10], 8
call fcn.006eb697
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.006ebe0c
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x6eb64f
xor bl, bl
jmp 0x6eb67b
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret
Function at 0x6eba30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x904f04]
mov edi, eax
pop ecx
test edi, edi
je 0x6ebb1d
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x6eba9c
push ecx
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
call dword [esi + 8]
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x6ebaa2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push ecx
call dword [esi]
push dword [edi + 8]
call dword [esi]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
pop ecx
test eax, eax
je 0x6ebb15
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 4]
push 1
mov al, byte [eax]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov ecx, dword [ebp - 4]
push 1
mov al, byte [ecx]
xor al, 0x5c
inc ecx
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov dword [ebp - 4], ecx
call dword [esi + 4]
add esp, 0x18
sub ebx, 1
jne 0x6ebaba
mov ebx, dword [ebp - 8]
jmp 0x6ebb15
push 1
push 0x8849a8
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x8849a9
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x6ebaf7
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x6ebb85
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 0x18
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x6ebbb6
lea eax, [esi + 4]
push eax
push edi
push edi
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0x6ebe0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x6ebe5a
push edi
mov edi, dword [ebp + 8]
mov cl, byte [esi + edi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
and dl, 2
movzx ecx, cl
cmp dl, 2
cmovb ecx, eax
mov byte [esi + edi], cl
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x6ebe1b
pop edi
pop esi
pop ebp
ret
Function at 0x6ebe5d
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0xf0000040
xor edi, edi
lea eax, [ebp - 0xc]
push 1
push edi
push edi
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x6ebe97
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x8002
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push dword [ebp + 0x10]
call fcn.0054a864
pop ecx
push edi
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 4], 0x10
jne 0x6ebedb
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 8], edi
je 0x6ebee9
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xc], edi
je 0x6ebef8
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
leave
ret
Function at 0x723d5a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x7501d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00721650
mov eax, dword [0x904fe8]
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.007547e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x750217
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x750373
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00720b60
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 + 0x967030]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00758060
mov ecx, dword [esi*4 + 0x967030]
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 0x75036c
cmp eax, dword [ecx + edi + 0x24]
jne 0x75036c
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 0x75036c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00758060
add esp, 0x14
test edx, edx
jl 0x75036c
jg 0x7502e2
test eax, eax
jb 0x75036c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x75036c
jl 0x7502fc
cmp dword [ebp - 0x1008], eax
ja 0x75036c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x75031a
test ebx, ebx
je 0x750353
cmp ecx, edi
jae 0x750353
mov al, byte [ecx]
cmp al, 0xd
jne 0x750334
lea eax, [edi - 1]
cmp ecx, eax
jae 0x750340
cmp byte [ecx + 1], 0xa
jne 0x750340
inc ecx
jmp 0x750340
movzx eax, al
movsx eax, byte [eax + 0x905200]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x75031a
cmp edx, ebx
jne 0x75031a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x750371
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret
Function at 0x7512da
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x891de0
push esi
call fcn.00757d66
pop ecx
pop ecx
test eax, eax
jne 0x751308
xor al, al
jmp 0x751385
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00750fdc
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x751342
push dword [ebp - 0x210]
call fcn.00741f99
xor al, al
jmp 0x751383
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x751348
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x751368
push edx
call fcn.00751211
pop ecx
test al, al
je 0x751333
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x751376
mov bl, 1
push dword [ebp - 0x210]
call fcn.00741f99
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.007207bc
leave
ret
Function at 0x75306d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00752fe9
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x7531dc
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x7531dc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x753191
jg 0x7530c9
test eax, eax
je 0x753187
push 1
push 0x1000
call fcn.0075d5e4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x7530ec
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x75317e
push 0x8000
push ebx
call fcn.0075748d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x753115
jg 0x753110
cmp ecx, 0x1000
jb 0x753115
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0075458d
add esp, 0x10
cmp eax, 0xffffffff
je 0x75315a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x753110
jl 0x753141
test ecx, ecx
jne 0x753102
push dword [ebp - 0xc]
push ebx
call fcn.0075748d
push esi
call fcn.0075d5aa
add esp, 0xc
xor ebx, ebx
jmp 0x7531ea
cmp byte [edi + 0x24], 0
je 0x753171
cmp dword [edi + 0x20], 5
jne 0x753171
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x75317c
mov ebx, dword [edi + 0x18]
jmp 0x75317e
xor ebx, ebx
push esi
call fcn.0075d5aa
pop ecx
jmp 0x7531ea
test ecx, ecx
jg 0x753153
jl 0x753191
test eax, eax
jae 0x753153
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0075807e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x7531b1
cmp byte [edi + 0x1c], 0
je 0x753153
jmp 0x7531e2
push ebx
call fcn.00754bd6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x753153
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x7531ea
cmp byte [edi + 0x1c], 0
je 0x7531e7
mov ebx, dword [edi + 0x18]
jmp 0x7531ea
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0075807e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x753323
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 + 0x967030]
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 0x753363
cmp byte [ebx], 0xa
jne 0x753363
or byte [edi + eax + 0x28], 4
jmp 0x753368
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 0x753467
mov dl, byte [eax]
cmp dl, 0x1a
je 0x75344a
inc eax
cmp dl, 0xd
je 0x753394
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x7533ba
cmp eax, ecx
jae 0x7533c8
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 0x75337c
jmp 0x753467
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 0x753445
cmp dword [ebp - 0x10], 0
je 0x753445
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x967030]
test byte [eax + edi + 0x28], 0x48
je 0x75341f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x75340a
mov byte [esi], dl
jmp 0x75341b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x967030]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x753467
cmp byte [ebp - 1], 0xa
jne 0x75342e
cmp esi, ebx
jne 0x75342e
mov byte [esi], 0xa
jmp 0x753466
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0075807e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x753467
mov byte [esi], 0xd
jmp 0x753466
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x967030]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x753464
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x753467
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x753470
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 + 0x967030]
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 0x7534b6
cmp word [ebx], dx
jne 0x7534b6
or byte [eax + edi + 0x28], 4
jmp 0x7534bb
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 0x75361e
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 0x7535fe
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x7534fc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x753532
cmp eax, edx
jae 0x753540
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 0x7534d7
jmp 0x75361e
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 0x7535f9
cmp dword [ebp - 0x18], 0
je 0x7535f9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x967030]
test byte [eax + edi + 0x28], 0x48
je 0x7535cf
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 0x753593
mov word [esi], cx
jmp 0x7535ca
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x967030]
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 + 0x967030]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x967030]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x75361e
pop eax
cmp word [ebp - 4], ax
jne 0x7535df
cmp esi, ebx
jne 0x7535df
mov word [esi], ax
jmp 0x75361b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0075807e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x75361e
push 0xd
pop eax
jmp 0x7535da
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x967030]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x753618
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x75361e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret