joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d850
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c458d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0045dad0
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp esi, edi
je 0x45d8c7
nop dword [eax]
lea eax, [ebp - 0x28]
lea ecx, [esi - 0x18]
push eax
mov esi, ecx
call fcn.004242c0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 7
jbe 0x45d8ad
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040bf40
cmp esi, edi
jne 0x45d890
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
cmp esi, edi
je 0x45d8fe
mov dword [ebp - 0x2c], esi
nop dword [eax]
nop dword [eax + eax]
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040bf40
add esi, 0x18
mov dword [ebp - 0x2c], esi
cmp esi, edi
jne 0x45d8e0
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
mov ecx, ebx
call fcn.0045db80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048641a
mov esp, ebp
pop ebp
ret
Function at 0x45d930
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x268]
sub esp, 0x268
push 0xffffffffffffffff
push 0x4c45dd
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4f6040]
xor eax, ebp
mov dword [ebp + 0x264], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x14]
mov ebx, esi
mov ecx, dword [esi + 0x10]
cmp eax, 7
jbe 0x45d97a
mov ebx, dword [esi]
test ecx, ecx
je 0x45da9e
xor edi, edi
mov edx, ebx
cmp word [ebx], 0x2a
je 0x45d99f
nop dword [eax]
cmp ecx, 1
je 0x45d9a1
add edx, 2
dec ecx
cmp word [edx], 0x2a
jne 0x45d990
mov edi, edx
test edi, edi
je 0x45da9e
sub edi, ebx
sar edi, 1
cmp edi, 0xffffffff
je 0x45da9e
lea ecx, [ebp]
call fcn.00425560
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 7
jbe 0x45d9cd
mov esi, dword [esi]
push esi
lea ecx, [ebp]
call fcn.00430de0
test eax, eax
je 0x45da8d
mov ecx, dword [ebp + 0x25c]
test ecx, ecx
mov edx, dword [ebp + 4]
je 0x45da1d
mov eax, edx
shr eax, 4
test eax, 1
je 0x45da14
cmp word [ebp + 0x30], 0x2e
jne 0x45da14
mov ax, word [ebp + 0x32]
test ax, ax
je 0x45da67
cmp ax, 0x2e
jne 0x45da14
cmp word [ebp + 0x34], 0
je 0x45da67
test ecx, ecx
je 0x45da1d
test dl, 0x10
jne 0x45da67
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.00431340
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x45da61
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, edi
call esi
mov ecx, dword [ebp + 0x25c]
mov eax, dword [ebp]
test eax, eax
je 0x45da8d
test ecx, ecx
je 0x45da8d
lea ecx, [ebp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp + 0x25c], ecx
test ecx, ecx
jne 0x45d9e6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00425630
jmp 0x45daac
cmp eax, 7
jbe 0x45daa5
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x264]
xor ecx, ebp
call fcn.0048641a
lea esp, [ebp + 0x268]
pop ebp
ret
Function at 0x461e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c560d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4f6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 2
push ecx
push 0x2000
lea ecx, [ebp - 0x28]
call fcn.004340d0
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push 0
push eax
push 0x2000
push ebx
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x461fab
nop dword [eax + eax]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x462033
lea esi, [ebx + eax]
mov dword [ebp - 0x14], ebx
cmp ebx, esi
jae 0x461f8e
mov ebx, dword [ebp + 0x5c]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], eax
test ebx, ebx
je 0x462060
mov eax, dword [ebx]
mov edi, dword [eax + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call dword [0x4c83a0]
mov ecx, ebx
call edi
test al, al
jne 0x461f80
mov al, byte [ebp + 0xc]
mov ebx, dword [ebp + 0x34]
mov byte [ebp - 0x10], al
test ebx, ebx
je 0x462060
mov eax, dword [ebx]
mov edi, dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call dword [0x4c83a0]
mov ecx, ebx
call edi
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, esi
jb 0x461f25
mov ebx, dword [ebp - 0x28]
push 0
lea eax, [ebp - 0x18]
push eax
push 0x2000
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x461f10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040d990
mov byte [ebp - 4], 0
mov edi, dword [ebp + 0x34]
test edi, edi
je 0x461feb
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
lea eax, [ebp + 0x10]
cmp edi, eax
mov ecx, esi
setne al
push eax
call dword [0x4c83a0]
mov ecx, edi
call esi
mov dword [ebp + 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0x5c]
test edi, edi
je 0x46201d
mov esi, dword [edi]
lea eax, [ebp + 0x38]
cmp edi, eax
setne al
mov esi, dword [esi + 0x10]
mov ecx, esi
movzx eax, al
push eax
call dword [0x4c83a0]
mov ecx, edi
call esi
mov dword [ebp + 0x5c], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x58
mov al, byte [ebp + 0xc]
mov edi, dword [ebp + 0x34]
mov byte [ebp - 0x10], al
test edi, edi
je 0x462060
mov eax, dword [edi]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call dword [0x4c83a0]
mov ecx, edi
call esi
xor ebx, ebx
jmp 0x461fb3
call fcn.0046efea
int3
Function at 0x465c40
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, edi
call esi
push 0xf0000000
push 0x18
push 0x4dcec0
push 0
lea ebx, [edi + 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x465c80
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
ret 8
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, edi
call esi
lea eax, [edi + 4]
push eax
push 0
push 0
push 0x800c
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x465c74
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x468980
Capabilities:
Hash data with crc32

Disassembly:
test edx, edx
jne 0x468987
xor eax, eax
ret
jmp fcn.00468990
Function at 0x486327
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0049bd76
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x486366
sub eax, 1
je 0x486361
sub eax, 1
je 0x48635d
xor eax, eax
leave
ret
push 3
jmp 0x486368
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x48727b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4872ba
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4872ba
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4872ba
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4872ba
cmp dword [ecx + 0x74], 0xe
jbe 0x4872ba
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4a14f4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cf398
push 0x4cf390
push str.FlsAlloc
push 0x1e
call fcn.004a1361
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a1528
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c83a0]
call esi
jmp 0x4a152e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a1572
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cf3a8
push 0x4cf3a0
push str.FlsGetValue
push 0x20
call fcn.004a1361
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a15a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c83a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4a3ebd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a3b5f

Function at 0x4a3ec8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a3cee

Function at 0x4a4ab9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004874f0
mov eax, dword [0x4f6040]
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.004a0d36
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a4afb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a4c57
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004b0240
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 + 0x4f9d70]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004a4edf
mov ecx, dword [esi*4 + 0x4f9d70]
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 0x4a4c50
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a4c50
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 0x4a4c50
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004a4edf
add esp, 0x14
test edx, edx
jl 0x4a4c50
jg 0x4a4bc6
test eax, eax
jb 0x4a4c50
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a4c50
jl 0x4a4be0
cmp dword [ebp - 0x1008], eax
ja 0x4a4c50
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a4bfe
test ebx, ebx
je 0x4a4c37
cmp ecx, edi
jae 0x4a4c37
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a4c18
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a4c24
cmp byte [ecx + 1], 0xa
jne 0x4a4c24
inc ecx
jmp 0x4a4c24
movzx eax, al
movsx eax, byte [eax + 0x4f69d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a4bfe
cmp edx, ebx
jne 0x4a4bfe
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a4c55
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0048641a
leave
ret
Function at 0x4a6104
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4f6040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a614f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a62a3
test al, al
jne 0x4a6149
sub edx, 2
cmp edx, edi
jne 0x4a612f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a6171
lea eax, [edi + 2]
cmp edx, eax
je 0x4a6171
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a6050
add esp, 0x10
jmp 0x4a626b
push esi
lea ecx, [ebp - 0x255]
call fcn.004a62a3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a61b4
push dword [ebp - 0x25c]
jmp 0x4a6161
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a61f1
cmp word [ebp - 0x226], 0
je 0x4a6212
cmp word [ebp - 0x226], ax
jne 0x4a61f1
cmp word [ebp - 0x224], 0
je 0x4a6212
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a6050
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a625e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a61cb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a6246
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a626b
push 0x4a5e80
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004aca60
add esp, 0x10
jmp 0x4a623b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048641a
leave
ret

Function at 0x4a6b7a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a6b8b
pop esi
ret
push ebx
push edi
push esi
call fcn.004a6b43
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0049fdd4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a6bb3
push ebx
push esi
push edi
call fcn.00488550
add esp, 0xc
push 0
call fcn.0049fd9a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4a6f77
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a6bc8
Function at 0x4abf10
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 + 0x4f9d70]
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 0x4abf50
cmp byte [ebx], 0xa
jne 0x4abf50
or byte [eax + edi + 0x28], 4
jmp 0x4abf55
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4ac053
mov al, byte [edx]
cmp al, 0x1a
je 0x4ac035
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4abf84
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4abfa9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4abfb3
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 0x4abf66
jmp 0x4ac053
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 0x4ac030
cmp dword [ebp - 0xc], 0
je 0x4ac030
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4f9d70]
test byte [eax + edi + 0x28], 0x48
je 0x4ac00a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4abff5
mov byte [esi], dl
jmp 0x4ac006
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4f9d70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ac053
cmp byte [ebp - 1], 0xa
jne 0x4ac019
cmp esi, ebx
jne 0x4ac019
mov byte [esi], 0xa
jmp 0x4ac052
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a4efd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ac053
mov byte [esi], 0xd
jmp 0x4ac052
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4f9d70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ac04f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ac053
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ac05c
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 + 0x4f9d70]
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 0x4ac09f
cmp word [esi], dx
jne 0x4ac09f
or byte [edi + eax + 0x28], 4
jmp 0x4ac0a4
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 0x4ac1f7
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 0x4ac1d7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4ac0e6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ac11c
cmp eax, edx
jae 0x4ac128
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 0x4ac0be
jmp 0x4ac1f7
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 0x4ac1d3
cmp dword [ebp - 0x14], 0
je 0x4ac1d3
mov eax, dword [ebx*4 + 0x4f9d70]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4ac1ab
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4ac174
mov word [esi], cx
jmp 0x4ac1a7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4f9d70]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4f9d70]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4f9d70]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4ac1f7
pop ebx
cmp word [ebp - 4], bx
jne 0x4ac1bc
cmp esi, dword [ebp + 0xc]
jne 0x4ac1bc
mov word [esi], bx
jmp 0x4ac1f4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004a4efd
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4ac1f7
push 0xd
jmp 0x4ac1f0
mov ecx, dword [ebx*4 + 0x4f9d70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ac1ee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ac1f7
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 0x4ae810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x4ae835
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x4ae84d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [esi + ebp]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x4ae87b
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [edi + eax - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x4ae8ba
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x4ae98e
sub edx, 0x10000
js 0x4ae98e
movzx eax, word [esi + ecx - 1]
cmp eax, ebx
jne 0x4ae8a0
mov eax, dword [esp + 4]
movzx eax, word [eax + ecx]
cmp eax, dword [esp + 0x10]
jne 0x4ae8a0
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [edi + eax + 0x108]
lea esi, [esi + eax + 0x108]
mov eax, dword [esi + edx]
xor eax, dword [edi + edx]
jne 0x4ae911
mov eax, dword [esi + edx + 4]
xor eax, dword [edi + edx + 4]
jne 0x4ae90e
add edx, 8
jne 0x4ae8f5
jmp 0x4ae97f
add edx, 4
test eax, 0xffff
jne 0x4ae91e
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edi + edx]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x4ae97f
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x4ae952
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x4ae8a0
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x4ae98e
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi + eax - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x4ae8a0
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x4ae99f
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4b0160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b018d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b018d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret