joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019c360
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1059ed8
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0x367cd507
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x3070dd17
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xf70e5939
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0xffc00b31
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x68581511
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x64f98fa7
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 0xbefa4fa4
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x68], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x6c], 0x1c
mov eax, 1
pop ebp
ret

Function at 0x1019c3f0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x6a09e667
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xbb67ae85
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x3c6ef372
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xa54ff53a
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x510e527f
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x9b05688c
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x1f83d9ab
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 0x5be0cd19
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x68], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x6c], 0x20
mov eax, 1
pop ebp
ret
Function at 0x1019f990
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 4
call fcn.10264a90
push 0x1019f950
push 0x10537448
call fcn.101a3240
push 0x1019f830
call fcn.1025a290
add esp, 0xc
call fcn.101a3140
mov dword [0x10537458], eax
test eax, eax
jne 0x1019f9c6
pop ecx
ret
call fcn.101a5140
lea eax, [esp]
push eax
push 0x10537460
push 5
mov dword [0x10537460], 1
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
dec eax
neg eax
sbb eax, eax
inc eax
pop ecx
ret
Function at 0x101a2390
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.101a1e60
add esp, 0xc
test eax, eax
jl 0x101a25d8
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x101a240d
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea ebx, [ebx]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x101a23d0
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x101a25d4
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x1045ab38]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x1045ab38]
and esi, 0xff
mov esi, dword [esi*4 + 0x1045b738]
and edi, 0xff
xor esi, dword [edi*4 + 0x1045bf38]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1045ab38]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1045c338]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x1045ab38]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1045bb38]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x1045ab38]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x1045ab38]
and esi, 0xff
mov esi, dword [esi*4 + 0x1045b738]
and edi, 0xff
xor esi, dword [edi*4 + 0x1045bf38]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x1045ab38]
and edi, 0xff
xor esi, dword [edi*4 + 0x1045bb38]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1045ab38]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1045c338]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x1045ab38]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x1045ab38]
and esi, 0xff
mov esi, dword [esi*4 + 0x1045b738]
and edi, 0xff
xor esi, dword [edi*4 + 0x1045bf38]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x1045ab38]
and edi, 0xff
xor esi, dword [edi*4 + 0x1045bb38]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1045ab38]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1045c338]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x1045ab38]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x1045ab38]
and esi, 0xff
mov esi, dword [esi*4 + 0x1045b738]
and edi, 0xff
xor esi, dword [edi*4 + 0x1045bf38]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x1045ab38]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1045ab38]
and edi, 0xff
xor esi, dword [edi*4 + 0x1045bb38]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1045c338]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x101a2421
pop edi
xor eax, eax
pop esi
pop ebx
ret
Function at 0x101aa7d0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.10264a90
mov eax, dword [0x10525930]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x101aa845
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x101aa845
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call fcn.10266d90
add esp, 0x10
test eax, eax
jge 0x101aa828
mov eax, 0x200
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
lea edx, [ebp - 0x204]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x101aa98e
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101aa850
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.102664e0
mov esi, esp
test esi, esi
jne 0x101aa874
mov esi, str.no_stack_
jmp 0x101aa8ff
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x101aa8a1
test edi, edi
jbe 0x101aa8a1
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x101aa890
xor eax, eax
test edi, edi
jbe 0x101aa8ff
cmp word [esi + eax*2], 0x25
jne case.0x101aa8c4.43
lea ecx, [esi + eax*2 + 2]
movzx edx, word [ecx]
add edx, 0xffffffd6
cmp edx, 0x49
ja case.0x101aa8c4.43
movzx edx, byte [edx + 0x101aa9c0]
jmp dword [edx*4 + 0x101aa9a8]
inc eax
add ecx, 2
jmp 0x101aa8b2
mov ecx, 0x53
mov word [esi + eax*2 + 2], cx
jmp case.0x101aa8c4.43
mov edx, 0x73
jmp 0x101aa8f5
mov ecx, 0x43
mov word [esi + eax*2 + 2], cx
jmp case.0x101aa8c4.43
mov edx, 0x63
mov word [esi + eax*2 + 2], dx
inc eax
cmp eax, edi
jb 0x101aa8a7
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.10266bc0
xor edx, edx
add esp, 0x10
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x101aa978
call fcn.101aa690
test eax, eax
jle 0x101aa978
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x101aa98e
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x204]
push esi
mov dword [ebp - 0x208], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x101aa98e
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102595a0
mov esp, ebp
pop ebp
ret
Function at 0x101ab0f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x101ab137
mov al, byte [edx]
test al, al
je 0x101ab137
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x101ab107
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x101c0130
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
push ebx
call fcn.101ff810
push 0x62
push esi
mov edi, eax
mov ebp, 1
call fcn.10265e80
add esp, 0x10
test eax, eax
jne 0x101c015c
lea ebp, [eax + 0x11]
test edi, edi
jne 0x101c01e5
push 0x4a
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.101a0780
push 0x1047b79c
push esi
push 0x1047b798
push ebx
push str.fopen_
push 5
call fcn.101a0a80
add esp, 0x2c
call fcn.1025bec0
cmp dword [eax], 2
je 0x101c01c6
call fcn.1025bec0
cmp dword [eax], 6
je 0x101c01c6
push 0x53
push str.crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.101a0780
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x51
push str.crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.101a0780
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x1047b750
call fcn.101a0f60
mov esi, eax
add esp, 4
test esi, esi
jne 0x101c0208
push edi
call fcn.1025e880
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.101a1100
push edi
push ebp
push 0x6a
push esi
call fcn.101a1480
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x101c9970
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.10264a90
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, edx
push ebp
mov esi, 1
push eax
mov ebx, ecx
shl esi, cl
mov dword [esp + 0x18], edi
call fcn.101ad7d0
add esp, 8
test eax, eax
jne 0x101c99ab
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp ebx, 3
jg 0x101c9a0d
xor ebx, ebx
test ebp, ebp
jle 0x101c9b70
lea ebx, [ebx]
xor edx, edx
xor ecx, ecx
test esi, esi
jle 0x101c99ef
mov eax, ecx
xor eax, dword [esp + 0x44]
inc ecx
lea ebp, [eax - 1]
shr ebp, 0x1f
not eax
shr eax, 0x1f
and ebp, eax
mov eax, dword [edi + ecx*4 - 4]
neg ebp
and ebp, 1
neg ebp
and ebp, eax
or edx, ebp
cmp ecx, esi
jl 0x101c99c8
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [eax + ebx*4], edx
lea eax, [esi*4]
inc ebx
add edi, eax
cmp ebx, dword [esp + 0x40]
jl 0x101c99c0
jmp 0x101c9b70
mov edx, dword [esp + 0x44]
lea ecx, [ebx - 2]
mov eax, edx
sar eax, cl
mov edi, 1
shl edi, cl
lea ebx, [eax - 1]
shr ebx, 0x1f
lea ecx, [edi - 1]
and edx, ecx
mov dword [esp + 0x44], edx
mov edx, eax
not edx
shr edx, 0x1f
and ebx, edx
mov ecx, eax
xor ecx, 1
lea edx, [ecx - 1]
not ecx
shr ecx, 0x1f
shr edx, 0x1f
and edx, ecx
mov ecx, eax
xor ecx, 2
lea ebp, [ecx - 1]
not ecx
shr ecx, 0x1f
shr ebp, 0x1f
and ebp, ecx
xor eax, 3
lea ecx, [eax - 1]
shr ecx, 0x1f
not eax
shr eax, 0x1f
and ecx, eax
neg ebx
neg edx
neg ebp
neg ecx
and ebx, 1
and edx, 1
and ebp, 1
and ecx, 1
xor eax, eax
neg edx
neg ebp
neg ecx
neg ebx
cmp dword [esp + 0x40], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
jle 0x101c9b70
lea edx, [esi*4]
mov dword [esp + 0x34], edx
mov edi, edi
xor esi, esi
cmp edi, esi
mov dword [esp + 0x20], esi
jle 0x101c9b4c
mov eax, dword [esp + 0x10]
lea edx, [eax + edi*4]
mov dword [esp + 0x1c], edx
lea edx, [eax + edi*8]
mov dword [esp + 0x18], edx
lea edx, [edi + edi*2]
lea eax, [eax + edx*4]
mov dword [esp + 0x14], eax
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
and edx, ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
and ecx, ebp
or ecx, edx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
and edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
or edx, ecx
mov eax, esi
xor eax, dword [esp + 0x44]
inc esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + esi*4 - 4]
neg ecx
and ecx, 1
and eax, ebx
neg ecx
or eax, edx
and ecx, eax
or dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov eax, 4
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
cmp esi, edi
jl 0x101c9ae0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov edx, dword [edx]
mov esi, dword [esp + 0x20]
mov dword [edx + eax*4], esi
mov edx, dword [esp + 0x34]
add dword [esp + 0x10], edx
inc eax
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
jl 0x101c9ab0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push eax
mov dword [eax + 4], ecx
call fcn.101ad370
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
Function at 0x101f9bb0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
lea eax, [ecx + 1]
ret
Function at 0x101fc357
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.10264a90
mov eax, dword [0x10525930]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
jbe 0x101fc4c4
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 8
or ebx, eax
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
shl edx, 0x18
inc esi
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
inc esi
mov byte [edi], dl
mov byte [ebp], al
call fcn.101ec360
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.101ec3e0
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.101e8e70
push ebp
call fcn.101ec360
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.101ec3e0
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.101e8e70
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
inc eax
shr edx, 8
add esp, 0x30
mov byte [eax], dl
inc eax
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
inc eax
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
inc eax
inc eax
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
inc eax
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x101fc373
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.102595a0
add esp, 0xa0
ret
Function at 0x101ffdc0
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
mov eax, 0x6c
call fcn.10264a90
mov eax, dword [0x10525930]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x101ffe3d
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x34]
push ecx
push 0x40
push edx
call edi
test eax, eax
je 0x101ffe34
mov eax, 8
call fcn.10264a90
fld qword [0x104897d0]
fstp qword [esp]
lea eax, [esp + 0x3c]
push 0x40
push eax
call fcn.101aa560
add esp, 0x10
mov ecx, dword [esp + 0xc]
push 0
push ecx
call ebx
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea edx, [esp + 0x1c]
push edx
call esi
test eax, eax
je 0x101ffe93
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x34]
push eax
push 0x40
push ecx
call edi
test eax, eax
je 0x101ffe8a
mov eax, 8
call fcn.10264a90
fld qword [0x104897d0]
fstp qword [esp]
lea edx, [esp + 0x3c]
push 0x40
push edx
call fcn.101aa560
add esp, 0x10
mov eax, dword [esp + 0xc]
push 0
push eax
call ebx
call fcn.101ffd40
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.10264a90
fld1
fstp qword [esp]
lea edx, [esp + 0x1c]
push 0x20
push edx
call fcn.101aa560
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x10], eax
mov eax, 8
call fcn.10264a90
fld1
fstp qword [esp]
lea eax, [esp + 0x18]
push 4
push eax
call fcn.101aa560
mov ecx, dword [esp + 0x84]
add esp, 0x10
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.102595a0
add esp, 0x6c
ret
Function at 0x10220260
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x10220343
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x102202de
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x10220330
shl edx, 0x10
cmp edi, 2
jne 0x102202ef
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x1022031d
lea edx, [edi + 0x3c]
jmp 0x1022032a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x10220280
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x10221730
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.10264a90
mov eax, dword [0x10525930]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x9c]
test ebx, ebx
je 0x10221793
cmp ebx, dword [esi]
je 0x1022178a
test edi, edi
je 0x10221820
cmp dword [esp + 0xa0], eax
jl 0x10221820
mov eax, 1
mov dword [esi], ebx
jmp 0x1022179d
mov ebx, dword [esi]
test ebx, ebx
je 0x10221820
test edi, edi
je 0x1022187e
push ebp
push ebx
call fcn.10202380
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x102217cd
push 0x28
push str.cryptohmachmac.c
push str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.101aaa10
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
pop ebp
jge 0x1022183a
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
push ecx
push ebx
push edx
call fcn.101b4600
add esp, 0xc
test eax, eax
je 0x10221820
mov eax, dword [esp + 0xa0]
mov ecx, dword [esi + 4]
push eax
push edi
push ecx
call fcn.101b47b0
add esp, 0xc
test eax, eax
je 0x10221820
mov eax, dword [esi + 4]
lea edi, [esi + 0x10]
push edi
lea edx, [esi + 0x14]
push edx
push eax
call fcn.101b47c0
add esp, 0xc
test eax, eax
jne 0x1022185b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.102595a0
add esp, 0x88
ret
cmp eax, 0x80
ja 0x10221820
push eax
lea ecx, [esi + 0x14]
push edi
push ecx
call fcn.102640e0
mov edx, dword [esp + 0xac]
lea edi, [esi + 0x10]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x10221886
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x14]
push 0
push ecx
call fcn.10262810
add esp, 0xc
jmp 0x10221886
test eax, eax
je 0x10221929
xor eax, eax
jmp 0x10221890
mov dl, byte [esi + eax + 0x14]
xor dl, 0x36
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, 0x80
jl 0x10221890
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 8]
push edi
push ebx
push eax
call fcn.101b4600
add esp, 0xc
test eax, eax
je 0x10221820
push ebx
call fcn.10202380
mov edx, dword [esi + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.101b47b0
add esp, 0x10
test eax, eax
je 0x10221820
xor eax, eax
nop
mov cl, byte [esi + eax + 0x14]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x102218e0
mov edx, dword [esi + 0xc]
push edi
push ebx
push edx
call fcn.101b4600
add esp, 0xc
test eax, eax
je 0x10221820
push ebx
call fcn.10202380
mov ecx, dword [esi + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.101b47b0
add esp, 0x10
test eax, eax
je 0x10221820
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
call fcn.101b4840
add esp, 8
test eax, eax
je 0x10221820
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.102595a0
add esp, 0x88
ret
Function at 0x102595a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10525930]
jne 0x102595aa
repz ret
jmp fcn.10271900
Function at 0x102a44cb
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x102a4506

Function at 0x102a4770
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sal byte [esi + eax - 1], cl
test dword [edi + edi*8 - 1], esi
dec dword [edi]
scasd eax, dword es:[edi]
lea esi, [edi + edi*8 - 1]
dec dword [ecx + 0x5d880c4d]
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.102a448b
mov ecx, 0x8d84d4ec
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid