joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1812c689
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.1812bdfc
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 0x1812c6bd
push ebx
mov ecx, esi
call fcn.180071e2
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.18006e2f
push 1
mov ecx, edi
call fcn.1812d2c0
call fcn.18004041
push eax
lea ecx, [ebp - 4]
call fcn.1800710c
push 0xbdc
lea ecx, [ebp - 4]
call fcn.18007135
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.1812d311
mov ecx, edi
call fcn.1812d28d
push 8
call fcn.18145795
pop ecx
mov ecx, eax
call fcn.1801d721
mov ecx, dword [edi + 0x174]
mov dword [edi + 0x174], eax
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x1812c733
push 8
push ecx
call fcn.18145444
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.180046a5
xor eax, eax
inc eax
leave
ret 0x10
Function at 0x18130e8c
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x181cd008]
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 0x18130f43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x18130ee8
movzx esi, si
or esi, 0x80070000
movzx ecx, byte [0x181d59e6]
neg ecx
sbb ecx, ecx
and ecx, 0x181d4bb0
je 0x18130f26
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.18005de9
push esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push str._CryptAcquireContext_failed___x_
push eax
call fcn.180041e3
add esp, 0xc
add edi, 4
lea eax, [ebp - 4]
cmp edi, eax
jne 0x18130eba
cmp dword [ebp - 0x14], 0
je 0x18130f86
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x18130f86
movzx ecx, byte [0x181d59e6]
neg ecx
sbb ecx, ecx
and ecx, 0x181d4bb0
je 0x18130f7f
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.18005de9
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push str._CryptAcquireContext_succeeded_
push eax
call fcn.180041e3
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.181450cb
leave
ret
Function at 0x18131efc
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.18131dbd
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 0x18131fef
cmp dword [ebp - 0x30], 2
jne 0x18131fef
cmp dword [ebp - 0x2c], esi
je 0x18131fef
cmp dword [ebp - 0x10], esi
je 0x18131fef
cmp dword [ebp - 0xc], esi
je 0x18131fef
cmp dword [ebp - 8], esi
je 0x18131fef
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 0x18131fef
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 0x18131ff1
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1813c764
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 + 0x181a30f0]
sub edx, 1
jne 0x1813c767
mov eax, ecx
ret
Function at 0x18141f7c
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.1813c77c
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.1813c77c
pop ecx
not eax
pop ecx
mov dword [esi + 8], eax
pop esi
leave
ret

Function at 0x18141fc7
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 0x1814205b
ja 0x18141feb
cmp dword [ebp + 0xc], edx
jbe 0x1814205b
test eax, eax
je 0x18142039
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.18141f7c
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 0x18141fef
ja 0x1814205b
cmp edi, dword [ebp + 0xc]
jb 0x18141fef
jmp 0x1814205b
mov ebx, dword [ebp + 8]
mov esi, edx
mov dl, byte [esi + ebx]
call fcn.18141f7c
mov ecx, dword [ebp - 4]
add esi, 1
adc edi, 0
cmp edi, dword [ebp + 0x10]
jb 0x1814203e
ja 0x1814205b
cmp esi, dword [ebp + 0xc]
jb 0x1814203e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x181420c3
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 0x18142106
push esi
push 0xb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x18142106
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x18142106
mov al, 1
jmp 0x18142108
xor al, al
pop esi
leave
ret

Function at 0x1815e206
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1817a500
push 0x1817a4f8
push str.FlsAlloc
push 0x1e
call fcn.1815e073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1815e23a
push dword [ebp + 8]
mov ecx, esi
call dword [0x18174914]
call esi
jmp 0x1815e240
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1815e284
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1817a510
push 0x1817a508
push str.FlsGetValue
push 0x20
call fcn.1815e073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1815e2bb
push dword [ebp + 8]
mov ecx, esi
call dword [0x18174914]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1815fcff
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 0x1815fd9c
push ebx
push esi
call fcn.1815fcc8
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.1815fc11
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1815fd49
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1815fd9b
push edi
push eax
call fcn.1815c6c8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1815fd69
call fcn.1815a918
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1815fd9a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1815fc11
add esp, 0x20
test eax, eax
jne 0x1815fd88
push edi
call fcn.1815a918
jmp 0x1815fd90
push ebx
call fcn.1815a918
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 0x1815fd9f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1815fdb0
pop esi
ret
push ebx
push edi
push esi
call fcn.1815fcc8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1815c6c8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1815fdd8
push ebx
push esi
push edi
call fcn.18148460
add esp, 0xc
push 0
call fcn.1815a918
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1816019c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1815fded
Function at 0x1816a9c7
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 + 0x181d37e8]
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 0x1816aa07
cmp byte [ebx], 0xa
jne 0x1816aa07
or byte [eax + edi + 0x28], 4
jmp 0x1816aa0c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1816ab0a
mov al, byte [edx]
cmp al, 0x1a
je 0x1816aaec
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1816aa3b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1816aa60
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1816aa6a
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 0x1816aa1d
jmp 0x1816ab0a
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 0x1816aae7
cmp dword [ebp - 0xc], 0
je 0x1816aae7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x181d37e8]
test byte [eax + edi + 0x28], 0x48
je 0x1816aac1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1816aaac
mov byte [esi], dl
jmp 0x1816aabd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x181d37e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1816ab0a
cmp byte [ebp - 1], 0xa
jne 0x1816aad0
cmp esi, ebx
jne 0x1816aad0
mov byte [esi], 0xa
jmp 0x1816ab09
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1816a870
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1816ab0a
mov byte [esi], 0xd
jmp 0x1816ab09
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x181d37e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1816ab06
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1816ab0a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1816ab13
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 + 0x181d37e8]
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 0x1816ab56
cmp word [esi], dx
jne 0x1816ab56
or byte [edi + eax + 0x28], 4
jmp 0x1816ab5b
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 0x1816acae
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 0x1816ac8e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1816ab9d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1816abd3
cmp eax, edx
jae 0x1816abdf
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 0x1816ab75
jmp 0x1816acae
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 0x1816ac8a
cmp dword [ebp - 0x14], 0
je 0x1816ac8a
mov eax, dword [ebx*4 + 0x181d37e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1816ac62
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1816ac2b
mov word [esi], cx
jmp 0x1816ac5e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x181d37e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x181d37e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x181d37e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1816acae
pop ebx
cmp word [ebp - 4], bx
jne 0x1816ac73
cmp esi, dword [ebp + 0xc]
jne 0x1816ac73
mov word [esi], bx
jmp 0x1816acab
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1816a870
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1816acae
push 0xd
jmp 0x1816aca7
mov ecx, dword [ebx*4 + 0x181d37e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1816aca5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1816acae
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 0x18171b52
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.181719c3

Function at 0x18171f4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1816c7a0
mov eax, dword [0x181cd008]
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.1815d5f1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x18171f8e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x181720ea
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1816c7d0
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 + 0x181d37e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1816a852
mov ecx, dword [esi*4 + 0x181d37e8]
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 0x181720e3
cmp eax, dword [edi + ecx + 0x24]
jne 0x181720e3
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 0x181720e3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1816a852
add esp, 0x14
test edx, edx
jl 0x181720e3
jg 0x18172059
test eax, eax
jb 0x181720e3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x181720e3
jl 0x18172073
cmp dword [ebp - 0x1008], eax
ja 0x181720e3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x18172091
test ebx, ebx
je 0x181720ca
cmp ecx, edi
jae 0x181720ca
mov al, byte [ecx]
cmp al, 0xd
jne 0x181720ab
lea eax, [edi - 1]
cmp ecx, eax
jae 0x181720b7
cmp byte [ecx + 1], 0xa
jne 0x181720b7
inc ecx
jmp 0x181720b7
movzx eax, al
movsx eax, byte [eax + 0x181cd9a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x18172091
cmp edx, ebx
jne 0x18172091
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x181720e8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.181450cb
leave
ret
Function at 0x18172524
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.181724a0
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1817269c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1817269c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1817264b
jg 0x1817257d
test eax, eax
je 0x18172641
push 1
push 0x1000
call fcn.1815a952
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x181725a3
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x18172638
push 0x8000
push ebx
call fcn.18170bd5
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 0x181725cf
jg 0x181725ca
cmp ecx, 0x1000
jb 0x181725cf
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1816939c
add esp, 0x10
cmp eax, 0xffffffff
je 0x18172614
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 0x181725ca
jl 0x181725fb
test ecx, ecx
jne 0x181725bc
push dword [ebp - 0xc]
push ebx
call fcn.18170bd5
push esi
call fcn.1815a918
add esp, 0xc
xor edi, edi
jmp 0x181726ad
cmp byte [edi + 0x24], 0
je 0x1817262b
cmp dword [edi + 0x20], 5
jne 0x1817262b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x18172636
mov edi, dword [edi + 0x18]
jmp 0x18172638
xor edi, edi
push esi
call fcn.1815a918
pop ecx
jmp 0x181726ad
test ecx, ecx
jg 0x1817260d
jl 0x1817264b
test eax, eax
jae 0x1817260d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1816a870
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1817266e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1817260d
jmp 0x181726a5
push ebx
call fcn.18167fc4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1817260d
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 0x181726ad
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x181726aa
mov edi, dword [edi + 0x18]
jmp 0x181726ad
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1816a870
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420374
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, ecx
mov ebx, edx
mov dword [esp], eax
mov eax, ebp
mov edx, dword [esp]
call fcn.0041b4c0
mov esi, ebx
mov eax, dword [ebp]
call fcn.0041b700
test ax, ax
jbe 0x4203df
mov word [esp + 4], ax
mov bx, 1
mov eax, ebp
call fcn.0041b950
movzx edi, bx
mov edx, dword [ebp]
mov dl, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [esp]
movzx eax, byte [eax + edi - 1]
add si, ax
imul ax, si, 0xce6d
add ax, 0x58bf
mov esi, eax
inc ebx
dec word [esp + 4]
jne 0x4203a4
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x420728
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.0041b4c0
mov eax, dword [esi]
call fcn.0041b700
test ax, ax
jbe 0x420788
mov word [esp], ax
mov bx, 1
mov eax, esi
call fcn.0041b950
movzx ebp, bx
mov edx, dword [esi]
mov dl, byte [edx + ebp - 1]
movzx ecx, di
shr ecx, 8
xor dl, cl
mov byte [eax + ebp - 1], dl
mov eax, dword [esi]
movzx eax, byte [eax + ebp - 1]
add di, ax
imul ax, di, 0xce6d
add ax, 0x58bf
mov edi, eax
inc ebx
dec word [esp]
jne 0x420750
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403e90
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403ebd
push 0x4ccc68
push eax
push eax
mov edx, 0x4ccc68
call fcn.00408150
add esp, 0xc
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x403ed6
push 0x4ccc68
call fcn.00408420
add esp, 4
xor eax, eax
pop ecx
ret
Function at 0x405b50
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x405b98
push 0x4ccc68
push ebp
push ebp
mov edx, 0x4ccc68
call fcn.00408150
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb4]
xor edx, edx
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x405c2c
jg 0x405bc0
cmp ebx, ecx
jb 0x405c2c
mov ebp, dword [esi]
push 0
push 0
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x405bf1
push 0x4ccc68
push eax
push eax
mov edx, 0x4ccc68
call fcn.00408150
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.00403e90
test eax, eax
je 0x405be7
mov eax, dword [esp + 0x20]
test eax, eax
je 0x405c12
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x405c39
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x405c39
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret