joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1096c01
Capabilities:
Get session user name

Disassembly:
push 0x14
mov eax, 0x10c0291
call fcn.01075953
and dword [ebp - 0x14], 0
push 0x1004ea8
lea ecx, [ebp - 0x20]
call fcn.01094301
mov edi, dword [ebp + 0xc]
xor ecx, ecx
push 2
xor esi, esi
pop edx
inc esi
mov eax, edi
mul edx
seto cl
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edi
neg ecx
or ecx, eax
push ecx
call fcn.01075501
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1096c55
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.010942ac
jmp 0x1096c93
lea eax, [ebp - 0x10]
push eax
push ebx
push 3
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1096c77
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1096c80
push ebx
lea ecx, [ebp - 0x20]
call fcn.010944ab
push ebx
call fcn.0109c587
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.010942ac
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0
call fcn.0109449c
mov eax, dword [ebp + 8]
call fcn.01075a01
ret 8

Function at 0x1096e9e
Capabilities:
Check if file exists
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10c671c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp byte [ebp + 8], bl
jne 0x1096ebf
xor al, al
jmp 0x1096f3c
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x24a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0xf
pop ecx
mov esi, 0x1034238
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
push 0x104
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x44]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
pop edi
pop esi
test eax, eax
je 0x1096ebb
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1096ebb
push 1
push ebx
push ebx
lea eax, [ebp - 0x24c]
push eax
push 0x1014d80
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov al, cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0107591b
leave
ret 4

Function at 0x1097335
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
xor eax, eax
inc eax
cmp dword [ebp - 4], eax
jle 0x1097373
mov ecx, dword [esi + eax*4]
movzx ecx, word [ecx]
cmp cx, 0x2f
je 0x109736d
cmp cx, 0x2d
jne 0x109737a
inc eax
cmp eax, dword [ebp - 4]
jl 0x109735b
xor al, al
pop esi
leave
ret 8
cmp dword [ebp + 8], 0
je 0x1097391
push dword [esi + eax*4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
jmp 0x1097375
Function at 0x1097bdd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
push ebx
push esi
mov eax, edx
push edi
mov dword [ebp - 0xc], edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1097bf3
sub eax, esi
sar eax, 1
mov dword [ebp - 4], eax
mov eax, 0x40000000
cmp dword [ebp - 4], eax
jbe 0x1097c11
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jb 0x1097cb6
mov ax, word [edx]
cmp ax, word [0x10c6a54]
jne 0x1097cb6
push 0xa
xor esi, esi
add edx, 2
push esi
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x1097cb6
shr eax, 4
inc eax
push esi
movzx ebx, ax
push ebx
push 6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceExW]
push eax
call edi
test eax, eax
jne 0x1097c7d
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
movzx eax, ax
push eax
push ebx
push 6
push 0
call esi
push eax
call edi
test eax, eax
je 0x1097cb6
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1097cb6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1097cb6
mov ecx, dword [ebp - 0x10]
and ecx, 0xf
jbe 0x1097caa
dec ecx
movzx edx, word [eax]
lea eax, [eax + edx*2 + 2]
jne 0x1097ca0
movzx ecx, word [eax]
add eax, 2
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01075501
mov edi, eax
pop ecx
test edi, edi
je 0x1097d66
add esi, esi
push esi
push dword [ebp - 0xc]
push edi
call sub.msvcrt.dll_memcpy
xor eax, eax
mov word [esi + edi], ax
add esp, 0xc
xor ebx, ebx
mov eax, edi
mov dword [ebp - 8], ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1097cfa
sub eax, ecx
sar eax, 1
jne 0x1097d45
push edi
call fcn.0109c587
mov eax, dword [ebp + 8]
pop ecx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1097d17
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp + 8]
mov dword [ebp - 8], eax
push esi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
jmp 0x1097d63
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push 1
push eax
push ebx
push ebx
push edi
push 0x500
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push edi
call fcn.0109c587
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1097f01
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10c671c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
jne 0x1097f27
xor al, al
jmp 0x109801e
mov dword [0x10d2558], eax
mov eax, dword [ebp + 0xc]
mov dword [0x10d2554], eax
mov al, byte [ebp + 0x10]
mov byte [0x10d2574], al
cmp dword [0x10d256c], edi
jne 0x109801c
push 0x10342dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10d256c], eax
cmp eax, edi
je 0x1097ff4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10342d0
push eax
call esi
push 0x10342bc
push dword [0x10d256c]
mov dword [0x10d255c], eax
call esi
mov dword [0x10d2564], eax
pop esi
cmp dword [0x10d255c], edi
jne 0x1097f93
cmp eax, edi
je 0x1097ff4
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1097ff4
cmp dword [ebp - 0x114], 6
jb 0x1097ff4
cmp dword [ebp - 0x110], edi
jne 0x1097ff4
cmp dword [ebp - 0x108], 2
jne 0x1097ff4
cmp dword [ebp - 0x10c], 0x147c
jae 0x1097ff4
mov eax, dword [0x10d255c]
mov dword [0x10d2560], eax
mov eax, dword [0x10d2564]
mov dword [0x10d255c], edi
mov dword [0x10d2568], eax
mov dword [0x10d2564], edi
call fcn.01097d72
mov byte [0x10d2508], al
mov eax, 0xbb8
push eax
push 0x40
mov dword [0x10d25b8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x10d25b4], eax
mov dword [0x10d250c], edi
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0107591b
leave
ret 0xc
Function at 0x1098747
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x10d2558]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x109876c
xor al, al
jmp 0x1098827
push edi
push esi
push dword [0x10d2558]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x10987c7
push esi
push dword [0x10d2558]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10987c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x10987c7
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, dword [ebp + 0x14]
mov dword [esi], eax
test eax, eax
je 0x10987c7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x10987cb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [esi], 0
xor al, al
jmp 0x1098826
push edi
push dword [ebp + 8]
push eax
call sub.msvcrt.dll_memcpy
and dword [ebp + 0xc], 0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 1
push dword [esi]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, dword [ebp + 0x10]
test eax, eax
jne 0x1098806
push 0
push dword [ebp + 0xc]
call fcn.0108c11b
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [edi]
test eax, eax
je 0x1098824
mov ecx, dword [eax + 8]
and dword [eax + 8], 0
test ecx, ecx
jne 0x1098824
xor eax, eax
inc eax
jmp 0x1098826
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x109c056
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 1
push 0
push 0
neg eax
push 0xfffe
sbb eax, eax
push 1
add eax, 0x178a
push eax
push 0x1788
call fcn.0109819c
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x109d3ad
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x109d3bd
call fcn.0109d367
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x109d338
push 0
push 0
mov byte [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop esi
ret

Function at 0x109e1d2
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10c671c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0109e167
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x109e245
cmp dword [ebp - 0x94], 5
jb 0x109e266
jmp 0x109e262
cmp dword [ebp - 0x88], 1
jne 0x109e266
cmp dword [ebp - 0x94], 4
ja 0x109e262
jne 0x109e266
cmp dword [ebp - 0x90], 0
jbe 0x109e266
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1034d00
call fcn.0109e00b
test eax, eax
jge 0x109e287
mov byte [0x10cecdc], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0107591b
leave
ret

Function at 0x109e4b3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10d270c], 0
push esi
jne 0x109e421
call fcn.0109e318
test eax, eax
je 0x109e464
mov eax, dword [0x10d270c]
cmp eax, 1
jne 0x109e442
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x109e464
pop esi
ret
push eax
call dword [0x10d2714]
test eax, eax
jne 0x109e4ac
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x109e468
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10d270c]
call dword [0x10d2714]
mov edi, eax
test edi, edi
je 0x109e48d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x109e4a9
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10d270c]
call dword [0x10d2710]
add edi, 0x10
cmp edi, esi
jb 0x109e495
mov eax, edi
pop edi
pop esi
ret
jmp 0x109e40e

Function at 0x10a4c4a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2000000
push 0
push 0x103778c
push 0x80000002
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10a4caa
push edi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x10a4caa
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x10a4caa
xor eax, eax
inc eax
jmp 0x10a4cac
xor eax, eax
leave
ret 0x10
Function at 0x10a4dce
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x2000000
xor edi, edi
push edi
push 0x103778c
push 0x80000002
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10a4e44
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10377a8
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.KERNEL32.dll_RegQueryValueExA]
test eax, eax
jne 0x10a4e3b
cmp dword [ebp - 0xc], 4
jne 0x10a4e3b
cmp dword [ebp - 0x10], edi
je 0x10a4e3b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov dword [0x10c6ce4], edi
xor eax, eax
jmp 0x10a4e83
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
cmp dword [0x10c6ce4], edi
jge 0x10a4e7e
lea eax, [ebp - 0x34]
push eax
mov dword [0x10c6ce4], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x10a4e7e
cmp word [ebp - 0x14], 5
jb 0x10a4e7e
call fcn.010a4cb5
test eax, eax
je 0x10a4e7e
emms
mov dword [0x10c6ce4], 1
mov eax, dword [0x10c6ce4]
pop edi
leave
ret

Function at 0x10a4e8b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10c671c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10a4ed4
inc eax
jmp 0x10a4f11
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x10a4f05
cmp dword [ebp - 0x94], 4
ja 0x10a4f01
jne 0x10a4f11
cmp dword [ebp - 0x90], 0xa
jb 0x10a4f11
mov ecx, 0x55d
cmp word [ebp - 0x8c], cx
jb 0x10a4f11
xor eax, eax
jmp 0x10a4f11
xor eax, eax
cmp dword [ebp - 0x88], 2
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0107591b
leave
ret

Function at 0x10a4f22
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10c671c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10a4f7f
cmp dword [ebp - 0x88], 2
jne 0x10a4f7f
cmp dword [ebp - 0x94], 5
jb 0x10a4f7f
xor eax, eax
inc eax
jmp 0x10a4f81
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0107591b
leave
ret
Function at 0x10a51d3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [0x10d2738], eax
jne 0x10a526d
push ebx
push esi
push edi
mov esi, 0x1037760
xor edi, edi
push esi
inc edi
push eax
mov dword [0x10d2738], edi
mov dword [ebp - 4], eax
call fcn.010a4206
push esi
push 0
mov ebx, eax
call fcn.010a4206
add esp, 0x10
mov esi, eax
test ebx, ebx
je 0x10a521d
test esi, esi
je 0x10a521d
cmp ebx, esi
jne 0x10a5220
mov dword [ebp - 4], edi
test ebx, ebx
je 0x10a522b
push ebx
call fcn.0109c587
pop ecx
test esi, esi
je 0x10a523a
cmp esi, ebx
je 0x10a523a
push esi
call fcn.0109c587
pop ecx
push 0
call fcn.0109c587
cmp dword [ebp - 4], 0
pop ecx
je 0x10a526a
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1037950
call esi
push 0x10378f0
call esi
push 0x1037898
call esi
push 0x1037868
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10a531d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
sub eax, 0
push edi
je 0x10a5494
dec eax
je 0x10a53b2
dec eax
jne 0x10a542f
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov ecx, dword [esi + 0x20]
mov edi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, eax
jbe 0x10a538c
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x14]
lea ebx, [ecx + edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
add eax, eax
cmp ebx, eax
jbe 0x10a5370
mov eax, ebx
jmp 0x10a537b
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
add eax, eax
mov ecx, dword [esi + 0x14]
push eax
call fcn.010bc207
test eax, eax
jl 0x10a5496
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
push edi
push dword [ebp + 8]
push eax
call dword [ecx + 0xc]
add eax, dword [esi + 0x20]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [eax], edi
add dword [esi + 0x20], edi
jmp 0x10a5494
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp + 0xc]
lea ecx, [eax + ebx]
mov edi, 0x10000
cmp ecx, edi
ja 0x10a53e3
mov ecx, dword [esi + 0x18]
push ebx
push dword [ebp + 8]
add ecx, eax
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [esi + 0x1c], ebx
mov dword [eax], ebx
jmp 0x10a5494
cmp eax, edi
je 0x10a540e
test eax, eax
je 0x10a540e
mov ebx, dword [ebp + 8]
mov ecx, edi
sub ecx, eax
push ecx
mov ecx, dword [esi + 0x18]
add ecx, eax
push ebx
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0x1c]
sub ebx, eax
add esp, 0xc
add ebx, edi
mov dword [ebp + 8], ebx
jmp 0x10a5414
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10a5443
push 0
push dword [ebp + 0x10]
push edi
push dword [esi + 0x18]
push dword [esi]
call ebx
test eax, eax
jne 0x10a5436
mov eax, 0x80004005
jmp 0x10a5496
add dword [esi + 0x20], edi
sub edi, dword [esi + 0x1c]
and dword [esi + 0x1c], 0
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
shr eax, 0x10
test eax, eax
je 0x10a546f
push 0
push dword [ebp + 0x10]
mov edi, eax
shl edi, 0x10
push edi
push dword [ebp + 8]
push dword [esi]
call ebx
test eax, eax
je 0x10a542f
add dword [esi + 0x20], edi
add dword [ebp - 4], edi
add dword [ebp + 8], edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 4], edi
jae 0x10a548c
sub edi, dword [ebp - 4]
push edi
push dword [ebp + 8]
push dword [esi + 0x18]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esi + 0x1c], edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10a54a2
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
sub eax, 0
je 0x10a54e9
dec eax
je 0x10a54bb
dec eax
je 0x10a54e9
jmp 0x10a54d8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10a54e9
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi + 0x18]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10a54df
mov eax, 0x80004005
jmp 0x10a54eb
mov eax, dword [esi + 0x1c]
add dword [esi + 0x20], eax
and dword [esi + 0x1c], 0
xor eax, eax
pop esi
leave
ret

Function at 0x10a69ec
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
mov dword [ebp - 0x14], eax
cmp edx, eax
jae 0x10a6b0f
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp edx, dword [ebp + 0x14]
jae 0x10a6af3
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x10a6a45
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
mov dword [ebp + 0xc], edx
cmp edx, dword [ebp - 0x14]
jb 0x10a6a23
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x10a6de3
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ecx + 4]
push esi
mov esi, dword [eax + 0x20]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x6c]
imul eax, dword [ecx + 0x60]
push edi
mov edi, dword [ecx + 0x20]
add eax, edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], eax
cmp edi, eax
jae 0x10a6f02
mov eax, 0xf81f
mov edx, 0x7e0
push ebx
mov dword [ebp - 0xc], esi
mov esi, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x68]
lea ecx, [edi + ecx*2]
add esi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], ecx
cmp edi, ecx
jae 0x10a6ede
movzx ecx, word [esi + 2]
mov dword [ebp - 8], ecx
movzx ecx, word [edi + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [esi]
movzx esi, word [edi]
mov ebx, ecx
and ebx, eax
mov edi, esi
and edi, eax
add edi, ebx
mov ebx, dword [ebp - 4]
and ebx, eax
add edi, ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
and ecx, edx
and ebx, eax
lea edi, [edi + ebx + 0x1002]
mov ebx, esi
and ebx, edx
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, edx
add ebx, ecx
mov ecx, dword [ebp - 8]
and ecx, edx
lea ecx, [ebx + ecx + 0x40]
shr ecx, 2
shr edi, 2
xor edi, ecx
mov ecx, dword [ebp - 0x20]
and ecx, eax
and esi, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 8]
and ecx, eax
lea ecx, [esi + ecx + 0x1002]
mov esi, dword [ebp - 0x14]
and edi, edx
shr ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0xc], 2
mov word [ecx], di
mov edi, dword [ebp - 0x10]
add edi, 4
add esi, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
cmp edi, dword [ebp - 0x24]
jb 0x10a6e3f
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 0x18]
add esi, dword [ebx + 0x60]
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x60]
lea edi, [edi + ebx*2]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
cmp edi, dword [ebp - 0x2c]
jb 0x10a6e20
pop ebx
pop edi
xor eax, eax
pop esi
leave
ret