joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e0f32
Capabilities:
Parse pe header

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

Function at 0x5ec211
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005e0210
mov eax, dword [0x699280]
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.005eb75b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5ec253
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5ec3af
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005e0920
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 + 0x707090]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005f413a
mov ecx, dword [esi*4 + 0x707090]
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 0x5ec3a8
cmp eax, dword [ecx + edi + 0x24]
jne 0x5ec3a8
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 0x5ec3a8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005f413a
add esp, 0x14
test edx, edx
jl 0x5ec3a8
jg 0x5ec31e
test eax, eax
jb 0x5ec3a8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5ec3a8
jl 0x5ec338
cmp dword [ebp - 0x1008], eax
ja 0x5ec3a8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5ec356
test ebx, ebx
je 0x5ec38f
cmp ecx, edi
jae 0x5ec38f
mov al, byte [ecx]
cmp al, 0xd
jne 0x5ec370
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5ec37c
cmp byte [ecx + 1], 0xa
jne 0x5ec37c
inc ecx
jmp 0x5ec37c
movzx eax, al
movsx eax, byte [eax + 0x699570]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5ec356
cmp edx, ebx
jne 0x5ec356
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5ec3ad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005dffa1
leave
ret
Function at 0x5ed73a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x699280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x68def8
push esi
call fcn.005f308e
pop ecx
pop ecx
test eax, eax
jne 0x5ed768
xor al, al
jmp 0x5ed7e5
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.005ed43c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5ed7a2
push dword [ebp - 0x210]
call fcn.005e89fe
xor al, al
jmp 0x5ed7e3
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5ed7a8
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5ed7c8
push edx
call fcn.005ed671
pop ecx
test al, al
je 0x5ed793
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5ed7d6
mov bl, 1
push dword [ebp - 0x210]
call fcn.005e89fe
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005dffa1
leave
ret
Function at 0x5f5d8a
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 + 0x707090]
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 0x5f5dca
cmp byte [ebx], 0xa
jne 0x5f5dca
or byte [edi + eax + 0x28], 4
jmp 0x5f5dcf
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 0x5f5ece
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5f5eb1
inc eax
cmp dl, 0xd
je 0x5f5dfb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5f5e21
cmp eax, ecx
jae 0x5f5e2f
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 0x5f5de3
jmp 0x5f5ece
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 0x5f5eac
cmp dword [ebp - 0x10], 0
je 0x5f5eac
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x707090]
test byte [eax + edi + 0x28], 0x48
je 0x5f5e86
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5f5e71
mov byte [esi], dl
jmp 0x5f5e82
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x707090]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5f5ece
cmp byte [ebp - 1], 0xa
jne 0x5f5e95
cmp esi, ebx
jne 0x5f5e95
mov byte [esi], 0xa
jmp 0x5f5ecd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005f4158
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5f5ece
mov byte [esi], 0xd
jmp 0x5f5ecd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x707090]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5f5ecb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5f5ece
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5f5ed7
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 + 0x707090]
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 0x5f5f1d
cmp word [ebx], dx
jne 0x5f5f1d
or byte [eax + edi + 0x28], 4
jmp 0x5f5f22
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 0x5f6085
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 0x5f6065
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5f5f63
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5f5f99
cmp eax, edx
jae 0x5f5fa7
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 0x5f5f3e
jmp 0x5f6085
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 0x5f6060
cmp dword [ebp - 0x18], 0
je 0x5f6060
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x707090]
test byte [eax + edi + 0x28], 0x48
je 0x5f6036
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 0x5f5ffa
mov word [esi], cx
jmp 0x5f6031
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x707090]
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 + 0x707090]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x707090]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5f6085
pop eax
cmp word [ebp - 4], ax
jne 0x5f6046
cmp esi, ebx
jne 0x5f6046
mov word [esi], ax
jmp 0x5f6082
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005f4158
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5f6085
push 0xd
pop eax
jmp 0x5f6041
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x707090]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5f607f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5f6085
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 0x5f8120
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x68fb54
push 0x68fb4c
push str.FlsAlloc
push 0x1f
call fcn.005f7f9f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5f8154
push dword [ebp + 8]
mov ecx, esi
call dword [0x6053d4]
call esi
jmp 0x5f815a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5f819e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x68fb64
push 0x68fb5c
push str.FlsGetValue
push 0x21
call fcn.005f7f9f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5f81d5
push dword [ebp + 8]
mov ecx, esi
call dword [0x6053d4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5f81dd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x68fb6c
push 0x68fb64
push str.FlsSetValue
push 0x22
call fcn.005f7f9f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5f8217
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x6053d4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5fc82e
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.005fc7aa
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5fc99d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5fc99d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5fc952
jg 0x5fc88a
test eax, eax
je 0x5fc948
push 1
push 0x1000
call fcn.005f7da1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5fc8ad
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5fc93f
push 0x8000
push ebx
call fcn.005ec880
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5fc8d6
jg 0x5fc8d1
cmp ecx, 0x1000
jb 0x5fc8d6
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005f6ff4
add esp, 0x10
cmp eax, 0xffffffff
je 0x5fc91b
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 0x5fc8d1
jl 0x5fc902
test ecx, ecx
jne 0x5fc8c3
push dword [ebp - 0xc]
push ebx
call fcn.005ec880
push esi
call fcn.005f7dfe
add esp, 0xc
xor ebx, ebx
jmp 0x5fc9ab
cmp byte [edi + 0x24], 0
je 0x5fc932
cmp dword [edi + 0x20], 5
jne 0x5fc932
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5fc93d
mov ebx, dword [edi + 0x18]
jmp 0x5fc93f
xor ebx, ebx
push esi
call fcn.005f7dfe
pop ecx
jmp 0x5fc9ab
test ecx, ecx
jg 0x5fc914
jl 0x5fc952
test eax, eax
jae 0x5fc914
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005f4158
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5fc972
cmp byte [edi + 0x1c], 0
je 0x5fc914
jmp 0x5fc9a3
push ebx
call fcn.005fb084
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5fc914
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 0x5fc9ab
cmp byte [edi + 0x1c], 0
je 0x5fc9a8
mov ebx, dword [edi + 0x18]
jmp 0x5fc9ab
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005f4158
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5fdedd
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x699280]
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 0x5fdf28
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005fe078
test al, al
jne 0x5fdf22
sub edx, 2
cmp edx, edi
jne 0x5fdf08
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5fdf4a
lea eax, [edi + 2]
cmp edx, eax
je 0x5fdf4a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005fde29
add esp, 0x10
jmp 0x5fe044
push esi
lea ecx, [ebp - 0x255]
call fcn.005fe078
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 0x5fdf8d
push dword [ebp - 0x25c]
jmp 0x5fdf3a
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 0x5fdfca
cmp word [ebp - 0x226], 0
je 0x5fdfeb
cmp word [ebp - 0x226], ax
jne 0x5fdfca
cmp word [ebp - 0x224], 0
je 0x5fdfeb
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005fde29
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5fe037
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5fdfa4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5fe01f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5fe044
push 0x5fdc59
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005e9330
add esp, 0x10
jmp 0x5fe014
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.005dffa1
leave
ret
Function at 0x5fe95a
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 0x5fe9f7
push ebx
push esi
call fcn.005fe923
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.005fc62f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5fe9a4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5fe9f6
push edi
push eax
call fcn.005f8724
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5fe9c4
call fcn.005f7dfe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5fe9f5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005fc62f
add esp, 0x20
test eax, eax
jne 0x5fe9e3
push edi
call fcn.005f7dfe
jmp 0x5fe9eb
push ebx
call fcn.005f7dfe
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 0x5fe9fa
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5fea0b
pop esi
ret
push ebx
push edi
push esi
call fcn.005fe923
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005f8724
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5fea33
push ebx
push esi
push edi
call fcn.005e17e0
add esp, 0xc
push 0
call fcn.005f7dfe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5ff18d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005feca8

Function at 0x602432
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x699280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x602475
call fcn.005ec6d0
mov dword [eax], 0xf
call fcn.005ec6e3
mov dword [eax], 0xd
call fcn.005f7d5d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dffa1
leave
ret
test eax, eax
jne 0x60247c
inc eax
jmp 0x602469
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 0x602467
xor eax, eax
cmp ecx, 1
setne al
jmp 0x602469

Function at 0x604320
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10027c62
pop dword [ebp - 0x28]
mov eax, 0xb881e561
add eax, 0x57809701
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x56ffe353
add dword [ebp - 0x38], 0xf75261f8
mov dword [ebp - 0x34], 0x141d2c2c
sub dword [ebp - 0x34], 0xe1e9dfe7
mov dword [ebp - 0x30], 0xb99bf7a6
add dword [ebp - 0x30], 0x92b04c88
mov dword [ebp - 0x2c], 0x5883d1f7
sub dword [ebp - 0x2c], 0x5883d1f7
lea eax, [ebp - 0x38]
push eax
mov eax, 0xb35903db
add eax, 0x5cac8d31
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xa55ec4c1
sub dword [ebp - 0x38], 0x30ec5b6b
mov dword [ebp - 0x34], 0x389e0307
sub dword [ebp - 0x34], 0xf731a192
mov dword [ebp - 0x30], 0xa61e7ed7
add dword [ebp - 0x30], 0xbd50ed95
mov dword [ebp - 0x2c], 0x6e31d160
add dword [ebp - 0x2c], 0x91ce2ea0
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xccb867e7
sub eax, 0xbcb2d7a7
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x5d94f
push 0
call eax
mov ecx, 0xdd230929
add ecx, 0x22dd3eb6
xor esi, esi
add esi, eax
mov edi, 0x10069400
add edi, dword [ebp - 0x28]
mov ebx, 0x41612af7
sub ebx, 0xe7122db0
sub dword [ebp - 0x1c], edx
mov edx, dword [edi]
mov dword [ebp - 8], 0xdbf2261
xor edx, ebx
mov dword [ebp - 0x10], 0x311a5b4e
mov dword [esi], edx
add esi, 0xa80ff84d
add esi, 0x57f007b7
add edi, 0xecfb0298
add edi, 0x1304fd6c
loop 0x10027d80
add eax, 0x1124f
mov ebx, eax
add eax, 0xe766c9d3
sub eax, 0xe766c9ce
mov ecx, 0x10000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x1001ec1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1001ec29
pop dword [ebp - 0x24]
mov eax, 0x1001ec29
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x92b868d6
add dword [ebp - 0x34], 0xbb99dc75
mov dword [ebp - 0x30], 0x8c924f9a
sub dword [ebp - 0x30], 0x5a5f0355
mov dword [ebp - 0x2c], 0xb14ced5b
add dword [ebp - 0x2c], 0x9aff56d3
mov dword [ebp - 0x28], 0x2b07e4a2
sub dword [ebp - 0x28], 0x2b07e4a2
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xc22af2d9
add dword [ebp - 0x34], 0xb247767d
mov dword [ebp - 0x30], 0xce5affae
sub dword [ebp - 0x30], 0x8cee9e39
mov dword [ebp - 0x2c], 0x6661a825
sub dword [ebp - 0x2c], 0x2f23bb9
mov dword [ebp - 0x28], 0x85a266e2
add dword [ebp - 0x28], 0x7a5d991e
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xe95409dc
sub eax, 0xd95209dc
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3e796
push 0
call eax
mov ecx, 0x4f89
xor edx, edx
add edx, eax
mov esi, 0x1002bc00
add esi, dword [ebp - 0x24]
mov ebx, 0xf9060301
sub ebx, 0x5d3461e2
mov dword [ebp - 4], 0xccc52f3c
mov edi, dword [esi]
xor dword [ebp - 0xc], edx
xor edi, ebx
xor dword [ebp - 4], 0x72f1ee33
mov dword [edx], edi
add dword [ebp - 0x18], 0x43959cd5
add edx, 0xa4988122
sub edx, 0xa498811e
add esi, 0xe5f820cc
add esi, 0x1a07df38
loop 0x1001ed37
add eax, 0x130f7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xf5f70ba
sub ecx, 0xff5f70ba
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4000de23
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x41c], 0
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x424], eax
cmp dword [edi + 0xc], 0
jne 0x4000dee6
mov ecx, eax
lea esi, [ebp - 0x414]
xor eax, eax
movzx edx, word [ecx]
mov dword [ebp - 0x420], 0x5c
cmp word [ebp - 0x420], dx
je 0x4000de90
and dword [ebp - 0x420], 0
mov word [esi], dx
add esi, 2
cmp word [ebp - 0x420], dx
je 0x4000de9b
add ecx, 2
inc eax
cmp eax, 0x104
jl 0x4000de64
xor eax, eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
push 0x400025bc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.400078cb
add esp, 0x10
test eax, eax
js 0x4000dedc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0xc], eax
cmp dword [edi + 0xc], 0
je 0x4000dfec
push 0
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4000defd
xor ebx, ebx
inc ebx
jmp 0x4000df9a
mov eax, dword [ebx]
push 0x20
push 2
push ebx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x400282b0]
call esi
push ecx
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x20c]
call fcn.40017924
mov esi, dword [ebx]
lea eax, [ebp - 0x20c]
push 0
push eax
push 2
mov ecx, dword [esi + 0x14]
push ebx
call dword [0x400282b0]
call dword [esi + 0x14]
jmp 0x4000df51
push 0x5dc
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4000df5e
mov ecx, ebx
call fcn.4001701e
test eax, eax
je 0x4000df3f
jmp 0x4000df68
mov dword [ebp - 0x41c], 1
mov esi, dword [ebx]
push 0
push 0x400025e4
push 2
mov ecx, dword [esi + 0x14]
push ebx
call dword [0x400282b0]
call dword [esi + 0x14]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x400282b0]
call esi
mov ebx, dword [ebp - 0x41c]
test ebx, ebx
je 0x4000dff2
mov ecx, dword [edi]
mov eax, dword [ecx]
mov esi, dword [eax]
lea eax, [edi + 4]
push eax
push 0x400025d4
push ecx
mov ecx, esi
call dword [0x400282b0]
call esi
test eax, eax
js 0x4000dff2
mov edx, dword [edi + 4]
mov byte [ebp - 0x415], 0
push 1
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
lea eax, [ebp - 0x415]
push eax
push dword [edi + 8]
mov ecx, esi
push edx
call dword [0x400282b0]
call esi
test eax, eax
jns 0x4000dff2
lea ecx, [edi + 4]
call fcn.4000787b
jmp 0x4000dff2
mov ebx, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40021790
leave
ret 8