joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ab0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x45818b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4736c0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4736c0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x1d]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x24], 0
call fcn.00442fd0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
movsx edx, byte [esp + 0x18]
push edx
add esi, 0x13cafc
push str._c:Program_FilesBomulBox
push esi
call fcn.00408090
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add esp, 0xc
push eax
call ebx
test eax, eax
jne 0x401bed
call fcn.0042759d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401b5d
push 0x80004005
call fcn.00407f00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x128], 0
movsx ecx, byte [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push str._c:Program_Files
push edx
call fcn.00408090
mov ebp, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
push 0
push ebp
call edi
mov eax, dword [esi]
push 0
push eax
call edi
mov esi, dword [esi]
push esi
call ebx
or edx, 0xffffffff
test eax, eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x128], 0xffffffff
lea ecx, [eax + 0xc]
jne 0x401bda
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401bd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x401bf2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401bed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004404d0
add esp, 0x118
ret

Function at 0x401c20
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push edi
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401c4b
test al, 0x10
jne 0x401c4b
mov eax, dword [esp + 8]
push 1
push edi
push eax
push esi
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test eax, eax
lea eax, [edi + 1]
jne 0x401c4d
mov eax, edi
pop edi
ret 4

Function at 0x401c60
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4736c0]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401c9f
cmp dword [esp + 0x14], 2
jne 0x401c9f
cmp dword [esp + 8], 6
lea eax, [esi + 1]
jae 0x401ca1
mov eax, esi
mov ecx, dword [esp + 0x98]
pop esi
xor ecx, esp
call fcn.004404d0
add esp, 0x98
ret
Function at 0x401cc0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x3c
push esi
push 0x3c
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call fcn.00442fd0
add esp, 0xc
mov dword [esp + 4], 0x3c
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], 5
mov dword [esp + 8], 0x8040
call fcn.00401c60
cmp eax, 1
mov dword [esp + 0x10], str.runas
je 0x401d10
mov dword [esp + 0x10], str.open
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401d50
test al, 0x10
jne 0x401d50
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, eax
cmp esi, 1
jne 0x401d50
mov edx, dword [esp + 0x3c]
push 0x186a0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
test eax, eax
sete cl
pop esi
mov eax, ecx
add esp, 0x3c
ret
mov eax, esi
pop esi
add esp, 0x3c
ret
Function at 0x407380
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x4589a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4736c0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
call fcn.0042759d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4073bf
push 0x80004005
call fcn.00407f00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], 0
push ecx
mov dword [esp + 0x30], 0
mov ecx, esp
mov dword [esp + 0x10], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp + 0x1c], OleUIBusyA
call fcn.004080b0
lea esi, [esp + 0x14]
call fcn.0040b050
mov edx, dword [esp + 0x34]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.004080b0
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.BomulBox_Update
mov byte [esp + 0x38], 1
call fcn.004080b0
mov edi, esi
mov byte [esp + 0x34], 0
call fcn.0040b410
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.004081b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40746f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 4

Function at 0x4076d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45916b
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4736c0]
xor eax, esp
mov dword [esp + 0x110], eax
push esi
push edi
mov eax, dword [0x4736c0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.00442fd0
add esp, 0xc
push 0
push 0x25
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp byte [esp + 0x14], 0
jne 0x407751
push str.C:WINDOWS_system32
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.004401b6
add esp, 0xc
call fcn.0042759d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40776b
push 0x80004005
call fcn.00407f00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x4619a8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push str._s_s
push edx
mov dword [esp + 0x138], 0
call fcn.00408090
mov esi, dword [esp + 0x20]
add esp, 0x10
push esi
call fcn.00407380
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x128], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004404d0
add esp, 0x120
ret
Function at 0x408500
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 0x408519
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408554
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x408550
lea ebx, [ebx]
cmp esi, eax
jae 0x408554
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408540
cmp esi, eax
jb 0x40855a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x408b40
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push 0x7d0
push eax
mov dword [esi], vtable.CDownloader.0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x408b68
mov ecx, dword [esi + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xc]
push edx
mov dword [esi], vtable.CHFW_Thread.0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [esp + 8], 1
mov dword [esi + 0xc], 0
je 0x408b8f
push esi
call fcn.00421a44
add esp, 4
mov eax, esi
pop esi
ret 4
Function at 0x409840
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x3c
push esi
push 0x3c
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call fcn.00442fd0
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov dword [esp + 4], 0x3c
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 5
mov dword [esp + 8], 0x8040
call fcn.00401c60
cmp eax, 1
mov dword [esp + 0x10], str.runas
je 0x409894
mov dword [esp + 0x10], str.open
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4098cf
test al, 0x10
jne 0x4098cf
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, eax
cmp esi, 1
jne 0x4098cf
mov eax, dword [esp + 0x3c]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
add esp, 0x3c
ret 4
mov eax, esi
pop esi
add esp, 0x3c
ret 4

Function at 0x4098e0
Capabilities:
Download url
Print debug messages
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ebx, eax
push ebx
mov dword [esp + 0x14], vtable.CCallback.0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], edi
mov dword [esi + 0xd22e0], edi
mov dword [esi + 0xd22e4], edi
mov dword [esi + 0xd22e8], edi
mov dword [esi + 0xd22ec], edi
mov dword [esi + 0xd236c], edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xd2320]
push edi
push edi
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x20]
push edi
push 0x64
push 2
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push ebx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov eax, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
push edi
push eax
push ebx
push edi
call sub.urlmon.dll_URLDownloadToFileA
mov ebx, eax
cmp ebx, edi
jne 0x40997b
push str.BM___OK
jmp 0x409998
cmp ebx, 0x80004004
jne 0x40999e
cmp dword [esi + 0xd236c], 1
jne 0x409993
push str.BM___CANCEL
jmp 0x409998
push str.BM___ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x20]
push 2
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0xd22e0]
cmp ecx, edi
jbe 0x4099d5
mov eax, dword [esi + 0xd22e4]
imul eax, eax, 0x64
xor edx, edx
div ecx
mov edx, dword [esi + 0xd2320]
push edi
push eax
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
cmp ebx, edi
sete al
mov dword [esp + 0x10], vtable.CCallback.0
or edx, 0xffffffff
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409a10
Capabilities:
Download url
Print debug messages
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ebx, eax
push ebx
mov dword [esp + 0x14], vtable.CCallback.0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 1
mov dword [esi + 0xd2354], edi
mov dword [esi + 0xd2358], edi
mov dword [esi + 0xd235c], edi
mov dword [esi + 0xd2360], edi
mov dword [esi + 0xd236c], edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x20]
push edi
push 0x64
push 3
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push ebx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push edi
push edx
push ebx
push edi
call sub.urlmon.dll_URLDownloadToFileA
mov ebx, eax
cmp ebx, edi
jne 0x409a9b
push str.BM___OK
jmp 0x409ab8
cmp ebx, 0x80004004
jne 0x409abe
cmp dword [esi + 0xd236c], 1
jne 0x409ab3
push str.BM___CANCEL
jmp 0x409ab8
push str.BM___ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x20]
push 3
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp ebx, edi
sete cl
add eax, 0xfffffff0
mov dword [esp + 0x10], vtable.CCallback.0
lea edx, [eax + 0xc]
mov esi, ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409afa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40aaa0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x804
mov eax, dword [0x4736c0]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
push edi
push 0x3ff
lea eax, [esp + 0x40d]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x414], 0
call fcn.00442fd0
push 0x3ff
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.00442fd0
mov eax, esi
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40aaf2
sub eax, edx
mov edi, eax
cmp edi, 0x3ff
jbe 0x40ab20
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004404d0
add esp, 0x804
ret
push ebx
push ebp
push esi
lea edx, [esp + 0x414]
push 0x400
push edx
call fcn.004401b6
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
xor esi, esi
test edi, edi
jbe 0x40abc2
mov ebp, 1
lea eax, [esp + 0x410]
sub ebp, eax
mov cl, byte [esp + esi + 0x410]
cmp cl, 0x5c
lea eax, [esp + esi + 0x410]
je 0x40ab6a
cmp cl, 0x2f
jne 0x40abbb
lea ecx, [eax + ebp]
push ecx
lea edx, [esp + 0x414]
push edx
lea eax, [esp + 0x18]
push 0x400
push eax
call fcn.00440bf2
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + esi + 0x15], 0
call ebx
cmp eax, 0xffffffff
je 0x40ab9d
test al, 0x10
jne 0x40abbb
push 0
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40abbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40ac19
add esi, 1
cmp esi, edi
jb 0x40ab52
mov al, byte [esp + edi + 0x40f]
cmp al, 0x5c
je 0x40ac1d
cmp al, 0x2f
je 0x40ac1d
lea eax, [esp + 0x410]
push eax
lea ecx, [esp + 0x14]
push 0x400
push ecx
call fcn.004401b6
add esp, 0xc
lea edx, [esp + 0x10]
push edx
call ebx
cmp eax, 0xffffffff
je 0x40abfb
test al, 0x10
jne 0x40ac1d
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40ac1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40ac1d
xor eax, eax
jmp 0x40ac22
mov eax, 1
mov ecx, dword [esp + 0x810]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.004404d0
add esp, 0x804
ret
Function at 0x40b050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x458298
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x4736c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
mov dword [esp + 0x30], 0
mov edi, dword [esp + 0x38]
mov edx, dword [esi + 4]
push 0
push edi
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b0e7
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x14
ret 4
cmp dword [esi + 8], 0
jne 0x40b0f8
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x20]
lea ecx, [esi + 0xc]
push eax
call fcn.00408240
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b134
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x14
ret 4

Function at 0x40b150
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea ecx, [esp + 4]
push ecx
push 1
mov esi, eax
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esi], eax
je 0x40b19c
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b193
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
add esp, 8
ret 4
mov edx, dword [esp + 4]
push edi
mov edi, dword [esp + 0x14]
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push edi
push edx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esi], eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
or edx, 0xffffffff
cmp dword [esi], 0
lea ecx, [eax + 0xc]
jne 0x40b1fc
mov esi, dword [esp + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
add esp, 8
ret 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b20f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
Function at 0x40b220
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x459020
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4736c0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push esi
push edi
mov eax, dword [0x4736c0]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], 0
mov eax, 1
mov dword [esp + 0x12c], eax
mov esi, dword [esp + 0x134]
push ecx
mov dword [esp + 0x14], esp
add esi, 0xfffffff0
mov ebp, esp
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0xff
mov dword [esp + 0x1c], eax
call fcn.00408350
add eax, 0x10
mov dword [ebp], eax
add esp, 4
mov eax, edi
call fcn.0040b150
cmp eax, 1
mov dword [esp + 0x18], eax
je 0x40b31b
cmp eax, 2
je 0x40b31b
mov edi, dword [esp + 0x138]
add edi, 0xfffffff0
push edi
call fcn.00408350
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov byte [esp + 0x12c], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b2ee
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x12c], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3df
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x40b3df
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [edi], eax
jne 0x40b2b5
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [edi], eax
je 0x40b36d
xor edi, edi
jmp 0x40b371
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40b2b5
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.004080b0
mov byte [esp + 0x12c], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3b1
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x12c], 0xffffffff
mov eax, dword [esp + 0x138]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004404d0
add esp, 0x120
ret 8
Function at 0x40b410
Capabilities:
Set registry value

Disassembly:
sub esp, 0x108
mov eax, dword [0x4736c0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x114]
cmp dword [ebx - 0xc], 0xfe
push ebp
mov ebp, 1
jle 0x40b481
mov eax, dword [esp + 0x114]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b45e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b47a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40b54a
lea edx, [esp + 0xc]
mov eax, ebx
sub edx, ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40b490
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 4]
lea ecx, [esp + 8]
push ecx
push 0x20006
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b43b
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b4c1
push esi
mov esi, dword [esp + 0x118]
sub eax, edx
mov edx, dword [esp + 0xc]
add eax, 1
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40b4f3
xor ebp, ebp
cmp dword [edi + 8], 0
jne 0x40b504
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop esi
jg 0x40b52c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b548
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.004404d0
add esp, 0x108
ret 8