joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10125b82
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1019fbfc]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x234
push 8
pop eax
mov ebx, edx
mov edi, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10125d5f
lea eax, [ebp - 0x20]
mov dword [esi + 4], edi
push eax
mov ecx, 0x208
mov dword [esi], 0x666e7469
push ecx
lea edi, [esi + 0xc]
mov dword [esi + 8], ebx
push edi
push 1
push 0
push 0
mov dword [ebp - 0x20], ecx
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDriverDirectoryW]
test eax, eax
je 0x10125d54
push 0x5c
push edi
call sub.msvcrt.dll_wcsrchr
pop ecx
pop ecx
test eax, eax
je 0x10125bf9
xor ecx, ecx
mov word [eax], cx
push 0x1002d1b4
mov edx, 0x104
mov ecx, edi
call fcn.1003fcc9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10125d54
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x10125d54
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x10125d54
push dword [ebp - 0x1c]
mov edx, 0x104
mov ecx, edi
call fcn.1003fcc9
push 0x1002d1c8
mov edx, 0x104
mov ecx, edi
call fcn.1003fcc9
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
xor eax, eax
push eax
push 0x10100000
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x214], eax
cmp eax, 0xffffffff
je 0x10125d54
mov edi, dword [ebp + 8]
mov eax, edi
and dword [esi + 0x220], 0
push 8
pop ecx
mul ecx
mov dword [esi + 0x224], 2
test edx, edx
ja 0x10125d54
jb 0x10125cc2
cmp eax, 0xffffffff
ja 0x10125d54
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x22c], eax
test eax, eax
je 0x10125d54
and dword [esi + 0x230], 0
push 0x30
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x218], eax
test eax, eax
je 0x10125d54
push 0x24
mov eax, edi
pop ecx
mul ecx
test edx, edx
ja 0x10125d54
jb 0x10125d03
cmp eax, 0xffffffff
ja 0x10125d54
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x21c], eax
test eax, eax
je 0x10125d54
mov eax, dword [esi + 0x218]
push 0x30
pop ecx
mov dword [eax], 0x31464655
mov eax, dword [esi + 0x218]
mov dword [eax + 4], 0x10001
mov eax, dword [esi + 0x218]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x218]
mov dword [eax + 0xc], edi
test edi, edi
je 0x10125d5d
mov eax, dword [esi + 0x218]
mov dword [eax + 0x18], ecx
jmp 0x10125d5d
mov ecx, esi
call fcn.101259b9
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101637b0
leave
ret 4
Function at 0x10125d70
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x10125dd5
cmp dword [esi], 0x666e7469
jne 0x10125dd5
test byte [esi + 0x224], 2
je 0x10125dd5
push edi
xor edi, edi
cmp dword [esi + 0x220], edi
je 0x10125dae
push edi
push edi
push edi
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x220], eax
push edi
lea eax, [ebp - 4]
push eax
push 0x30
push dword [esi + 0x218]
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
test eax, eax
je 0x10125dd8
mov eax, dword [ebp - 4]
add dword [esi + 0x220], eax
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x10125ddb
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x10125e7f
cmp dword [esi], 0x666e7469
jne 0x10125e7f
test byte [esi + 0x224], 2
je 0x10125e7f
mov ecx, dword [esi + 0x218]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x10125e7f
cmp dword [esi + 0x220], eax
je 0x10125e33
push 0
push 0
push eax
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x218]
mov dword [esi + 0x220], eax
mov eax, dword [ecx + 0xc]
xor edx, edx
mov ecx, dword [esi + 0x21c]
dec eax
push eax
call fcn.1012675c
mov eax, dword [esi + 0x218]
push 0
or dword [eax + 0x1c], 1
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x218]
imul eax, dword [eax + 0xc], 0x24
push eax
push dword [esi + 0x21c]
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10125e82
mov ecx, dword [ebp - 4]
add dword [esi + 0x220], ecx
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x101265ac
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1019fbfc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov eax, 0x666e7469
test edi, edi
je 0x101265d4
cmp dword [edi], eax
jne 0x101265dc
test esi, esi
je 0x101265e3
cmp dword [esi], eax
je 0x101265e3
xor eax, eax
jmp 0x101266b7
xor eax, eax
mov word [ebp - 0x414], ax
mov word [ebp - 0x20c], ax
push ebx
test esi, esi
je 0x10126611
lea eax, [esi + 0xc]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x20c]
call fcn.1003fc94
mov ebx, dword [esi + 4]
jmp 0x10126613
mov ebx, eax
test edi, edi
je 0x1012662b
lea eax, [edi + 0xc]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x414]
call fcn.1003fc94
mov ecx, edi
call fcn.101259b9
mov ecx, esi
call fcn.101259b9
cmp dword [ebp + 8], 0
je 0x1012669c
xor esi, esi
cmp word [ebp - 0x414], si
je 0x101266c7
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1012669c
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1012666c
sub ecx, edx
sar ecx, 1
test ebx, ebx
je 0x1012669c
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0x10025384
push ebx
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
cmp word [ebp - 0x20c], 0
je 0x101266b3
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101637b0
leave
ret 4
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x101266d0
sub ecx, edx
sar ecx, 1
test ebx, ebx
je 0x101266b3
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0x10025384
push ebx
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
jmp 0x101266b3

Function at 0x10126702
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov esi, ecx
push eax
movzx eax, word [edx + 4]
add eax, dword [edx + 8]
push eax
push edx
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10126759
mov eax, dword [ebp - 4]
add eax, 3
add eax, dword [esi + 0x220]
push 0
and eax, 0xfffffffc
push 0
push eax
push dword [esi + 0x214]
mov dword [esi + 0x220], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x220], eax
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x1012abd3
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
call fcn.1012744c
mov dword [ebp - 8], eax
test eax, eax
je 0x1012ad0b
push esi
push 0x100080
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, 0xffffffff
je 0x1012ac62
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x1012ac53
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1012ac53
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 0x14]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1012ac7c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
mov dword [ebp - 0xc], edi
jmp 0x1012ac68
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
mov ebx, esi
test ebx, ebx
jne 0x1012ac7c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1012ad0b
mov eax, dword [ebp - 4]
cmp eax, 0xdc
jbe 0x1012ace8
cmp eax, dword [ebx]
jb 0x1012ace8
cmp dword [ebx + 8], 0x190073
jne 0x1012ace8
cmp dword [ebx + 4], 0x47504420
jne 0x1012ace8
mov edx, dword [ebp - 8]
mov ecx, ebx
call fcn.1012ae4f
test eax, eax
je 0x1012ace8
push 0x9c
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1012ace8
push 0xb
pop ecx
mov edi, eax
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov dword [eax + 0x38], ecx
mov ecx, eax
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], ebx
call fcn.1012aab6
mov esi, eax
neg esi
sbb esi, esi
and esi, 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x1012acfa
mov eax, dword [ebp - 0x10]
jmp 0x1012ad0d
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, edi
mov ecx, ebx
call fcn.1010a14f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1012f649
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1019fbfc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x2c], edx
call fcn.1012744c
mov edi, eax
test edi, edi
je 0x1012f6e2
push esi
lea eax, [ebp - 0x28]
xor esi, esi
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1012f688
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1012f6da
push ebx
push esi
push 0x8100080
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1012f6d9
push esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1012f6c7
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x30], eax
jne 0x1012f6c7
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x1012f6d9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.101637b0
leave
ret 4
Function at 0x101435bf
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
test edx, edx
je 0x10143671
test ecx, ecx
je 0x10143671
mov esi, dword [ebp + 8]
test esi, esi
je 0x10143671
cmp edx, 3
ja 0x10143671
mov word [esi + 2], 0x3d3d
mov al, byte [ecx]
shr al, 2
push ebx
mov byte [esi], al
mov bl, byte [ecx]
and bl, 3
shl bl, 4
mov byte [esi + 1], bl
cmp edx, 1
je 0x10143636
mov al, byte [ecx + 1]
shr al, 4
or al, bl
mov byte [esi + 1], al
mov bl, byte [ecx + 1]
and bl, 0xf
shl bl, 2
mov byte [esi + 2], bl
cmp edx, 2
je 0x10143636
mov al, byte [ecx + 2]
shr al, 6
or al, bl
mov byte [esi + 2], al
mov al, byte [ecx + 2]
and al, 0x3f
mov byte [esi + 3], al
xor ecx, ecx
pop ebx
mov al, byte [ecx + esi]
cmp al, 0x1a
jae 0x10143644
add al, 0x41
jmp 0x10143665
cmp al, 0x34
jae 0x1014364c
add al, 0x47
jmp 0x10143665
cmp al, 0x3e
jae 0x10143654
sub al, 4
jmp 0x10143665
jne 0x1014365a
mov al, 0x2b
jmp 0x10143665
cmp al, 0x3f
setne al
dec al
and al, 0xf0
add al, 0x3f
mov byte [ecx + esi], al
inc ecx
cmp ecx, edx
jbe 0x10143639
mov eax, edx
jmp 0x10143673
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x1015b435
Capabilities:
Get file size
Identify system language via api
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1015b397
mov dword [ebp - 8], eax
test eax, eax
jne 0x1015b453
xor eax, eax
jmp 0x1015b560
xor esi, esi
push esi
push 0x100080
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x1015b4c3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1015b4b4
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1015b4b4
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x1015b4da
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
jmp 0x1015b4c6
mov ebx, dword [ebp - 0x10]
mov edi, esi
test edi, edi
jne 0x1015b4da
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1015b44c
cmp ebx, 0x258
jbe 0x1015b543
cmp ebx, dword [edi]
jb 0x1015b543
cmp dword [edi + 8], 0x19001e
jne 0x1015b543
cmp dword [edi + 4], 0x50504420
jne 0x1015b543
mov ecx, edi
call fcn.10109c44
test eax, eax
je 0x1015b543
mov ecx, dword [edi + 0x30]
lea eax, [ecx + edi]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0xc], ecx
je 0x1015b543
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 0xc]
movzx eax, ax
cmp dword [ecx + 0xdc], eax
jne 0x1015b543
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1015b543
push ebx
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1015b54b
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.1010a14f
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1015be09
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
push ecx
mov ecx, eax
mov edx, dword [edi + 0x354]
call fcn.1003f931
test eax, eax
js 0x1015bf2c
mov esi, dword [ebp - 4]
lea ebx, [edi + 0x350]
cmp esi, dword [ebx]
jbe 0x1015bf2c
cmp dword [edi + 0x348], 0
jne 0x1015bec0
lea eax, [ebp - 0x28]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
mov ecx, 0x400
mov dword [edi + 0x34c], eax
mul ecx
test edx, edx
ja 0x1015be8b
jb 0x1015be75
cmp eax, 0xffffffff
ja 0x1015be8b
push 4
push 0x2000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1015be9c
push 0
push 0
push 0
push 0xc0000000
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea eax, [esi + 0x34]
mov dword [edi + 0x348], esi
mov dword [edi + 0x35c], eax
lea eax, [esi + 0x174]
mov dword [edi + 0x358], esi
mov esi, dword [ebp - 4]
mov dword [edi + 0x360], eax
mov ecx, dword [edi + 0x34c]
mov eax, ecx
shl eax, 0xa
cmp esi, eax
jbe 0x1015bee6
push 0
push 0
push 0
push 0xc0000000
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, ecx
xor edx, edx
sub eax, dword [ebx]
dec eax
add esi, eax
mov eax, esi
div ecx
mov ecx, dword [ebx]
sub esi, edx
push ebx
mov edx, esi
call fcn.1003f931
test eax, eax
js 0x1015bf1c
push 4
push 0x1000
push dword [ebx]
push dword [edi + 0x348]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1015bf2c
xor eax, eax
push eax
push eax
push eax
push 0xc0000000
call dword [sym.imp.KERNEL32.dll_RaiseException]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1015e872
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
mov ecx, edx
push esi
xor esi, esi
call fcn.1015b397
mov dword [ebp - 8], eax
test eax, eax
je 0x1015e8e4
push edi
push esi
push 0x8100080
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1015e8da
push esi
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x354]
push dword [ebx + 0x348]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1015e8d3
mov eax, dword [ebx + 0x354]
cmp eax, dword [ebp - 4]
jne 0x1015e8d3
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1015eca3
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.1015ea28
test eax, eax
je 0x1015ed52
mov ecx, esi
call fcn.101615fa
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x1015ed52
movzx edx, word [ebx + 0x170]
mov dword [ebx + 8], esi
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 8]
test edi, edi
je 0x1015ed0b
mov esi, eax
movzx eax, byte [esi]
movzx ecx, dx
shr ecx, 8
xor ecx, eax
shl edx, 8
xor dx, word [ecx*2 + 0x1003b0c0]
inc esi
movzx edx, dx
sub edi, 1
jne 0x1015ece9
mov esi, dword [ebp - 0xc]
mov word [ebx + 0x170], dx
jmp 0x1015ed21
cmp edi, eax
jne 0x1015ed1d
inc dword [ebp - 4]
jmp 0x1015ed21
test edi, edi
jne 0x1015ed43
mov ecx, ebx
call fcn.10161742
mov edi, eax
push 0xfffffffffffffffd
pop eax
cmp edi, 0xfffffffc
jne 0x1015ed14
mov ecx, esi
call fcn.10161677
cmp dword [ebp - 4], 0
jle 0x1015ed4e
push 0xfffffffffffffffd
jmp 0x1015ed54
mov ecx, esi
call fcn.10161677
mov eax, edi
jmp 0x1015ed55
xor eax, eax
jmp 0x1015ed55
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1015ed5a
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
xor edi, edi
call fcn.1015e923
mov esi, eax
test esi, esi
je 0x1015ee2e
mov edx, ebx
mov ecx, esi
call fcn.1015eca3
test eax, eax
je 0x1015ed8f
cmp eax, 0xfffffffd
jne 0x1015ee25
mov edx, dword [ebp - 4]
mov ecx, esi
mov dword [esi + 0x14], edi
call fcn.1015e271
test eax, eax
je 0x1015ee25
mov ecx, esi
call fcn.1015eac7
mov ecx, dword [esi + 0x358]
xor edx, edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.1015eba4
mov ecx, dword [esi + 0x35c]
xor edx, edx
inc edx
mov dword [ecx + 0x104], eax
mov ecx, esi
call fcn.1015eba4
mov ecx, dword [esi + 0x35c]
mov dword [ecx + 0x108], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov edx, ebx
mov eax, dword [esi + 0x360]
mov dword [eax + 0xdc], ecx
mov ecx, esi
call fcn.1015e872
push dword [esi + 0x354]
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1015ee25
push dword [esi + 0x354]
push dword [esi + 0x348]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, esi
call fcn.1015e8ea
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101614e7
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, edx
push ebx
push esi
mov dword [ebp - 0xc], eax
mov esi, eax
mov al, byte [eax]
xor ebx, ebx
mov dword [ebp - 8], ebx
push edi
mov edi, ecx
test al, al
je 0x10161517
add ebx, ebx
movzx eax, al
xor ebx, eax
inc esi
mov al, byte [esi]
test al, al
jne 0x10161506
mov dword [ebp - 8], ebx
mov edi, dword [edi + 0xc]
xor ecx, ecx
xor edx, edx
cmp dword [edi], ebx
jne 0x10161564
mov esi, dword [ebp - 0xc]
mov eax, dword [edx + 0x100060b0]
mov bl, byte [eax]
cmp bl, byte [esi]
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 8]
jne 0x1016155b
cmp byte [ebp - 1], 0
je 0x10161557
mov bl, byte [eax + 1]
cmp bl, byte [esi + 1]
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 8]
jne 0x1016155b
add eax, 2
add esi, 2
cmp byte [ebp - 1], 0
jne 0x1016152b
xor eax, eax
jmp 0x10161560
sbb eax, eax
or eax, 1
test eax, eax
je 0x1016157c
add edx, 0xc
inc ecx
add edi, 4
cmp edx, 0x4a4
jb 0x1016151e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], ecx
imul eax, ecx, 0xc
add eax, 0x100060b0
jmp 0x10161575

Function at 0x10164080
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x101640be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x101640b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x101640c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x101640a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10164190
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x101641c1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101641c1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x101641c1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x102c41b7
Capabilities:
Encode data using xor

Disassembly:
call 0x102c4130
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x102c4160
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x102c417c
xor edx, 0
jmp 0x102c4187
xor edx, edx
jmp 0x102c419e
jmp 0x102c41aa
xor eax, eax
push 0x8427d7c0
call 0x102c41b7
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x102c41f3
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x102c41cc
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x102c420a
add eax, 0
jno 0x102c420f
add esi, 0
ret 0x10