joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2d28a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x20
push 0
push 0x1f084
call sub.ntoskrnl.exe_memset
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
add esp, 0xc
push str.FsRtlRegisterFileSystemFilterCallbacks
lea eax, [ebp - 8]
push eax
call esi
mov edi, dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea eax, [ebp - 8]
push eax
call edi
mov dword [0x1f084], eax
push str.IoAttachDeviceToDeviceStackSafe
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
call edi
mov dword [0x1f088], eax
push str.IoEnumerateDeviceObjectList
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
call edi
mov dword [0x1f08c], eax
push str.IoGetLowerDeviceObject
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
call edi
mov dword [0x1f090], eax
push str.IoGetDeviceAttachmentBaseRef
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
call edi
mov dword [0x1f094], eax
push str.IoGetDiskDeviceObject
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
call edi
mov dword [0x1f098], eax
push str.IoGetAttachedDeviceReference
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
call edi
mov dword [0x1f09c], eax
push str.RtlGetVersion
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
call edi
pop edi
mov dword [0x1f0a0], eax
pop esi
leave
ret

Function at 0x2d3b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x38
cmp dword [0x1f0b4], eax
jne 0x2d436
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
push 0x20019
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x30], ecx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x2d436
push str.DebugFlags
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 4]
push eax
push 0x14
lea eax, [ebp - 0x20]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jl 0x2d42d
mov eax, dword [ebp - 0x14]
mov dword [0x1f0b4], eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
leave
ret 4
Function at 0x401510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x401580
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x401578
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x40153d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x401f50
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x401210
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0xdac5c0]
sub esp, 0x3f0
cmp eax, 0x63
ja 0x40129d
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x3f8]
lea edx, [esp + 4]
push ecx
push edx
push 0
push str.DisplayIcon
push eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40129d
push edi
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x401273
mov al, 0x5c
cmp byte [esp + ecx + 8], al
je 0x4012a4
dec ecx
jne 0x40126a
mov eax, dword [0xdac5c0]
mov ecx, 0x409020
lea edx, [eax + eax*4]
inc eax
mov dword [0xdac5c0], eax
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx*8 + 0xd93368]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x401293
add esp, 0x3f0
ret
test ecx, ecx
je 0x401273
cmp byte [esp + ecx + 8], al
jne 0x401273
mov byte [esp + ecx + 9], 0
mov cl, byte [esp + 8]
xor eax, eax
cmp cl, 0x22
sete al
lea ecx, [esp + eax + 8]
mov eax, dword [0xdac5c0]
lea edx, [eax + eax*4]
inc eax
mov dword [0xdac5c0], eax
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx*8 + 0xd93368]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4012de
add esp, 0x3f0
ret
Function at 0x403084
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x413a2c
call fcn.004132c0
sub esp, 0xc
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
lea edi, [esi + 0x68]
lea ecx, [edi + 0xc]
call fcn.00401db0
push 0
push 0x1f4
mov ecx, edi
call fcn.004060d9
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
call fcn.00412ff0
push 0x45
lea ecx, [ebp - 0x18]
pop edx
call fcn.00405ec5
mov edx, dword [eax]
mov ecx, dword [esi + 0x6c]
and dword [ebp - 4], 0
call fcn.00405edf
push dword [ebp - 0x18]
call fcn.00403a55
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x404959
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x41a730], 0
push esi
mov esi, edx
jne 0x40498e
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.00403b78
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
push dword [ebp - 0xc]
call fcn.00403a55
pop ecx
test esi, esi
jmp 0x404998
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40499e
mov al, 1
jmp 0x4049a0
xor al, al
pop esi
leave
ret

Function at 0x4049a3
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x41a730], 0
jne 0x4049d5
mov edx, ecx
push esi
lea ecx, [ebp - 0xc]
call fcn.00403b78
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
push dword [ebp - 0xc]
call fcn.00403a55
pop ecx
test esi, esi
pop esi
jmp 0x4049de
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4049e4
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x4049e8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x41a730], 0
jne 0x404a1d
mov edx, ecx
push esi
lea ecx, [ebp - 0xc]
call fcn.00403b78
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
push dword [ebp - 0xc]
call fcn.00403a55
pop ecx
test esi, esi
pop esi
jmp 0x404a28
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404a2e
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x404f20
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x41a730], 0
jne 0x404f55
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.00403b78
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
push dword [ebp - 0xc]
setne bl
call fcn.00403a55
pop ecx
mov al, bl
pop ebx
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
leave
ret
Function at 0x404f64
Capabilities:
Get common file path

Disassembly:
mov eax, 0x413e18
call fcn.004132c0
sub esp, 0x32c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
cmp byte [0x41a730], bl
jne 0x404fe2
lea eax, [ebp - 0x12c]
mov byte [ebp - 0x12c], bl
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403bd2
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00403bbd
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401db0
push dword [ebp - 0x24]
call fcn.00403a55
push dword [ebp - 0x18]
call fcn.00403a55
pop ecx
pop ecx
jmp 0x40500b
lea eax, [ebp - 0x338]
mov word [ebp - 0x338], bx
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
lea eax, [ebp - 0x338]
push eax
mov ecx, esi
call fcn.00401d51
cmp edi, ebx
jbe 0x40501c
cmp edi, 0x104
ja 0x40501c
push 1
pop eax
jmp 0x40501e
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4050e2
Capabilities:
Get common file path

Disassembly:
mov eax, 0x413e50
call fcn.004132c0
sub esp, 0x32c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
cmp byte [0x41a730], bl
jne 0x405160
lea eax, [ebp - 0x12c]
mov byte [ebp - 0x12c], bl
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403bd2
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00403bbd
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401db0
push dword [ebp - 0x24]
call fcn.00403a55
push dword [ebp - 0x18]
call fcn.00403a55
pop ecx
pop ecx
jmp 0x405189
lea eax, [ebp - 0x338]
mov word [ebp - 0x338], bx
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
lea eax, [ebp - 0x338]
push eax
mov ecx, esi
call fcn.00401d51
cmp edi, ebx
jbe 0x40519a
cmp edi, 0x104
ja 0x40519a
push 1
pop eax
jmp 0x40519c
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405919
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40593f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40593f
xor al, al
jmp 0x40595f
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00413480
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40cbf0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x414cd8
call fcn.004132c0
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x416664
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x41671c
push 4
mov ebx, 0x416654
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.0040328f
mov dword [esi + 0x3c], 0x4167cc
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.0040328f
mov dword [edi], 0x4167d4
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b762
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.0040c227
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b762
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.0040c227
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b762
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.0040c227
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b762
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.0040c227
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.0040c227
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x413000
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x413028
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413037
mov eax, 1
ret 4
Function at 0x490590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0041ed14
cmp ebx, dword [ebp - 8]
jge 0x4905f3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0041efa4
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0041efa4
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0041efd0
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4905b9
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ed0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x66e42755
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x16da2c61
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401ee0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
sub esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00401050
push 0
mov eax, ecx
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov esi, dword [ebp + 8]
push 0x7f00
push 0
mov dword [esp + 0x48], 3
mov dword [esp + 0x4c], 0x401870
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x60], 6
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], str.Image_Converter
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Image_Converter__
push str.Image_Converter
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push 0xa
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x24]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x401fef
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax]
lea eax, [esp + 0x24]
push eax
call esi
lea eax, [esp + 0x24]
push eax
call edi
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call ebx
test eax, eax
jne 0x401fd0
push dword [esp + 0x10]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403c99
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403cd6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403cd2
nop word [eax + eax]
cmp esi, edx
jae 0x403cd6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403cc0
cmp esi, edx
jb 0x403cdd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407190
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x4b81bc]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.004070e0
mov esi, eax
test esi, esi
jne 0x407287
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x407259
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00407190
mov esi, eax
test esi, esi
jne 0x407287
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x407220
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407270
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.004072d0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407296
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00439921
mov esp, ebp
pop ebp
ret 4
Function at 0x407eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4902a6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4b81bc]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x407f5c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x407f5c
call fcn.00406500
mov esi, eax
jmp 0x40804c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x407f7f
call fcn.00406500
jmp 0x40803f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x407f9d
call fcn.00406500
jmp 0x40803f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x407fbe
mov esi, 0x8007000e
jmp 0x408041
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004064b0
jmp 0x407fe8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x407fff
mov esi, 0x8007000e
jmp 0x408041
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40801f
call fcn.00406500
jmp 0x40803f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00407d40
mov esi, eax
test edi, edi
je 0x40804c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x408070
lea ecx, [ebp - 0x418]
call fcn.00406460
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00439921
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408400
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4902fd
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4b81bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], 0
call fcn.00408d80
push str.QuanMinUpdateMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
jne 0x408456
xor eax, eax
jmp 0x4085b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40844f
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046ce30
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
call fcn.004095d0
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x228]
call fcn.004038a0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x21c], 1
call fcn.00427920
test eax, eax
je 0x4084fa
cmp dword [ebp - 0x220], 0
sete al
test al, al
jne 0x4084fa
xor bl, bl
jmp 0x4084fc
mov bl, 1
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408521
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x40852f
mov ecx, dword [ebp - 0x224]
xor esi, esi
jmp 0x40858c
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call esi
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x224]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00408d30
mov ecx, dword [ebp - 0x224]
cmp dword [eax], ecx
je 0x408580
call esi
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x224]
lea eax, [ebp - 0x21c]
push eax
call fcn.00408e00
mov ecx, dword [ebp - 0x224]
xor eax, eax
cmp eax, dword [ebp - 0x220]
sbb esi, esi
neg esi
push ecx
push dword [ecx]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00408fd0
push dword [ebp - 0x224]
call fcn.0043991c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439921
mov esp, ebp
pop ebp
ret