joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c628
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x828208]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4d1e00
push esi
call fcn.004aadeb
pop ecx
pop ecx
test eax, eax
jne 0x49c656
xor al, al
jmp 0x49c6d3
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.0049c369
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x49c690
push dword [ebp - 0x210]
call fcn.00499bdd
xor al, al
jmp 0x49c6d1
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x49c696
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x49c6b6
push edx
call fcn.0049c55f
pop ecx
test al, al
je 0x49c681
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x49c6c4
mov bl, 1
push dword [ebp - 0x210]
call fcn.00499bdd
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048980e
leave
ret

Function at 0x4a1bbd
Capabilities:
Parse pe header

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

Function at 0x4a6438
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d3b28
push 0x4d3b20
push str.FlsAlloc
push 0x1f
call fcn.004a62a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a646c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bf240]
call esi
jmp 0x4a6472
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a64b6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d3b38
push 0x4d3b30
push str.FlsGetValue
push 0x21
call fcn.004a62a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a64ed
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bf240]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4a64f5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d3b40
push 0x4d3b38
push str.FlsSetValue
push 0x22
call fcn.004a62a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a652f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4bf240]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4aa863
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0048a3a0
mov eax, dword [0x828208]
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.004a823d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4aa8a5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4aaa01
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004b8970
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 + 0x835d98]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004aa3ec
mov ecx, dword [esi*4 + 0x835d98]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4aa9fa
cmp eax, dword [ecx + edi + 0x24]
jne 0x4aa9fa
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aa9fa
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004aa3ec
add esp, 0x14
test edx, edx
jl 0x4aa9fa
jg 0x4aa970
test eax, eax
jb 0x4aa9fa
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4aa9fa
jl 0x4aa98a
cmp dword [ebp - 0x1008], eax
ja 0x4aa9fa
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4aa9a8
test ebx, ebx
je 0x4aa9e1
cmp ecx, edi
jae 0x4aa9e1
mov al, byte [ecx]
cmp al, 0xd
jne 0x4aa9c2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4aa9ce
cmp byte [ecx + 1], 0xa
jne 0x4aa9ce
inc ecx
jmp 0x4aa9ce
movzx eax, al
movsx eax, byte [eax + 0x828a20]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4aa9a8
cmp edx, ebx
jne 0x4aa9a8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4aa9ff
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0048980e
leave
ret
Function at 0x4ab644
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x835d98]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ab684
cmp byte [ebx], 0xa
jne 0x4ab684
or byte [edi + eax + 0x28], 4
jmp 0x4ab689
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4ab788
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4ab76b
inc eax
cmp dl, 0xd
je 0x4ab6b5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4ab6db
cmp eax, ecx
jae 0x4ab6e9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4ab69d
jmp 0x4ab788
push 0
lea eax, [ebp - 0x10]
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 0x4ab766
cmp dword [ebp - 0x10], 0
je 0x4ab766
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x835d98]
test byte [eax + edi + 0x28], 0x48
je 0x4ab740
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ab72b
mov byte [esi], dl
jmp 0x4ab73c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x835d98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ab788
cmp byte [ebp - 1], 0xa
jne 0x4ab74f
cmp esi, ebx
jne 0x4ab74f
mov byte [esi], 0xa
jmp 0x4ab787
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004aa40a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ab788
mov byte [esi], 0xd
jmp 0x4ab787
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x835d98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ab785
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ab788
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ab791
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x835d98]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ab7d7
cmp word [ebx], dx
jne 0x4ab7d7
or byte [eax + edi + 0x28], 4
jmp 0x4ab7dc
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4ab93f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4ab91f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4ab81d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ab853
cmp eax, edx
jae 0x4ab861
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4ab7f8
jmp 0x4ab93f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ab91a
cmp dword [ebp - 0x18], 0
je 0x4ab91a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x835d98]
test byte [eax + edi + 0x28], 0x48
je 0x4ab8f0
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4ab8b4
mov word [esi], cx
jmp 0x4ab8eb
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x835d98]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x835d98]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x835d98]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4ab93f
pop eax
cmp word [ebp - 4], ax
jne 0x4ab900
cmp esi, ebx
jne 0x4ab900
mov word [esi], ax
jmp 0x4ab93c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004aa40a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4ab93f
push 0xd
pop eax
jmp 0x4ab8fb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x835d98]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4ab939
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4ab93f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ad995
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 0x4ada32
push ebx
push esi
call fcn.004ad95e
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.004a9f1a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4ad9df
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4ada31
push edi
push eax
call fcn.004a7388
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4ad9ff
call fcn.004a5fc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4ada30
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004a9f1a
add esp, 0x20
test eax, eax
jne 0x4ada1e
push edi
call fcn.004a5fc4
jmp 0x4ada26
push ebx
call fcn.004a5fc4
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 0x4ada35
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ada46
pop esi
ret
push ebx
push edi
push esi
call fcn.004ad95e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004a7388
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ada6e
push ebx
push esi
push edi
call fcn.0048f9d0
add esp, 0xc
push 0
call fcn.004a5fc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4ade3e
Capabilities:
Set environment variable

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

Function at 0x4b02c6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004a6fe1
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b0335
cmp esi, dword [ebp - 4]
je 0x4b0330
cmp dword [ebp + 0xc], 0
je 0x4b0330
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b030d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004afe18
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4b0337
xor eax, eax
inc eax
jmp 0x4b0337
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4b039c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x828208]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004a6fe1
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004a6fe1
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4b0413
cmp word [ecx], dx
je 0x4b0413
mov eax, dword [0x4d7f24]
push edi
dec eax
push eax
push 0x4d7e10
call fcn.004b033b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4b0486
cmp word [eax], dx
je 0x4b0486
mov eax, dword [edi]
test eax, eax
je 0x4b0437
cmp word [eax], dx
je 0x4b0437
lea eax, [ebp - 0x10]
push eax
call fcn.004afd1e
jmp 0x4b0440
lea eax, [ebp - 0x10]
push eax
call fcn.004afdb9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4b04b0
mov eax, dword [0x4d7e0c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4d7b00
call fcn.004b033b
add esp, 0xc
test al, al
je 0x4b04b0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4b047b
cmp word [eax], di
je 0x4b047b
lea eax, [ebp - 0x10]
push eax
call fcn.004afd1e
pop ecx
jmp 0x4b04b2
lea eax, [ebp - 0x10]
push eax
call fcn.004afdb9
jmp 0x4b0478
mov eax, dword [edi]
test eax, eax
je 0x4b049d
cmp word [eax], dx
je 0x4b049d
lea eax, [ebp - 0x10]
push eax
call fcn.004afcd3
pop ecx
jmp 0x4b04b0
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4b057b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004b01c0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4b057b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4b057b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4b057b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b0508
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004a6635
test ebx, ebx
je 0x4b0576
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004a6635
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b057b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b057b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004b657f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4b057d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048980e
leave
ret
Function at 0x4b5588
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x828208]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4b55cb
call fcn.0049ba02
mov dword [eax], 0xf
call fcn.0049ba15
mov dword [eax], 0xd
call fcn.0049b7df
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048980e
leave
ret
test eax, eax
jne 0x4b55d2
inc eax
jmp 0x4b55bf
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4b55bd
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4b55bf
Function at 0x4b6c17
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004b6b93
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4b6d86
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4b6d86
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4b6d3b
jg 0x4b6c73
test eax, eax
je 0x4b6d31
push 1
push 0x1000
call fcn.004a5f67
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4b6c96
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4b6d28
push 0x8000
push ebx
call fcn.004a2af3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4b6cbf
jg 0x4b6cba
cmp ecx, 0x1000
jb 0x4b6cbf
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004a94f4
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b6d04
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 0x4b6cba
jl 0x4b6ceb
test ecx, ecx
jne 0x4b6cac
push dword [ebp - 0xc]
push ebx
call fcn.004a2af3
push esi
call fcn.004a5fc4
add esp, 0xc
xor ebx, ebx
jmp 0x4b6d94
cmp byte [edi + 0x24], 0
je 0x4b6d1b
cmp dword [edi + 0x20], 5
jne 0x4b6d1b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4b6d26
mov ebx, dword [edi + 0x18]
jmp 0x4b6d28
xor ebx, ebx
push esi
call fcn.004a5fc4
pop ecx
jmp 0x4b6d94
test ecx, ecx
jg 0x4b6cfd
jl 0x4b6d3b
test eax, eax
jae 0x4b6cfd
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004aa40a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4b6d5b
cmp byte [edi + 0x1c], 0
je 0x4b6cfd
jmp 0x4b6d8c
push ebx
call fcn.004ab380
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4b6cfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4b6d94
cmp byte [edi + 0x1c], 0
je 0x4b6d91
mov ebx, dword [edi + 0x18]
jmp 0x4b6d94
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004aa40a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b7250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor al, al
xor esi, esi
test edi, edi
je 0x4b729e
push ebx
mov edx, dword [ebp + 8]
mov ecx, 7
mov dword [ebp + 0xc], ecx
mov dh, byte [esi + edx]
nop
mov bl, al
mov dl, dh
shr al, 7
add bl, bl
shr dl, cl
xor dl, al
movzx ecx, bl
mov al, bl
xor al, 7
and dl, 1
movzx eax, al
cmove eax, ecx
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
jns 0x4b7270
inc esi
cmp esi, edi
jb 0x4b7261
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4b72b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
sete cl
xor eax, eax
cmp esi, 0xffffffff
sete al
or ecx, eax
je 0x4b72dc
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret 0x24
cmp dword [ebp + 0x20], 0x40
mov byte [ebp - 0x80], 0
jbe 0x4b72f2
mov eax, 0xfffffed3
pop esi
mov esp, ebp
pop ebp
ret 0x24
push 0x40
push dword [ebp + 0x24]
lea eax, [ebp - 0x7f]
push 0x40
push eax
call fcn.004854b0
add esp, 0x10
test eax, eax
je 0x4b7315
mov eax, 0xfffffed2
pop esi
mov esp, ebp
pop ebp
ret 0x24
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push 0x41
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x3e8
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
ja 0x4b73b8
je 0x4b73b1
test eax, eax
jne 0x4b73b8
test esi, esi
je 0x4b73a5
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x20]
push eax
push 0x41
lea eax, [ebp - 0x100]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x3e8
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4b73b1
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x40
lea eax, [ebp - 0xff]
push eax
push 0x40
push dword [ebp + 0x28]
call fcn.004854b0
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0xfffffed1
pop esi
mov esp, ebp
pop ebp
ret 0x24
mov eax, 0xfffffff6
pop esi
mov esp, ebp
pop ebp
ret 0x24
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, 0xfffffe68
pop esi
mov esp, ebp
pop ebp
ret 0x24
Function at 0x4b76a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4b76d1
mov word [ebp - 4], 0x10
xor edx, edx
mov byte [ebp - 2], 0x10
mov eax, 0x8360d8
cmp dword [eax], esi
je 0x4b76dd
add eax, 0x38
inc edx
cmp eax, 0x837cd8
jl 0x4b76c2
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret 4
test edx, edx
js 0x4b76d1
lea ecx, [edx*8]
sub ecx, edx
mov eax, dword [ecx*8 + 0x8360f0]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx*8 + 0x8360f4]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx*8 + 0x8360f8]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx*8 + 0x8360fc]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx*8 + 0x836100]
mov dword [ebp - 8], eax
cmp esi, 0xffffffff
je 0x4b7800
push 0x40
lea eax, [ebp - 4]
mov byte [ebp - 0xdc], 0
push eax
lea eax, [ebp - 0xdb]
push eax
call fcn.0048f9d0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
push 0x41
lea eax, [ebp - 0xdc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x3e8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
ja 0x4b7800
je 0x4b77f9
test eax, eax
jne 0x4b7800
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x41
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x3e8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4b77f9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x40
lea eax, [ebp - 0x15b]
push eax
lea eax, [ebp - 0x5c]
push 0x40
push eax
call fcn.004854b0
add esp, 0x10
test eax, eax
jne 0x4b7800
cmp byte [ebp - 0x5b], al
jne 0x4b7800
movzx eax, byte [ebp - 0x5a]
sub eax, 0x10
je 0x4b77f0
sub eax, 1
jne 0x4b77f0
mov eax, 0xfffffe65
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, 0xfffffffe
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0xeb4acc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xeb4ad6
pushal
call 0xeb4adc
pop ebp
sub ebp, 0x10
sub ebp, 0xab4acc
jmp 0xeb4af2
mov eax, 0xab4acc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c6
mov edx, 0xbedf84da
xor byte [eax], dl
inc eax
dec ecx
jne 0xeb4b09
jmp 0xeb4b1c
push ecx
pop ss
push ecx
push ebx
out 0xda, al
fcmovu st(0), st(2)
pop ebx
sbb esp, dword [edx]
fcmovu st(0), st(2)
fcmovu st(0), st(1)
pop ss
invalid