joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008d02e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100970c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1008083b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1008083b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1008d0a5
cmp word [ecx], dx
je 0x1008d0a5
mov eax, dword [0x101026dc]
push edi
dec eax
push eax
push 0x101025c8
call fcn.1008cfcd
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1008d118
cmp word [eax], dx
je 0x1008d118
mov eax, dword [edi]
test eax, eax
je 0x1008d0c9
cmp word [eax], dx
je 0x1008d0c9
lea eax, [ebp - 0x10]
push eax
call fcn.1008c9b0
jmp 0x1008d0d2
lea eax, [ebp - 0x10]
push eax
call fcn.1008ca4b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1008d142
mov eax, dword [0x101025c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x101022b8
call fcn.1008cfcd
add esp, 0xc
test al, al
je 0x1008d142
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1008d10d
cmp word [eax], di
je 0x1008d10d
lea eax, [ebp - 0x10]
push eax
call fcn.1008c9b0
pop ecx
jmp 0x1008d144
lea eax, [ebp - 0x10]
push eax
call fcn.1008ca4b
jmp 0x1008d10a
mov eax, dword [edi]
test eax, eax
je 0x1008d12f
cmp word [eax], dx
je 0x1008d12f
lea eax, [ebp - 0x10]
push eax
call fcn.1008c965
pop ecx
jmp 0x1008d142
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1008d20d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1008ce52
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1008d20d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1008d20d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1008d20d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1008d19a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10085af1
test ebx, ebx
je 0x1008d208
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10085af1
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1008d20d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1008d20d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1009120f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1008d20f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100752ca
leave
ret
Function at 0x10091da1
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.10091d1d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10091f10
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10091f10
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10091ec5
jg 0x10091dfd
test eax, eax
je 0x10091ebb
push 1
push 0x1000
call fcn.100823e0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10091e20
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10091eb2
push 0x8000
push ebx
call fcn.10091c4e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10091e49
jg 0x10091e44
cmp ecx, 0x1000
jb 0x10091e49
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10082e46
add esp, 0x10
cmp eax, 0xffffffff
je 0x10091e8e
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 0x10091e44
jl 0x10091e75
test ecx, ecx
jne 0x10091e36
push dword [ebp - 0xc]
push ebx
call fcn.10091c4e
push esi
call fcn.10083062
add esp, 0xc
xor ebx, ebx
jmp 0x10091f1e
cmp byte [edi + 0x24], 0
je 0x10091ea5
cmp dword [edi + 0x20], 5
jne 0x10091ea5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10091eb0
mov ebx, dword [edi + 0x18]
jmp 0x10091eb2
xor ebx, ebx
push esi
call fcn.10083062
pop ecx
jmp 0x10091f1e
test ecx, ecx
jg 0x10091e87
jl 0x10091ec5
test eax, eax
jae 0x10091e87
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100878fc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10091ee5
cmp byte [edi + 0x1c], 0
je 0x10091e87
jmp 0x10091f16
push ebx
call fcn.1008adf7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10091e87
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 0x10091f1e
cmp byte [edi + 0x1c], 0
je 0x10091f1b
mov ebx, dword [edi + 0x18]
jmp 0x10091f1e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100878fc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100934d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100934fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100934fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10007b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x18], 8
push esi
push edi
mov edi, 1
jb 0x10007b16
mov eax, dword [eax + 4]
jmp 0x10007b19
add eax, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007b5d
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007b56
cmp dword [ebp - 4], ebx
jne 0x10007b56
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000b690
Capabilities:
Create thread

Disassembly:
cmp dword [ecx - 4], 0
push esi
lea esi, [ecx - 8]
jne 0x1000b6b1
push 0
push 0
push esi
push 0x1000b1a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov al, 1
pop esi
ret
Function at 0x1000fd00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x1007a200]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x68]
mov esi, ecx
mov ecx, dword [esi]
push edx
push 0x1006dd38
mov dword [ebp - 0x6c], eax
mov eax, dword [ecx + 0xc]
push esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call eax
mov edi, dword [ebp - 0x68]
test edi, edi
je 0x1000fd94
mov eax, edi
lea edx, [eax + 2]
jmp 0x1000fd70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000fd70
sub eax, edx
sar eax, 1
add eax, eax
push edi
lea ecx, [ebp - 0x64]
call fcn.10021470
add esp, 4
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
lea edx, [ebp - 0x68]
push edx
push str.TaskName
push esi
call eax
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x1000fdd5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000fdb1
sub eax, edx
sar eax, 1
add eax, eax
push esi
lea ecx, [ebp - 0x64]
call fcn.10021470
add esp, 4
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x6c]
lea esi, [ebp - 0x64]
call fcn.10021540
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.1004738d
mov esp, ebp
pop ebp
ret 4
Function at 0x10010c10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006659c
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x1007a200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x10010c42
lea eax, [edi + 4]
jmp 0x10010c44
xor eax, eax
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
add eax, 0xc
push ebx
mov word [ecx + 4], dx
call fcn.100024e0
mov dword [ebp - 4], ebx
mov dword [esi], vtable._DataBody102.0
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x34]
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0x34]
push ebx
mov word [ecx + 4], dx
call fcn.100024e0
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0x50]
push ebx
mov word [ecx + 4], dx
call fcn.100024e0
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 2
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0x6c]
push ebx
mov word [ecx + 4], dx
call fcn.100024e0
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 3
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0x88]
push ebx
mov word [ecx + 4], dx
call fcn.100024e0
mov eax, dword [edi + 0xa4]
mov dword [esi + 0xa4], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10011a70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067808
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xffffffffffffffff
lea esi, [edi + 0x9c]
push 0
lea eax, [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.100024e0
mov edi, dword [edi + 0xb0]
test edi, edi
je 0x10011aec
dec edi
cmp edi, dword [esi + 0x14]
jbe 0x10011ac6
call fcn.10048865
cmp dword [esi + 0x18], 8
jb 0x10011ad1
mov eax, dword [esi + 4]
jmp 0x10011ad4
lea eax, [esi + 4]
cmp word [eax + edi*2], 0x5c
je 0x10011aec
push 0x1006d824
mov eax, 1
mov edx, esi
call fcn.100095e0
cmp dword [esi + 0x18], 8
jb 0x10011af7
mov esi, dword [esi + 4]
jmp 0x10011afa
add esi, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp + 0x20], 8
jb 0x10011b15
mov eax, dword [ebp + 0xc]
push eax
call fcn.10047382
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10017c70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10017ca3
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x14]
push ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [ebp - 0x14]
inc ebx
push ebx
call fcn.10048f20
mov esi, eax
add esp, 4
test esi, esi
jne 0x10017cd9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x14]
push 0
lea edx, [ebp - 8]
push edx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x10017d0a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.10048cb3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0
mov byte [esi + ecx], 0
push edx
mov edx, ebx
mov ecx, esi
call fcn.10017d40
push esi
mov edi, eax
call fcn.10048cb3
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10018170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069040
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1007a200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x5c], vtable.CXMLStringPool.0
call fcn.10015230
push 0x1007d140
xor edi, edi
push 0x10044
mov dword [ebp - 4], edi
call fcn.100489ac
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x10018226
lea esi, [ebx + 0x30]
lea ecx, [esi + 0xc]
mov eax, ecx
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x20], edi
neg eax
lea edx, [esi + 0x1000c]
and eax, 3
mov dword [edx], edi
add eax, ecx
mov dword [esi + 0x10010], edi
mov edi, dword [ebp - 0x34]
mov dword [esi], ecx
mov dword [esi + 8], edx
lea edx, [ebp - 0x5c]
mov ecx, ebx
mov dword [esi + 4], eax
call fcn.10018020
test eax, eax
je 0x10018238
call fcn.100185d0
push ebx
call fcn.10047382
add esp, 4
lea eax, [ebp - 0x5c]
call fcn.10017530
mov eax, 1
jmp 0x10018317
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x34]
push ecx
xor ecx, ecx
mov eax, ebx
mov byte [ebp - 4], 1
call fcn.10018d10
add esp, 0xc
call fcn.100185d0
push ebx
call fcn.10047382
mov edx, dword [ebp - 0x38]
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100182c5
cmp dword [ebp - 0x18], 0x10
jb 0x100182a8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10047382
add esp, 4
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10017530
mov eax, 1
jmp 0x10018317
mov eax, dword [ebp - 0x2c]
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jae 0x100182d5
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x3c]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
jb 0x100182ff
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10047382
add esp, 4
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10017530
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004738d
mov esp, ebp
pop ebp
ret 4
Function at 0x1001c0b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x1001c0ec
mov dword [esi + 0xc], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
test eax, eax
jg 0x1001c119
jl 0x1001c1e5
cmp ecx, 0x100
jb 0x1001c1e5
push pe_nt_image_headers32
call fcn.10048f20
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x1001c1e5
xor ecx, ecx
push ecx
lea edx, [ebp - 0x10]
push edx
xor eax, eax
push ecx
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xc]
push eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1001c1e5
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
push 0
lea ecx, [ebp - 4]
push ecx
push pe_nt_image_headers32
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001c1e5
mov ebx, dword [esi + 0x14]
mov eax, dword [ebx + 0xc]
lea edi, [eax + eax*8]
mov eax, dword [ebx + 8]
add edi, edi
add edi, edi
add edi, edi
xor ecx, ecx
add eax, edi
cmp ecx, dword [esi + 0x1c]
jl 0x1001c193
jg 0x1001c1e5
cmp eax, dword [esi + 0x18]
ja 0x1001c1e5
push edi
call fcn.10048f20
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x1001c1e5
mov ebx, dword [ebx + 8]
mov edx, dword [esi + 0xc]
xor eax, eax
push eax
lea ecx, [ebp - 0x10]
push ecx
push eax
push ebx
push edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1001c1e5
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push 0
lea eax, [ebp - 4]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001c1e5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1001c200
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001e370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x1001e413
cmp dword [ebp + 0x10], eax
jl 0x1001e413
cmp eax, 2
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, eax
movzx edx, ax
jl 0x1001e3c3
mov edx, esi
movzx edi, word [edx + eax - 2]
mov esi, eax
and esi, 0xff
mov si, word [ebx + esi*2]
xor si, di
lea edx, [edi + eax]
mov word [eax + ecx - 2], si
mov esi, dword [ebp + 0xc]
movzx edx, dx
lea edi, [eax - 2]
cmp edi, 1
jle 0x1001e3fe
lea ebx, [edi - 2]
shr ebx, 1
inc ebx
mov dword [ebp - 4], ebx
neg ebx
lea edi, [edi + ebx*2]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], edi
lea esp, [esp]
movzx edi, dl
mov di, word [ebx + edi*2]
xor di, word [esi]
add ecx, 2
mov word [ecx - 2], di
inc edx
add esi, 2
sub dword [ebp - 4], 1
jne 0x1001e3e0
mov edi, dword [ebp - 8]
test edi, edi
jle 0x1001e40c
movzx edx, dl
mov dl, byte [ebx + edx*2]
xor dl, byte [esi]
mov byte [ecx], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x1001e420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x1001e4b6
cmp dword [ebp + 0x10], eax
jl 0x1001e4b6
cmp eax, 2
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, eax
movzx edx, ax
jl 0x1001e46a
mov edx, eax
and edx, 0xff
movzx edx, word [ebx + edx*2]
xor dx, word [esi + eax - 2]
lea edi, [eax - 2]
mov word [eax + ecx - 2], dx
add edx, eax
movzx edx, dx
cmp edi, 1
jle 0x1001e4a1
lea ebx, [edi - 2]
shr ebx, 1
inc ebx
mov dword [ebp - 4], ebx
neg ebx
lea edi, [edi + ebx*2]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], edi
movzx edi, dl
mov di, word [ebx + edi*2]
xor di, word [esi]
add ecx, 2
mov word [ecx - 2], di
inc edx
add esi, 2
sub dword [ebp - 4], 1
jne 0x1001e483
mov edi, dword [ebp - 8]
test edi, edi
jle 0x1001e4af
movzx edx, dl
mov dl, byte [ebx + edx*2]
xor dl, byte [esi]
mov byte [ecx], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x1001eea0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1007a200]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.10049f60
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jne 0x1001ef05
cmp dword [ebp - 0x110], 2
jb 0x1001ef05
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004738d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.1004738d
mov esp, ebp
pop ebp
ret
Function at 0x100204d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006764b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x1007a200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x208
mov esi, ecx
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.10049f60
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], dx
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], edx
call fcn.1001ea70
cmp dword [ebp - 0x224], 0
mov ebx, 8
je 0x1002060e
push str.EVPConfig.ini
lea eax, [ebx + 5]
lea edx, [ebp - 0x238]
call fcn.100095e0
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x10020581
lea eax, [ebp - 0x234]
push 0
push 0x80
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1002060e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x100205b7
lea eax, [ebp - 0x234]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push str.0.7.0.0
push str.Version
push str.COMMON
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100205e2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
call fcn.10002d50
cmp dword [ebp - 0x220], ebx
jb 0x10020631
mov ecx, dword [ebp - 0x234]
push ecx
jmp 0x10020629
push 7
mov eax, str.0.7.0.0
call fcn.10002d50
cmp dword [ebp - 0x220], ebx
jb 0x10020631
mov edx, dword [ebp - 0x234]
push edx
call fcn.10047382
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004738d
mov esp, ebp
pop ebp
ret