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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
jne 0x450dbd
push 0x1cb21e
call fcn.0044a6b6
jmp 0x450f1c
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x450dd4
push 0x1cb21f
call fcn.0044a6b6
jmp 0x450f1b
push ebx
mov ebx, dword [ebp + 8]
push 2
pop ecx
cmp ebx, ecx
je 0x450df3
cmp ebx, 8
je 0x450df3
cmp ebx, 3
je 0x450df3
push 0x1cb220
jmp 0x450eee
cmp dword [eax], esi
je 0x450e01
push 0x1cb221
call fcn.0044a6b6
cmp dword [edi], esi
je 0x450e0f
push 0x1cb222
call fcn.0044a6b6
push edi
push esi
push ebx
mov dword [edi], esi
call sub.Secur32.dll_GetUserNameExW
movzx esi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x450ef5
cmp eax, 0xea
jne 0x450ef5
mov eax, dword [edi]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004200b8
mov esi, dword [ebp + 0xc]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x450e5e
push 0x1cb240
jmp 0x450ed6
mov eax, dword [edi]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
push ebx
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x450e79
push 0x1cb241
jmp 0x450ed6
mov eax, dword [edi]
dec eax
cmp dword [ebp - 4], eax
je 0x450e8b
push 0x1cb242
call fcn.0044a6b6
push 2
pop eax
cmp ebx, eax
jne 0x450ea7
push dword [edi]
mov eax, dword [esi]
call fcn.00450d3b
pop ecx
test eax, eax
jne 0x450f1a
push 0x1cb243
jmp 0x450ed6
cmp ebx, 8
jne 0x450ee4
cmp dword [esi], 0
jne 0x450eb8
push 0x1cb21c
jmp 0x450ecc
push 0x40
push dword [esi]
call fcn.0045c8bb
pop ecx
pop ecx
test eax, eax
jne 0x450edd
push 0x1cb21d
call fcn.0044a6b6
push 0x1cb244
call fcn.0044a6b6
jmp 0x450f02
xor ecx, ecx
mov word [eax], cx
jmp 0x450f1a
cmp ebx, 3
je 0x450f1a
push 0x1cb245
call fcn.0044a6b6
jmp 0x450f1a
push 0x1cb223
call fcn.0044a6b6
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x450f12
push dword [esi]
call fcn.0041f1f0
and dword [esi], 0
pop ecx
cmp dword [edi], 0
je 0x450f1a
and dword [edi], 0
pop ebx
pop edi
pop esi
leave
ret

Function at 0x450f1f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0x1c
push edi
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x450f9a
push dword [ebp + 8]
push edi
push 0x41b9ec
call fcn.0043e61b
inc esi
cmp dword [ebp + 0xc], 0
je 0x450f9a
push edi
call fcn.0047014e
test eax, eax
jne 0x450f9a
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0044aa3b
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x41ba14
call fcn.0047007c
lea eax, [ebp - 0x20c]
push eax
call fcn.0047016d
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045cd7f
leave
ret

Function at 0x45cd7f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a95d0]
jne fcn.0045d56f
repz ret
Function at 0x45d56f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4c1f10], eax
mov dword [0x4c1f0c], ecx
mov dword [0x4c1f08], edx
mov dword [0x4c1f04], ebx
mov dword [0x4c1f00], esi
mov dword [0x4c1efc], edi
mov word [0x4c1f28], ss
mov word [0x4c1f1c], cs
mov word [0x4c1ef8], ds
mov word [0x4c1ef4], es
mov word [0x4c1ef0], fs
mov word [0x4c1eec], gs
pushfd
pop dword [0x4c1f20]
mov eax, dword [ebp]
mov dword [0x4c1f14], eax
mov eax, dword [ebp + 4]
mov dword [0x4c1f18], eax
lea eax, [ebp + 8]
mov dword [0x4c1f24], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4c1e60], 0x10001
mov eax, dword [0x4c1f18]
mov dword [0x4c1e14], eax
mov dword [0x4c1e08], 0xc0000409
mov dword [0x4c1e0c], 1
mov eax, dword [0x4a95d0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x4a95d4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x4c1e58], eax
push 1
call fcn.00461e8e
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x41c780
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x4c1e58], 0
jne 0x45d65b
push 1
call fcn.00461e8e
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x468435
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0046195b
and dword [ebp - 0x14], 0
cmp dword [0x4c2a3c], 0
mov dword [ebp - 0x18], eax
jne 0x4684e8
push 0x41d690
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x468590
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41d684
push ebx
call edi
test eax, eax
je 0x468590
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x41d674
push ebx
mov dword [0x4c2a3c], eax
call edi
push eax
call esi
push 0x41d660
push ebx
mov dword [0x4c2a40], eax
call edi
push eax
call esi
push 0x41d644
push ebx
mov dword [0x4c2a44], eax
call edi
push eax
call esi
mov dword [0x4c2a4c], eax
test eax, eax
je 0x4684e8
push 0x41d62c
push ebx
call edi
push eax
call esi
mov dword [0x4c2a48], eax
mov eax, dword [0x4c2a48]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x468541
cmp dword [0x4c2a4c], ecx
je 0x468541
push eax
call esi
push dword [0x4c2a4c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x468541
test ebx, ebx
je 0x468541
call edi
test eax, eax
je 0x468538
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x468538
test byte [ebp - 8], 1
jne 0x468541
or dword [ebp + 0x10], 0x200000
jmp 0x468574
mov eax, dword [0x4c2a40]
cmp eax, dword [ebp - 0x18]
je 0x468574
push eax
call esi
test eax, eax
je 0x468574
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x468574
mov eax, dword [0x4c2a44]
cmp eax, dword [ebp - 0x18]
je 0x468574
push eax
call esi
test eax, eax
je 0x468574
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c2a3c]
call esi
test eax, eax
je 0x468590
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x468592
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret

Function at 0x46e83f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x46e86e
xor eax, eax
jmp 0x46e896
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x46e88b
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x46e89b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 4
Function at 0x46e8b5
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x46e916
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x46e90a
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret
Function at 0x46ed16
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x464]
push ebx
push eax
mov dword [ebp - 0x468], 0x44
call fcn.0045d10c
xor eax, eax
mov dword [ebp - 0x424], ebx
lea edi, [ebp - 0x420]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push esi
stosd dword es:[edi], eax
call fcn.0041f203
cmp eax, 0x104
jg 0x46edcc
push dword [ebp + 0xc]
lea eax, [ebp - 0x414]
push 0x6b
push esi
push 0x41e138
push 0x208
push eax
call fcn.0045caf7
add esp, 0x18
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push ebx
push ebx
push 0x4000020
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x46edcc
push dword [ebp - 0x424]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x420]
call esi
jmp 0x46edd6
push 0x30303030
call fcn.0044a6b6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret 8

Function at 0x46eec6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0046f380
test eax, eax
je 0x46ef37
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46ef37
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x41e1b0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46ef2d
cmp dword [ebp - 0x10], 1
je 0x46ef2d
mov word [esi], ax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0xc
Function at 0x47016d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100
lea eax, [ebp - 0x904]
push 0
push eax
call fcn.0045d10c
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
xor edi, edi
call fcn.0042027c
push 0x5c
pop esi
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.004743d8
pop ecx
pop ecx
test eax, eax
je 0x4701d2
xor ecx, ecx
mov dword [ebp + edi*4 - 0x904], eax
mov word [eax], cx
inc edi
cmp edi, 0x40
jge 0x470215
test eax, eax
je 0x47020b
lea eax, [ebp - 0x804]
push eax
call fcn.004702bf
test eax, eax
js 0x4701b2
jmp 0x47020b
mov eax, dword [ebp + edi*4 - 0x908]
dec edi
mov word [eax], si
push 0
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x470215
cmp edi, 1
jg 0x4701ed
xor eax, eax
inc eax
jmp 0x470217
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045cd7f
leave
ret 4

Function at 0x470420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x470468
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x470468
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x470468
cmp word [eax + 2], 0
je 0x470468
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x470468
add eax, 0x30
jmp 0x47046d
mov eax, 0x41e320
pop esi
pop ebp
ret
Function at 0x471a29
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
call fcn.00474426
test eax, eax
je 0x471b4a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor edi, edi
push edi
push 0x41e4a0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], edi
call esi
test eax, eax
jne 0x471b1c
lea eax, [ebp - 0x218]
push eax
push 0x20119
push edi
push 0x41e4a0
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x471b1c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x41e504
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x471b1c
cmp dword [ebp - 0x220], 1
jne 0x471b1c
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x41e504
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x471b1c
cmp dword [ebp - 0x220], 1
jne 0x471b1c
inc bl
mov eax, dword [ebp - 0x218]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x471b35
push eax
mov dword [ebp - 0x218], edi
call esi
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x471b48
push ecx
mov dword [ebp - 0x214], edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret
Function at 0x472cbd
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4746e1
call fcn.0045feda
mov ebx, dword [ebp + 8]
xor edi, edi
or esi, 0xffffffff
test edi, edi
jne 0x472ce6
cmp dword [0x4c2cfc], edi
je 0x472dd0
push 2
pop ebx
jmp 0x472d00
cmp edi, 1
jne 0x472dd0
mov eax, ebx
call fcn.00473b25
test al, al
je 0x472dd0
xor ebx, ebx
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x1c], ebx
call fcn.00473b47
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0xc]
shr eax, 1
and eax, 0x10
or eax, ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 8]
jmp 0x472db2
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x472d47
mov eax, dword [ebx]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [ebp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call fcn.004733a7
test eax, eax
je 0x472de4
push 0x1c049f
push 0
call fcn.0044a722
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
and dword [eax + 0x4aa988], 0
push ebx
mov ecx, 0x4c2d08
call fcn.00472b3c
movzx eax, word [esi + 0xc]
and dword [ebp - 0x14], 0
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call fcn.00473435
mov esi, eax
test esi, esi
je 0x472d33
mov ebx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.00473b68
inc edi
cmp edi, 2
jl 0x472cce
mov eax, esi
call fcn.0045ffb2
ret 0x18
push ebx
mov ecx, 0x4c2d08
call fcn.00472aa0
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x472dc4
movzx ecx, word [ebx + 0xc]
mov eax, ecx
and eax, 0xf
cmp dword [ebp - 0x20], eax
je 0x472e1f
cmp dword [ebp - 0x20], 3
jne 0x472e1a
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
jne 0x472e1a
and cl, 0xf
cmp cl, 4
je 0x472e1f
push 2
pop esi
jmp 0x472dc4
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0xd]
mov dword [eax], 1
call fcn.00473b68
xor eax, eax
jmp 0x472ddc
Function at 0x4732a8
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x474752
call fcn.0045feda
mov esi, dword [ebp + 8]
cmp esi, dword [0x4c2d00]
jne 0x4732c6
xor al, al
jmp 0x47339f
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x4732d7
xor ecx, ecx
cmp dword [0x4c2cfc], ecx
jmp 0x4732e2
mov eax, esi
call fcn.00473b25
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x4732bf
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.00473b47
mov dword [ebp - 4], edi
movzx edi, bl
neg edi
sbb edi, edi
and edi, 2
xor ebx, ebx
jmp 0x473360
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x473316
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.004733a7
test eax, eax
je 0x473385
push 0x1c04c2
xor ebx, ebx
push ebx
call fcn.0044a722
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp + 8]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x4c2d08
mov dword [eax + 0x4aa988], ebx
call fcn.00472b3c
mov dword [ebp + 8], ebx
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
push ebx
or eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call fcn.00473435
mov ebx, eax
test ebx, ebx
je 0x47330a
jmp 0x473392
push dword [ebp + 8]
mov ecx, 0x4c2d08
call fcn.00472aa0
lea ecx, [ebp + 0xf]
call fcn.00473b68
test ebx, ebx
sete al
call fcn.0045ffb2
ret 8

Function at 0x473a79
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x473a8b
mov ecx, dword [edi]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push 0xffff
push dword [ebp + 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [ebp - 4], 2
mov esi, eax
jae 0x473abc
cmp dword [ebp + 0xc], 1
je 0x473ab9
cmp dword [ebp + 0xc], 2
jne 0x473abc
push 2
pop esi
mov eax, esi
call fcn.004733a7
test eax, eax
je 0x473ae0
push 0x1c0491
push 0
call fcn.0044a722
push edi
mov ecx, 0x4c2d08
call fcn.00472b3c
jmp 0x473b1d
test esi, esi
jne 0x473b12
mov ecx, dword [ebp + 0xc]
cmp ecx, 2
je 0x473af1
cmp ecx, 1
jne 0x473b00
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x10]
push eax
push ecx
call fcn.0047327e
test eax, eax
jne 0x473b12
push 2
pop esi
push edi
mov ecx, 0x4c2d08
call fcn.00472aa0
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x473b89
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4747a8
call fcn.0045feda
mov esi, dword [ebp + 8]
cmp esi, dword [0x4c2d00]
jne 0x473ba7
xor eax, eax
jmp 0x473d0c
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x473bca
cmp dword [0x4c2cfc], ebx
je 0x473ccc
push 2
pop edi
jmp 0x473be4
cmp ebx, 1
jne 0x473ccc
mov eax, esi
call fcn.00473b25
test al, al
je 0x473ccc
xor edi, edi
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x20], edi
call fcn.00473b47
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
push eax
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, edi
jmp 0x473c8f
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x473c18
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], 2
mov edi, eax
jae 0x473c44
cmp dword [ebp - 0x1c], 1
je 0x473c41
cmp dword [ebp - 0x1c], 2
jne 0x473c44
push 2
pop edi
mov eax, edi
call fcn.004733a7
test eax, eax
je 0x473cac
push 0x1c0496
xor edi, edi
push edi
call fcn.0044a722
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x4c2d08
mov dword [eax + 0x4aa988], edi
call fcn.00472b3c
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call fcn.00473435
mov edi, eax
test edi, edi
je 0x473c0c
jmp 0x473cbd
push dword [ebp - 0x10]
mov ecx, 0x4c2d08
call fcn.00472aa0
test edi, edi
je 0x473cd8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.00473b68
mov ecx, dword [ebp - 0x18]
inc ebx
cmp ebx, 2
jl 0x473bb2
jmp 0x473ce7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.00473b68
mov ecx, dword [ebp - 0x18]
test edi, edi
jne 0x473d02
cmp dword [ebp - 0x1c], 2
je 0x473cfa
mov al, byte [esi + 0xc]
and al, 0xf
cmp al, 2
jne 0x473d0a
push ecx
call fcn.004724f2
jmp 0x473d08
push esi
call fcn.00471f92
mov ecx, eax
mov eax, ecx
call fcn.0045ffb2
ret 4
Function at 0x473f17
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x29c], eax
mov eax, dword [0x4aaa64]
push ebx
mov ebx, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4740f2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov dword [ebp - 0x2a0], edi
test edi, edi
je 0x4740f1
push esi
xor esi, esi
cmp dword [edi], esi
jne 0x4740f0
mov dword [edi], 1
cmp ebx, 0x7e
ja 0x4740ee
mov ebx, dword [edi + ebx*4 + 4]
mov dword [ebp - 0x2a4], ebx
test ebx, ebx
je 0x4740ee
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.0045d10c
mov eax, dword [ebp + 0x14]
and eax, 3
add esp, 0xc
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x298], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push ebx
mov dword [ebp - 0x294], eax
call fcn.0047421a
cmp eax, dword [ebx + 0x24]
jg 0x474013
mov ecx, dword [ebx + 0x48]
cmp ecx, dword [ebx + 0x44]
jae 0x474013
test byte [ebx + 4], 1
jne 0x474013
test dword [ebx + 4], 0x400
jne 0x474013
test byte [ebp + 0x14], 0x10
jne 0x474013
cmp dword [0x4c3060], esi
je 0x474013
push esi
lea eax, [ebp - 0x28c]
push eax
push 0x20
push 1
call dword [sym.imp.KERNEL32.dll_RtlCaptureStackBackTrace]
movzx eax, ax
mov dword [ebp - 0x290], eax
jmp 0x474015
mov eax, esi
mov edi, dword [ebp - 0x298]
mov esi, ebx
mov ebx, dword [ebp - 0x29c]
push ebx
push eax
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x294]
push dword [ebp + 0xc]
push edi
call fcn.0047430f
test byte [esi + 4], 2
jne 0x474054
mov esi, dword [esi]
mov eax, dword [ebp - 0x290]
test esi, esi
jne 0x474023
mov ebx, dword [ebp - 0x2a4]
test edi, edi
mov edi, dword [ebp - 0x2a0]
jne 0x47409b
test byte [0x4c1b40], 2
je 0x47409b
push dword [ebp - 0x29c]
push dword [ebp - 0x294]
push dword [ebp + 0xc]
push dword [ebx + 8]
push dword [ebx + 0x38]
push dword [ebx + 0x34]
push 0x41b538
push dword [0x4c1b4c]
push dword [0x4c1b48]
call fcn.00474101
mov esi, dword [ebx + 0xc]
cmp esi, 0xffffffff
je 0x4740e9
mov esi, dword [edi + esi*4 + 4]
test esi, esi
je 0x4740e9
mov edi, dword [ebp - 0x298]
mov ebx, dword [ebp - 0x290]
push 0
push ebx
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x294]
push dword [ebp + 0xc]
push edi
call fcn.0047430f
test byte [esi + 4], 2
jne 0x4740e3
mov esi, dword [esi]
test esi, esi
jne 0x4740b7
mov edi, dword [ebp - 0x2a0]
and dword [edi], 0
jmp 0x4740f0
mov dword [edi], esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret 0x10