joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c7f0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x48f244]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
push ecx
lea ecx, [ebp - 0x124]
lea esi, [edi + 8]
mov dword [edi], 0xe
mov dword [edi + 4], esi
call fcn.0041b8a0
add esp, 4
test eax, eax
jne 0x41c9d3
mov eax, dword [ebp - 0x124]
shl eax, 4
add eax, dword [ebp - 0x120]
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 0xc]
sub eax, 0x10
mov dword [esi + 0xc], ecx
add esi, 0x10
mov edi, dword [edi]
dec edi
test edi, edi
jle 0x41c9bb
movzx ecx, byte [eax + 3]
dec edi
movzx edx, byte [ecx + 0x494070]
movzx ecx, byte [eax + 2]
mov edx, dword [edx*4 + 0x494170]
movzx ecx, byte [ecx + 0x494070]
xor edx, dword [ecx*4 + 0x495ea0]
movzx ecx, byte [eax + 1]
movzx ecx, byte [ecx + 0x494070]
xor edx, dword [ecx*4 + 0x494ea0]
movzx ecx, byte [eax]
movzx ecx, byte [ecx + 0x494070]
xor edx, dword [ecx*4 + 0x4952a0]
mov dword [esi], edx
mov ebx, dword [eax + 4]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
movzx edx, byte [ecx + 0x494070]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x495ea0]
movzx ecx, byte [ecx + 0x494070]
xor edx, dword [ecx*4 + 0x494ea0]
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x494070]
xor edx, dword [ecx*4 + 0x494170]
movzx ecx, bl
movzx ecx, byte [ecx + 0x494070]
xor edx, dword [ecx*4 + 0x4952a0]
mov dword [esi + 4], edx
mov ebx, dword [eax + 8]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
movzx edx, byte [ecx + 0x494070]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x495ea0]
movzx ecx, byte [ecx + 0x494070]
xor edx, dword [ecx*4 + 0x494ea0]
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x494070]
xor edx, dword [ecx*4 + 0x494170]
movzx ecx, bl
movzx ecx, byte [ecx + 0x494070]
xor edx, dword [ecx*4 + 0x4952a0]
mov dword [esi + 8], edx
mov ebx, dword [eax + 0xc]
mov ecx, ebx
shr ecx, 0x10
sub eax, 0x10
movzx ecx, cl
movzx edx, byte [ecx + 0x494070]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x495ea0]
movzx ecx, byte [ecx + 0x494070]
xor edx, dword [ecx*4 + 0x494ea0]
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x494070]
xor edx, dword [ecx*4 + 0x494170]
movzx ecx, bl
movzx ecx, byte [ecx + 0x494070]
xor edx, dword [ecx*4 + 0x4952a0]
mov dword [esi + 0xc], edx
add esi, 0x10
test edi, edi
jg 0x41c861
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004390b1
mov esp, ebp
pop ebp
ret
Function at 0x41cf60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
test al, 0xf
je 0x41cf79
mov eax, 0xffffffde
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x41d00e
push ebx
mov ebx, dword [ebp + 0x10]
dec eax
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, 0x48fce0
shr eax, 4
sub edi, esi
inc eax
mov dword [ebp + 8], eax
nop dword [eax]
movups xmm0, xmmword [ebx]
push esi
push ebx
xor edx, edx
movups xmmword [ebp - 0x14], xmm0
call fcn.0041c9f0
add esp, 8
cmp esi, 0x48fcef
ja 0x41cfe0
lea eax, [esi + 0xf]
cmp eax, 0x48fce0
jb 0x41cfe0
mov eax, esi
mov edx, 0x10
nop dword [eax]
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x41cfd0
jmp 0x41cfee
movups xmm0, xmmword [esi]
pxor xmm0, xmmword [0x48fce0]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x14]
mov ecx, dword [ebp - 4]
add esi, 0x10
add ebx, 0x10
sub edi, 0x10
sub dword [ebp + 8], 1
movups xmmword [0x48fce0], xmm0
jne 0x41cfa0
pop edi
pop esi
pop ebx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42f4c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 8
mov eax, 0x46d4fd
call fcn.004390f1
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0042cc98
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.0042cc98
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.0042fb11
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42f560
push edi
push dword [ebp - 0x10]
call fcn.0042fa4d
pop ecx
pop ecx
test eax, eax
jne 0x42f560
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42f560
lea eax, [ebp - 0x14]
push eax
call fcn.0042fb8f
mov eax, dword [ebp - 0x14]
pop ecx
cmp dword [eax - 0xc], edi
je 0x42f55e
push eax
call fcn.0042f4c4
pop ecx
test eax, eax
je 0x42f55e
push edi
push dword [ebp - 0x10]
call fcn.0042fa4d
pop ecx
pop ecx
test eax, eax
jne 0x42f560
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42f560
mov ebx, edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004102c0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004102c0
mov eax, ebx
call fcn.004390bf
ret

Function at 0x42f69e
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x244
mov eax, 0x46d56d
call fcn.00439124
mov esi, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
call fcn.00448516
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004049f0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42f7c5
dec eax
mov ecx, esi
push eax
call fcn.0040a5e0
movzx eax, word [eax]
cmp eax, 0x5c
je 0x42f738
cmp eax, 0x2f
je 0x42f738
mov edi, 0x483a18
push edi
call fcn.00448516
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00405100
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42f742
mov eax, dword [esi]
push eax
call fcn.0042f4c4
mov edi, eax
mov dword [esp], str.config
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.00413b40
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x42f780
mov ecx, eax
call fcn.004054a0
push esi
lea ecx, [ebp - 0x230]
call fcn.004053a0
lea ecx, [ebp - 0x248]
call fcn.004054a0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x42f7c5
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0042f4c4
pop ecx
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x42f81a
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], ecx
cmp eax, 0x1000
jb 0x42f811
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00405750
mov eax, dword [ebp - 0x24c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x250]
push eax
push ecx
call fcn.00439095
pop ecx
pop ecx
mov eax, edi
call fcn.004390d3
ret
Function at 0x42fa4d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x3000010
push 1
push 0
push 3
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x42fa79
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop ebp
ret
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop ebp
ret

Function at 0x42fc14
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 0x58
mov eax, 0x46d68d
call fcn.004390f1
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.00444b80
xor eax, eax
mov dword [ebp - 0x64], esi
lea edi, [ebp - 0x20]
mov dword [ebp - 0x38], 1
stosd dword es:[edi], eax
lea ecx, [ebp - 0x10]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040f860
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push str.__s___s
push eax
call fcn.0040f9e0
add esp, 0x10
cmp dword [ebp + 0x14], edi
je 0x42fc74
push 0xa
pop eax
jmp 0x42fc76
xor eax, eax
mov esi, dword [ebp - 0x10]
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42fcbe
cmp dword [ebp + 0x10], edi
je 0x42fcbb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42fcbb
cmp dword [ebp + 0x18], edi
je 0x42fcbb
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x20], edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x42fcd2
push dword [ebp - 0x20]
call edi
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x1c], 0
je 0x42fce1
push dword [ebp - 0x1c]
call edi
and dword [ebp - 0x1c], 0
lea ecx, [esi - 0x10]
call fcn.004102c0
mov eax, ebx
call fcn.004390bf
ret
Function at 0x43061d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x50
mov eax, 0x46d6d8
call fcn.00439124
mov esi, dword [ebp + 8]
mov dword [ebp - 0x5c], esi
and dword [ebp - 0x50], 0
xor ebx, ebx
mov ecx, esi
inc ebx
push 0x4837fa
mov dword [ebp - 4], ebx
call fcn.00405060
mov dword [ebp - 0x50], ebx
xor edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], 0x200
mov dword [ebp - 0x54], 0x100
mov eax, dword [ebp + edi*4 - 0x58]
lea ecx, [ebp - 0x48]
push ecx
or eax, 0x20019
push eax
push 0
push str.SoftwareMicrosoftCryptography
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4306b1
xor edx, edx
mov dword [ebp - 0x4c], 1
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x44]
push ecx
push edx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x44], edx
push ecx
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push edx
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4306c3
push dword [ebp - 0x48]
call ebx
push 2
inc edi
pop eax
cmp edi, eax
jb 0x43065e
jmp 0x43076c
mov eax, dword [ebp - 0x44]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004390a3
mov ecx, dword [ebp - 0x44]
mov edi, eax
add ecx, ecx
push ecx
push 0
push edi
call fcn.00444b80
add esp, 0x10
lea eax, [ebp - 0x44]
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 0xc]
cmovae ecx, dword [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 0x4c]
push eax
push 0
push ecx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430760
push edi
lea ecx, [ebp - 0x40]
call fcn.004048d0
push 2
pop ecx
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], cl
push eax
call fcn.00422fd8
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.00407480
lea ecx, [ebp - 0x28]
call fcn.00405010
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004054a0
push str._win32
call fcn.004487f0
pop ecx
push eax
push str._win32
mov ecx, esi
call fcn.004045e0
push edi
call fcn.004390ac
pop ecx
push dword [ebp - 0x48]
call ebx
lea ecx, [ebp + 0xc]
call fcn.004054a0
mov eax, esi
call fcn.004390d3
ret
Function at 0x431416
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x46d86d
call fcn.00439124
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00435889
pop ecx
test al, al
jne 0x4314e0
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4314e2
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x47234c
cmovae eax, dword [ebp + 8]
lea edx, [ebp - 0x29]
add eax, ecx
mov byte [ebp - 0x29], 0x2f
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push edx
cmovae ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0042a125
mov ecx, dword [ebp + 0x18]
add esp, 0x10
mov esi, ebx
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x5c
cmovae eax, dword [ebp + 8]
push esi
push ecx
push eax
call fcn.00407440
add esp, 0x10
lea ecx, [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x28]
cmp esi, 0xffffffff
cmove esi, dword [ebp + 0x18]
push esi
push ebx
push eax
call fcn.00407500
cmp dword [ebp - 0x18], ebx
je 0x4314d0
lea eax, [ebp - 0x28]
push eax
call fcn.00435889
pop ecx
test al, al
jne 0x4314d0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00450e84
pop ecx
test eax, eax
jne 0x4314f2
lea ecx, [ebp - 0x28]
inc esi
call fcn.00405010
mov ecx, dword [ebp + 0x18]
cmp esi, ecx
jb 0x431478
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00405010
mov al, bl
call fcn.004390d3
ret
lea ecx, [ebp - 0x28]
call fcn.00405010
jmp 0x4314e2

Function at 0x435889
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x435897
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x436a40
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x46d62f
call fcn.00439124
mov dword [ebp - 0x30], ecx
cmp dword [ecx + 0x14], 0
mov ebx, dword [ebp + 8]
je 0x436a95
mov edi, dword [ebx + 8]
test edi, edi
je 0x436a95
xor esi, esi
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push 0
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebx + 4]
add eax, esi
push eax
push dword [ecx + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436a9d
cmp dword [ebp - 0x2c], 0
je 0x436a9d
add esi, dword [ebp - 0x2c]
cmp esi, edi
jae 0x436a95
mov ecx, dword [ebp - 0x30]
jmp 0x436a61
call fcn.004390d3
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00436813
and dword [ebp - 4], 0
sub esp, 0x10
mov ecx, esp
push eax
push str.wincolor_sink:_write_to_file__failed._GetLastError__:
push ecx
call fcn.00423745
add esp, 0xc
call fcn.004367c1
int3
Function at 0x45cad3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x479174
push 0x47916c
push str.FlsAlloc
push 0x1e
call fcn.0045c900
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45cb07
push dword [ebp + 8]
mov ecx, esi
call dword [0x470300]
call esi
jmp 0x45cb0d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x45cb51
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x479184
push 0x47917c
push str.FlsGetValue
push 0x20
call fcn.0045c900
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45cb88
push dword [ebp + 8]
mov ecx, esi
call dword [0x470300]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x460c56
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 0x460cf3
push ebx
push esi
call fcn.00460c1f
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.0045f394
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x460ca0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x460cf2
push edi
push eax
call fcn.00459edc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x460cc0
call fcn.00459ea2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x460cf1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0045f394
add esp, 0x20
test eax, eax
jne 0x460cdf
push edi
call fcn.00459ea2
jmp 0x460ce7
push ebx
call fcn.00459ea2
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 0x460cf6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x460d07
pop esi
ret
push ebx
push edi
push esi
call fcn.00460c1f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00459edc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x460d2f
push ebx
push esi
push edi
call fcn.00444600
add esp, 0xc
push 0
call fcn.00459ea2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4610f3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00460d44
Function at 0x4678e1
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 + 0x493588]
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 0x467921
cmp byte [ebx], 0xa
jne 0x467921
or byte [eax + edi + 0x28], 4
jmp 0x467926
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x467a24
mov al, byte [edx]
cmp al, 0x1a
je 0x467a06
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x467955
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46797a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x467984
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 0x467937
jmp 0x467a24
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 0x467a01
cmp dword [ebp - 0xc], 0
je 0x467a01
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x493588]
test byte [eax + edi + 0x28], 0x48
je 0x4679db
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4679c6
mov byte [esi], dl
jmp 0x4679d7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x493588]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x467a24
cmp byte [ebp - 1], 0xa
jne 0x4679ea
cmp esi, ebx
jne 0x4679ea
mov byte [esi], 0xa
jmp 0x467a23
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045fb85
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x467a24
mov byte [esi], 0xd
jmp 0x467a23
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x493588]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x467a20
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x467a24
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x467a2d
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 + 0x493588]
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 0x467a70
cmp word [esi], dx
jne 0x467a70
or byte [edi + eax + 0x28], 4
jmp 0x467a75
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 0x467bc8
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 0x467ba8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x467ab7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x467aed
cmp eax, edx
jae 0x467af9
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 0x467a8f
jmp 0x467bc8
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 0x467ba4
cmp dword [ebp - 0x14], 0
je 0x467ba4
mov eax, dword [ebx*4 + 0x493588]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x467b7c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x467b45
mov word [esi], cx
jmp 0x467b78
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x493588]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x493588]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x493588]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x467bc8
pop ebx
cmp word [ebp - 4], bx
jne 0x467b8d
cmp esi, dword [ebp + 0xc]
jne 0x467b8d
mov word [esi], bx
jmp 0x467bc5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0045fb85
add esp, 0x10
cmp word [ebp - 4], bx
je 0x467bc8
push 0xd
jmp 0x467bc1
mov ecx, dword [ebx*4 + 0x493588]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x467bbf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x467bc8
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 0x469ec5
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.00469e41
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x46a03d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x46a03d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x469fec
jg 0x469f1e
test eax, eax
je 0x469fe2
push 1
push 0x1000
call fcn.0045b904
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x469f44
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x469fd9
push 0x8000
push ebx
call fcn.00455ed8
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 0x469f70
jg 0x469f6b
cmp ecx, 0x1000
jb 0x469f70
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0045dd8f
add esp, 0x10
cmp eax, 0xffffffff
je 0x469fb5
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 0x469f6b
jl 0x469f9c
test ecx, ecx
jne 0x469f5d
push dword [ebp - 0xc]
push ebx
call fcn.00455ed8
push esi
call fcn.00459ea2
add esp, 0xc
xor edi, edi
jmp 0x46a04e
cmp byte [edi + 0x24], 0
je 0x469fcc
cmp dword [edi + 0x20], 5
jne 0x469fcc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x469fd7
mov edi, dword [edi + 0x18]
jmp 0x469fd9
xor edi, edi
push esi
call fcn.00459ea2
pop ecx
jmp 0x46a04e
test ecx, ecx
jg 0x469fae
jl 0x469fec
test eax, eax
jae 0x469fae
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045fb85
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x46a00f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x469fae
jmp 0x46a046
push ebx
call fcn.0045f815
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x469fae
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 0x46a04e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x46a04b
mov edi, dword [edi + 0x18]
jmp 0x46a04e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0045fb85
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret