joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462155
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46226d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46226d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00478f34
mov esi, eax
test esi, esi
je 0x46226d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46226d
mov ecx, esi
call fcn.004620e0
cmp edi, eax
jge 0x46226d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4621f3
mov dword [esp + 0x34], 1
jmp 0x46224e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46226d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00461680
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4798d7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47990f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00477964
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047793c
jmp 0x47991b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47afc5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47b007
call fcn.00480ac4
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47b007
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47affe
xor eax, eax
jmp 0x47b00f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047b015
pop edi
pop esi
pop ebx
ret 4
Function at 0x480ff4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x481022
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x481040
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00480f5a
jmp 0x481040
mov eax, dword [esi + 0x14]
test eax, eax
je 0x481040
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00480f5a
test edi, edi
mov eax, edi
jne 0x48102a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x82af10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x83f9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x82b002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0082edff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x82b002
lea edx, [esp + 0x14]
push edx
push 0x845140
call fcn.008266e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0082f20b
push 0x10
call fcn.0082f1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x82afc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0081b1c0
jmp 0x82afc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0082ab80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x82aff0
mov ecx, edi
call fcn.0081b2c0
push edi
call fcn.0082f1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x82b021
inc ebx
cmp ebx, 0x20
jb 0x82af3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x82e1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0082e140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0082e140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0082e140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0082e140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x82e230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x82e2d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x82e2ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0082e230
mov esi, eax
add esp, 8
test esi, esi
jne 0x82e2ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x82e27e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x82e2ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x82ebfa
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
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x82ec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x84087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x82ec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x82ec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4077c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x492188
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4bb190]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.00402120
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407820
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00405a30
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00402120
cmp dword [esp + 0x28], 8
jb 0x40786d
mov eax, dword [esp + 0x14]
push eax
call fcn.004440cb
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x407bb0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4921bb
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
mov eax, dword [0x4bb190]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov esi, dword [esp + 0x250]
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [esp + 0x3e]
push ecx
mov word [esp + 0x40], ax
call fcn.00467850
push esi
push 0x49aa7c
push 0x103
lea edx, [esp + 0x4c]
push 0x104
push edx
call fcn.00467824
lea eax, [esp + 0x54]
push 0x104
push eax
call fcn.00467f05
add esp, 0x28
xor ecx, ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407c54
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x20]
call fcn.00402220
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
lea esi, [edi + 0x80]
push ecx
mov ecx, esi
mov dword [esp + 0x250], 0
call fcn.004063f0
cmp dword [esp + 0x30], 8
jb 0x407ca8
mov edx, dword [esp + 0x1c]
push edx
call fcn.004440cb
add esp, 4
mov edi, dword [esp + 0x10]
mov ebx, dword [esi + 0x18]
mov esi, dword [esi]
test edi, edi
je 0x407cb9
cmp edi, esi
je 0x407cbe
call fcn.00467a4e
mov esi, dword [esp + 0x14]
cmp esi, ebx
jne 0x407cca
xor eax, eax
jmp 0x407ce0
test edi, edi
jne 0x407d09
call fcn.00467a4e
cmp esi, dword [edi + 0x18]
jne 0x407cdd
call fcn.00467a4e
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004677ab
add esp, 0x23c
ret 4
mov edi, dword [edi]
jmp 0x407cd3
Function at 0x407d10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4921fb
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x4bb190]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov eax, dword [esp + 0x258]
mov esi, dword [esp + 0x254]
mov edi, ecx
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x42]
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x44], cx
call fcn.00467850
push esi
push 0x49aa7c
push 0x103
lea eax, [esp + 0x50]
push 0x104
push eax
call fcn.00467824
lea ecx, [esp + 0x58]
push 0x104
push ecx
call fcn.00467f05
add esp, 0x28
xor edx, edx
lea eax, [esp + 0x38]
mov word [esp + 0x20], dx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407dc0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
call fcn.00402220
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
lea esi, [edi + 0x60]
push edx
mov ecx, esi
mov dword [esp + 0x254], 0
call fcn.00406360
cmp dword [esp + 0x34], 8
jb 0x407e11
mov eax, dword [esp + 0x20]
push eax
call fcn.004440cb
add esp, 4
mov ebx, dword [esi + 0x18]
mov eax, dword [esi]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x407e22
cmp esi, eax
je 0x407e27
call fcn.00467a4e
mov edi, dword [esp + 0x18]
cmp edi, ebx
jne 0x407e33
xor eax, eax
jmp 0x407ead
test esi, esi
jne 0x407ed6
call fcn.00467a4e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x407e4c
call fcn.00467a4e
mov ecx, dword [edi + 0x28]
mov ebx, dword [esp + 0x10]
mov dword [ebx], ecx
test esi, esi
jne 0x407edd
call fcn.00467a4e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x407e6e
call fcn.00467a4e
mov edx, dword [edi + 0x2c]
mov dword [ebx + 4], edx
test esi, esi
jne 0x407ee1
call fcn.00467a4e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x407e89
call fcn.00467a4e
mov eax, dword [edi + 0x30]
mov dword [ebx + 8], eax
test esi, esi
jne 0x407ee5
call fcn.00467a4e
cmp edi, dword [esi + 0x18]
jne 0x407ea2
call fcn.00467a4e
mov ecx, dword [edi + 0x34]
mov dword [ebx + 0xc], ecx
mov eax, 1
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.004677ab
add esp, 0x240
ret 8
mov eax, dword [esi]
jmp 0x407e42
mov eax, dword [esi]
jmp 0x407e64
mov eax, dword [esi]
jmp 0x407e7f
mov esi, dword [esi]
jmp 0x407e98
Function at 0x40c1b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4926e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4bb190]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CClientSkin.0
mov dword [esp + 0x14], 0xa
call fcn.00409b00
mov ecx, esi
call fcn.0040bbc0
lea ecx, [esi + 0x15c]
mov byte [esp + 0x14], 9
call fcn.0043d940
lea ecx, [esi + 0x10c]
mov byte [esp + 0x14], 8
call fcn.0043d940
lea ecx, [esi + 0xbc]
mov byte [esp + 0x14], 7
call fcn.0043d940
lea ecx, [esi + 0xa0]
call fcn.0040b490
lea ecx, [esi + 0x80]
mov byte [esp + 0x14], 5
call fcn.0040a5b0
lea ecx, [esi + 0x60]
mov byte [esp + 0x14], 4
call fcn.0040a530
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 3
call fcn.0040b410
mov eax, dword [esi + 0x3c]
sub eax, 0x10
mov byte [esp + 0x14], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c27b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x38]
sub eax, 0x10
mov byte [esp + 0x14], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c29f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x34], 8
jb 0x40c2b1
mov ecx, dword [esi + 0x20]
push ecx
call fcn.004440cb
add esp, 4
xor edx, edx
mov dword [esi + 0x34], 7
mov dword [esi + 0x30], 0
lea ecx, [esi + 4]
mov word [esi + 0x20], dx
call fcn.0040a460
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x40ff20
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
mov esi, ecx
push esi
push 0x418890
push 0
push 0
mov dword [esp + 0x1c], 0
call fcn.004684b5
add esp, 0x18
mov dword [esi + 0x36c], eax
pop esi
pop ecx
ret

Function at 0x40ff50
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x410], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00467850
add esp, 0xc
push 1
push 0x23
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x410022
push str.CyGameHall
lea eax, [esp + 4]
push 0x103
push eax
call fcn.00468565
push str.LocalConfig.ini
lea ecx, [esp + 0x10]
push 0x103
push ecx
call fcn.00468565
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22a]
push eax
mov word [esp + 0x22c], dx
call fcn.00467850
push 0x4bd788
lea ecx, [esp + 0x230]
push 0x103
push ecx
call fcn.00468565
push 0x49b228
lea edx, [esp + 0x23c]
push 0x103
push edx
call fcn.00468565
add esp, 0x3c
push 0
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004677ab
add esp, 0x414
ret
Function at 0x416680
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00467850
add esp, 0xc
push 1
push 0x23
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41673e
push str.CyGameHall
lea eax, [esp + 8]
push 0x103
push eax
call fcn.00468565
push str.LocalConfig.ini
lea ecx, [esp + 0x14]
push 0x103
push ecx
call fcn.00468565
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.00467fa5
add esp, 0x20
test eax, eax
jne 0x41673e
lea eax, [esp + 4]
lea edx, [eax + 2]
jmp 0x416710
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416710
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0x250]
call fcn.00402220
mov ecx, esi
call fcn.004152b0
mov ecx, esi
call fcn.00415710
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004677ab
add esp, 0x20c
ret
Function at 0x416ec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x210], eax
mov ecx, dword [esp + 0x21c]
mov eax, dword [esp + 0x218]
push esi
mov esi, dword [esp + 0x224]
lea edx, [esp + 4]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
mov word [esi], cx
test eax, eax
jne 0x416f43
push edi
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov edi, eax
test edi, edi
jne 0x416f42
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov ecx, dword [esp + 0x214]
pop esi
xor ecx, esp
call fcn.004677ab
add esp, 0x214
ret 0xc

Function at 0x417cd0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x42c
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
mov ebx, dword [esp + 0x43c]
push esi
push edi
mov edi, dword [esp + 0x440]
push 0x424
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x18], 0x428
call fcn.00467850
add esp, 0xc
xor ecx, ecx
push ecx
push 8
mov word [edi], cx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x417d78
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x417d78
push ebp
mov ebp, dword [esp + 0x440]
lea esp, [esp]
mov eax, ebp
sub eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x28]
jb 0x417d5d
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x417d40
jmp 0x417d77
push 0x103
lea edx, [esp + 0x234]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [esp + 0x24]
mov dword [ebx], eax
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x434]
xor eax, eax
cmp word [edi], ax
pop edi
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.004677ab
add esp, 0x42c
ret 0xc
Function at 0x417f10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
mov esi, dword [esp + 0x428]
push edi
mov edi, dword [esp + 0x430]
xor ecx, ecx
mov eax, 0x20
mov word [edi], ax
mov word [edi + 2], cx
cmp dword [0x4bd9a0], ecx
jne 0x417f63
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.004677ab
add esp, 0x420
ret
push ebx
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22a]
push eax
mov word [esp + 0x22c], dx
call fcn.00467850
add esp, 0xc
lea ecx, [esp + 0x220]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00467850
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x103
push 0x49bdd8
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0x80
push 2
push 0
push 0
mov dword [esp + 0x20], eax
push 0x40000000
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
neg esi
push 0
sbb esi, esi
lea ecx, [esp + 0x14]
and esi, ecx
push esi
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4bd9a0]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x103
push edi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ecx, dword [esp + 0x428]
xor eax, eax
cmp word [edi], ax
pop ebx
pop edi
setne al
pop esi
xor ecx, esp
call fcn.004677ab
add esp, 0x420
ret

Function at 0x4180f0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x41812d
push str.CYHALL_8109E841_AE1D_4610_BD78_56E9178A546D
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x41812d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41812d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x418280
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
xor ebx, ebx
lea eax, [esp + 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x38]
push ecx
xor esi, esi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 8], eax
cmp eax, ebx
je 0x418303
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4182ed
cmp dword [esp + 8], ebx
je 0x4182f8
mov esi, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004677ab
add esp, 0x14
ret

Function at 0x418320
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.00467850
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 0x41838b
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
jne 0x41838b
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004677ab
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
xor eax, eax
cmp dword [esp + 8], 6
pop esi
setge al
xor ecx, esp
call fcn.004677ab
add esp, 0x120
ret