joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100095d0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 0xbb8
push 2
push 0
push 0x40000000
mov edi, edx
mov esi, ecx
call fcn.100088e0
test eax, eax
je 0x1000966c
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000961a
push eax
call edi
mov eax, dword [esi + 0x2c]
and eax, 0xfffffffb
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], eax
jmp 0x1000961d
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10009635
push ecx
call edi
and dword [esi + 0x2c], 0xfffffff7
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x18], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1000964d
push ecx
call edi
and dword [esi + 0x2c], 0xffffffef
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10009665
push ecx
call edi
and dword [esi + 0x2c], 0xfffffffe
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x10], 0
test al, 0x40
jmp 0x10009773
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
or dword [esi + 0x2c], 8
push 0
push ecx
push dword [esi + 8]
mov dword [esi + 0x18], eax
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x18]
push ecx
test eax, eax
je 0x100096f8
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov ecx, dword [esi + 0x2c]
mov eax, dword [ebp - 8]
and ecx, 0xfffffff7
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], ecx
cmp eax, dword [esi + 8]
jne 0x10009710
add esi, 0x34
je 0x100096ef
test edi, edi
je 0x100096ef
xor ecx, ecx
cmp word [edi], cx
je 0x100096ea
sub edi, esi
nop dword [eax + eax]
cmp ecx, 0x3ff
jae 0x100096ea
mov ax, word [edi + esi]
inc ecx
mov word [esi], ax
add esi, 2
cmp word [edi + esi], 0
jne 0x100096d0
xor eax, eax
mov word [esi], ax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov ecx, dword [esi + 0x2c]
and ecx, 0xfffffff7
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], ecx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10009728
push eax
call ebx
and dword [esi + 0x2c], 0xfffffffb
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10009740
push eax
call ebx
and dword [esi + 0x2c], 0xfffffff7
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10009758
push eax
call ebx
and dword [esi + 0x2c], 0xffffffef
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10009770
push eax
call ebx
and dword [esi + 0x2c], 0xfffffffe
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x10], 0
test cl, 0x40
je 0x10009799
push 0x10468ce0
push 0x10468d00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10009795
push dword [esi + 0x28]
call eax
and dword [esi + 0x2c], 0xffffffbf
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100097b0
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x34
lea eax, [ebp - 0x838]
mov ebx, ecx
push 0
push eax
call fcn.10425c00
push 0x800
xor edi, edi
lea eax, [ebp - 0x804]
xorps xmm0, xmm0
xor esi, esi
push edi
push eax
movq qword [ebp - 0x848], xmm0
mov dword [ebp - 0x840], esi
call fcn.10425c00
push ebx
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.10434250
lea eax, [ebp - 0x804]
push 0x5c
push eax
call fcn.10425266
add esp, 0x2c
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000985a
and eax, 0x410
cmp eax, 0x10
je 0x1000985a
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov ecx, 8
cmove edi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100098d8
test eax, 0x400
jne 0x100098ad
push 0
push 0x210400
push 3
lea eax, [ebp - 0x848]
push eax
push 0
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100098df
lea eax, [ebp - 0x838]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x100098d8
cmp dword [ebp - 0x810], 1
jbe 0x100098d8
push 1
lea eax, [ebp - 0x839]
mov byte [ebp - 0x839], 1
push eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
je 0x100098ce
xor edi, edi
jmp 0x100098d3
mov edi, 8
cmp esi, 0xffffffff
je 0x100098df
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret

Function at 0x10009900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
test byte [esi + 0x2c], 0x20
jne 0x1000992c
call fcn.10008e00
test eax, eax
jne 0x100099e1
push 0x10468f30
lea eax, [esi + 0x34]
push eax
push 0x10468ef0
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.100086c0
add esp, 0x14
lea ecx, [ebp - 0x808]
call fcn.100097b0
test eax, eax
jne 0x10009985
lea eax, [ebp - 0x80c]
push eax
push 0
push 4
push 3
push 0xc0000000
lea edx, [ebp - 0x808]
call fcn.100088e0
test eax, eax
je 0x1000999a
mov ecx, esi
call fcn.10009c70
mov eax, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x80c]
lea ecx, [ebp - 0x810]
or dword [esi + 0x2c], 0x10
push 0
push ecx
push 1
push edi
push eax
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100099dc
mov eax, dword [ebp - 0x810]
dec eax
neg eax
sbb eax, eax
and eax, 0xf
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
mov eax, 0xf
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1045066c
mov esp, ebp
pop ebp
ret
Function at 0x10009ad0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 0xbb8
push 3
push 1
push 0x80000000
mov edi, edx
mov esi, ecx
call fcn.100088e0
test eax, eax
je 0x10009b21
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10009be8
push eax
call edi
mov eax, dword [esi + 0x2c]
and eax, 0xfffffffb
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], eax
jmp 0x10009beb
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
or dword [esi + 0x2c], 8
push ecx
push eax
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10009af8
cmp dword [ebp - 0xc], 0
jne 0x10009af8
mov eax, dword [ebp - 0x10]
push 0
push 0
push 0
push 2
push 0
push dword [esi + 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea ebx, [esi + 0x1c]
test eax, eax
je 0x10009b7e
or dword [esi + 0x2c], 4
push 0
push dword [ebp - 4]
mov dword [ebx], eax
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
test eax, eax
jne 0x10009b9e
mov eax, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10009be8
push eax
call edi
mov eax, dword [esi + 0x2c]
and eax, 0xfffffffb
mov dword [ebx], 0
mov dword [esi + 0x2c], eax
jmp 0x10009beb
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [esi]
mov dword [esi + 0xc], eax
add esi, 0x34
je 0x10009bdf
test edi, edi
je 0x10009bdf
xor ecx, ecx
cmp word [edi], cx
je 0x10009bda
sub edi, esi
nop
cmp ecx, 0x3ff
jae 0x10009bda
mov ax, word [edi + esi]
inc ecx
mov word [esi], ax
add esi, 2
cmp word [edi + esi], 0
jne 0x10009bc0
xor eax, eax
mov word [esi], ax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10009c03
push ecx
call edi
and dword [esi + 0x2c], 0xfffffff7
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x18], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10009c1b
push ecx
call edi
and dword [esi + 0x2c], 0xffffffef
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10009c33
push ecx
call edi
and dword [esi + 0x2c], 0xfffffffe
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x10], 0
test al, 0x40
je 0x10009c5b
push 0x10468ce0
push 0x10468d00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10009c57
push dword [esi + 0x28]
call eax
and dword [esi + 0x2c], 0xffffffbf
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009d00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
mov dword [ebp - 4], ecx
mov word [ecx + 0x7fe], ax
mov edx, ecx
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov dword [eax], ebx
xor esi, esi
mov eax, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [eax], ebx
mov eax, ecx
cmp word [eax], bx
je 0x10009d56
cmp esi, 0x400
jae 0x10009d54
movzx edi, word [ecx]
lea eax, [edi - 0x41]
cmp ax, 0x19
ja 0x10009d4b
lea eax, [edi + 0x20]
mov word [ecx], ax
add ecx, 2
inc esi
cmp word [ecx], bx
jne 0x10009d31
xor edi, edi
mov esi, edx
movzx eax, word [esi]
test ax, ax
je 0x10009d92
mov edi, dword [ebp + 0x10]
mov ecx, eax
mov esi, 0x2f
nop word [eax + eax]
cmp cx, 0x5c
jne 0x10009d7f
mov word [edx], si
mov dword [edi], 1
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x10009d70
mov esi, dword [ebp - 4]
xor edi, edi
movzx eax, word [esi]
mov ecx, esi
test ax, ax
je 0x10009dd5
mov esi, dword [ebp + 8]
mov edx, eax
cmp dx, 0x22
jne 0x10009db6
xor ebx, 1
lea eax, [ecx + 2]
test edi, edi
cmovne eax, edi
mov edi, eax
jmp 0x10009dc4
cmp dx, 0x20
jne 0x10009dc4
test ebx, ebx
jne 0x10009dc4
test esi, esi
jne 0x10009dd2
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x10009da1
mov dword [ebp - 8], edi
mov esi, dword [ebp - 8]
test esi, esi
cmove edi, dword [ebp - 4]
cmp ecx, edi
jbe 0x10009dfb
movzx edx, word [ecx]
cmp edx, 0x22
je 0x10009df4
cmp edx, 0x20
je 0x10009df4
test dx, dx
jne 0x10009e09
sub ecx, 2
cmp ecx, edi
ja 0x10009de2
xor eax, eax
mov word [edi], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [edi + 6]
cmp ecx, eax
jb 0x10009e2e
cmp word [ecx - 6], 0x2e
jne 0x10009e2e
cmp word [ecx - 4], 0x65
jne 0x10009e2e
cmp word [ecx - 2], 0x78
jne 0x10009e2e
cmp edx, 0x65
je 0x10009edd
mov eax, dword [ebp - 4]
lea ebx, [ecx + 0xa]
add eax, 0x800
cmp ebx, eax
jae 0x10009edd
test esi, esi
jne 0x10009e84
mov esi, ecx
cmp dx, 0x2e
je 0x10009eae
cmp dx, 0x22
je 0x10009e84
mov ebx, dword [ebp + 0x10]
xor eax, eax
cmp dx, 0x5c
sete al
or dword [ebx], eax
mov eax, 0x4c5c
lea ebx, [ecx + 0xa]
cmp dx, ax
jne 0x10009e76
mov eax, 0x2f
mov word [esi], ax
movzx eax, word [esi + 2]
add esi, 2
mov edx, eax
test ax, ax
jne 0x10009e47
mov eax, dword [ebp - 4]
test byte [eax + 0x80c], 2
je 0x10009eec
xor eax, eax
mov dword [ecx + 2], 0x65002e
mov word [ebx], ax
mov eax, edi
pop edi
pop esi
mov dword [ecx + 6], 0x650078
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp word [esi + 2], 0x65
jne 0x10009e84
cmp word [esi + 4], 0x78
jne 0x10009e84
cmp word [esi + 6], 0x65
jne 0x10009e84
xor eax, eax
mov word [esi + 8], ax
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [ecx + 2], ax
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000a540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [ebp + 8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push edi
mov esi, edx
mov edi, ecx
je 0x1000a581
push 0
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
call ebx
test eax, eax
je 0x1000a607
cmp dword [ebp + 8], 2
jne 0x1000a607
test byte [edi + 0x80c], 0x40
mov eax, 0
push 0
setne al
inc eax
movzx eax, ax
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
call ebx
test eax, eax
je 0x1000a607
cmp dword [ebp + 8], 2
jne 0x1000a607
movzx eax, word [edi + 0x800]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
call ebx
test eax, eax
je 0x1000a607
cmp dword [ebp + 8], 2
jne 0x1000a607
push 0
lea eax, [ebp + 8]
push eax
push dword [edi + 0x800]
push dword [edi + 0x804]
push esi
call ebx
test eax, eax
je 0x1000a607
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0x800]
jne 0x1000a607
mov edx, esi
call fcn.1000a4f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x80c]
push esi
push edi
push 0
push eax
push 2
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], ecx
mov edi, edx
push eax
push edi
call ebx
test eax, eax
je 0x1000a7d4
cmp dword [ebp - 0x80c], 2
jne 0x1000a7d4
cmp word [ebp - 0x810], 1
je 0x1000a68e
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1000a786
push 0
lea eax, [ebp - 0x80c]
push eax
push 4
lea eax, [ebp - 0x810]
push eax
push edi
call ebx
mov ecx, dword [ebp - 0x80c]
test ecx, ecx
je 0x1000a786
test eax, eax
je 0x1000a7d4
cmp ecx, 4
jne 0x1000a7d4
mov cx, word [ebp - 0x80e]
test cl, 1
jne 0x1000a7be
mov ax, cx
shr ax, 1
movzx esi, ax
mov eax, 0x400
cmp si, ax
ja 0x1000a7be
cmp esi, 1
jbe 0x1000a7be
push 0
lea eax, [ebp - 0x80c]
push eax
movzx eax, cx
push eax
lea eax, [ebp - 0x808]
push eax
push edi
call ebx
test eax, eax
je 0x1000a7d4
movzx eax, word [ebp - 0x80e]
cmp dword [ebp - 0x80c], eax
jne 0x1000a7d4
cmp word [ebp + esi*2 - 0x80a], 0
jne 0x1000a7d4
lea eax, [ebp - 0x808]
push eax
mov eax, dword [ebp - 0x814]
push dword [eax + 0x804]
call fcn.1043414f
add esp, 8
test eax, eax
je 0x1000a7a6
push 0
lea eax, [ebp - 0x80c]
push eax
push 8
lea eax, [ebp - 0x808]
push eax
push edi
call ebx
test eax, eax
je 0x1000a7d4
cmp dword [ebp - 0x80c], 8
jne 0x1000a7d4
cmp eax, 1
je 0x1000a697
mov ecx, dword [ebp - 0x814]
mov edx, edi
push 0
call fcn.1000a540
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
mov edx, edi
call fcn.1000a4f0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret
Function at 0x1000a8d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x11d21ff8], 0
je 0x1000a8e5
mov eax, 0x10
pop ebp
ret 4
push esi
mov esi, dword [ebp + 8]
mov dword [0x11d21ff8], 1
test byte [esi + 0x818], 1
jne 0x1000a912
mov ecx, esi
call fcn.10009f00
test eax, eax
jne 0x1000a98f
or dword [esi + 0x818], 1
mov ecx, dword [esi + 0x804]
mov esi, dword [esi + 0x800]
shr esi, 1
dec esi
lea esi, [ecx + esi*2]
cmp esi, ecx
jb 0x1000a935
cmp word [esi], 0x2f
je 0x1000a935
sub esi, 2
cmp esi, ecx
jae 0x1000a928
push edi
add esi, 2
xor edi, edi
nop dword [eax + eax]
push dword [edi + 0x10f24ef0]
push esi
call fcn.1043414f
add esp, 8
test eax, eax
je 0x1000a98c
add edi, 4
cmp edi, 0x20
jb 0x1000a940
lea eax, [ebp + 8]
push eax
push fcn.1000a8d0
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
push 0
push 0
push 0
push 0x1000a7f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000a994
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
pop edi
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x1000a9a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc50
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x408]
push 0x104
push eax
push 0x10469120
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1000aa89
push 0
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x808]
push 0x10469130
push eax
call fcn.100086a0
push 1
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0xc08]
push 0x10469130
push eax
call fcn.100086a0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
lea eax, [ebp - 0xc2c]
add esp, 0x20
push eax
push 0
lea eax, [ebp - 0x808]
push eax
call edi
test eax, eax
je 0x1000aa89
lea eax, [ebp - 0xc50]
push eax
push 0
lea eax, [ebp - 0xc08]
push eax
call edi
test eax, eax
je 0x1000aa89
mov ecx, dword [ebp - 0xc14]
mov edi, dword [ebp - 0xc38]
mov eax, dword [ebp - 0xc18]
mov edx, dword [ebp - 0xc3c]
cmp ecx, edi
jb 0x1000aa6e
ja 0x1000aa72
cmp eax, edx
jae 0x1000aa72
mov eax, edx
mov ecx, edi
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 8
pop edi
xor ecx, ebp
pop esi
call fcn.1045066c
mov esp, ebp
pop ebp
ret
Function at 0x10011160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edx
xor esi, esi
mov dword [ebp - 0x18], edi
mov ebx, ecx
mov dword [ebp - 4], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], esi
lea edx, [edi + 2]
cmp eax, ebx
je 0x100111cf
mov eax, dword [ebx + 4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
test eax, eax
je 0x100111cf
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10450898
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
je 0x100111ca
mov esi, dword [ebx + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
lea ecx, [esi + esi]
push ecx
push dword [ebx]
push edi
call fcn.10425d60
add esp, 0xc
mov edx, 2
mov eax, 0x104691f0
xor ebx, ebx
cmp ebx, 0xfff
jae 0x100111e8
add eax, 2
inc ebx
cmp word [eax], 0
jne 0x100111d6
test ebx, ebx
je 0x10011264
test esi, esi
jne 0x10011205
push 0x104691f0
lea ecx, [ebp - 0x18]
call fcn.1001b7b0
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
jmp 0x10011267
xor ecx, ecx
lea eax, [ebx + esi]
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10450898
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10011264
lea ecx, [esi*2 - 2]
push ecx
push edi
push eax
call fcn.10425d60
mov ecx, dword [ebp - 0xc]
lea eax, [ebx*2 + 2]
mov ebx, dword [ebp - 4]
mov esi, edi
push eax
dec ebx
mov edi, ecx
push 0x104691f0
lea eax, [ecx + ebx*2]
push eax
call fcn.10425d60
mov ebx, dword [ebp - 0x10]
push esi
call fcn.10450877
add esp, 0x1c
jmp 0x10011267
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x10011327
test ebx, ebx
jne 0x100112d0
lea eax, [ebp - 0x18]
cmp eax, esi
je 0x10011327
test edi, edi
je 0x10011291
push edi
call fcn.10450877
add esp, 4
mov eax, dword [esi + 4]
xor edi, edi
test eax, eax
je 0x10011327
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10450898
mov edi, eax
add esp, 4
test edi, edi
je 0x10011327
mov eax, dword [esi + 4]
add eax, eax
push eax
push dword [esi]
push edi
call fcn.10425d60
add esp, 0xc
jmp 0x10011327
dec eax
xor ecx, ecx
add eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10450898
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10011327
lea ecx, [ebx*2 - 2]
push ecx
push edi
push eax
call fcn.10425d60
mov edx, dword [ebp - 8]
mov esi, edi
mov edi, dword [ebp - 0x10]
mov eax, dword [edx + 4]
add eax, eax
push eax
push dword [edx]
lea eax, [edi - 2]
lea eax, [eax + ebx*2]
push eax
call fcn.10425d60
push esi
call fcn.10450877
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
test edi, edi
je 0x10011341
push edi
call fcn.10450877
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016fa0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov edi, dword [edi + 4]
test edi, edi
je 0x10017097
mov eax, dword [ebp + 8]
mov esi, 0x811c9dc5
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x10016fe3
mov ecx, dword [eax]
mov edx, ebx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
xor eax, esi
imul esi, eax, 0x1000193
sub edx, 1
jne 0x10016fd0
imul eax, esi, 0x2001
mov edx, 1
mov ecx, eax
shr ecx, 7
xor ecx, eax
lea eax, [ecx + ecx*8]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
shl edx, cl
mov ecx, eax
shr ecx, 0x11
dec edx
xor ecx, eax
mov eax, ecx
shl eax, 5
add eax, ecx
and edx, eax
mov edi, dword [edi + edx*4]
test edi, edi
je 0x10017097
mov esi, dword [edi + 4]
cmp esi, ebx
jne 0x1001707d
mov eax, dword [ebp + 8]
add esi, esi
mov edx, dword [edi]
mov eax, dword [eax]
sub esi, 4
jb 0x10017041
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10017046
add edx, 4
add eax, 4
sub esi, 4
jae 0x10017030
cmp esi, 0xfffffffc
je 0x10017077
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x10017073
cmp esi, 0xfffffffd
je 0x10017077
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x10017073
cmp esi, 0xfffffffe
je 0x10017077
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x10017073
cmp esi, 0xffffffff
je 0x10017077
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x10017077
xor al, al
jmp 0x10017079
mov al, 1
test al, al
jne 0x1001708c
mov eax, dword [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x10017097
mov edi, dword [edi + 0x14]
jmp 0x10017018
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
pop edi
add eax, 0xc
pop esi
or eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001dbb0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
test byte [ecx + 0xdb8], 2
push ebx
push esi
lea esi, [ecx + 0xd60]
jne 0x1001dbd6
xor ebx, ebx
test ebx, ebx
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x11d0c5b8]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 4], eax
mov eax, dword [eax + 0x10]
test byte [eax + 0xd299], 0x40
jne 0x1001dc20
cmp dword [eax + 0xd45c], 1
je 0x1001dc20
push ecx
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100aa0e0
mov ebx, eax
test ebx, ebx
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [eax + 0xd82c]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ecx
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100aa0e0
mov ebx, eax
xorps xmm0, xmm0
mov eax, dword [ebp - 4]
movlpd qword [ebp + 8], xmm0
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 0xd82c]
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp + 8]
sub ecx, dword [esi + 8]
mov eax, dword [ebp + 0xc]
sbb eax, dword [esi + 0xc]
add dword [esi], ecx
adc dword [esi + 4], eax
test ebx, ebx
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10034e50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0
push dword [ebp + 8]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10034e7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
movzx ecx, bl
cmp eax, 0xb7
pop ebx
cmovne ecx, edx
mov al, cl
pop ebp
ret 4
mov al, bl
pop ebx
pop ebp
ret 4