joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005f0a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086678
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x100c3578
call fcn.10071035
mov eax, dword [esi]
test eax, eax
je 0x1005f0ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.1006c210
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1005f116
add eax, 8
jmp 0x1005f118
xor eax, eax
cmp dword [edi + 0x10], 0
je 0x1005f128
cmp dword [edi + 0x14], 8
jb 0x1005f12a
mov edi, dword [edi]
jmp 0x1005f12a
xor edi, edi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x1005f14b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1005f14b
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1006c3d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
Function at 0x1005f180
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100866a8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x100c3578
call fcn.10071035
mov eax, dword [esi]
test eax, eax
je 0x1005f1cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.1006c2f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1005f1f7
lea ebx, [eax + 8]
jmp 0x1005f1f9
xor ebx, ebx
cmp dword [edi + 0x10], 0
je 0x1005f20b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1005f20d
mov eax, dword [edi]
jmp 0x1005f20d
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
test eax, eax
jne 0x1005f256
call ecx
cmp eax, 5
jne 0x1005f250
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x10], 0
je 0x1005f242
cmp dword [edi + 0x14], 8
jb 0x1005f244
mov edi, dword [edi]
jmp 0x1005f244
xor edi, edi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi]
test eax, eax
je 0x1005f274
call ecx
cmp eax, 0xb7
jne 0x1005f269
mov byte [esi + 5], 1
mov ecx, dword [esi]
call fcn.10067600
mov eax, dword [esi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1006c3d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4

Function at 0x10063760
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x100bd024]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x20]
mov ecx, 0x100c3578
call fcn.10071035
mov esi, dword [esp + 0x24]
xor ebx, ebx
cmp dword [ebp + 0x10], 0xffffffff
je 0x100637e2
mov ecx, 0x100000
nop dword [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x100637e2
test ecx, ecx
je 0x100637de
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x100637a0
xor eax, eax
jmp 0x100637e7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x100637f1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1006efdc
add esp, 0xc
ret 0xc
Function at 0x10064e10
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x100c3578
push edi
call fcn.10071035
mov ecx, dword [esi]
test ecx, ecx
je 0x10064e56
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10064e56
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x10064e56
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10064e56
cmp edi, dword [esi]
jne 0x10064e56
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x10064ed0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100bd024]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov ecx, 0x100c3578
push edi
mov edi, dword [esp + 0x14]
call fcn.10071035
mov eax, dword [esi]
test eax, eax
je 0x10064f3f
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10064f3f
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10064f1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10064f3f
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1006efdc
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1006efdc
add esp, 8
ret 4

Function at 0x10065030
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov ecx, 0x100c3578
push edi
call fcn.10071035
cmp dword [esi], 0
je 0x100650ea
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
mov ecx, esi
movlpd qword [esp + 0x28], xmm0
call fcn.10064f60
test al, al
je 0x100650ea
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.10064f60
test al, al
je 0x100650ea
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x100650c0
cmp dword [esp + 0x14], edi
jne 0x100650c0
mov eax, dword [esi]
test eax, eax
jne 0x100650ad
xor bl, bl
jmp 0x100650c0
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100650a9
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.10064f60
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10065130
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008814f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov ecx, 0x100c3578
call fcn.10071035
cmp esi, 0xffffffff
jne 0x10065172
xor al, al
jmp 0x100651e9
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x10065182
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x10065194
mov al, 1
jmp 0x100651e9
lea ecx, [ebp - 0x28]
call fcn.10004900
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.100657b0
test al, al
je 0x100651c8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x100651c8
mov bl, 1
jmp 0x100651ca
xor bl, bl
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret

Function at 0x10065210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100881b6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x100c3578
call fcn.10071035
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10065250
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100652d4
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 4
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.100657b0
test al, al
je 0x100652b7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x10065420
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100882bc
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x100c3578
call fcn.10071035
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10065461
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10065475
mov al, 1
jmp 0x100655af
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1006547f
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.10004850
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10065210
mov ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
cmp ebx, 0xffffffff
jne 0x100654c8
xor al, al
jmp 0x100655af
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100654d2
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.10004850
mov dword [ebp - 4], 5
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10065130
mov bl, al
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x100654c1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1006551c
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x1006546e
lea ecx, [ebp - 0x28]
call fcn.10004900
mov dword [ebp - 4], 0xa
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100657b0
test al, al
je 0x1006555a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x1006555a
mov bl, 1
jmp 0x10065590
cmp dword [esi + 0x14], 8
jb 0x10065562
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x48]
call fcn.10004850
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x30]
call fcn.10065130
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x48]
call fcn.10004d00
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 0xa
xor bl, bl
mov dword [ebp - 4], 0x14
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x10065c30
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x10088475
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x100c3578
mov dword [ebp - 0x10], esi
call fcn.10071035
mov dword [ebp - 4], 0
push 1
call fcn.1006efed
mov dword [esi], eax
push pe_nt_image_headers32
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10065cbd
cmp dword [ebp + 4], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.1006efdc
lea esp, [ebp + 0x120]
pop ebp
ret
Function at 0x1006cf80
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100bd024]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov ecx, 0x100c3578
push edi
mov edi, dword [esp + 0x14]
call fcn.10071035
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1006cff1
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006cfcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1006cff1
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1006efdc
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1006efdc
add esp, 8
ret 4
Function at 0x1006d750
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100899b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov ecx, 0x100c3578
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], ebx
call fcn.10071035
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1006d7a6
mov dword [eax], 0
mov dword [ebx], 0
cmp dword [edi], 0xffffffff
je 0x1006d8fb
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
nop dword [eax]
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x1006d8c6
test eax, eax
je 0x1006d8c6
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x1006d8c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x28], eax
cmp ecx, 0xffffffff
je 0x1006d84b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006d83f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1006d84b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x1006d859
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x28]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.1000da20
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x1006d8c6
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x1006d804
jmp 0x1006d8c9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
add dword [ecx], edx
test eax, eax
jne 0x1006d8f2
test edx, edx
je 0x1006d8ee
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x1006d7c0
mov al, 1
jmp 0x1006d8fd
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1006d8fb
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x8e1278
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e127e
pop ebp
sub ebp, 6
sub ebp, 0x4e1278
jmp 0x8e12dc
inc esi
pop ebp
loopne 0x8e12b4
sbb byte [eax], ch
jg 0x8e12d4
in al, dx
jbe 0x8e127e
leave
mov al, 0x7a
or eax, dword [ecx]
add byte [eax], al
add byte [edx + 0x6b], dh
sub ah, byte [edx + 0x200f4e81]
fist dword [ebp + 0x6a56d85a]
mov ebx, dword [esi + 0x486ebe51]
fisub word [edx]
mov ebp, 0x77e2a302
mov byte [esi - 0x10], bh
shl dword [edi - 0x17], 1
add al, 0
add byte [eax], al
xchg dword [ebx + 0x78b88d3e], edi
adc cl, byte [esi]
mov dword [0x7e8877e2], eax
invalid
jmp 0x8e12e5
mov eax, 0x4e1278
add eax, ebp
add eax, 0x93
mov ecx, 0x623
mov edx, 0x3d1e144d
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e12fc
jmp 0x8e130f
daa
or eax, 0x4d5d4d25
dec ebp
and eax, 0x4d61814d
jle 0x8e12aa
sbb eax, 0x1c71d8b2
or dword [ebp + 0x1d], ecx
mov byte [eax + 0x4d71c4c6], 0x4d
dec ebp
int3
Function at 0x40fb0b
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 0x40fba8
push ebx
push esi
call fcn.0040fad4
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.0040ea3f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40fb55
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40fba7
push edi
push eax
call fcn.0040d03f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40fb75
call fcn.0040b7db
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40fba6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040ea3f
add esp, 0x20
test eax, eax
jne 0x40fb94
push edi
call fcn.0040b7db
jmp 0x40fb9c
push ebx
call fcn.0040b7db
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 0x40fbab
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40fbbc
pop esi
ret
push ebx
push edi
push esi
call fcn.0040fad4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040d03f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40fbe4
push ebx
push esi
push edi
call fcn.00404ee0
add esp, 0xc
push 0
call fcn.0040b7db
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x410330
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040fe57
Function at 0x805e6c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805e72
pop ebp
sub ebp, 6
sub ebp, 0x405e6c
jmp 0x805ed0
jmp 0x805ed9
mov eax, 0x405e6c
add eax, ebp
add eax, 0x93
mov ecx, 0x61f
mov edx, 0xcbbf8e5d
xor byte [eax], dl
inc eax
dec ecx
jne 0x805ef0
jmp 0x805f03
aaa
sbb eax, 0x5d4d5d35
pop ebp
xor eax, 0x5d71915d
fsubr qword [ebp - 0x227d83da]
fsubr qword [ebp - 0x227d83da]
outsb dx, byte [esi]
popfd
or eax, 0x8c5dc8a2
imul ebx, dword [ebp + 0xd], 0xffffffd6
nop
salc
aam 0x61
pop ebp
pop ebp
pop ebp
fcomp qword [ebp + 0x5e5d5d5d]
nop
in eax, 0x5b
pop ebp
pop ebp
pop ebp
out 0x75, eax
pop ebp
pop ebp
pop ebp
stosb byte es:[edi], al
mov edi, 0xdcd6955e
push ecx
pop ebp
pop ebp
pop ebp
pop esi
cwde
or eax, 0x546be735
pop ebp
xor eax, 0x5d6a7aec
pop esp
jno 0x805fd2
xor eax, 0x5d5d5d5d
mov ch, 0x58
pop ebp
pop ebp
pop ebp
mov ah, 0x75
pop ebp
pop ebp
pop ebp
or dh, dl
mov cl, 0xd6
fcom dword [ebp + 0x5d]
pop ebp
pop ebp
salc
enter 0x5d51, 0x5d
pop ebp
salc
ror byte [ebp + 0x5d], 1
pop ebp
pop ebp
pushfd
mov ah, 0x5f
insb byte es:[edi], dx
pop edi
ficomp word [edi - 0x27adeba7]
test eax, 0xa2a2a2
lahf
push ecx
pop ebp
salc
sar dword [ecx + 0x59], 1
pop ebp
pop ebp
pop ebp
xor eax, 0x5d546be7
xor eax, 0x5d6a7aec
pop esp
jno 0x80601d
or al, 0xb5
pop eax
pop ebp
pop ebp
pop ebp
mov ah, 0x6e
pop edi
pop ebp
pop ebp
or byte [ecx], cl
add byte [edx + 0x28a25128], ah
push ebp
mov ch, 0x3b
pop ebp
pop ebp
pop ebp
salc
loopne 0x806015
pop ebp
pop ebp
pop ebp
outsb dx, byte [esi]
xchg esp, eax
outsb dx, byte [esi]
invalid
aad 0x15
pop ebp
pop ebp
pop ebp
cmp edx, esi
inc ecx
frstor dword fs:[esi + 0x47d952b5]
pop ebp
pop ebp
pop ebp
frstor dword [esi + 0x4cd952b4]
pop ebp
pop ebp
pop ebp
cmp ebx, esp
cmpsb byte [esi], byte es:[edi]
mov byte [0x48d95278], al
pop ebp
pop ebp
pop ebp
sbb al, 0xb4
xchg ecx, eax
mov byte [0x1174a2a2], al
pop esp
ficomp word [eax + ebx*2 - 0x4ba64a22]
loopne 0x805fad
mov byte [0x640974a2], al
pop edi
ficomp word [ebx + ebx*2 - 0x21a64822]
mov ch, 0x58
mov ah, 0xf6
mov byte [0x9f00a2a2], al
push ecx
mov bh, 0x59
fidiv word [ebp - 0x5d094ba8]
mov byte [0x519f00a2], al
pop ebp
or dh, dl
mov cl, 0xb
or cl, byte [eax]
salc
sub byte [ecx - 0x2a], dl
and byte [ebp - 0x5f], dl
out dx, eax
fst st(7)
pop ebx
fcomp qword [ebx + 0x5d5d5d5c]
aad 0x5a
fcomp qword [edx + 0x5d5d5d5c]
out 0x5f, al
pop ebp
pop ebp
pop ebp
pop edi
invalid
Function at 0x401521
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
xor esi, esi
mov dword [ebp - 8], eax
mov ebx, edx
test edi, edi
je 0x40157b
push esi
lea ecx, [ebp - 4]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401566
mov eax, dword [ebp - 4]
test eax, eax
je 0x40155f
add ebx, eax
sub edi, eax
mov eax, dword [ebp - 8]
jne 0x40153b
jmp 0x40157b
mov esi, 0x8007001e
jmp 0x40157b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40157b
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x401584
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
xor esi, esi
mov dword [ebp - 8], eax
mov ebx, edx
test edi, edi
je 0x4015de
push esi
lea ecx, [ebp - 4]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4015c9
mov eax, dword [ebp - 4]
test eax, eax
je 0x4015c2
add ebx, eax
sub edi, eax
mov eax, dword [ebp - 8]
jne 0x40159e
jmp 0x4015de
mov esi, 0x8007001d
jmp 0x4015de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4015de
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4