joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1812c4be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x181cf008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x181d4ec8]
push edi
push 0xf0
push eax
xor edi, edi
mov dword [ebp - 0x10c], ecx
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1812c62b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1812c62b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1812c62b
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x1812c62a
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x1812c5a5
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.18025171
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
inc eax
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x1812c61c
push dword [ebp - 0x108]
call fcn.1814c926
pop ecx
jmp 0x1812c61c
mov ecx, 0x1234
cmp cx, ax
jne 0x1812c61c
or dword [ebp - 0x130], 0xffffffff
lea eax, [ebp - 0x104]
push 3
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x108], eax
call fcn.18025171
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], eax
cmp eax, ecx
je 0x1812c5f7
push eax
call fcn.1814c926
pop ecx
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
inc eax
neg eax
sbb eax, eax
and edi, eax
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x1812c51d
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.18145fe4
leave
ret 4

Function at 0x1812cfad
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
cmp byte [esi], 0
jne 0x1812d023
push edi
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
movzx ecx, byte [esi + 1]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
cmp byte [esi + 2], cl
setne cl
push ecx
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 3], 0
je 0x1812d022
cmp byte [esi + 4], 0
je 0x1812d022
push 1
push edi
push 0x28
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x1812d022
or eax, 1
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1812d61d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.1812cd85
lea esi, [edi + 0x194]
xor ecx, ecx
mov edx, dword [esi]
inc ecx
mov ebx, 0x100
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x1812d651
push ebx
mov ecx, esi
call fcn.18007252
mov edx, dword [esi]
push ebx
push edx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.18006e9f
push 1
mov ecx, edi
call fcn.1812e1c3
call fcn.180040b1
push eax
lea ecx, [ebp - 4]
call fcn.1800717c
push 0xbdc
lea ecx, [ebp - 4]
call fcn.180071a5
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.1812e214
mov ecx, edi
call fcn.1812e190
push 8
call fcn.181466ae
pop ecx
mov ecx, eax
call fcn.1801d786
mov ecx, dword [edi + 0x174]
mov dword [edi + 0x174], eax
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x1812d6c7
push 8
push ecx
call fcn.1814635d
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.18004715
xor eax, eax
inc eax
leave
ret 0x10
Function at 0x18131da5
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x181cf008]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0xc], str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov dword [ebp - 8], str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
lea edi, [ebp - 0x10]
push 0xf0000040
push 0x18
push dword [edi]
lea eax, [ebp - 0x14]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x18131e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x18131e01
movzx esi, si
or esi, 0x80070000
movzx ecx, byte [0x181d7aa2]
neg ecx
sbb ecx, ecx
and ecx, 0x181d6c50
je 0x18131e3f
push 9
pop eax
push 0xfffffffffffffffe
pop edx
push edx
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call fcn.18005e59
push esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push str._CryptAcquireContext_failed___x_
push eax
call fcn.18004253
add esp, 0xc
add edi, 4
lea eax, [ebp - 4]
cmp edi, eax
jne 0x18131dd3
cmp dword [ebp - 0x14], 0
je 0x18131e9f
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x18131e9f
movzx ecx, byte [0x181d7aa2]
neg ecx
sbb ecx, ecx
and ecx, 0x181d6c50
je 0x18131e98
push 9
pop esi
push 6
pop eax
push eax
push esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
call fcn.18005e59
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push str._CryptAcquireContext_succeeded_
push eax
call fcn.18004253
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
xor esi, esi
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145fe4
leave
ret
Function at 0x18132e15
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub esp, 0xc
lea edx, [ebx + 0x1c]
lea ecx, [ebx + 0x40]
mov esi, eax
lea eax, [ebx + 0x38]
push edx
push ecx
lea ecx, [ebx + 0x3c]
push ecx
push eax
push edi
push esi
push ecx
lea ecx, [ebp - 0x88]
call fcn.18132cd6
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push 0x2c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
push 0x2c
lea eax, [ebp - 0x88]
mov dword [ebp - 0x2c], esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x18132f08
cmp dword [ebp - 0x30], 2
jne 0x18132f08
cmp dword [ebp - 0x2c], esi
je 0x18132f08
cmp dword [ebp - 0x10], esi
je 0x18132f08
cmp dword [ebp - 0xc], esi
je 0x18132f08
cmp dword [ebp - 8], esi
je 0x18132f08
xor eax, eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
lea edi, [ebp - 0x48]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x2c
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x3c], esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x5c], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18132f08
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x34], eax
mov al, 1
jmp 0x18132f0a
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1813d67d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push 4
pop edx
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x181a6de0]
sub edx, 1
jne 0x1813d680
mov eax, ecx
ret
Function at 0x18142e95
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov byte [ebp - 4], dl
push 1
lea edx, [ebp - 4]
mov ecx, dword [esi]
not ecx
call fcn.1813d695
mov ecx, dword [esi + 8]
lea edx, [ebp - 4]
not eax
not ecx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
mov byte [ebp - 4], al
call fcn.1813d695
pop ecx
not eax
pop ecx
mov dword [esi + 8], eax
pop esi
leave
ret

Function at 0x18142ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov eax, edx
mov dword [ebp - 4], ecx
xor edx, edx
mov dword [ebp - 0xc], eax
push esi
push edi
mov edi, edx
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], edx
jb 0x18142f74
ja 0x18142f04
cmp dword [ebp + 0xc], edx
jbe 0x18142f74
test eax, eax
je 0x18142f52
mov eax, dword [ebp + 8]
mov bl, byte [edi + eax]
mov ax, word [ecx + 8]
mov dl, bl
or ax, 2
movzx esi, ax
call fcn.18142e95
mov eax, esi
mov ecx, esi
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 0xc]
shr ecx, 8
xor cl, bl
mov byte [edi + eax], cl
add edi, 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
adc eax, 0
mov dword [ebp - 8], eax
cmp eax, dword [ebp + 0x10]
jb 0x18142f08
ja 0x18142f74
cmp edi, dword [ebp + 0xc]
jb 0x18142f08
jmp 0x18142f74
mov ebx, dword [ebp + 8]
mov esi, edx
mov dl, byte [esi + ebx]
call fcn.18142e95
mov ecx, dword [ebp - 4]
add esi, 1
adc edi, 0
cmp edi, dword [ebp + 0x10]
jb 0x18142f57
ja 0x18142f74
cmp esi, dword [ebp + 0xc]
jb 0x18142f57
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18142fdc
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xf0000040
push 0x18
push 0
push 0
lea eax, [ebp - 4]
mov esi, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1814301f
push esi
push 0xb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1814301f
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x1814301f
mov al, 1
jmp 0x18143021
xor al, al
pop esi
leave
ret

Function at 0x1815f124
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1817b500
push 0x1817b4f8
push str.FlsAlloc
push 0x1e
call fcn.1815ef91
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1815f158
push dword [ebp + 8]
mov ecx, esi
call dword [0x18175914]
call esi
jmp 0x1815f15e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1815f1a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1817b510
push 0x1817b508
push str.FlsGetValue
push 0x20
call fcn.1815ef91
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1815f1d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x18175914]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x18160c20
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x18160cbd
push ebx
push esi
call fcn.18160be9
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.18160b32
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x18160c6a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x18160cbc
push edi
push eax
call fcn.1815d5e8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x18160c8a
call fcn.1815b838
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x18160cbb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.18160b32
add esp, 0x20
test eax, eax
jne 0x18160ca9
push edi
call fcn.1815b838
jmp 0x18160cb1
push ebx
call fcn.1815b838
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x18160cc0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x18160cd1
pop esi
ret
push ebx
push edi
push esi
call fcn.18160be9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1815d5e8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x18160cf9
push ebx
push esi
push edi
call fcn.18149380
add esp, 0xc
push 0
call fcn.1815b838
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x181610bd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.18160d0e
Function at 0x1816b8d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x181d5868]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1816b917
cmp byte [ebx], 0xa
jne 0x1816b917
or byte [eax + edi + 0x28], 4
jmp 0x1816b91c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1816ba1a
mov al, byte [edx]
cmp al, 0x1a
je 0x1816b9fc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1816b94b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1816b970
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1816b97a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1816b92d
jmp 0x1816ba1a
push 0
lea eax, [ebp - 0xc]
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 0x1816b9f7
cmp dword [ebp - 0xc], 0
je 0x1816b9f7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x181d5868]
test byte [eax + edi + 0x28], 0x48
je 0x1816b9d1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1816b9bc
mov byte [esi], dl
jmp 0x1816b9cd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x181d5868]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1816ba1a
cmp byte [ebp - 1], 0xa
jne 0x1816b9e0
cmp esi, ebx
jne 0x1816b9e0
mov byte [esi], 0xa
jmp 0x1816ba19
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1816b780
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1816ba1a
mov byte [esi], 0xd
jmp 0x1816ba19
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x181d5868]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1816ba16
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1816ba1a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1816ba23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x181d5868]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1816ba66
cmp word [esi], dx
jne 0x1816ba66
or byte [edi + eax + 0x28], 4
jmp 0x1816ba6b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1816bbbe
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1816bb9e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1816baad
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1816bae3
cmp eax, edx
jae 0x1816baef
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1816ba85
jmp 0x1816bbbe
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1816bb9a
cmp dword [ebp - 0x14], 0
je 0x1816bb9a
mov eax, dword [ebx*4 + 0x181d5868]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1816bb72
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1816bb3b
mov word [esi], cx
jmp 0x1816bb6e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x181d5868]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x181d5868]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x181d5868]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1816bbbe
pop ebx
cmp word [ebp - 4], bx
jne 0x1816bb83
cmp esi, dword [ebp + 0xc]
jne 0x1816bb83
mov word [esi], bx
jmp 0x1816bbbb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1816b780
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1816bbbe
push 0xd
jmp 0x1816bbb7
mov ecx, dword [ebx*4 + 0x181d5868]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1816bbb5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1816bbbe
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x18172a62
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.181728d3

Function at 0x18172e5c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1816d6b0
mov eax, dword [0x181cf008]
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.1815e511
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x18172e9e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x18172ffa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1816d6e0
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 + 0x181d5868]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1816b762
mov ecx, dword [esi*4 + 0x181d5868]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x18172ff3
cmp eax, dword [edi + ecx + 0x24]
jne 0x18172ff3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18172ff3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1816b762
add esp, 0x14
test edx, edx
jl 0x18172ff3
jg 0x18172f69
test eax, eax
jb 0x18172ff3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x18172ff3
jl 0x18172f83
cmp dword [ebp - 0x1008], eax
ja 0x18172ff3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x18172fa1
test ebx, ebx
je 0x18172fda
cmp ecx, edi
jae 0x18172fda
mov al, byte [ecx]
cmp al, 0xd
jne 0x18172fbb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x18172fc7
cmp byte [ecx + 1], 0xa
jne 0x18172fc7
inc ecx
jmp 0x18172fc7
movzx eax, al
movsx eax, byte [eax + 0x181cf9a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x18172fa1
cmp edx, ebx
jne 0x18172fa1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x18172ff8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.18145fe4
leave
ret
Function at 0x18173434
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]
push dword [ebp + 0xc]
push ebx
call fcn.181733b0
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x181735ac
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x181735ac
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1817355b
jg 0x1817348d
test eax, eax
je 0x18173551
push 1
push 0x1000
call fcn.1815b872
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x181734b3
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x18173548
push 0x8000
push ebx
call fcn.18171ae5
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x181734df
jg 0x181734da
cmp ecx, 0x1000
jb 0x181734df
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1816a2ae
add esp, 0x10
cmp eax, 0xffffffff
je 0x18173524
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 0x181734da
jl 0x1817350b
test ecx, ecx
jne 0x181734cc
push dword [ebp - 0xc]
push ebx
call fcn.18171ae5
push esi
call fcn.1815b838
add esp, 0xc
xor edi, edi
jmp 0x181735bd
cmp byte [edi + 0x24], 0
je 0x1817353b
cmp dword [edi + 0x20], 5
jne 0x1817353b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x18173546
mov edi, dword [edi + 0x18]
jmp 0x18173548
xor edi, edi
push esi
call fcn.1815b838
pop ecx
jmp 0x181735bd
test ecx, ecx
jg 0x1817351d
jl 0x1817355b
test eax, eax
jae 0x1817351d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1816b780
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1817357e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1817351d
jmp 0x181735b5
push ebx
call fcn.18168ed4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1817351d
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x181735bd
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x181735ba
mov edi, dword [edi + 0x18]
jmp 0x181735bd
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1816b780
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret