joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4620cb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462103
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.0046017f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460157
jmp 0x46210f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4637b9
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 0x4637fb
call fcn.00469272
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4637fb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4637f2
xor eax, eax
jmp 0x463803
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463809
pop edi
pop esi
pop ebx
ret 4

Function at 0x4697a2
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 0x4697d0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4697ee
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469708
jmp 0x4697ee
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4697ee
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469708
test edi, edi
mov eax, edi
jne 0x4697d8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5adc9aa1
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [section..data]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.5adc9bc7
mov esi, eax
cmp esi, ebx
jne 0x5adcd7db
lea eax, [ebp - 0x18]
push eax
push 0x5adc9b1f
call dword [sym.imp._CUSER.dll_GetProcessWindowStation]
push eax
call dword [sym.imp._CUSER.dll_EnumDesktopsW]
mov edi, eax
cmp edi, ebx
je 0x5adc9b08
cmp esi, ebx
jne 0x5adcd7ec
cmp dword [ebp - 4], ebx
jne 0x5adcd830
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x5adc9ae4
cmp dword [ebp - 0xc], ebx
je 0x5adc9b08
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
jle 0x5adc9b08
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push dword [eax + esi*4]
call fcn.5adc9b95
mov edi, eax
cmp edi, ebx
je 0x5adc9b08
inc esi
cmp esi, dword [ebp - 8]
jge 0x5adc9b08
jmp 0x5adcd80b
push dword [ebp - 4]
call sub._Cmvrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x5adc9b11
Function at 0x5adcc909
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x2001f
lea ecx, [ebp - 0x10]
call fcn.5addbbf3
mov edi, dword [ebp + 0x14]
xor esi, esi
cmp edi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
je 0x5ade2af4
push ebx
mov ebx, dword [ebp + 0x18]
lea eax, [ebx + ebx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 1
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
push dword [ebp - 0x10]
call dword [sym.imp._CADVAPI.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x5add6df2
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp._CADVAPI.dll_RegQueryValueExW]
cmp eax, esi
jne 0x5add6df2
cmp dword [ebp - 0xc], 2
je 0x5adcd18c
push 0x25
push edi
call sub._Cmvrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
jne 0x5adcd18c
push dword [ebp - 4]
call dword [sym.imp._CADVAPI.dll_RegCloseKey]
mov esi, dword [ebp - 8]
pop ebx
lea ecx, [ebp - 0x10]
call fcn.5addbc14
pop edi
mov eax, esi
pop esi
leave
ret 0x14
push edi
call dword [sym.imp._CKERNEL.dll_lstrlenW]
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
call sub._Cmvrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x5adcc995
push edi
push esi
push ebx
call fcn.5adc15cb
push dword [ebp + 0x18]
push edi
push ebx
call dword [sym.imp._CKERNEL.dll_ExpandEnvironmentStringsW]
cmp eax, dword [ebp + 0x18]
ja 0x5ade2b05
push ebx
call sub._Cmvrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x5adcc995
push dword [ebp + 0x10]
push ebx
push edi
call fcn.5adcb6a3
cmp eax, esi
mov dword [ebp - 8], eax
jge 0x5adcc979
jmp 0x5adcc995
push 0x80070057
call fcn.5adc157d
mov esi, eax
jmp 0x5adcc9a2
push 0x7a
call fcn.5adc157d
mov dword [ebp - 8], eax
jmp 0x5adcc995
Function at 0x5adccf62
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x5adf1018]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x5adc6a94
push esi
push 0x5adcd0f4
call fcn.5adcd1d7
xor ebx, ebx
cmp word [ebp - 0x20c], bx
je 0x5ade1fa4
push edi
lea eax, [ebp - 0x414]
push eax
push esi
push 0x5adcd0e0
call fcn.5adcd1d7
push edi
lea eax, [ebp - 0x61c]
push eax
push esi
push 0x5adcd0cc
call fcn.5adcd1d7
lea eax, [ebp - 0x63c]
push eax
push ebx
mov esi, 0x5adcd124
push esi
call fcn.5addbc30
lea eax, [ebp - 0x638]
push eax
push 0xffffffffffffffff
push 0x5adcd104
call fcn.5addbc30
cmp dword [ebp - 0x638], 0xffffffff
je 0x5adcd02b
cmp dword [ebp - 0x63c], ebx
sete al
push eax
push dword [ebp - 0x638]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.5adcd143
test al, al
jne 0x5adcd6dd
push 1
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x634]
push eax
call fcn.5adcd3ed
mov esi, eax
cmp esi, ebx
jl 0x5adcd0bd
xor edi, edi
cmp dword [ebp - 0x63c], ebx
je 0x5adcd711
cmp dword [ebp - 0x638], 0xffffffff
je 0x5adcd07e
call dword [sym.imp._CKERNEL.dll_GetUserDefaultUILanguage]
cmp word [ebp - 0x638], ax
jne 0x5adcd711
lea ecx, [ebp - 0x630]
call fcn.5adca80c
push 1
push 4
push dword [ebp - 0x634]
lea ecx, [ebp - 0x630]
call fcn.5adca8ba
test eax, eax
jl 0x5adcd0b2
push ebx
push edi
lea eax, [ebp - 0x630]
push eax
call fcn.5add9583
mov esi, eax
lea ecx, [ebp - 0x630]
call fcn.5adc9954
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.5adc1549
leave
ret
cmp dword [ebp - 0x63c], ebx
je 0x5ade1f52
lea eax, [ebp - 0x634]
push eax
call fcn.5adcd71e
mov esi, eax
cmp esi, ebx
jl 0x5adcd0bd
test byte [ebp - 0x634], 2
jne 0x5adcd0bd
jmp 0x5ade1f5f
xor edi, edi
inc edi
jmp 0x5adcd07e
push 1
push esi
call fcn.5adda2f4
jmp 0x5adcd6e9
lea eax, [ebp - 0x634]
push eax
call fcn.5adc8981
mov esi, eax
cmp esi, ebx
jl 0x5adcd0bd
lea ecx, [ebp - 0x630]
call fcn.5adca80c
push 1
push 4
push dword [ebp - 0x634]
lea ecx, [ebp - 0x630]
call fcn.5adca8ba
test eax, eax
jl 0x5adcd0b2
push ebx
push ebx
jmp 0x5adcd0a4
push 0x490
call fcn.5adc157d
mov esi, eax
jmp 0x5adcd0bd
Function at 0x5add6f5b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5adf1018]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
lea edx, [ebp - 0x214]
push edx
lea edx, [ebp - 0x210]
push edx
lea edx, [ebp - 0x218]
push edx
xor edi, edi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x214], 0x20a
call dword [sym.imp._CADVAPI.dll_RegQueryValueExW]
cmp eax, edi
jne 0x5ade2c7b
lea eax, [ebp - 0x210]
push eax
call fcn.5adcc3af
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.5adc1549
leave
ret 0xc
push eax
call fcn.5adc157d
mov edi, eax
jmp 0x5add6fb9

Function at 0x5add7031
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x20]
xor ebx, ebx
push edi
mov dword [esi], ebx
mov dword [esi + 0x18], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x1d4]
push 6
pop ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x1c], eax
push ebx
xor eax, eax
mov edi, edx
mov byte [esi + 0x20], bl
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp._CKERNEL.dll_InitializeCriticalSectionAndSpinCount]
mov edi, dword [sym.imp._CKERNEL.dll_GetCurrentProcess]
push 2
push ebx
push ebx
push esi
call edi
push eax
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp._CKERNEL.dll_DuplicateHandle]
lea eax, [ebp + 0x10]
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push 0x18
push dword [ebp + 8]
call dword [sym.imp._Cntl.dll_NtQueryInformationProcess]
test eax, eax
jl 0x5add70cb
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x5add9c9d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
cmp edi, esi
jne 0x5ade261a
mov eax, dword [ebp + 0xc]
dec eax
jne 0x5addaa0f
mov eax, dword [ecx + 8]
cmp eax, esi
je 0x5addaa3b
push esi
lea edx, [ebp + 0x14]
push edx
push dword [ebp + 0x10]
push eax
push dword [ecx + 0x18]
push dword [ecx + 0x14]
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp._Cntl.dll_RtlCreateUserThread]
cmp eax, esi
jl 0x5addaa2f
cmp edi, esi
jne 0x5ade2621
push 0xffffffffffffffff
push dword [ebp + 0x14]
call dword [sym.imp._CKERNEL.dll_WaitForSingleObject]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
call dword [sym.imp._CKERNEL.dll_GetExitCodeThread]
test eax, eax
je 0x5addaa25
mov eax, dword [ebp + 0xc]
cmp eax, esi
jg 0x5ade262c
mov esi, eax
push dword [ebp + 0x14]
call dword [sym.imp._CKERNEL.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10
dec eax
je 0x5addaa1d
dec eax
jne 0x5addaa3b
mov eax, dword [ecx + 0x10]
jmp 0x5add9cbe
mov eax, dword [ecx + 0xc]
jmp 0x5add9cbe
mov esi, 0x80004005
jmp 0x5add9d1e
or eax, 0x10000000
mov esi, eax
jmp 0x5add9d27
mov esi, 0x80004005
jmp 0x5add9d27
mov dword [edi], esi
jmp 0x5add9cb1
mov dword [edi], 1
jmp 0x5add9cf1
and eax, 0xffff
or eax, 0x80070000
jmp 0x5add9d1c

Function at 0x5add9d3d
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jne 0x5add9d6f
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp._CKERNEL.dll_GetCurrentProcess]
push eax
call dword [sym.imp._CADVAPI.dll_OpenProcessToken]
test eax, eax
je 0x5add9de4
mov ebx, dword [ebp - 4]
push esi
mov esi, dword [sym.imp._CADVAPI.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push edi
push edi
push 3
push ebx
mov dword [ebp + 8], edi
call esi
cmp dword [ebp + 8], edi
jbe 0x5add9dd2
push dword [ebp + 8]
push edi
call dword [sym.imp._CKERNEL.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x5add9dd0
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push edi
push 3
push ebx
call esi
test eax, eax
je 0x5add9dc9
mov ecx, dword [edi]
xor edx, edx
test ecx, ecx
jbe 0x5add9dc9
lea eax, [edi + 8]
mov esi, dword [eax - 4]
cmp esi, dword [ebp + 0xc]
jne 0x5add9dea
cmp dword [eax], 0
jne 0x5add9dea
mov dword [ebp - 8], 1
push edi
call dword [sym.imp._CKERNEL.dll_LocalFree]
xor edi, edi
cmp dword [ebp - 4], edi
pop esi
je 0x5add9de1
push dword [ebp - 4]
call dword [sym.imp._CKERNEL.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 8
inc edx
add eax, 0xc
cmp edx, ecx
jae 0x5add9dc9
jmp 0x5add9db5
Function at 0x5add9e46
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp._CKERNEL.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x5ade3dab
mov esi, dword [sym.imp._CKERNEL.dll_SetFilePointer]
or dword [ebp - 8], 0xffffffff
push edi
push 2
lea eax, [ebp - 8]
push eax
push 0xfffffffffffffff0
push dword [ebp + 8]
mov dword [ebp - 0xc], 0xfffffff0
call esi
cmp eax, 0xffffffff
mov edi, dword [sym.imp._CKERNEL.dll_GetLastError]
je 0x5ade3dcf
push 0
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp._CKERNEL.dll_ReadFile]
test eax, eax
je 0x5add9f27
cmp dword [ebp - 4], 0x10
jne 0x5add9f20
cmp dword [ebp - 0x24], 0x84692426
jne 0x5add9f20
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jne 0x5add9f20
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x5add9f20
push 0xfffffffffffffff0
pop eax
sub eax, dword [ebp - 0x20]
push 2
cdq
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
call esi
cmp eax, 0xffffffff
je 0x5ade3ddb
push 0
lea eax, [ebp - 4]
push eax
mov esi, 0x80
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp._CKERNEL.dll_ReadFile]
test eax, eax
je 0x5add9f27
mov eax, dword [ebp - 4]
sub eax, esi
neg eax
sbb eax, eax
and eax, 0x80004005
pop edi
pop esi
leave
ret 8
mov eax, 0x80004005
jmp 0x5add9f1a
call edi
jmp 0x5ade3de7
mov esi, dword [sym.imp._CKERNEL.dll_GetLastError]
call esi
test eax, eax
jg 0x5ade3dbe
call esi
jmp 0x5add9f1b
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x5add9f1b
call edi
test eax, eax
je 0x5add9e96
jmp 0x5ade3de9
call edi
test eax, eax
je 0x5add9ef0
jmp 0x5ade3de9
test eax, eax
jle 0x5add9f1a
and eax, 0xffff
or eax, 0x80070000
jmp 0x5add9f1a
Function at 0x5add9f33
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
nop
nop
nop
nop
nop
push 0x14
push 0x5add9ff8
call fcn.5adc4ec5
mov ebx, ecx
mov dword [ebp - 0x24], ebx
xor esi, esi
cmp dword [ebx + 8], esi
jne 0x5ade2552
push esi
push esi
push esi
push 4
push dword [ebp + 8]
call dword [sym.imp._CKERNEL.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x5ade255c
mov edi, dword [eax + 0x1c]
push esi
push edi
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp._CKERNEL.dll_CreateFileMappingW]
mov dword [ebx + 0xc], eax
call dword [sym.imp._CKERNEL.dll_GetLastError]
mov ecx, dword [ebx + 0xc]
cmp ecx, esi
je 0x5ade2563
push esi
push esi
push esi
push 2
push ecx
call dword [sym.imp._CKERNEL.dll_MapViewOfFile]
mov dword [ebx + 8], eax
cmp eax, esi
je 0x5ade255c
mov dword [ebp - 4], esi
mov ecx, edi
mov esi, dword [ebp - 0x1c]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or dword [ebp - 4], 0xffffffff
push 1
mov ecx, ebx
call fcn.5adca90d
mov edi, eax
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x5add9fe6
push dword [ebp - 0x1c]
call dword [sym.imp._CKERNEL.dll_UnmapViewOfFile]
cmp edi, esi
jl 0x5ade25a4
mov eax, edi
call fcn.5adc4f00
ret 4
call fcn.5adc998e
jmp 0x5add9f5a
call fcn.5adeddc4
jmp 0x5ade2567
cmp eax, esi
jg 0x5ade256e
mov edi, eax
jmp 0x5add9fd8
and eax, 0xffff
or eax, 0x80070000
jmp 0x5ade2567
mov ecx, ebx
call fcn.5adc998e
jmp 0x5add9fee

Function at 0x5adda023
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5adf1018]
and word [ebp - 0x20c], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
mov dword [ebp - 0x214], ebx
call dword [sym.imp._CKERNEL.dll_ExpandEnvironmentStringsW]
mov esi, dword [sym.imp._CKERNEL.dll_lstrlenW]
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
push edi
push eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0x800
call dword [sym.imp._CKERNEL.dll_CompareStringW]
cmp eax, 2
jne 0x5adda0f4
push edi
call esi
sub eax, dword [ebp - 0x210]
push ebx
mov dword [ebp - 0x21c], eax
call esi
mov ecx, dword [ebp - 0x21c]
add ecx, eax
cmp ecx, dword [ebp + 0x14]
jge 0x5adda0f4
push ebx
push dword [ebp + 0x14]
mov ebx, dword [ebp - 0x218]
push ebx
call fcn.5adc15cb
mov eax, dword [ebp - 0x210]
lea eax, [edi + eax*2]
push eax
push dword [ebp + 0x14]
push ebx
call esi
lea eax, [ebx + eax*2]
push eax
call fcn.5adc15cb
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5adc1549
leave
ret 0x10
xor eax, eax
jmp 0x5adda0e5
Function at 0x5adda173
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x2001f
lea ecx, [ebp - 8]
call fcn.5addbbf3
xor esi, esi
cmp dword [ebp + 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
je 0x5ade2ad1
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp._CADVAPI.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x5ade2add
push ebx
push edi
push dword [ebp + 0x10]
call dword [sym.imp._CKERNEL.dll_lstrlenW]
push 0x25
push dword [ebp + 0x10]
xor ebx, ebx
lea edi, [eax + eax + 2]
inc ebx
call sub._Cmvrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
jne 0x5adda212
push edi
push dword [ebp + 0x10]
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp._CADVAPI.dll_RegSetValueExW]
cmp eax, esi
pop edi
pop ebx
jne 0x5ade2ae1
mov esi, dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp._CADVAPI.dll_RegCloseKey]
lea ecx, [ebp - 8]
call fcn.5addbc14
mov eax, esi
pop esi
leave
ret 0xc
push 2
pop ebx
jmp 0x5adda1db
mov dword [ebp + 0x10], 0x5adc6a94
jmp 0x5adda19a
jle 0x5ade2aed
jmp 0x5ade2ae3
jle 0x5ade2aed
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x5adda1fa
Function at 0x5adda21c
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5adf1018]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x418], eax
je 0x5ade1970
cmp dword [ebp + 0x18], ebx
lea eax, [ebp - 0x20c]
jne 0x5ade18c0
push ebx
push eax
mov esi, 0x104
push esi
push edi
call dword [sym.imp._CKERNEL.dll_GetFullPathNameW]
test eax, eax
je 0x5ade18f3
push 1
push 0x5adcc300
call fcn.5adda2f4
cmp dword [ebp + 0x1c], ebx
je 0x5ade1906
push 1
push 0x5adcd124
call fcn.5adda2f4
call dword [sym.imp._CKERNEL.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
push 0x5adcd104
call fcn.5adda2f4
lea eax, [ebp - 0x20c]
push eax
push 0x5adcd0f4
call fcn.5adda0fd
push dword [ebp - 0x41c]
push 0x5adcd0e0
call fcn.5adda155
push dword [ebp - 0x418]
push 0x5adcd0cc
call fcn.5adda155
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5adc1549
leave
ret 0x18
push 0x104
push eax
push 0x5adc6a94
push 0x5adcd0f4
call fcn.5adcd1d7
cmp word [ebp - 0x20c], bx
je 0x5adda2de
push 1
push 0x5adcc300
call fcn.5adda2f4
jmp 0x5adda2de
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.5adcb6a3
jmp 0x5adda278
push esi
lea eax, [ebp - 0x414]
push eax
push 0x5adc6a94
mov esi, 0x5adcd0f4
push esi
call fcn.5adcd1d7
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp._CKERNEL.dll_lstrcmpiW]
test eax, eax
je 0x5ade1968
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.5adda155
push 0x5adcd124
call fcn.5aded668
push 0x5adcd104
call fcn.5aded668
push 0x5adcd0e0
call fcn.5aded668
push 0x5adcd0cc
jmp 0x5ade19b1
xor eax, eax
inc eax
jmp 0x5adda2e0
push ebx
push 0x5adcc300
call fcn.5adda2f4
cmp dword [ebp + 0x18], ebx
jne 0x5adda2de
push 0x5adcd0f4
call fcn.5aded668
push 0x5adcd0e0
call fcn.5aded668
push 0x5adcd0cc
call fcn.5aded668
push 0x5adcd124
call fcn.5aded668
push 0x5adcd104
call fcn.5aded668
jmp 0x5adda2de

Function at 0x5adda2f4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5adf1018]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2001f
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], eax
call fcn.5addbbf3
xor esi, esi
push esi
lea eax, [ebp - 0x214]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x5addbb80
push dword [ebp - 0x218]
mov dword [ebp - 0x214], esi
call dword [sym.imp._CADVAPI.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x5adda38c
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push 0x5adda3b4
push 0x105
push eax
call fcn.5adcd351
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp._CKERNEL.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push esi
push edi
push dword [ebp - 0x214]
call dword [sym.imp._CADVAPI.dll_RegSetValueExW]
push dword [ebp - 0x214]
call dword [sym.imp._CADVAPI.dll_RegCloseKey]
lea ecx, [ebp - 0x218]
call fcn.5addbc14
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
call fcn.5adc1549
leave
ret 8
Function at 0x5adda7c9
Capabilities:
Get file size
Hash data via wincrypt
Read file via mapping

Disassembly:
push 0x1c
push 0x5adda880
call fcn.5adc4ec5
mov ebx, ecx
xor esi, esi
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 8]
call dword [sym.imp._CKERNEL.dll_CreateFileMappingW]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x5ade3d81
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp._CKERNEL.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x5ade3d57
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp._CKERNEL.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
or edi, 0xffffffff
cmp eax, edi
je 0x5ade3cf8
mov ecx, dword [ebp + 0xc]
dec ecx
jne 0x5adda833
add eax, 0xffffff70
adc dword [ebp - 0x28], edi
add eax, 0xfffffed0
mov dword [ebp - 0x2c], eax
adc dword [ebp - 0x28], edi
add dword [ebp - 0x1c], 0x130
mov dword [ebp - 4], esi
push esi
push eax
push dword [ebp - 0x1c]
push dword [ebx + 4]
call dword [sym.imp._CADVAPI.dll_CryptHashData]
test eax, eax
je 0x5ade3d22
mov dword [ebp - 4], edi
push dword [ebp - 0x1c]
call dword [sym.imp._CKERNEL.dll_UnmapViewOfFile]
push dword [ebp - 0x20]
call dword [sym.imp._CKERNEL.dll_CloseHandle]
mov eax, esi
call fcn.5adc4f00
ret 8
mov esi, dword [sym.imp._CKERNEL.dll_GetLastError]
call esi
test eax, eax
jg 0x5ade3d0d
call esi
mov esi, eax
jmp 0x5adda861
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x5adda861
call dword [sym.imp._CKERNEL.dll_GetLastError]
push eax
call fcn.5adee56b
mov esi, eax
mov dword [ebp - 0x24], esi
jmp 0x5adda85e
mov esi, dword [sym.imp._CKERNEL.dll_GetLastError]
call esi
test eax, eax
jg 0x5ade3d6c
call esi
mov esi, eax
jmp 0x5adda86a
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x5adda86a
mov esi, dword [sym.imp._CKERNEL.dll_GetLastError]
call esi
test eax, eax
jg 0x5ade3d96
call esi
mov esi, eax
jmp 0x5adda873
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x5adda873

Function at 0x5adda8b4
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0xf0000040
push 1
mov esi, ecx
push 0
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
push 0
push esi
mov dword [esi + 0x18], eax
call dword [sym.imp._CADVAPI.dll_CryptAcquireContextW]
test eax, eax
je 0x5adda8f3
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8004
push dword [esi]
call dword [sym.imp._CADVAPI.dll_CryptCreateHash]
pop esi
pop ebp
ret 8