joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10581f4
Capabilities:
Parse url

Disassembly:
push 0x64
mov eax, 0x108cdf9
call fcn.01002380
mov dword [ebp - 0x24], ecx
xor eax, eax
mov word [ebp - 0x34], ax
lea edi, [ebp - 0x32]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
stosw word es:[edi], ax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push 0x38
lea eax, [ebp - 0x6c]
push ebx
push eax
mov byte [ebp - 4], 3
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x70], 0x3c
push eax
call dword [ecx + 0x50]
mov esi, eax
cmp esi, ebx
jl 0x105831b
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x68], 1
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x105829b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x1058291
jle 0x105828a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x105831b
mov esi, 0x80004005
jmp 0x105831b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x68]
lea eax, [eax + ecx*2 + 2]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.01003f76
mov esi, eax
cmp esi, ebx
jl 0x105831b
push dword [ebp - 0x68]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x6c]
push eax
call fcn.01003f99
mov esi, eax
cmp esi, ebx
jl 0x105831b
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
call fcn.01042629
mov esi, eax
cmp esi, ebx
jl 0x105831b
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1b0]
mov esi, eax
cmp esi, ebx
jl 0x105831b
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push eax
call dword [ecx + 0x110]
mov esi, eax
cmp esi, ebx
jl 0x105831b
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x10], ebx
je 0x1058329
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.010050a1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.010050a1
lea eax, [ebp - 0x1c]
push eax
call fcn.0100229b
lea eax, [ebp - 0x20]
push eax
call fcn.0100229b
mov eax, esi
call fcn.010024b0
ret 8

Function at 0x1058a57
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10980dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1058abc
xor esi, esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1058a91
mov esi, 0x80004005
jmp 0x1058aa7
push esi
push esi
push 0x1058b04
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100235f
leave
ret
Function at 0x1059068
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1064
call fcn.010050d9
mov eax, dword [0x10980dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x1054], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], ebx
push edi
mov dword [ebp - 0x1060], eax
mov dword [ebp - 0x1064], 0x824
mov dword [ebp - 0x1058], ebx
mov dword [esi], ebx
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x1059173
push 3
push edi
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x10590e7
push ebx
lea eax, [ebp - 0x1064]
push eax
lea eax, [ebp - 0x1050]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
jmp 0x1059185
lea eax, [ebp - 0x105c]
push eax
push ebx
push edi
mov dword [ebp - 0x105c], ebx
call dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoW]
test eax, eax
je 0x105910a
mov edi, 0x80004005
jmp 0x1059248
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x105911d
push 0x7a
pop edi
jmp 0x1059263
push dword [ebp - 0x105c]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x1058], eax
cmp eax, ebx
je 0x10591e0
lea ecx, [ebp - 0x105c]
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoW]
test eax, eax
je 0x10591fc
mov eax, dword [ebp - 0x1058]
push dword [eax + 8]
lea eax, [ebp - 0x1050]
push 0x825
push eax
call fcn.010022e3
mov edi, eax
cmp edi, ebx
jge 0x105918f
jmp 0x105921b
push edi
push 0x825
lea eax, [ebp - 0x1050]
push eax
call fcn.010022e3
mov edi, eax
cmp edi, ebx
jl 0x1059248
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1054], eax
cmp eax, 0xffffffff
jne 0x10591be
mov edi, 0x80070006
jmp 0x105921b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x1059216
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ecx, dword [ebp - 0x1060]
mov dword [ecx], eax
cmp eax, ebx
jne 0x10591e7
mov edi, 0x8007000e
jmp 0x105921b
push ebx
push esi
push dword [esi]
push eax
push dword [ebp - 0x1054]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x105921b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x1059216
jle 0x1059212
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x105921b
mov edi, 0x80004005
cmp dword [ebp - 0x1058], ebx
je 0x105922f
push dword [ebp - 0x1058]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x1054], 0xffffffff
je 0x1059244
push dword [ebp - 0x1054]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jge 0x1059263
mov eax, dword [ebp - 0x1060]
mov eax, dword [eax]
cmp eax, ebx
je 0x1059263
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x1060]
mov dword [eax], ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100235f
leave
ret 0xc
Function at 0x105a0d0
Capabilities:
Delete registry key

Disassembly:
push 0x218
mov eax, 0x108d6de
call fcn.010023ba
xor esi, esi
and dword [ebp - 0x220], esi
and dword [ebp - 4], esi
and dword [ebp - 0x224], esi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.0100603d
lea eax, [ebp - 0x224]
push eax
push 0x102637c
push dword [ebp + 8]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.010062b5
test eax, eax
jl 0x105a189
push dword [ebp - 0x224]
call fcn.010100f0
test al, al
jne 0x105a189
push 0x10262f4
lea eax, [ebp - 0x220]
push eax
call fcn.01003f76
mov esi, eax
test esi, esi
jl 0x105a189
push dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push eax
call fcn.01043e8d
mov esi, eax
test esi, esi
jl 0x105a189
push dword [ebp - 0x220]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x105a182
jle 0x105a187
and eax, 0xffff
or eax, 0x80070000
jmp 0x105a187
call fcn.01058a57
mov esi, eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.01002611
lea eax, [ebp - 0x224]
push eax
call fcn.0100229b
lea eax, [ebp - 0x220]
push eax
call fcn.0100229b
mov eax, esi
call fcn.010024a1
ret 4

Function at 0x1064175
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ax, word [eax]
push esi
mov esi, ecx
mov word [esi + 0x10], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
jne 0x10641a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10641b9
jle 0x10641ea
and eax, 0xffff
or eax, 0x80070000
jmp 0x10641ea
movzx ecx, word [esi + 0x10]
xor edx, edx
sub ecx, 0x41
inc edx
shl edx, cl
test eax, edx
jne 0x10641c0
mov eax, 0x80004005
jmp 0x10641ea
push edi
push 3
push 0
lea edi, [esi + 0xc]
push edi
call fcn.01003f99
test eax, eax
jl 0x10641e9
movzx eax, word [esi + 0x10]
mov edi, dword [edi]
push eax
push 0x10641f0
push 4
push edi
call fcn.010060e7
add esp, 0x10
pop edi
pop esi
pop ebp
ret 4

Function at 0x10654f1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10980dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push esi
push esi
push esi
push esi
mov eax, ecx
mov eax, dword [eax + 0xc]
push 0x105
lea ecx, [ebp - 0x210]
push ecx
push eax
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x1065555
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x106554e
jle 0x106554a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1065576
mov esi, 0x80004005
jmp 0x1065576
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.01003f76
mov eax, dword [ebp - 0x214]
mov dword [edi], eax
mov dword [ebp - 0x214], esi
lea eax, [ebp - 0x214]
push eax
call fcn.0100229b
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100235f
leave
ret 4
Function at 0x107f769
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x107f7aa
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x107f783
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x107f7c8
dec esi
je 0x107f7bf
dec esi
jne 0x107f7cd
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1085379
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10980dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov dword [ebp - 0x108], eax
mov eax, edi
shr eax, 4
inc eax
movzx eax, ax
push eax
push 6
push esi
mov ebx, 0x80004005
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x1085459
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1085459
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1085459
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x102]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
and edi, 0xf
jbe 0x108540d
dec edi
movzx eax, word [esi]
lea esi, [esi + eax*2 + 2]
jne 0x1085403
movzx edi, word [esi]
mov eax, 0x80
cmp edi, eax
jae 0x1085459
add esi, 2
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.010022e3
mov ebx, eax
test ebx, ebx
jge 0x1085438
cmp ebx, 0x8007007a
jne 0x1085459
xor eax, eax
mov word [ebp + edi*2 - 0x104], ax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x108]
call fcn.010022e3
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0100235f
leave
ret 0x14
Function at 0x1085471
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10980dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
mov dword [ebp - 0x48], 0x80004005
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push edi
push esi
mov dword [ebp - 0x4c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop edi
pop esi
test eax, eax
jne 0x10854f2
mov eax, dword [ebp + 0x18]
cmp eax, 0x20
jb 0x10854d9
push 0x20
pop eax
xor ecx, ecx
mov word [ebp + eax*2 - 0x46], cx
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x50]
call fcn.010022e3
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
xor ecx, ebp
call fcn.0100235f
leave
ret 0x14
Function at 0x108557b
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x10980dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x334], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x348], eax
xor eax, eax
xor edi, edi
push 0xfe
mov word [ebp - 0x128], ax
lea eax, [ebp - 0x126]
push edi
push eax
mov esi, 0x80004005
mov dword [ebp - 0x338], edi
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x344], 0x100
mov word [ebx], ax
cmp dword [0x109b034], edi
jne 0x108570e
push 0x104
lea eax, [ebp - 0x330]
push eax
mov dword [0x109b034], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10856fe
push 0x1085768
push 0x104
lea eax, [ebp - 0x330]
push eax
call fcn.01084446
test eax, eax
jl 0x10856fe
push dword [ebp + 0xc]
lea eax, [ebp - 0x330]
push 8
push eax
call fcn.01086dcb
mov dword [ebp - 0x340], eax
cmp eax, edi
je 0x10856fe
and dword [0x109b034], 0
push 8
pop ecx
xor eax, eax
mov word [ebp - 0x28], ax
lea edi, [ebp - 0x26]
rep stosd dword es:[edi], eax
push 0x12
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x334]
mov dword [ebp - 0x338], 1
push dword [ebp - 0x33c]
call fcn.01085508
mov esi, eax
test esi, esi
jl 0x10856f1
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.010852be
mov esi, eax
test esi, esi
jl 0x10856f1
push 0x80
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x334]
push dword [ebp + 0xc]
push dword [ebp - 0x340]
call fcn.01085379
mov esi, eax
test esi, esi
jl 0x10856f1
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0x1c]
push ebx
call fcn.010022e3
mov esi, eax
xor eax, eax
test esi, esi
setl al
mov dword [ebp - 0x338], eax
push dword [ebp - 0x340]
call fcn.01086c1e
xor edi, edi
cmp dword [0x109b034], edi
jne 0x108570e
cmp dword [ebp - 0x338], edi
je 0x1085754
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x128]
push eax
push edi
push edi
push dword [ebp - 0x348]
mov esi, 0x80004005
push dword [ebp - 0x33c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1085754
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0x1c]
push ebx
call fcn.010022e3
mov esi, eax
cmp esi, edi
jl 0x1085754
mov esi, 0x40203
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100235f
leave
ret 0x18
Function at 0x1086691
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10980dc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x109b038], edi
jne 0x10867ad
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x10866f8
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x109b038], edi
pop esi
je 0x1086780
dec eax
jne 0x10867ad
cmp dword [ebp - 0x11c], 5
jne 0x108676d
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x1086761
dec eax
je 0x108674e
dec eax
je 0x1086734
mov dword [0x109b038], 0x14
jmp 0x10867ad
cmp word [ebp - 0xc], 1
jb 0x1086745
mov dword [0x109b038], 0x10
or dword [0x109b038], 4
jmp 0x10867ad
cmp word [ebp - 0xc], 2
jb 0x1086745
mov dword [0x109b038], 8
jmp 0x1086745
mov dword [0x109b038], 4
jmp 0x10867ad
cmp dword [ebp - 0x11c], 4
ja 0x10867bf
mov dword [0x109b038], 2
cmp dword [ebp - 0x11c], 4
jne 0x10867ad
cmp dword [ebp - 0x118], edi
je 0x10867a3
cmp dword [ebp - 0x118], 0xa
je 0x10867a3
cmp dword [ebp - 0x118], 0x5a
jne 0x10867ad
mov dword [0x109b038], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x109b038]
xor ecx, ebp
pop edi
call fcn.0100235f
leave
ret
mov dword [0x109b038], 0x20
jmp 0x10867ad

Function at 0x10867d0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10980dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1086824
push 3
lea eax, [ebp - 0x44]
push 0x1086834
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.0100235f
leave
ret

Function at 0x108683f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10980dc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x109b03c]
jne 0x10868da
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x10869d0
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10868d9
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1086a88
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x10868d9
push 3
push dword [esi*8 + 0x10868f0]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x10868cb
inc esi
cmp esi, 0x1c
jae 0x10868d9
jmp 0x10868aa
mov ax, word [esi*8 + 0x10868f4]
mov word [0x109b03c], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x109b03c]
xor ecx, ebp
call fcn.0100235f
leave
ret
Function at 0x1063e
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub edx, edx
inc edx
mov dword [ecx], eax
push esi
mov eax, dword [ecx]
push eax
pop esi
shr esi, 0x1e
sub esi, eax
imul esi, esi, 0x6c078965
sub ecx, 0xfffffffc
add esi, edx
inc edx
cmp edx, 0x270
mov dword [ecx], esi
jl 0x1064a
pop esi
pop ebp
ret 4

Function at 0x10992
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
sub esi, esi
sub edx, edx
cmp dword [ebp + 0xc], esi
je 0x109ba
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov cl, byte [edx + ecx]
add eax, esi
xor byte [eax], cl
lea eax, [edx + 1]
sub edx, edx
div dword [ebp + 0x14]
inc esi
cmp esi, dword [ebp + 0xc]
jne 0x1099f
pop esi
pop ebp
ret 0x10

Function at 0x136bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push esi
pop ecx
call fcn.00013698
sub ecx, ecx
inc ecx
cmp dword [esi + 4], ecx
jbe 0x136e8
mov eax, dword [esi]
lea eax, [eax + ecx*2]
mov dx, word [eax - 2]
xor word [eax], dx
inc ecx
cmp ecx, dword [esi + 4]
jb 0x136d6
push dword [ebp + 0xc]
call fcn.00011d22
pop ecx
push esi
pop eax
pop esi
pop ebp
ret 0xc

Function at 0x13700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push esi
pop ecx
call fcn.0001363a
sub ecx, ecx
inc ecx
cmp dword [esi + 4], ecx
jbe 0x13729
mov eax, dword [esi]
add eax, ecx
mov dl, byte [eax - 1]
xor byte [eax], dl
inc ecx
cmp ecx, dword [esi + 4]
jb 0x1371a
push dword [ebp + 0xc]
call fcn.00011d22
pop ecx
push esi
pop eax
pop esi
pop ebp
ret 0xc

Function at 0x171f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
sub ecx, ecx
mov dword [ebp - 0x10], 1
sub eax, eax
mov dl, byte [eax + 0x73ab8]
xor byte [ebp + ecx - 0x10], dl
inc ecx
inc eax
and eax, 0xf
cmp ecx, 8
jne 0x17209
push ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 4], 2
call fcn.00013b82
mov ecx, dword [0x77bb4]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00016efa
push eax
pop ecx
call fcn.00013522
mov ecx, dword [ebp - 8]
or ecx, ecx
je 0x17254
call fcn.00011d64
leave
ret

Function at 0x19b4c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
movzx ecx, word [ecx + 6]
push esi
sub esi, esi
push edi
or ecx, ecx
jbe 0x19b80
mov edx, dword [eax + 0xc]
cmp dword [ebp + 0xc], edx
jb 0x19b78
mov edi, dword [eax + 8]
add edi, edx
cmp dword [ebp + 0xc], edi
jb 0x19b82
sub eax, 0xffffffd8
inc esi
cmp esi, ecx
jb 0x19b66
sub eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x401f40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x469073
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 0x29
lea eax, [esp + 0xc]
push eax
mov ecx, 0x4948b4
call fcn.0041f820
push eax
lea ecx, [esi + 0xc0]
mov dword [esp + 0x2c], 0
call fcn.00429100
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.004290f0
push 0x2a
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x4948b4
call fcn.0041f820
push eax
lea ecx, [esi + 0xcc]
mov dword [esp + 0x2c], 1
call fcn.00429100
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004290f0
mov edx, dword [esp + 0x30]
push edx
push 9
mov ecx, esi
mov byte [esi + 0x964], 0
call fcn.004029f0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4

Function at 0x4029f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00431fc7

Function at 0x402ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402cf9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402d34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402d30
lea ebx, [ebx]
cmp esi, eax
jae 0x402d34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402d20
cmp esi, eax
jb 0x402d3a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret