joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485fc0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x48602b
lea eax, [esp + 0x10]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x486038
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x486038
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x486038
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x486038
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x486091
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, 1
mov dword [esp + 0x18], eax
mov ecx, 0x8000012f
call fcn.004015e0
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
call ebp
test eax, eax
je 0x486091
add edi, dword [esp + 0x18]
nop
call ebx
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x486091
mov edx, 1
mov ecx, 0x8000012f
call fcn.004015e0
push esi
call ebp
test eax, eax
jne 0x486070
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x487600
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x4876a3
mov eax, dword [esi]
test eax, eax
je 0x4876a3
push edi
test al, 1
jne 0x487627
mov eax, dword [esi + 0x1c]
cmp word [eax], 0
je 0x48763e
push 0x7fff
lea edi, [esi + 0x6c]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x48763e
mov word [edi], ax
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x487652
lea eax, [esi + 0x68]
push eax
push dword [esi + 0x64]
call edi
test byte [esi], 0x20
je 0x487688
lea eax, [esp + 8]
push eax
push dword [esi + 0x64]
call edi
test eax, eax
je 0x487688
movzx eax, byte [esi + 0x3c]
lea edx, [esi + 0x1026c]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.00429030
add esp, 8
test eax, eax
jne 0x487688
mov word [esi + 0x1026c], ax
test byte [esi], 8
pop edi
je 0x4876a3
push 0x101
lea eax, [esi + 0x1006a]
push eax
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_GetClassNameW]
pop esi
pop ecx
ret

Function at 0x487ae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x4e8e84], 0
mov eax, dword [0x4e4788]
mov byte [eax + 0x53], 1
je 0x487b98
push ebx
mov bl, byte [0x4e8f95]
mov al, bl
and al, 0xc0
movzx ecx, al
neg ecx
push esi
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
test bl, 0xc
cmove edx, ecx
mov ecx, edx
or ecx, 4
test bl, 0x30
cmove ecx, edx
mov esi, ecx
or esi, 2
test bl, 3
cmove esi, ecx
mov edx, esi
mov ecx, esi
and dl, 2
neg dl
sbb dl, dl
and dl, 3
mov al, dl
or al, 0x30
and cl, 4
movzx ebx, al
movzx eax, dl
cmove ebx, eax
or bl, 0xcc
not bl
and bl, byte [0x4e8e8f]
je 0x487b96
cmp esi, 8
jne 0x487b7f
movzx eax, word [0x4e4d04]
lea ecx, [esi - 6]
mov dl, byte [0x4e484e]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.00419ae0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor cl, cl
call fcn.0041bb00
add esp, 0x10
pop esi
pop ebx
push 0x4bf
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test eax, eax
je 0x487bb7
mov edx, 1
or ecx, 0xffffffff
jmp fcn.004015e0
ret

Function at 0x487ba3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x4e8e84], 0
mov eax, dword [0x4e4788]
mov byte [eax + 0x53], 1
je 0x487b98
push ebx
mov bl, byte [0x4e8f95]
mov al, bl
and al, 0xc0
movzx ecx, al
neg ecx
push esi
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
test bl, 0xc
cmove edx, ecx
mov ecx, edx
or ecx, 4
test bl, 0x30
cmove ecx, edx
mov esi, ecx
or esi, 2
test bl, 3
cmove esi, ecx
mov edx, esi
mov ecx, esi
and dl, 2
neg dl
sbb dl, dl
and dl, 3
mov al, dl
or al, 0x30
and cl, 4
movzx ebx, al
movzx eax, dl
cmove ebx, eax
or bl, 0xcc
not bl
and bl, byte [0x4e8e8f]
je 0x487b96
cmp esi, 8
jne 0x487b7f
movzx eax, word [0x4e4d04]
lea ecx, [esi - 6]
mov dl, byte [0x4e484e]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.00419ae0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor cl, cl
call fcn.0041bb00
add esp, 0x10
pop esi
pop ebx
push 0x4bf
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test eax, eax
je 0x487bb7
mov edx, 1
or ecx, 0xffffffff
jmp fcn.004015e0
ret
Function at 0x487f20
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b73d0
push eax
mov eax, 0x1047c
mov dword fs:[0], esp
call fcn.004b5d10
xorps xmm0, xmm0
mov dword [ebp - 0x10488], 0
mov dword [ebp - 0x10480], 0
mov dword [ebp - 0x1047c], 0
mov dword [ebp - 0x1046c], 0x4cee98
mov byte [ebp - 0x1044b], 0
movups xmmword [ebp - 0x10448], xmm0
mov dword [ebp - 0x10438], 0
mov dword [ebp - 0x10428], 0
mov dword [ebp - 0x10424], 0
mov dword [ebp - 4], 0
mov eax, dword [ecx + 8]
mov dword [ebp - 0x10434], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10430], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1042c], eax
lea eax, [ebp - 0x10488]
push eax
push 0x4886e0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x10444], 0
je 0x487fed
mov eax, dword [0x4e4788]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x487fed
mov edx, 1
call fcn.004015e0
push dword [ebp - 0x10480]
call fcn.0049f4f2
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x488010
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6f80
push eax
mov eax, 0x10478
mov dword fs:[0], esp
call fcn.004b5d10
push edi
mov edi, ecx
cmp dword [edi + 8], 0
jne 0x48804e
xor eax, eax
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov byte [edi], 1
cmp dword [0x4e9e28], edi
je 0x488069
mov dword [0x4e9e28], edi
mov dword [0x4e9e30], 0
cmp dword [0x4e9e2c], 0
jne 0x488089
mov ecx, 0x7d0
call fcn.0047e780
test eax, eax
je 0x488285
mov dword [0x4e9e2c], eax
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x4e4788]
mov esi, eax
add ecx, 0x58
push ecx
push esi
mov ecx, edi
call fcn.004884c0
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4880b6
xor ecx, ecx
mov dword [0x4e9e30], ecx
jmp 0x4880bc
mov ecx, dword [0x4e9e30]
mov dword [ebp - 0x1047c], 0
mov dword [ebp - 0x10478], 0
mov dword [ebp - 0x10444], 0
mov dword [ebp - 0x10440], 0
mov dword [ebp - 0x1043c], 0
mov dword [ebp - 0x10430], 0
mov dword [ebp - 0x10424], 0
mov dword [ebp - 0x10420], 0
cmp byte [ebp + 8], 0
mov dword [ebp - 4], 0
je 0x488124
mov byte [ebp - 0x10447], 0
test eax, eax
je 0x48812b
mov byte [ebp - 0x10447], 1
mov eax, dword [0x4e4788]
mov edx, dword [0x4e9e2c]
mov dword [ebp - 0x10438], edx
mov dword [ebp - 0x10434], ecx
mov dword [ebp - 0x10468], 0x4cee98
mov dword [ebp - 0x10464], 0
mov dword [ebp - 0x10460], 0x4cee98
mov dword [ebp - 0x1045c], 0x4cee98
test eax, eax
je 0x488179
add eax, 0x58
mov dword [ebp - 0x10480], eax
jmp 0x488183
mov dword [ebp - 0x10480], 0
test ecx, ecx
mov dword [ebp - 0x10450], edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x10484], 0x10
setg bl
nop dword [eax + eax]
test edi, edi
je 0x4881cc
xor eax, eax
test ecx, ecx
jle 0x4881ba
nop word [eax + eax]
cmp dword [edx + eax*4], esi
je 0x4881cc
inc eax
cmp eax, ecx
jl 0x4881b0
cmp ecx, 0x1f4
jge 0x4881cc
mov dword [edx + ecx*4], esi
inc ecx
mov dword [0x4e9e30], ecx
lea eax, [ebp - 0x10484]
mov dword [ebp - 0x10434], ecx
push eax
push 0x4866e0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0x10440]
test ecx, ecx
jne 0x488206
test bl, bl
je 0x488202
mov edx, dword [0x4e9e2c]
xor bl, bl
mov dword [0x4e9e30], ecx
jmp 0x4881a0
xor esi, esi
jmp 0x488262
call fcn.00485c70
mov ecx, dword [0x4e9e30]
xor eax, eax
mov esi, dword [ebp - 0x10440]
mov edx, dword [0x4e9e2c]
test ecx, ecx
jle 0x48822d
cmp dword [edx + eax*4], esi
je 0x488245
inc eax
cmp eax, ecx
jl 0x488223
cmp ecx, 0x1f4
jge 0x488245
mov dword [edx + ecx*4], esi
inc ecx
mov esi, dword [ebp - 0x10440]
mov dword [0x4e9e30], ecx
mov eax, dword [0x4e4788]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x488262
mov edx, 1
call fcn.004015e0
mov esi, dword [ebp - 0x10440]
push dword [ebp - 0x1047c]
call fcn.0049f4f2
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
call fcn.0040dcc0
int3
Function at 0x488290
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6f60
push eax
mov eax, 0x10474
mov dword fs:[0], esp
call fcn.004b5d10
push esi
mov esi, ecx
push edi
mov byte [esi], 0
cmp dword [0x4e9e28], esi
je 0x4882d1
mov dword [0x4e9e28], esi
mov dword [0x4e9e30], 0
cmp dword [0x4e9e2c], 0
jne 0x4882f1
mov ecx, 0x7d0
call fcn.0047e780
test eax, eax
je 0x4884b8
mov dword [0x4e9e2c], eax
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
push 4
push edi
call ebx
test eax, eax
je 0x48831b
nop dword [eax]
push 4
push eax
mov edi, eax
call ebx
test eax, eax
jne 0x488310
mov eax, dword [0x4e4788]
mov ecx, esi
add eax, 0x58
push eax
push edi
call fcn.004884c0
pop ebx
test eax, eax
je 0x48833b
xor ecx, ecx
mov dword [0x4e9e30], ecx
jmp 0x488341
mov ecx, dword [0x4e9e30]
mov dword [ebp - 0x10480], 0
mov dword [ebp - 0x10478], 0
mov dword [ebp - 0x10474], 0
mov dword [ebp - 0x10464], 0x4cee98
mov dword [ebp - 0x10440], 0
mov dword [ebp - 0x1043c], 0
mov dword [ebp - 0x10438], 0
mov dword [ebp - 0x10420], 0
mov dword [ebp - 0x1041c], 0
cmp byte [ebp + 8], 0
mov dword [ebp - 4], 0
je 0x4883b3
mov byte [ebp - 0x10443], 0
test ecx, ecx
je 0x4883ba
mov byte [ebp - 0x10443], 1
mov eax, dword [0x4e9e2c]
mov dword [ebp - 0x10434], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x1042c], eax
lea eax, [ebp - 0x10480]
push eax
push 0x4885d0
mov dword [ebp - 0x10430], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x1043c]
test eax, eax
je 0x48844b
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov ecx, eax
call fcn.00485c70
mov ecx, dword [0x4e9e30]
xor eax, eax
mov edx, dword [ebp - 0x1043c]
mov esi, dword [0x4e9e2c]
test ecx, ecx
jle 0x488420
cmp dword [esi + eax*4], edx
je 0x488432
inc eax
cmp eax, ecx
jl 0x488416
cmp ecx, 0x1f4
jge 0x488432
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4e9e30], ecx
mov eax, dword [0x4e4788]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x488498
mov edx, 1
call fcn.004015e0
jmp 0x488498
mov eax, dword [0x4e9e30]
test eax, eax
je 0x488484
cmp eax, 1
mov dword [0x4e9e30], 0
setg al
test al, al
je 0x488498
mov eax, dword [0x4e9e2c]
mov ecx, esi
push 0
mov dword [0x4e9e30], 1
mov dword [eax], edi
call fcn.00488290
jmp 0x488498
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, eax
call fcn.00485c70
push dword [ebp - 0x10478]
call fcn.0049f4f2
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.0040dcc0
int3
Function at 0x49c43f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49c47e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49c47e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49c47e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49c47e
cmp dword [ecx + 0x74], 0xe
jbe 0x49c47e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4ae13f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e2018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4ae18a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ae2da
test al, al
jne 0x4ae184
sub edx, 2
cmp edx, edi
jne 0x4ae16a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ae1ac
lea eax, [edi + 2]
cmp edx, eax
je 0x4ae1ac
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ae08b
add esp, 0x10
jmp 0x4ae2a6
push esi
lea ecx, [ebp - 0x255]
call fcn.004ae2da
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ae1ef
push dword [ebp - 0x25c]
jmp 0x4ae19c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4ae22c
cmp word [ebp - 0x226], 0
je 0x4ae24d
cmp word [ebp - 0x226], ax
jne 0x4ae22c
cmp word [ebp - 0x224], 0
je 0x4ae24d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ae08b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ae299
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ae206
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ae281
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ae2a6
push 0x4adebb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a9650
add esp, 0x10
jmp 0x4ae276
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049c693
leave
ret

Function at 0x4aefe0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb7fc
push 0x4bb7f4
push str.FlsAlloc
push 0x1f
call fcn.004aef1b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4af014
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b87a8]
call esi
jmp 0x4af01a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4af05e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb80c
push 0x4bb804
push str.FlsGetValue
push 0x21
call fcn.004aef1b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4af095
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b87a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4af09d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb814
push 0x4bb80c
push str.FlsSetValue
push 0x22
call fcn.004aef1b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4af0d7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4b87a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4b58c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b58ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b58ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x17f10c0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x181b520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ecx, ecx
mov al, 1
push edi
lea ebx, [ebx]
movzx edx, al
mov byte [ebp + edx - 0x104], cl
mov dl, al
and dl, 0x80
mov byte [ebp + ecx - 0x204], al
inc ecx
neg dl
sbb dl, dl
mov bl, al
and dl, 0x1b
add bl, bl
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x17f10e0
mov al, 1
mov ecx, 0x185f380
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
and dl, 0x1b
add al, al
xor al, dl
cmp ecx, 0x185f3a8
jl 0x17f1115
mov dword [0x185e780], 0x63
mov dword [0x186194c], 0
mov edx, 1
jmp 0x17f1160
movzx eax, byte [ebp + edx - 0x104]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x185e780], eax
mov dword [eax*4 + 0x18617c0], edx
inc edx
cmp edx, 0x100
jl 0x17f1160
xor ecx, ecx
mov dl, byte [ecx + 0x185e780]
mov al, dl
and al, 0x80
neg al
sbb al, al
and al, 0x1b
mov bl, dl
add bl, bl
xor al, bl
movzx esi, al
movzx edx, dl
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x18613c0], eax
ror eax, 8
mov dword [ecx + 0x1860fc0], eax
ror eax, 8
mov dword [ecx + 0x1860bc0], eax
ror eax, 8
mov dword [ecx + 0x18607c0], eax
mov al, byte [ecx + 0x18617c0]
test al, al
je 0x17f126f
movzx edx, al
movzx esi, byte [ebp + edx - 0x104]
movzx eax, byte [ebp - 0xf9]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [ebp + edx - 0x204]
mov dword [ebp - 0x208], eax
movzx eax, byte [ebp - 0xf7]
add eax, esi
cdq
idiv edi
movzx eax, byte [ebp - 0xfb]
add eax, esi
movzx ebx, byte [ebp + edx - 0x204]
cdq
idiv edi
movzx eax, byte [ebp - 0xf6]
add eax, esi
mov esi, 0xff
movzx edi, byte [ebp + edx - 0x204]
cdq
idiv esi
movzx eax, byte [ebp + edx - 0x204]
mov edx, dword [ebp - 0x208]
jmp 0x17f1277
xor edx, edx
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, edx
mov dword [ecx + 0x18603c0], eax
ror eax, 8
mov dword [ecx + 0x185ffc0], eax
ror eax, 8
mov dword [ecx + 0x185ef80], eax
ror eax, 8
mov dword [ecx + 0x185eb80], eax
add ecx, 4
cmp ecx, 0x400
jl 0x17f11a2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.018013cb
mov esp, ebp
pop ebp
ret
Function at 0x17f3470
Capabilities:
Hash data using sha256

Disassembly:
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
ret
Function at 0x17f5ee0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1818788
push 0x1807350
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x181b520]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x17f5f7b
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x17f5f61
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x28]
jmp 0x17f5f7b
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.018013cb
mov esp, ebp
pop ebp
ret

Function at 0x17f5fa0
Capabilities:
Get session user name
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x18188c8
push 0x1807350
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x181b520]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
xor esi, esi
mov dword [ebp - 4], eax
mov byte [ebp - 0x120], al
push 0x103
push eax
lea eax, [ebp - 0x11f]
push eax
call fcn.018033e0
add esp, 0xc
mov dword [ebp - 0x12c], 0x104
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x17f607d
mov edx, 6
mov dword [ebp - 0x130], edx
lea ecx, [ebp - 0x120]
or eax, 0xffffffff
mov dword [ebp - 0x124], ecx
mov esi, edx
dec edx
mov dword [ebp - 0x130], edx
test esi, esi
je 0x17f605c
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x18171c8]
inc ecx
jmp 0x17f6031
not eax
xor ecx, ecx
cmp eax, 0x39b5d60d
sete cl
mov esi, ecx
jmp 0x17f6077
mov dword [ebp - 0x128], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.018013cb
mov esp, ebp
pop ebp
ret
Function at 0x17f6e80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x185c680
call fcn.0180025b
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x17f6f34
test esi, esi
jne 0x17f6f34
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x17f6f18
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x17f6f12
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x17f6f12
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x17f6f01
cmp esi, eax
jae 0x17f6f05
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x17f6ef3
cmp esi, eax
jb 0x17f6f09
xor eax, eax
jmp 0x17f6f12
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x17f6f3d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x185c680
call fcn.0180025b
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x17f6ea5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x17f7040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x17f7058
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x17f708a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x17f7086
cmp esi, eax
jae 0x17f708a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x17f7078
cmp esi, eax
jb 0x17f7090
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret