joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x340
call fcn.0040b1a4
mov edi, eax
add esp, 4
test edi, edi
je 0x408012
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
mov dword [edi + 0x134], 0xffffffff
jmp 0x408014
xor edi, edi
cmp dword [edi], 0
jne 0x40806a
cmp dword [edi + 4], 0xffffffff
jne 0x40806a
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4226f8
push 0x104
push esi
call fcn.0040a8fb
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
call fcn.00406790
add esp, 8
test eax, eax
jne 0x40805a
mov eax, dword [ebp - 4]
jmp 0x40806f
mov ecx, eax
call fcn.00406b50
mov dword [edi], eax
mov eax, dword [0x7c0360]
jmp 0x40806f
mov eax, 0x1000000
mov dword [0x7c035c], eax
test eax, eax
je 0x408089
push edi
call fcn.0040a81d
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 8
call fcn.0040b1a4
add esp, 4
mov dword [eax + 4], edi
pop edi
mov dword [eax], 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4081d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x40831f
push ebx
mov bl, byte [ebp + 0xa]
push esi
push edi
xor edi, edi
xor esi, esi
jmp 0x4081f0
mov dl, byte [esi + str.aWtsaXQ]
cmp dl, 0x2b
jne 0x4081ff
mov dl, 0x3e
jmp 0x40822d
cmp dl, 0x2f
jne 0x408208
mov dl, 0x3f
jmp 0x40822d
cmp dl, 0x39
jg 0x408212
add dl, 4
jmp 0x40822d
cmp dl, 0x3d
je 0x40822b
cmp dl, 0x5a
jg 0x408221
sub dl, 0x41
jmp 0x40822d
cmp dl, 0x7a
jg 0x40822b
sub dl, 0x47
jmp 0x40822d
mov dl, 0x40
mov cl, byte [esi + 0x4228d9]
cmp cl, 0x2b
jne 0x40823c
mov cl, 0x3e
jmp 0x40826a
cmp cl, 0x2f
jne 0x408245
mov cl, 0x3f
jmp 0x40826a
cmp cl, 0x39
jg 0x40824f
add cl, 4
jmp 0x40826a
cmp cl, 0x3d
je 0x408268
cmp cl, 0x5a
jg 0x40825e
sub cl, 0x41
jmp 0x40826a
cmp cl, 0x7a
jg 0x408268
sub cl, 0x47
jmp 0x40826a
mov cl, 0x40
mov al, cl
shl dl, 2
shr al, 4
add al, dl
mov edx, dword [ebp + 8]
mov byte [edi + edx], al
inc edi
mov al, byte [esi + 0x4228da]
cmp al, 0x3d
je 0x4082c7
mov bl, al
cmp bl, 0x2b
jne 0x408290
mov bl, 0x3e
jmp 0x4082b9
cmp bl, 0x2f
jne 0x408299
mov bl, 0x3f
jmp 0x4082b9
cmp bl, 0x39
jg 0x4082a3
add bl, 4
jmp 0x4082b9
cmp bl, 0x5a
jg 0x4082ad
sub bl, 0x41
jmp 0x4082b9
cmp bl, 0x7a
jg 0x4082b7
sub bl, 0x47
jmp 0x4082b9
mov bl, 0x40
mov al, bl
shl cl, 4
shr al, 2
add al, cl
mov byte [edi + edx], al
inc edi
mov al, byte [esi + 0x4228db]
cmp al, 0x3d
je 0x408306
cmp al, 0x2b
jne 0x4082d9
mov al, 0x3e
jmp 0x4082fb
cmp al, 0x2f
jne 0x4082e1
mov al, 0x3f
jmp 0x4082fb
cmp al, 0x39
jg 0x4082e9
add al, 4
jmp 0x4082fb
cmp al, 0x5a
jg 0x4082f1
sub al, 0x41
jmp 0x4082fb
cmp al, 0x7a
jg 0x4082f9
sub al, 0x47
jmp 0x4082fb
mov al, 0x40
mov cl, bl
shl cl, 6
add cl, al
mov byte [edi + edx], cl
inc edi
add esi, 4
cmp esi, 8
jb 0x4081f0
mov byte [edi + edx], 0
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x408330
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x408447
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x408447
mov ebx, dword [ebp + 0x10]
cmp ebx, 1
jb 0x408447
push esi
xor eax, eax
xor esi, esi
mov dword [ebp + 8], eax
test ebx, ebx
je 0x40843c
mov dl, byte [esi + ecx]
inc esi
mov cl, dl
and dl, 3
shr cl, 2
movzx ecx, cl
shl dl, 4
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi], cl
cmp esi, ebx
jae 0x408425
mov ecx, dword [ebp + 0xc]
mov bl, byte [esi + ecx]
inc esi
mov cl, bl
and bl, 0xf
shr cl, 4
add dl, cl
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 1], cl
cmp esi, dword [ebp + 0x10]
jae 0x408402
mov ecx, dword [ebp + 0xc]
shl bl, 2
mov dl, byte [esi + ecx]
inc esi
mov cl, dl
and dl, 0x3f
shr cl, 6
add bl, cl
movzx ecx, bl
mov ebx, dword [ebp + 0x10]
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 2], cl
movzx ecx, dl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 3], cl
add eax, 4
mov ecx, dword [ebp + 8]
add ecx, 3
mov dword [ebp + 8], ecx
cmp ecx, ebx
mov ecx, dword [ebp + 0xc]
jb 0x408367
pop esi
mov byte [eax + edi], 0
pop edi
pop ebx
pop ebp
ret 0xc
shl bl, 2
movzx ecx, bl
pop esi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 2], cl
mov byte [eax + edi + 3], 0x3d
add eax, 4
mov byte [eax + edi], 0
pop edi
pop ebx
pop ebp
ret 0xc
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 1], cl
mov word [eax + edi + 2], 0x3d3d
add eax, 4
pop esi
mov byte [eax + edi], 0
pop edi
pop ebx
pop ebp
ret 0xc
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x408c70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x426008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x10b8
call fcn.0040b1a4
mov edi, eax
add esp, 4
test edi, edi
je 0x408d8d
push str.http:__tj.wudiyou.com:8800_
push 0x824
push edi
call fcn.0040a9b2
add esp, 0xc
lea eax, [edi + 0x104c]
push str.7k7k_REPORT
push 0x32
push eax
call fcn.0040a9b2
add esp, 0xc
mov dword [edi + 0x10b0], 0x1b
call fcn.00408da0
push 1
mov dword [edi + 0x10b4], eax
call fcn.0040b1a4
add esp, 4
mov dword [0x7c0364], eax
mov ecx, edi
call fcn.00409220
push 0x7bff48
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x408d8d
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040cc90
add esp, 0xc
lea eax, [ebp - 0x210]
push dword [edi + 0x1048]
push 0x424884
push eax
call fcn.00409ab0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x7bff48
push eax
push str.Service_Value
push str.config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [edi + 0x10b4]
lea eax, [ebp - 0x210]
push 0x424884
push eax
call fcn.00409ab0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x7bff48
push eax
push str.InstallID
push str.config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040a822
mov esp, ebp
pop ebp
ret

Function at 0x408f90
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2888
call fcn.00418740
mov eax, dword [0x426008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40906d
lea eax, [ebp - 0x2888]
mov dword [ebp - 0x2888], 0x2880
push eax
lea eax, [ebp - 0x2884]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40906d
lea eax, [ebp - 0x2884]
nop
cmp byte [eax + 0x194], 0
jne 0x40902d
cmp byte [eax + 0x195], 0
jne 0x40902d
cmp byte [eax + 0x196], 0
jne 0x40902d
cmp byte [eax + 0x197], 0
jne 0x40902d
cmp byte [eax + 0x198], 0
jne 0x40902d
cmp byte [eax + 0x199], 0
jne 0x40902d
mov eax, dword [eax]
test eax, eax
jne 0x408fe0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a822
mov esp, ebp
pop ebp
ret 4
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._02X__02X__02X__02X__02X__02X
push 0x32
push esi
call fcn.0040c6c1
add esp, 0x24
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a822
mov esp, ebp
pop ebp
ret 4
Function at 0x409150
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
jne 0x40915b
xor eax, eax
pop ebx
ret
push esi
push edi
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x409162
sub edi, ecx
inc edi
push edi
call fcn.0040a831
push edi
mov esi, eax
push 0
push esi
call fcn.0040cc90
push ebx
push edi
push esi
call fcn.0040bf04
xor eax, eax
add esp, 0x1c
cmp byte [esi], al
je 0x40919a
mov edi, edi
xor byte [esi], 0x20
inc eax
inc esi
cmp byte [esi], 0
jne 0x409190
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x409b90
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
mov dword [0x7c0394], 1
mov byte [0x7c0368], 0
call fcn.0040a831
add esp, 4
mov dword [0x7c038c], eax
test eax, eax
je 0x409bec
mov ecx, esi
mov dword [0x7c0390], eax
mov dword [0x7c03a0], 0x67452301
mov dword [0x7c03a4], 0xefcdab89
mov dword [0x7c03a8], 0x98badcfe
mov dword [0x7c03ac], 0x10325476
pop esi
jmp fcn.0040a440
pop esi
ret
Function at 0x416c03
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041167b
mov dword [ebp - 0x14], eax
cmp dword [0x7bfcd0], esi
jne 0x416cf6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416c83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x416dd6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x416dd6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416dd6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x7bfcd0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x7bfcd4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x7bfcd8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7bfce0], eax
test eax, eax
je 0x416cf3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7bfcdc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416d1b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416d0e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416d30
push 4
pop eax
jmp 0x416dd8
cmp dword [ebp - 0x14], esi
je 0x416d30
push dword [0x7bfcd0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416d15
mov eax, dword [0x7bfcdc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416d8e
cmp dword [0x7bfce0], edi
je 0x416d8e
push eax
call ebx
push dword [0x7bfce0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416d8e
test eax, eax
je 0x416d8e
call ecx
test eax, eax
je 0x416d83
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x416d83
test byte [ebp - 8], 1
jne 0x416d8e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416dbe
mov eax, dword [0x7bfcd4]
cmp eax, edi
je 0x416dbb
push eax
call ebx
test eax, eax
je 0x416dbb
call eax
mov esi, eax
test esi, esi
je 0x416dbb
mov eax, dword [0x7bfcd8]
cmp eax, edi
je 0x416dbb
push eax
call ebx
test eax, eax
je 0x416dbb
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x7bfcd0]
call ebx
test eax, eax
je 0x416dd6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x416dd8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a822
mov esp, ebp
pop ebp
ret
Function at 0x1001c4a
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10020c0
call fcn.01001dd4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1003370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001a5f
cmp eax, esi
jne 0x1001a52
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001a62
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001a39
xor esi, esi
inc esi
mov eax, dword [0x100336c]
cmp eax, esi
jne 0x1001a75
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001ab0
mov eax, dword [0x100336c]
test eax, eax
jne 0x1001aaa
mov dword [0x100336c], esi
push 0x1001138
push 0x100112c
call fcn.010019b6
pop ecx
pop ecx
test eax, eax
je 0x1001ab0
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1001b7a
mov dword [0x1003034], esi
mov eax, dword [0x100336c]
cmp eax, esi
jne 0x1001ad4
push 0x1001128
push 0x1001120
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100336c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001ae1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1003374], ebx
je 0x1001b02
push 0x1003374
call fcn.01001d49
pop ecx
test eax, eax
je 0x1001b02
push ebx
push 2
push ebx
call dword [0x1003374]
push dword [0x100301c]
push dword [0x1003020]
push dword [0x1003018]
call fcn.0100128f
add esp, 0xc
mov dword [0x1003030], eax
cmp dword [0x1003024], ebx
jne 0x1001b60
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1003034], ebx
jne 0x1001b6e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003030]
call fcn.01001e19
ret
call fcn.01001f21
jmp 0x1001a17
Function at 0x1004edc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, edi
jne 0x101eaf0
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x101eb05
push ebx
shr eax, 1
push 2
inc eax
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call dword [0x104b7f4]
mov ebx, eax
cmp ebx, edi
je 0x101eb0f
lea eax, [ebp - 4]
push eax
push ebx
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, edi
jne 0x101eb19
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc
jle 0x1004f62
and eax, 0xffff
or eax, 0x80070000
jmp 0x1004f62
mov eax, 0x8000ffff
jmp 0x1004f62
mov eax, 0x8007000e
jmp 0x1004f61
push ebx
call dword [0x104b7f0]
cmp esi, edi
jle 0x101eb30
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x1004f61
Function at 0x1005f51
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x278
mov eax, 0x104470d
call fcn.01002a3a
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov eax, dword [eax]
mov esi, 0x2001f
push esi
push eax
push ecx
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], ebx
call fcn.0100484b
cmp eax, ebx
jne 0x1020cea
mov dword [ebp - 0x214], ebx
lea eax, [ebp - 0x284]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x234], 0x100
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x10060a9
cmp eax, ebx
jne 0x1020d11
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x224]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.0100484b
cmp eax, ebx
jne 0x1020d24
lea ecx, [ebp - 0x27c]
call fcn.010051f0
lea ecx, [ebp - 0x254]
call fcn.01005416
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 3
call fcn.01005859
mov edi, eax
cmp edi, ebx
jl 0x1020d34
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.010056a3
inc dword [ebp - 0x214]
lea ecx, [ebp - 0x254]
call fcn.01003b4c
lea ecx, [ebp - 0x27c]
call fcn.01004292
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call fcn.01004887
jmp 0x1005fa6
xor edi, edi
lea eax, [ebp - 0x218]
push eax
push dword [0x104b7f8]
lea ecx, [ebp - 0x224]
call fcn.0100480c
test eax, eax
jne 0x10060d9
mov eax, dword [ebp - 0x214]
cmp dword [ebp - 0x218], eax
jne 0x1020d5a
lea ecx, [ebp - 0x224]
call fcn.01004887
mov eax, edi
call fcn.01002a77
ret 8
cmp edi, ebx
jge 0x10060ab
jmp 0x10060d9
cmp eax, 2
je 0x1020cff
cmp eax, ebx
jle 0x1020cfd
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
lea ecx, [ebp - 0x224]
call fcn.01004887
mov eax, ebx
jmp 0x10060e6
jle 0x1020d1d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x10060ee
jle 0x1020d30
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1020d4a
lea ecx, [ebp - 0x254]
call fcn.01003b4c
lea ecx, [ebp - 0x27c]
call fcn.01004292
lea ecx, [ebp - 0x230]
call fcn.01004887
jmp 0x10060ee
mov edi, 0x80004005
jmp 0x10060d9
Function at 0x1006149
Capabilities:
Read file via mapping

Disassembly:
push 0xa0
mov eax, 0x1043351
call fcn.010015e0
mov edi, ecx
mov dword [ebp - 0x10], edi
xor ebx, ebx
mov esi, 0xf001f
cmp dword [edi + 0x54], ebx
jne 0x1006286
lea ecx, [ebp - 0x38]
call fcn.01006b56
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 4], ebx
call fcn.010072b8
push ebx
push esi
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.01006313
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.01005d67
lea eax, [ebp - 0xac]
push eax
call fcn.01005214
push ebx
push esi
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.01006313
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.01005d67
lea eax, [ebp - 0xac]
push eax
call fcn.0100523e
push ebx
push esi
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.01006313
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.01005d67
lea eax, [ebp - 0xac]
push eax
call fcn.01007173
push ebx
push 4
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.01006313
lea ecx, [ebp - 0xac]
call fcn.01005d67
mov edi, 0x10069c0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
push ebx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.01006df1
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x4c]
call fcn.01007046
push 0x10062d0
push 4
push ebx
push 4
lea eax, [ebp - 0x4c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [ebp - 0x10]
push eax
add ecx, 0x50
call fcn.01002cc0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
call fcn.010069cd
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
call fcn.010069cd
lea ecx, [ebp - 0x38]
call fcn.01007488
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x10], ebx
cmp dword [edi + 0x54], ebx
je 0x101fa42
cmp dword [edi + 0x4c], ebx
jne 0x10062b1
mov eax, dword [edi + 0x54]
push 4
push ebx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x4c], eax
cmp eax, ebx
je 0x101fa5f
cmp dword [ebp - 0x10], ebx
jl 0x10062be
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x48]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
call fcn.010015c0
ret
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x10062be
jmp 0x1006292
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10062c7
and eax, 0xffff
or eax, 0x80070000
jmp 0x10062c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x101fa73
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
jmp 0x10062b1
Function at 0x100663b
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x260
mov eax, 0x1044501
call fcn.01002a3a
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov eax, dword [eax]
mov esi, 0x2001f
push esi
push eax
push ecx
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], ebx
call fcn.0100484b
cmp eax, ebx
jne 0x1020710
mov dword [ebp - 0x214], ebx
lea eax, [ebp - 0x240]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x238], 0x100
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x100679e
cmp eax, ebx
jne 0x1020737
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x228]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.0100484b
cmp eax, ebx
jne 0x102074a
lea ecx, [ebp - 0x26c]
call fcn.01004f6d
push 0x104a104
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
call fcn.01003060
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.01006d36
mov edi, eax
cmp edi, ebx
jl 0x102075a
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x218]
call fcn.010070d3
mov ecx, dword [ebp - 0x218]
inc dword [ebp - 0x214]
add ecx, 0xfffffff0
call fcn.01002990
lea ecx, [ebp - 0x26c]
call fcn.01002a01
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.01004887
jmp 0x1006690
xor edi, edi
lea eax, [ebp - 0x21c]
push eax
push dword [0x104b7f8]
lea ecx, [ebp - 0x228]
call fcn.0100480c
test eax, eax
jne 0x10067ce
mov eax, dword [ebp - 0x214]
cmp dword [ebp - 0x21c], eax
jne 0x1020783
lea ecx, [ebp - 0x228]
call fcn.01004887
mov eax, edi
call fcn.01002a77
ret 8
cmp edi, ebx
jge 0x10067a0
jmp 0x10067ce
cmp eax, 2
je 0x1020725
cmp eax, ebx
jle 0x1020723
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
lea ecx, [ebp - 0x228]
call fcn.01004887
mov eax, ebx
jmp 0x10067db
jle 0x1020743
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x10067e3
jle 0x1020756
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1020773
mov ecx, dword [ebp - 0x218]
add ecx, 0xfffffff0
call fcn.01002990
lea ecx, [ebp - 0x26c]
call fcn.01002a01
lea ecx, [ebp - 0x234]
call fcn.01004887
jmp 0x10067e3
mov edi, 0x80004005
jmp 0x10067ce
Function at 0x100a366
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x100a03c
push 0x10
xor ebx, ebx
push eax
mov byte [ebp - 0x25], bl
call fcn.0100a257
add esp, 0x10
test eax, eax
jl 0x100a3d8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push 8
lea eax, [ebp - 0x24]
push eax
push edi
push 0x80000002
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x14
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x100ab0d
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x25]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002a8b
leave
ret 4
cmp dword [ebp - 0x2c], 0x14
jne 0x100a3d8
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0100aa81
mov byte [ebp - 0x25], al
jmp 0x100a3d8

Function at 0x100a64e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x100a03c
push 0x10
push eax
xor bl, bl
call fcn.0100a257
add esp, 0x10
test eax, eax
jl 0x100a6be
lea eax, [ebp - 0x28]
push eax
push 2
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a6be
push 0x14
push esi
push 3
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100a6b5
inc bl
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.01002a8b
leave
ret 4