joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b869e9d
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5b89bae4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x18], edx
xor edx, edx
mov dword [ebp - 0x14], edx
mov esi, edx
mov dword [ebp - 0x10], edx
push edi
test ebx, ebx
jne 0x5b869ece
mov eax, 0x80070057
jmp 0x5b869ff6
mov dword [ebx], edx
mov edi, edx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5b869ee5
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [edi + 0x5b896070]
test dword [ebp - 0x18], eax
je 0x5b869fd5
mov ecx, dword [edi + 0x5b896074]
test ecx, ecx
je 0x5b869f43
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x5b869f7a
call fcn.5b86f6c1
mov ecx, eax
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b869f3a
test byte [eax + 0x1c], 1
je 0x5b869f3a
push ecx
push dword [eax + 0x14]
mov edx, 0x5b817550
push dword [eax + 0x10]
push 0xb
pop ecx
call fcn.5b81ae33
xor edx, edx
mov esi, edx
jmp 0x5b869fd5
cmp eax, 1
jne 0x5b869f7a
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
push edx
push edx
push edx
push edx
push edx
push edx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x5b86a007
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x5b869f97
xor edx, edx
mov esi, edx
jmp 0x5b869fcf
call fcn.5b86f6c1
mov esi, eax
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b869fc9
test byte [eax + 0x1c], 1
je 0x5b869fc9
push esi
push dword [eax + 0x14]
mov edx, 0x5b817550
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.5b81ae33
mov eax, dword [0x5b89602c]
test esi, esi
js 0x5b86a03c
xor edx, edx
cmp dword [ebp - 0x14], 0
jne 0x5b86a038
add edi, 8
cmp edi, 0x48
jb 0x5b869ed2
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5b869ff4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5b884340
leave
ret 4
call fcn.5b86f6c1
mov esi, eax
mov ecx, dword [0x5b89602c]
cmp ecx, 0x5b89602c
je 0x5b869fe6
test byte [ecx + 0x1c], 1
je 0x5b869fe6
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xc
mov edx, 0x5b817550
pop ecx
call fcn.5b81ae33
jmp 0x5b869fe6
mov esi, edx
jmp 0x5b869fe1
cmp eax, 0x5b89602c
je 0x5b869fe6
test byte [eax + 0x1c], 1
je 0x5b869fe6
push esi
lfence
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
jmp 0x5b86a02b
Function at 0x5b86b451
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5b89bae4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x228
lea eax, [ebp - 0x230]
mov edi, ecx
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x230]
xor edx, edx
call fcn.5b86bf98
mov esi, eax
test esi, esi
js 0x5b86b54c
xor eax, eax
lea ecx, [ebp - 0x230]
mov edx, edi
mov word [ebp - 0x230], ax
call fcn.5b86c028
mov esi, eax
test esi, esi
js 0x5b86b54c
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5b86b4e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x5b86b525
cmp eax, 3
je 0x5b86b4eb
test eax, eax
jg 0x5b86b4de
mov esi, eax
jmp 0x5b86b54c
movzx esi, ax
jmp 0x5b86b546
test al, 0x10
je 0x5b86b4eb
xor esi, esi
jmp 0x5b86b54c
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x234], eax
call fcn.5b86b32c
mov esi, eax
test esi, esi
jne 0x5b86b525
lea ecx, [ebp - 0x238]
call fcn.5b86b451
mov esi, eax
test esi, esi
js 0x5b86b54c
push 0
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5b86b54c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x5b86b54c
movzx esi, si
or esi, 0x80070000
lea ecx, [ebp - 0x230]
call fcn.5b86c0da
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.5b884340
leave
ret
Function at 0x5b86dfc8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov edx, 0x5b817d30
push ebx
push esi
mov dword [ebp - 8], ecx
lea ecx, [ebp - 4]
push edi
call fcn.5b870bb3
mov edi, dword [ebp - 4]
mov ebx, eax
test ebx, ebx
jns 0x5b86e024
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b86e0e7
test byte [eax + 0x1c], 1
je 0x5b86e0e7
push ebx
lfence
push dword [eax + 0x14]
mov edx, 0x5b817eb8
push dword [eax + 0x10]
push 0x18
pop ecx
call fcn.5b81ae33
jmp 0x5b86e0e7
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push eax
push edi
lea eax, [ebp - 4]
push 0x5b817d4c
push eax
call fcn.5b87431e
mov esi, dword [ebp - 4]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jns 0x5b86e06e
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b86e0dc
test byte [eax + 0x1c], 1
je 0x5b86e0dc
push ebx
lfence
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x19
jmp 0x5b86e0a7
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x5b86e0b4
call fcn.5b86f6c1
mov ebx, eax
test ebx, ebx
jns 0x5b86e0b4
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b86e0dc
test byte [eax + 0x1c], 1
je 0x5b86e0dc
push ebx
lfence
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1a
mov edx, 0x5b817eb8
pop ecx
call fcn.5b81ae33
jmp 0x5b86e0dc
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b86e0da
test byte [eax + 0x1c], 4
je 0x5b86e0da
push esi
push dword [eax + 0x14]
mov edx, 0x5b817eb8
push dword [eax + 0x10]
push 0x1b
pop ecx
call fcn.5b81b790
xor ebx, ebx
test esi, esi
je 0x5b86e0e7
push esi
call fcn.5b884351
pop ecx
test edi, edi
je 0x5b86e0f2
push edi
call fcn.5b884351
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x5b86eea6
Capabilities:
Encode data using xor

Disassembly:
push 0x10
mov eax, 0x5b88d5c9
call fcn.5b8878a0
mov ebx, edx
mov edi, ecx
or dword [ebp - 0x18], 0xffffffff
and dword [ebp - 4], 0
mov edx, edi
push ecx
push ecx
push 0
push 3
push 5
push SysReAllocStringLen
lea ecx, [ebp - 0x18]
call fcn.5b871749
mov esi, eax
test esi, esi
js 0x5b86efdf
or dword [ebp - 0x14], 0xffffffff
push ecx
push ecx
push 0x80
push 2
push 1
push 0x40000000
mov edx, ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.5b871749
mov esi, eax
test esi, esi
jns 0x5b86ef3d
lfence
mov ecx, dword [0x5b89602c]
cmp ecx, 0x5b89602c
je 0x5b86f00b
test byte [ecx + 0x1c], 1
je 0x5b86f00b
push esi
push edi
lfence
push dword [ecx + 0x14]
mov edx, 0x5b817ec8
push dword [ecx + 0x10]
push 0xf
jmp 0x5b86f005
mov ebx, 0x1000
push ebx
call fcn.5b887a35
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
lea edx, [ebp - 0x10]
mov edi, dword [ebp - 0x18]
mov ecx, edi
push esi
mov dword [ebp - 0x10], ebx
call fcn.5b871892
push eax
call fcn.5b82c619
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5b86efb1
mov bl, byte [ebp + 8]
xor eax, eax
test ecx, ecx
je 0x5b86ef81
xor byte [eax + esi], bl
inc eax
cmp eax, ecx
jb 0x5b86ef79
mov edx, ecx
mov ecx, dword [ebp - 0x14]
push esi
call fcn.5b8717db
push eax
call fcn.5b82c619
push esi
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1000
mov ecx, edi
call fcn.5b871892
push eax
call fcn.5b82c619
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x5b86ef73
test esi, esi
je 0x5b86efbc
push esi
call fcn.5b884351
pop ecx
cmp dword [ebp - 0x14], 0xffffffff
je 0x5b86efcb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x5b86efd7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.5b887840
ret 4
lfence
mov ecx, dword [0x5b89602c]
cmp ecx, 0x5b89602c
je 0x5b86f00b
test byte [ecx + 0x1c], 1
je 0x5b86f00b
push esi
push edi
push dword [ecx + 0x14]
mov edx, 0x5b817ec8
push dword [ecx + 0x10]
push 0xe
pop ecx
call fcn.5b81ae55
mov ecx, esi
call fcn.5b871bdd
int3
Function at 0x5b86f5d8
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x5b86f68d
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x5b86f68d
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x5b86f68d
cmp dword [edx + esi], 0x4550
jne 0x5b86f68d
cmp dword [edx + esi + 0x74], 6
jb 0x5b86f68d
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x5b86f68b
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x5b86f68b
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x5b86f68b
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x5b86f669
cmp dword [ecx], ebx
jae 0x5b86f669
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x5b86f66f
test edx, edx
jne 0x5b86f64f
jmp 0x5b86f68b
push 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_VirtualLock]
test eax, eax
je 0x5b86f68b
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x5b8705a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
push ebx
call fcn.5b870514
mov esi, dword [ebp - 4]
mov edi, eax
test edi, edi
js 0x5b87066b
xor eax, eax
lea edi, [ebp - 0x14]
lfence
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
pop edi
push edi
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 0x60], edi
test eax, eax
jne 0x5b8705f4
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp + 0x2c]
movzx eax, byte [ebp + 0x24]
push dword [ebp + 0x28]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x5b870649
call fcn.5b86f6c1
mov edi, eax
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b87066b
test byte [eax + 0x1c], 1
je 0x5b87066b
push edi
push esi
push dword [eax + 0x14]
mov edx, 0x5b818220
push dword [eax + 0x10]
push 0x1f
pop ecx
call fcn.5b81ae55
jmp 0x5b87066b
cmp dword [ebp - 0x10], 0
je 0x5b870661
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x5b870661
call fcn.5b871719
mov ecx, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
test esi, esi
je 0x5b870676
push esi
call fcn.5b884351
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x28
Function at 0x5b87067f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
xor ecx, ecx
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push dword [ebp + 0xc]
push ecx
push ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x5b8706d1
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b8706cd
test byte [eax + 0x1c], 4
je 0x5b8706cd
push dword [eax + 0x14]
mov edx, 0x5b818220
push dword [eax + 0x10]
push 0x20
pop ecx
call fcn.5b81ae17
xor eax, eax
jmp 0x5b870730
mov esi, 0x80004005
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
sub eax, 0xb
je 0x5b870700
sub eax, 1
je 0x5b8706f2
sub eax, 1
je 0x5b8706f9
sub eax, 9
jne 0x5b870705
mov esi, 0x8007000e
jmp 0x5b870705
mov esi, 0x80070005
jmp 0x5b870705
mov esi, 0x8007009b
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b87072b
test byte [eax + 0x1c], 1
je 0x5b87072b
push esi
push dword [eax + 0x14]
mov edx, 0x5b818220
push dword [eax + 0x10]
push 0x21
pop ecx
call fcn.5b81ae33
lfence
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x5b871079
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5b8710ce
call fcn.5b86f6c1
mov esi, eax
cmp esi, 0x80070002
je 0x5b8710ca
cmp esi, 0x80070003
je 0x5b8710ca
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b8710ca
test byte [eax + 0x1c], 1
je 0x5b8710ca
push esi
push edi
push dword [eax + 0x14]
mov edx, 0x5b818220
push dword [eax + 0x10]
push 0x2e
pop ecx
call fcn.5b81ae55
mov eax, esi
jmp 0x5b8710d2
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ecx
ret

Function at 0x5b8710d6
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, 0x80
mov edi, ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x5b871121
call fcn.5b86f6c1
mov esi, eax
mov ecx, dword [0x5b89602c]
cmp ecx, 0x5b89602c
je 0x5b87111d
test byte [ecx + 0x1c], 1
je 0x5b87111d
push esi
push ebx
push edi
push dword [ecx + 0x14]
mov edx, 0x5b818220
push dword [ecx + 0x10]
push 0x2f
pop ecx
call fcn.5b82ebe4
mov eax, esi
jmp 0x5b871123
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x5b8717db
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov ebx, ecx
jmp 0x5b8717ff
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x5b871855
test eax, eax
je 0x5b87184e
cmp eax, esi
ja 0x5b87184e
sub esi, eax
add edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5b8717ec
call fcn.5b86f6c1
mov esi, eax
test esi, esi
jns 0x5b871855
lfence
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b87184a
test byte [eax + 0x1c], 1
je 0x5b87184a
push esi
push dword [eax + 0x14]
mov edx, 0x5b818450
push dword [eax + 0x10]
push 0xf
pop ecx
call fcn.5b81ae33
mov eax, esi
jmp 0x5b871857
mov esi, 0x8000ffff
jmp 0x5b87181d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5b878840
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
test esi, esi
je 0x5b878856
or dword [esi], 0xffffffff
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x5b8789e3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5b8789e3
test esi, esi
je 0x5b8789e3
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
je 0x5b87888b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
jmp 0x5b878890
and dword [esp + 0xc], 0
push edi
push 0
push eax
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
cmp ecx, ebx
jb 0x5b878992
lfence
cmp ecx, 0x80
jb 0x5b8788c2
lea eax, [ebx + 0x80]
cmp ecx, eax
jb 0x5b878992
cmp ecx, 0x102
je 0x5b8789a2
cmp ecx, 0xffffffff
jne 0x5b8789dc
call fcn.5b86f6c1
mov ecx, eax
mov dword [esp + 0x14], ecx
call fcn.5b871d6e
test eax, eax
je 0x5b8789ae
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b878915
test byte [eax + 0x1c], 1
je 0x5b878915
push ecx
push dword [eax + 0x14]
mov edx, 0x5b81870c
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.5b81ae33
mov edx, dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.5b8787a2
test eax, eax
js 0x5b8789a9
cmp dword [esi], 0xffffffff
jne 0x5b878994
cmp edi, 0xffffffff
jne 0x5b878943
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
jmp 0x5b87897b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0xc]
cmp eax, edi
jae 0x5b8789a2
mov ecx, edi
sub ecx, eax
mov eax, 0xfa
cmp ecx, eax
jb 0x5b878998
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0xc]
cmp eax, edi
jae 0x5b8789a2
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x10], ecx
push ecx
push 0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
cmp ecx, ebx
jae 0x5b8788ac
mov dword [esi], ecx
xor eax, eax
jmp 0x5b8789e8
push ecx
lfence
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x80070102
jmp 0x5b8789e8
lfence
jmp 0x5b8789e8
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b8789d8
test byte [eax + 0x1c], 1
je 0x5b8789d8
push ecx
push dword [eax + 0x14]
mov edx, 0x5b81870c
push dword [eax + 0x10]
push 0xf
pop ecx
call fcn.5b81ae33
mov ecx, dword [esp + 0x14]
mov eax, ecx
jmp 0x5b8789e8
mov eax, 0x8000ffff
jmp 0x5b8789e8
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5b878a8d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, ecx
mov ebx, edx
mov ecx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ecx], edi
mov ecx, dword [ebp + 0x10]
push ebx
push eax
mov dword [ecx], edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x5b878aea
call fcn.5b86f6c1
mov esi, eax
mov ecx, dword [0x5b89602c]
cmp ecx, 0x5b89602c
je 0x5b878ae3
test byte [ecx + 0x1c], 1
je 0x5b878ae3
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x11
mov edx, 0x5b81870c
pop ecx
call fcn.5b81ae33
mov eax, esi
jmp 0x5b878bfe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x5b878b1d
call fcn.5b86f6c1
mov esi, eax
mov ecx, dword [0x5b89602c]
cmp ecx, 0x5b89602c
je 0x5b878ae3
test byte [ecx + 0x1c], 1
je 0x5b878ae3
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x12
jmp 0x5b878ad8
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x5b878b51
call fcn.5b86f6c1
mov esi, eax
mov ecx, dword [0x5b89602c]
cmp ecx, 0x5b89602c
je 0x5b878ae3
test byte [ecx + 0x1c], 1
je 0x5b878ae3
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x13
jmp 0x5b878ad8
lea ecx, [eax + esi]
cmp esi, ecx
jbe 0x5b878b7b
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b878be8
test byte [eax + 0x1c], 1
je 0x5b878be8
push dword [ebp + 8]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
jmp 0x5b878bdd
mov edx, dword [ebp + 8]
and edx, 0xf
jbe 0x5b878b95
cmp esi, ecx
jae 0x5b878b99
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
inc edi
cmp edi, edx
jb 0x5b878b83
cmp esi, ecx
jb 0x5b878bb8
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b878be8
test byte [eax + 0x1c], 1
je 0x5b878be8
push dword [ebp + 8]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x15
jmp 0x5b878bdd
movzx eax, word [esi]
test ax, ax
jne 0x5b878bef
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b878be8
test byte [eax + 0x1c], 2
je 0x5b878be8
push dword [ebp + 8]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
mov edx, 0x5b81870c
pop ecx
call fcn.5b81ae33
mov eax, 0x80070714
jmp 0x5b878bfe
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea eax, [esi + 2]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x5b87ab1a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, edx
xor esi, esi
mov edx, ecx
test edi, edi
je 0x5b87ab46
push ebx
mov ebx, dword [ebp + 8]
movzx ecx, byte [esi + ebx]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x5b818730]
inc esi
cmp esi, edi
jb 0x5b87ab2d
pop ebx
pop edi
mov eax, edx
pop esi
pop ebp
ret 4
Function at 0x5b87e3e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
and dword [eax], 0
push edi
lea esi, [ebx + 0x14]
cmp dword [ebx + 8], 0
je 0x5b87e426
push esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5b87e422
call fcn.5b86f6c1
mov edi, eax
cmp edi, 0x80070012
jne 0x5b87e48d
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
jmp 0x5b87e4d0
xor edi, edi
jmp 0x5b87e48d
push dword [ebx + 0x10]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push dword [ebx + 0xc]
push 0x5b80bb84
push eax
call fcn.5b87431e
mov esi, eax
add esp, 0x10
test esi, esi
js 0x5b87e4bc
mov eax, dword [ebx + 8]
test eax, eax
je 0x5b87e45e
cmp eax, 0xffffffff
je 0x5b87e45a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [ebx + 8], 0
mov esi, dword [ebp - 4]
lea eax, [ebx + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x5b87e47a
call fcn.5b86f6c1
mov edi, eax
jmp 0x5b87e47f
mov dword [ebx + 8], eax
xor edi, edi
test esi, esi
je 0x5b87e48a
push esi
call fcn.5b884351
pop ecx
lea esi, [ebx + 0x14]
cmp edi, 0x80070012
je 0x5b87e415
test edi, edi
js 0x5b87e4b5
test byte [ebx + 0x268], 2
je 0x5b87e4ab
test byte [esi], 0x10
jne 0x5b87e3f2
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x5b87e41b
lfence
mov eax, edi
jmp 0x5b87e4d0
lfence
cmp dword [ebp - 4], 0
je 0x5b87e4ce
push dword [ebp - 4]
call fcn.5b884351
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x5b87f2ff
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
xor eax, eax
lea edi, [ecx + 0x58]
push 8
mov dword [ecx + 8], eax
mov esi, 0x5b818ca4
mov dword [ecx + 0xc], eax
mov dword [ecx], eax
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x5b87f3c4
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi]
lea ebx, [esi + 0x58]
mov byte [eax + esi + 0x18], 0x80
inc eax
cmp eax, 0x38
jbe 0x5b87f407
push 0x40
pop edx
lea ecx, [esi + 0x18]
sub edx, eax
add ecx, eax
lfence
call fcn.5b8875e0
lea eax, [esp + 0xc]
mov ecx, ebx
push eax
push 0x40
lea edx, [esi + 0x18]
call fcn.5b87f474
xor eax, eax
push 0x40
pop edx
lea ecx, [esi + 0x18]
sub edx, eax
add ecx, eax
call fcn.5b8875e0
mov ecx, dword [esi + 8]
lea edx, [esi + 0x18]
mov eax, dword [esi + 0xc]
shld eax, ecx, 3
bswap eax
shl ecx, 3
mov dword [esi + 0x50], eax
lea eax, [esp + 0xc]
bswap ecx
push eax
mov dword [esi + 0x54], ecx
mov ecx, ebx
push 0x40
call fcn.5b87f474
push 8
mov edx, ebx
pop ecx
mov eax, dword [edx]
lea edx, [edx + 4]
bswap eax
mov dword [edi], eax
lea edi, [edi + 4]
sub ecx, 1
jne 0x5b87f443
push 0x78
pop edx
mov ecx, esi
lfence
call fcn.5b8875e0
push 8
pop ecx
mov edi, ebx
mov esi, 0x5b818ca4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret