joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6650
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x4fcca4
push dword [0x5320e0]
mov dword [ebp - 8], 0
push esi
call fcn.004b5550
add esp, 0x10
cmp eax, 1
jne 0x4b6697
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x1c]
jle 0x4b6697
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x4fcca4
push dword [0x5320e4]
push esi
call fcn.004b5550
add esp, 0x10
cmp eax, 1
jne 0x4b679f
push edi
push 0x5098d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4b66de
or edi, 0xffffffff
cmp dword [ebp - 0xc], edi
pop edi
setle al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push str.GetLogicalProcessorInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x4b6701
or edi, 0xffffffff
cmp dword [ebp - 0xc], edi
pop ebx
pop edi
setle al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
mov dword [ebp - 4], esi
call ebx
test eax, eax
jne 0x4b6746
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4b678b
test esi, esi
je 0x4b6729
push esi
call fcn.004d2dae
add esp, 4
mov edi, dword [ebp - 4]
push edi
call fcn.004d2dc9
mov esi, eax
add esp, 4
test esi, esi
je 0x4b67a9
lea eax, [ebp - 4]
push eax
push esi
call ebx
test eax, eax
je 0x4b6711
mov eax, 0xaaaaaaab
xor edi, edi
mul dword [ebp - 4]
mov ecx, esi
shr edx, 4
lea eax, [edx + edx*2]
lea edx, [esi + eax*8]
cmp esi, edx
jae 0x4b6773
nop
cmp dword [ecx + 4], 0
lea eax, [edi + 1]
cmovne eax, edi
add ecx, 0x18
mov edi, eax
cmp ecx, edx
jb 0x4b6760
push esi
call fcn.004d2dae
add esp, 4
xor eax, eax
cmp dword [ebp - 0xc], edi
setle al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, 0xfffffffd
xor eax, eax
cmp dword [ebp - 0xc], edi
pop ebx
pop edi
setle al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
push str.malloc__lu__failed__n
push 2
call fcn.004d27a8
add esp, 4
push eax
call fcn.0040cba0
add esp, 0xc
push 1
call fcn.004d31f3
int3
Function at 0x4c9830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x53273c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push edi
push 1
push 4
push eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x14], 0
call fcn.004d563d
add esp, 0x10
test eax, eax
je 0x4c99f2
nop
cmp dword [ebp - 0x44], 0x18
jb 0x4c9a2e
push edi
push 1
lea eax, [ebp - 0x40]
push 0x18
push eax
call fcn.004d563d
add esp, 0x10
cmp eax, 1
jne 0x4c9a18
mov eax, dword [ebp - 0x2c]
dec eax
push 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x40]
push str._nSuffix_n
push eax
call fcn.004d9aa0
add esp, 0xc
test eax, eax
jne 0x4c9a2e
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.004cd9f0
add esp, 8
test eax, eax
jne 0x4c9a2e
push edi
push 1
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call fcn.004d563d
add esp, 0x10
cmp eax, 1
jne 0x4c9a05
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4c9904
push edi
push 1
push eax
push dword [ebp - 0x20]
call fcn.004d563d
add esp, 0x10
cmp eax, 1
jne 0x4c9a05
cmp dword [ebp - 0x34], 0
je 0x4c99b1
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x4c9954
push edi
push 2
lea eax, [ebp - 0x50]
push 4
push eax
call fcn.004d563d
add esp, 0x10
cmp eax, 2
jne 0x4c9a05
mov edx, dword [ebp - 0x50]
test edx, edx
js 0x4c9a05
cmp edx, dword [ebp - 8]
jg 0x4c9a05
mov ecx, dword [ebp - 0x1c]
inc esi
mov eax, dword [ebp - 0x4c]
mov dword [ecx + edx*4], eax
cmp esi, dword [ebp - 0x34]
jl 0x4c9915
jmp 0x4c99ae
push edi
push 1
lea eax, [ebp - 0x50]
push 4
push eax
call fcn.004d563d
add esp, 0x10
cmp eax, 1
jne 0x4c9a05
mov eax, dword [ebp - 0x50]
test eax, eax
js 0x4c9a05
cmp eax, dword [ebp - 8]
jg 0x4c9a05
push edi
push 1
lea eax, [ebp - 0x5c]
push 8
push eax
call fcn.004d563d
add esp, 0x10
cmp eax, 1
jne 0x4c9a05
mov ecx, dword [ebp - 0x18]
inc esi
mov eax, dword [ebp - 0x50]
movsd xmm0, qword [ebp - 0x5c]
movsd qword [ecx + eax*8], xmm0
cmp esi, dword [ebp - 0x34]
jl 0x4c9954
mov esi, dword [ebp - 0x48]
push edi
push 1
lea eax, [ebp - 0x54]
push 4
push eax
call fcn.004d563d
add esp, 0x10
test eax, eax
je 0x4c9a05
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x54]
jne 0x4c9a05
push esi
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.004cdae0
push edi
push 1
lea eax, [ebp - 0x44]
push 4
push eax
call fcn.004d563d
add esp, 0x1c
test eax, eax
jne 0x4c9870
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ceaf9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c9a18
push eax
push dword [ebp - 0xc]
call fcn.00447c80
add esp, 8
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ceaf9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ceaf9
mov esp, ebp
pop ebp
ret
Function at 0x4cf7f9
Capabilities:
Parse pe header

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

Function at 0x4d6393
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53273c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x50bbec
push esi
call fcn.004ec982
pop ecx
pop ecx
test eax, eax
jne 0x4d63c1
xor al, al
jmp 0x4d643e
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.004d60d6
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4d63fb
push dword [ebp - 0x210]
call fcn.004d2dae
xor al, al
jmp 0x4d643c
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4d6401
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4d6421
push edx
call fcn.004d62c9
pop ecx
test al, al
je 0x4d63ec
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4d642f
mov bl, 1
push dword [ebp - 0x210]
call fcn.004d2dae
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ceaf9
leave
ret
Function at 0x4dbe11
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004ced50
mov eax, dword [0x53273c]
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.004e8d3d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4dbe53
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4dbfaf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004f8fc0
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 + 0x545d60]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004e93b1
mov ecx, dword [esi*4 + 0x545d60]
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 0x4dbfa8
cmp eax, dword [edi + ecx + 0x24]
jne 0x4dbfa8
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 0x4dbfa8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004e93b1
add esp, 0x14
test edx, edx
jl 0x4dbfa8
jg 0x4dbf1e
test eax, eax
jb 0x4dbfa8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4dbfa8
jl 0x4dbf38
cmp dword [ebp - 0x1008], eax
ja 0x4dbfa8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4dbf56
test ebx, ebx
je 0x4dbf8f
cmp ecx, edi
jae 0x4dbf8f
mov al, byte [ecx]
cmp al, 0xd
jne 0x4dbf70
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4dbf7c
cmp byte [ecx + 1], 0xa
jne 0x4dbf7c
inc ecx
jmp 0x4dbf7c
movzx eax, al
movsx eax, byte [eax + 0x532840]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4dbf56
cmp edx, ebx
jne 0x4dbf56
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4dbfad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004ceaf9
leave
ret
Function at 0x4e37db
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 + 0x545d60]
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 0x4e381b
cmp byte [ebx], 0xa
jne 0x4e381b
or byte [eax + edi + 0x28], 4
jmp 0x4e3820
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4e391e
mov al, byte [edx]
cmp al, 0x1a
je 0x4e3900
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4e384f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4e3874
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4e387e
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 0x4e3831
jmp 0x4e391e
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 0x4e38fb
cmp dword [ebp - 0xc], 0
je 0x4e38fb
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x545d60]
test byte [eax + edi + 0x28], 0x48
je 0x4e38d5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4e38c0
mov byte [esi], dl
jmp 0x4e38d1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x545d60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4e391e
cmp byte [ebp - 1], 0xa
jne 0x4e38e4
cmp esi, ebx
jne 0x4e38e4
mov byte [esi], 0xa
jmp 0x4e391d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004e93cf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4e391e
mov byte [esi], 0xd
jmp 0x4e391d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x545d60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4e391a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4e391e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4e3927
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 + 0x545d60]
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 0x4e396a
cmp word [esi], dx
jne 0x4e396a
or byte [edi + eax + 0x28], 4
jmp 0x4e396f
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 0x4e3aa8
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 0x4e3a88
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4e39b1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4e39e7
cmp eax, edx
jae 0x4e39f3
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 0x4e3989
jmp 0x4e3aa8
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 0x4e3a84
cmp dword [ebp - 0x14], 0
je 0x4e3a84
mov eax, dword [ebx*4 + 0x545d60]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4e3a5c
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4e3aa2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x545d60]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x545d60]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x545d60]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4e3aa5
pop ebx
cmp word [ebp - 4], bx
jne 0x4e3a6d
cmp esi, dword [ebp + 0xc]
jne 0x4e3a6d
mov word [esi], bx
jmp 0x4e3aa5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004e93cf
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4e3aa8
push 0xd
jmp 0x4e3aa1
mov ecx, dword [ebx*4 + 0x545d60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4e3a9f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4e3aa8
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 0x4ea602
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x50db14
push 0x50db0c
push str.FlsAlloc
push 0x1e
call fcn.004ea483
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ea636
push dword [ebp + 8]
mov ecx, esi
call dword [0x4fc244]
call esi
jmp 0x4ea63c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4ea680
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x50db24
push 0x50db1c
push str.FlsGetValue
push 0x20
call fcn.004ea483
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ea6b7
push dword [ebp + 8]
mov ecx, esi
call dword [0x4fc244]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4ec8a8
Capabilities:
Read file on windows

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

Function at 0x4f0d17
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 0x4f0db4
push ebx
push esi
call fcn.004f0ce0
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.004f0443
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f0d61
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f0db3
push edi
push eax
call fcn.004eb5ac
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4f0d81
call fcn.004ea2e2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f0db2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004f0443
add esp, 0x20
test eax, eax
jne 0x4f0da0
push edi
call fcn.004ea2e2
jmp 0x4f0da8
push ebx
call fcn.004ea2e2
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 0x4f0db7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4f0dc8
pop esi
ret
push ebx
push edi
push esi
call fcn.004f0ce0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004eb5ac
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4f0df0
push ebx
push esi
push edi
call fcn.004cfba0
add esp, 0xc
push 0
call fcn.004ea2e2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4f153c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f1063
Function at 0x4f4777
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.004f46f3
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4f48ef
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4f48ef
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4f489e
jg 0x4f47d0
test eax, eax
je 0x4f4894
push 1
push 0x1000
call fcn.004ea285
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4f47f6
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4f488b
push 0x8000
push ebx
call fcn.004e42b5
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 0x4f4822
jg 0x4f481d
cmp ecx, 0x1000
jb 0x4f4822
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004e83ae
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f4867
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 0x4f481d
jl 0x4f484e
test ecx, ecx
jne 0x4f480f
push dword [ebp - 0xc]
push ebx
call fcn.004e42b5
push esi
call fcn.004ea2e2
add esp, 0xc
xor edi, edi
jmp 0x4f4900
cmp byte [edi + 0x24], 0
je 0x4f487e
cmp dword [edi + 0x20], 5
jne 0x4f487e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4f4889
mov edi, dword [edi + 0x18]
jmp 0x4f488b
xor edi, edi
push esi
call fcn.004ea2e2
pop ecx
jmp 0x4f4900
test ecx, ecx
jg 0x4f4860
jl 0x4f489e
test eax, eax
jae 0x4f4860
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004e93cf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4f48c1
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4f4860
jmp 0x4f48f8
push ebx
call fcn.004ecf93
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4f4860
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 0x4f4900
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4f48fd
mov edi, dword [edi + 0x18]
jmp 0x4f4900
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004e93cf
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4f8e70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f8e9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f8e9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10010330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1001033f
pop dword [ebp - 0x3c]
mov eax, 0xbcbdf68
sub eax, 0xfbcadc29
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x6889de35
sub dword [ebp - 0x4c], 0x1a3798ea
mov dword [ebp - 0x48], 0x9dc343b
sub dword [ebp - 0x48], 0xd7a8e7f6
mov dword [ebp - 0x44], 0x3df04a14
sub dword [ebp - 0x44], 0xf1a405e6
mov dword [ebp - 0x40], 0x1b1e425e
add dword [ebp - 0x40], 0xe4e1bda2
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xc66275b6
sub eax, 0xb6602532
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x22472c6a
add dword [ebp - 0x4c], 0x522b3cec
mov dword [ebp - 0x48], 0x9eff0362
sub dword [ebp - 0x48], 0x5d92a1ed
mov dword [ebp - 0x44], 0x1acc4e62
add dword [ebp - 0x44], 0x48a31e0a
mov dword [ebp - 0x40], 0xf55348bc
sub dword [ebp - 0x40], 0xf55348bc
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xe0af1724
add eax, 0x2f533958
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x39b21
push 0
call eax
mov ecx, 0xe1f0d14e
sub ecx, 0xe1f09064
mov esi, eax
mov edx, 0x10030c00
add edx, dword [ebp - 0x3c]
mov edi, 0xead1cdc8
sub dword [ebp - 0x24], 0x8295d3da
mov ebx, dword [edx]
add dword [ebp - 0x1c], esi
xor ebx, edi
mov dword [esi], ebx
add dword [ebp - 0x18], 0xe457f84
add esi, 4
add edx, 0x44a8d481
add edx, 0xbb572b83
loop 0x10010455
add eax, 0xf67b
mov ebx, eax
add eax, 0xea8e4037
add eax, 0x1571bfce
mov ecx, 0xd933eb9
add ecx, 0x26cc147
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x1001c6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c73b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c6f2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c6f2
cmp esi, ebx
jge 0x1001c6f2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c735
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c735
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c74d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc