joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3890
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x530040]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c38bd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4c3907
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x4c390d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4c396b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4c3930
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4c3997
mov eax, dword [esi + 4]
push 1
push 0x50ac90
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x50ac91
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4c3970
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

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

Function at 0x4c5000
Capabilities:
Encode data using xor

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

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

Function at 0x4dbbc6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00477860
mov eax, dword [0x530010]
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.004e1e95
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4dbc08
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4dbd64
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004f23e0
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 + 0x531ec0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004de229
mov ecx, dword [esi*4 + 0x531ec0]
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 0x4dbd5d
cmp eax, dword [edi + ecx + 0x24]
jne 0x4dbd5d
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 0x4dbd5d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004de229
add esp, 0x14
test edx, edx
jl 0x4dbd5d
jg 0x4dbcd3
test eax, eax
jb 0x4dbd5d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4dbd5d
jl 0x4dbced
cmp dword [ebp - 0x1008], eax
ja 0x4dbd5d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4dbd0b
test ebx, ebx
je 0x4dbd44
cmp ecx, edi
jae 0x4dbd44
mov al, byte [ecx]
cmp al, 0xd
jne 0x4dbd25
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4dbd31
cmp byte [ecx + 1], 0xa
jne 0x4dbd31
inc ecx
jmp 0x4dbd31
movzx eax, al
movsx eax, byte [eax + 0x5309a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4dbd0b
cmp edx, ebx
jne 0x4dbd0b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4dbd62
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00476a44
leave
ret
Function at 0x4dd9bb
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x530010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x50d820
push esi
call fcn.004dbf64
pop ecx
pop ecx
test eax, eax
jne 0x4dd9e9
xor al, al
jmp 0x4dda66
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004dd6f2
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4dda23
push dword [ebp - 0x210]
call fcn.004cf3dc
xor al, al
jmp 0x4dda64
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4dda29
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4dda49
push edx
call fcn.004dd8f1
pop ecx
test al, al
je 0x4dda14
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4dda57
mov bl, 1
push dword [ebp - 0x210]
call fcn.004cf3dc
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00476a44
leave
ret
Function at 0x4e4c37
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x50e40c
push 0x50e404
push str.FlsAlloc
push 0x1e
call fcn.004e4a64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e4c6b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4fd6ec]
call esi
jmp 0x4e4c71
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4e4cb5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x50e41c
push 0x50e414
push str.FlsGetValue
push 0x20
call fcn.004e4a64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e4cec
push dword [ebp + 8]
mov ecx, esi
call dword [0x4fd6ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4e7e41
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x530010]
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 0x4e7e8c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004e7fe0
test al, al
jne 0x4e7e86
sub edx, 2
cmp edx, edi
jne 0x4e7e6c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4e7eae
lea eax, [edi + 2]
cmp edx, eax
je 0x4e7eae
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004e7d8d
add esp, 0x10
jmp 0x4e7fa8
push esi
lea ecx, [ebp - 0x255]
call fcn.004e7fe0
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 0x4e7ef1
push dword [ebp - 0x25c]
jmp 0x4e7e9e
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 0x4e7f2e
cmp word [ebp - 0x226], 0
je 0x4e7f4f
cmp word [ebp - 0x226], ax
jne 0x4e7f2e
cmp word [ebp - 0x224], 0
je 0x4e7f4f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004e7d8d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4e7f9b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4e7f08
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4e7f83
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4e7fa8
push 0x4e7bbd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004dae90
add esp, 0x10
jmp 0x4e7f78
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.00476a44
leave
ret
Function at 0x4e88cc
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 0x4e8969
push ebx
push esi
call fcn.004e8895
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.004e7a91
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4e8916
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e8968
push edi
push eax
call fcn.004e1028
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4e8936
call fcn.004e0fee
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e8967
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004e7a91
add esp, 0x20
test eax, eax
jne 0x4e8955
push edi
call fcn.004e0fee
jmp 0x4e895d
push ebx
call fcn.004e0fee
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 0x4e896c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4e897d
pop esi
ret
push ebx
push edi
push esi
call fcn.004e8895
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004e1028
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4e89a5
push ebx
push esi
push edi
call fcn.004c5f20
add esp, 0xc
push 0
call fcn.004e0fee
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4e90f1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e8c18
Function at 0x4ebf55
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 + 0x531ec0]
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 0x4ebf95
cmp byte [ebx], 0xa
jne 0x4ebf95
or byte [eax + edi + 0x28], 4
jmp 0x4ebf9a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4ec098
mov al, byte [edx]
cmp al, 0x1a
je 0x4ec07a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4ebfc9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4ebfee
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4ebff8
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 0x4ebfab
jmp 0x4ec098
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 0x4ec075
cmp dword [ebp - 0xc], 0
je 0x4ec075
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x531ec0]
test byte [eax + edi + 0x28], 0x48
je 0x4ec04f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ec03a
mov byte [esi], dl
jmp 0x4ec04b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x531ec0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ec098
cmp byte [ebp - 1], 0xa
jne 0x4ec05e
cmp esi, ebx
jne 0x4ec05e
mov byte [esi], 0xa
jmp 0x4ec097
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004de247
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ec098
mov byte [esi], 0xd
jmp 0x4ec097
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x531ec0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ec094
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ec098
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ec0a1
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 + 0x531ec0]
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 0x4ec0e4
cmp word [esi], dx
jne 0x4ec0e4
or byte [edi + eax + 0x28], 4
jmp 0x4ec0e9
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 0x4ec23c
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 0x4ec21c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4ec12b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ec161
cmp eax, edx
jae 0x4ec16d
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 0x4ec103
jmp 0x4ec23c
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 0x4ec218
cmp dword [ebp - 0x14], 0
je 0x4ec218
mov eax, dword [ebx*4 + 0x531ec0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4ec1f0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4ec1b9
mov word [esi], cx
jmp 0x4ec1ec
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x531ec0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x531ec0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x531ec0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4ec23c
pop ebx
cmp word [ebp - 4], bx
jne 0x4ec201
cmp esi, dword [ebp + 0xc]
jne 0x4ec201
mov word [esi], bx
jmp 0x4ec239
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004de247
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4ec23c
push 0xd
jmp 0x4ec235
mov ecx, dword [ebx*4 + 0x531ec0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ec233
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ec23c
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 0x4eca5d
Capabilities:
Read file on windows

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

Function at 0x4ecbf8
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.004ecb74
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4ecd70
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4ecd70
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4ecd1f
jg 0x4ecc51
test eax, eax
je 0x4ecd15
push 1
push 0x1000
call fcn.004e4766
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4ecc77
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4ecd0c
push 0x8000
push ebx
call fcn.004d7389
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 0x4ecca3
jg 0x4ecc9e
cmp ecx, 0x1000
jb 0x4ecca3
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004e386f
add esp, 0x10
cmp eax, 0xffffffff
je 0x4ecce8
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 0x4ecc9e
jl 0x4ecccf
test ecx, ecx
jne 0x4ecc90
push dword [ebp - 0xc]
push ebx
call fcn.004d7389
push esi
call fcn.004e0fee
add esp, 0xc
xor edi, edi
jmp 0x4ecd81
cmp byte [edi + 0x24], 0
je 0x4eccff
cmp dword [edi + 0x20], 5
jne 0x4eccff
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4ecd0a
mov edi, dword [edi + 0x18]
jmp 0x4ecd0c
xor edi, edi
push esi
call fcn.004e0fee
pop ecx
jmp 0x4ecd81
test ecx, ecx
jg 0x4ecce1
jl 0x4ecd1f
test eax, eax
jae 0x4ecce1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004de247
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4ecd42
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4ecce1
jmp 0x4ecd79
push ebx
call fcn.004e9743
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4ecce1
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 0x4ecd81
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4ecd7e
mov edi, dword [edi + 0x18]
jmp 0x4ecd81
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004de247
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401090
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4010fe
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4010cf
cmp eax, 2
jne 0x4010ea
test esi, esi
mov eax, dword [esp]
je 0x4010f8
test eax, eax
je 0x4010f3
test al, 1
jne 0x4010ea
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4010f8
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x401370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473d08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push edi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
cmp eax, 0x482018
mov dword [esp + 0xc], ebx
je 0x40144e
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
mov dword [esp + 0x38], ebx
call fcn.00401110
cmp eax, 2
jne 0x4013ea
lea ecx, [esp + 0x10]
push ecx
call fcn.004018d0
add esp, 4
test al, al
jne 0x40140b
lea edx, [esp + 0x10]
push edx
jmp 0x4013ef
lea eax, [esp + 0x10]
push eax
mov edi, 0x482018
call fcn.00401480
add esp, 4
test al, al
jne 0x40140b
mov ecx, edi
lea edx, [esp + 0x10]
call fcn.00401580
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x34]
mov word [ecx + 4], bx
call fcn.00401c90
mov ecx, esi
call fcn.004011d0
add esp, 0x1c
cmp dword [esp + 0x28], 8
jb 0x40145c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00445f7c
add esp, 4
jmp 0x40145c
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044610a
add esp, 0x30
ret
Function at 0x401480
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x473828
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
xor ebx, ebx
push 0x11
push str.SoftwareClasses_
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00401fa0
mov eax, edi
mov dword [esp + 0x3c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4014e1
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00401ed0
push 6
push str.Shell
lea ecx, [esp + 0x1c]
call fcn.00401ed0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x38]
mov word [ecx + 4], bx
call fcn.00401c90
push ebp
mov ecx, SysReAllocString
call fcn.00401670
add esp, 0x20
cmp dword [esp + 0x2c], 8
mov bl, al
jb 0x401552
mov eax, dword [esp + 0x18]
push eax
call fcn.00445f7c
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044610a
add esp, 0x30
ret