joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d7a6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419458]
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.00404d65
mov dword [ebp - 0x14], eax
cmp dword [0x45fa08], esi
jne 0x40d899
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d826
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d979
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d979
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d979
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45fa08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45fa0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45fa10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45fa18], eax
test eax, eax
je 0x40d896
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45fa14], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d8be
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d8b1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d8d3
push 4
pop eax
jmp 0x40d97b
cmp dword [ebp - 0x14], esi
je 0x40d8d3
push dword [0x45fa08]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d8b8
mov eax, dword [0x45fa14]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d931
cmp dword [0x45fa18], edi
je 0x40d931
push eax
call ebx
push dword [0x45fa18]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d931
test eax, eax
je 0x40d931
call ecx
test eax, eax
je 0x40d926
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 0x40d926
test byte [ebp - 8], 1
jne 0x40d931
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d961
mov eax, dword [0x45fa0c]
cmp eax, edi
je 0x40d95e
push eax
call ebx
test eax, eax
je 0x40d95e
call eax
mov esi, eax
test esi, esi
je 0x40d95e
mov eax, dword [0x45fa10]
cmp eax, edi
je 0x40d95e
push eax
call ebx
test eax, eax
je 0x40d95e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45fa08]
call ebx
test eax, eax
je 0x40d979
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d97b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fd7
mov esp, ebp
pop ebp
ret
Function at 0x462000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
jmp 0x46228a
pop edi
mov eax, 0xd
pop esi
pop ebp
push 0x4621c6
ret
je 0x4620b0
cmp eax, 2
jne 0x46204f
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4621ce
push 0x46202e
ret
lea eax, [ebp + 0xc]
jmp 0x46225c
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x462300
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4620a1
jne 0x4620a1
lcall 0x502, 0x100101e
jmp dword [ecx*4 + 0x413d94]
pop esi
pop ebp
je 0x462216
jne 0x462216
mov ecx, dword [0xd2aefc]
mov dword [eax + esi*4], 7
mov dword [0xd44b68], ebx
aaa
cmp eax, 0x38b0278c
stosd dword es:[edi], eax
fistp dword [edi + 0xcc28d]
xor eax, eax
mov word [esi], ax
shr ecx, 1
push 0x4622fc
ret
ret 0xc
push eax
push 0
je 0x4622cb
jne 0x4622cb
mov byte [esi - 4], 1
mov dword [ebp - 0x284], 0x64
lea eax, [edi + 0x70]
jmp dword [0x50828c]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
jmp 0x462102
push dword [ebp + 8]
je 0x462158
jne 0x462158
push 0x1022b568
cmp byte [ecx + 0x250], 0
add byte [edx - 0x1dffbe23], dh
mov byte [ebx + 0x30], al
mov dword [0x11545030], eax
mov ch, 0xbd
std
sbb bx, bp
loop 0x462320
mov dword [edi], ecx
xor eax, eax
pop edi
jmp 0x46219b
loopne 0x462329
dec edi
add byte [ebx], bh
adc eax, 0x1003d010
cmp eax, 0x98
adc byte [0x98], bh
dec edi
in al, 0xc5
cmc
int3

Function at 0x463520
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push ebp
jmp 0x463e46
push 0x4726d8
push 0x463b88
ret
mov ebp, esp
je 0x464602
jne 0x464602
jmp dword [0xd8c2ec]
push 0xffffffffffffffff
je 0x463999
jne 0x463999
push 0xa8005c
movzx eax, byte [eax + str.en_BZ]
call dword [0xcefedc]
mov word [ecx + 8], bx
push 0x1148f6bc
mov dword [esi + 0x18], 0x112f5980
lea ebx, [ecx + edx*4 + 8]
pop esp
and dword [ebx - 0x60cdcd0], ebp
xor dl, byte [edi + 0x6a404b6d]
adc al, 0x68
and byte [edi + eax*2 + 0x44b2e800], bl
add byte [eax], al
Function at 0x46f45e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x525138]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004687ef
mov dword [ebp - 0x14], eax
cmp dword [0x527058], edi
jne 0x46f54f
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x46f4dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x46f62f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x46f62f
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46f62f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x527058], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x52705c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x527060], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x527068], eax
test eax, eax
je 0x46f54c
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x527064], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x46f574
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46f567
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x46f589
push 4
pop eax
jmp 0x46f631
cmp dword [ebp - 0x14], edi
je 0x46f589
push dword [0x527058]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x46f56e
mov eax, dword [0x527064]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x46f5e7
cmp dword [0x527068], esi
je 0x46f5e7
push eax
call ebx
push dword [0x527068]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x46f5e7
test eax, eax
je 0x46f5e7
call ecx
test eax, eax
je 0x46f5dc
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 0x46f5dc
test byte [ebp - 8], 1
jne 0x46f5e7
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x46f617
mov eax, dword [0x52705c]
cmp eax, esi
je 0x46f614
push eax
call ebx
test eax, eax
je 0x46f614
call eax
mov edi, eax
test edi, edi
je 0x46f614
mov eax, dword [0x527060]
cmp eax, esi
je 0x46f614
push eax
call ebx
test eax, eax
je 0x46f614
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x527058]
call ebx
test eax, eax
je 0x46f62f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x46f631
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004647c3
leave
ret
Function at 0x100010c0
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 0x100010d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001114
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10001110
lea ebx, [ebx]
cmp esi, eax
jae 0x10001114
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001100
cmp esi, eax
jb 0x1000111a
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
Function at 0x10003890
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1001ce18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10025814]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
xor bl, bl
cmp dword [esi + 0x54], 8
mov byte [esp + 0x17], bl
jb 0x100038ca
mov eax, dword [esi + 0x40]
jmp 0x100038cd
lea eax, [esi + 0x40]
push eax
lea ecx, [esp + 0x1c]
call fcn.10003620
mov edx, dword [esi + 0x20]
mov dword [esp + 0x28], 0
test edx, edx
jne 0x100038ea
xor eax, eax
jmp 0x100038ff
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100038f0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.10002440
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
push edi
push eax
push VariantInit
mov ecx, esi
call fcn.10001240
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x10003a11
mov ecx, dword [esi + 0x2c]
push edi
push ecx
push ebp
mov ecx, esi
call fcn.10001240
mov ebx, eax
test ebx, ebx
je 0x10003a06
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x18], 8
jb 0x10003954
mov eax, dword [eax + 4]
jmp 0x10003957
add eax, 4
push edi
push eax
push ebx
mov ecx, esi
call fcn.10001240
mov ebp, eax
test ebp, ebp
je 0x100039fb
mov edx, dword [esi + 0x30]
push edi
push edx
push ebp
mov ecx, esi
call fcn.10001240
mov esi, eax
test esi, esi
je 0x100039f4
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.Blocked
push esi
mov dword [esp + 0x4c], 1
call edi
push 4
lea ecx, [esp + 0x38]
push ecx
push 4
push 0
push str.Count
push esi
call edi
push 4
lea edx, [esp + 0x38]
push edx
push 4
push 0
push str.Flags
push esi
mov dword [esp + 0x4c], 0
call edi
push 4
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.Type
push esi
mov dword [esp + 0x4c], 3
call edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x17], 1
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [esp + 0x17]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003a39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x100040d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1001cef6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10025814]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x54], 7
mov dword [esi + 0x50], eax
mov word [esi + 0x40], cx
lea ecx, [esi + 0x58]
mov dword [esp + 0x14], eax
call fcn.100036d0
lea ecx, [esi + 0x70]
mov byte [esp + 0x14], 1
call fcn.100036d0
mov al, 0x66
mov byte [esi + 1], al
mov byte [esi + 8], al
mov al, 0x2a
mov byte [esi + 0xa], al
mov byte [esi + 0xf], al
mov al, 0x2c
mov cl, 0x3b
mov byte [esi + 0x18], al
mov byte [esi + 0x1f], al
mov byte [esi], 0x51
mov byte [esi + 2], 0x7a
mov byte [esi + 3], 0x6c
mov byte [esi + 4], 0x4c
mov byte [esi + 5], 0x1d
mov byte [esi + 6], cl
mov byte [esi + 7], 0x1b
mov byte [esi + 9], 0x3f
mov byte [esi + 0xb], 0x28
mov byte [esi + 0xc], 0x1c
mov byte [esi + 0xd], 0x43
mov byte [esi + 0xe], 0x27
mov byte [esi + 0x10], 0x3d
mov byte [esi + 0x11], 0x2e
mov byte [esi + 0x12], 0x22
mov byte [esi + 0x13], 0x29
mov byte [esi + 0x14], 7
mov byte [esi + 0x15], 0x63
mov byte [esi + 0x16], 0x5f
mov byte [esi + 0x17], 0x7d
mov byte [esi + 0x19], cl
mov byte [esi + 0x1a], 0x72
mov byte [esi + 0x1b], 0x6d
mov byte [esi + 0x1c], 0x30
mov byte [esi + 0x1d], 0x73
mov byte [esi + 0x1e], 0x75
mov dword [esi + 0x20], str.SoftwareMicrosoftInternet_Explorer
mov dword [esi + 0x24], str.Approved_Extensions
mov dword [esi + 0x28], str.SoftwareMicrosoftWindowsCurrentVersionExt
mov dword [esi + 0x2c], str.Stats
mov dword [esi + 0x30], str.iexplore
mov dword [esi + 0x34], str.MAO_Settings
mov dword [esi + 0x38], str.AddonLoadTimeThreshold
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x10005600
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x10005620
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x10005634
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x10005660
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x10005676
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x10005683
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x10005d90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x10025814]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x10005e0f
xor eax, eax
cmp ecx, ebx
je 0x10005df7
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x10005e33
cmp ecx, ebx
je 0x10005e1a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1000fcdf
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x10005e9a
jmp 0x10005e60
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.10005d90
mov edi, eax
cmp edi, ebx
jne 0x10005ee9
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x10005e60
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10005ead
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.100055a0
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10005ed0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1000fcdf
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10005ef8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000fcdf
mov esp, ebp
pop ebp
ret 4
Function at 0x10007ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x1001d1c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10025814]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x10007c22
call fcn.10005500
mov edi, eax
jmp 0x10007d04
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10007c3b
call fcn.10005500
jmp 0x10007cfb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x10007c56
call fcn.10005500
jmp 0x10007cfb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x10007c8c
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x10007c7a
lea ecx, [ebp]
call fcn.10005d30
lea ecx, [ebp - 0x20]
call fcn.10005cd0
mov eax, 0x8007000e
jmp 0x10007d16
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.10006d60
mov dword [ebp - 4], 1
jmp 0x10007cb8
mov eax, dword [ebp]
test eax, eax
jne 0x10007cc6
mov edi, 0x8007000e
jmp 0x10007cfd
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10007cdf
call fcn.10005500
jmp 0x10007cfb
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10007a30
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x10007d14
lea ecx, [ebp]
call fcn.10005d30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.1000fcdf
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000b880
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x10025814]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.1000f7e0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x1000b8eb
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
jne 0x1000b8eb
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.1000fcdf
add esp, 0x120
ret
mov eax, dword [esp + 0x14]
sub eax, 1
je 0x1000b9d5
sub eax, 1
jne 0x1000ba0e
mov eax, dword [esp + 8]
cmp eax, 4
ja 0x1000b925
mov eax, 0x401
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.1000fcdf
add esp, 0x120
ret
cmp eax, 5
jne 0x1000b98d
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1000b94d
mov eax, 0x500
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.1000fcdf
add esp, 0x120
ret
cmp eax, 1
jne 0x1000b96d
mov eax, 0x501
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.1000fcdf
add esp, 0x120
ret
cmp eax, 2
jne 0x1000b99a
mov eax, 0x502
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.1000fcdf
add esp, 0x120
ret
cmp eax, 6
jne 0x1000b99a
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1000b9b5
mov eax, 0x600
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.1000fcdf
add esp, 0x120
ret
cmp eax, 1
jne 0x1000b99a
mov eax, 0x601
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.1000fcdf
add esp, 0x120
ret
cmp dword [esp + 8], 4
jne 0x1000ba0e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1000ba0e
cmp eax, 0xa
jne 0x1000ba04
mov eax, 0x40a
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.1000fcdf
add esp, 0x120
ret
cmp eax, 0x5a
mov eax, 0x45a
je 0x1000ba13
mov eax, 0x400
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.1000fcdf
add esp, 0x120
ret

Function at 0x1000bdb0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000be26
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x1000bdf5
cmp eax, 2
jne 0x1000be11
mov eax, dword [esp + 0x14]
test esi, esi
je 0x1000be20
test eax, eax
je 0x1000be1b
test al, 1
jne 0x1000be11
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x1000be20
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x1000c3b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push ecx
push edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
jne 0x1000c42a
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000c41d
cmp dword [esp + 0x14], 4
je 0x1000c421
mov dword [esp + 0x28], edi
test esi, esi
je 0x1000c42a
push esi
call ebp
xor esi, esi
mov edi, dword [esp + 0x28]
test esi, esi
je 0x1000c435
push esi
call ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c455
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c475
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret