joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107db98
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push esi
sete bl
and dword [eax], 0
push edi
mov edi, ebx
shl edi, 7
add edi, 0x10b8b78
cmp byte [ebx + 0x10b8b74], 0
jne 0x107dc8f
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x107dbe6
call fcn.010a4804
mov esi, eax
push esi
push 0x1dd3019a
jmp 0x107dc26
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x107dc03
call fcn.010a4804
mov esi, eax
push esi
push 0x1ddb019a
jmp 0x107dc26
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x107dc2d
call fcn.010a4804
mov esi, eax
test esi, esi
jne 0x107dc20
mov esi, 0x8007000d
push esi
push 0x1de7019a
call fcn.0107ae44
jmp 0x107dc96
push 0x10181c4
lea eax, [esi + 6]
push eax
call fcn.0107d890
test eax, eax
je 0x107dc46
mov esi, 0x8007000d
jmp 0x107dc96
cmp byte [ebp + 0xc], 0
je 0x107dc61
movzx eax, word [esi + 0x34]
push eax
movzx eax, word [esi + 0x36]
push eax
movzx eax, word [esi + 0x30]
push eax
movzx eax, word [esi + 0x32]
jmp 0x107dc74
movzx eax, word [esi + 0x3c]
push eax
movzx eax, word [esi + 0x3e]
push eax
movzx eax, word [esi + 0x38]
push eax
movzx eax, word [esi + 0x3a]
push eax
push 0x10181ac
push 0x40
push edi
call fcn.01029706
add esp, 0x1c
xchg dword [ebp + 0xc], eax
mov byte [ebx + 0x10b8b74], 1
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x107feb0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor ecx, ecx
push eax
mov dword [edi], ecx
push ecx
mov dword [ebx], ecx
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x107feec
mov eax, 0x8007000e
push eax
push 0x6ba01a3
mov edi, eax
call fcn.0107ae44
jmp 0x107ff3d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x107ff27
call fcn.010a4804
mov edi, eax
push edi
push 0x6c701a3
call fcn.0107ae44
jmp 0x107ff32
mov eax, dword [ebp + 0x14]
mov dword [edi], esi
xor esi, esi
mov dword [ebx], eax
xor edi, edi
test esi, esi
je 0x107ff3d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x10806da
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000000
push 1
xor edi, edi
push 0x1010268
push edi
mov dword [esi], edi
push esi
mov dword [ebx], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1080717
mov dword [esi], edi
call fcn.010a4804
mov ebx, eax
push ebx
push 0xc1401a3
jmp 0x108073a
push ebx
push edi
push edi
push 0x8004
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1080741
mov dword [ebx], edi
call fcn.010a4804
mov ebx, eax
push ebx
push 0xc1b01a3
call fcn.0107ae44
jmp 0x1080743
xor ebx, ebx
cmp ebx, edi
je 0x108076b
mov eax, dword [esi]
cmp eax, edi
je 0x108076b
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x1080769
call fcn.010a4804
push ebx
push 0xc2601a3
call fcn.0107ae44
mov dword [esi], edi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x1081c2f
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
call fcn.0103f846
test eax, eax
mov dword [ebp - 4], eax
je 0x1081c62
push eax
push 0x66c01a3
call fcn.0107ae44
jmp 0x1081d13
push esi
push edi
mov edi, dword [ebp - 8]
jmp 0x1081cc5
push ebx
push dword [ebp + 0xc]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
lea eax, [ebp + 0x10]
push eax
push esi
push 0
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1081cf4
call fcn.010a4804
cmp dword [ebp - 0xc], 0
mov dword [ebp - 4], eax
jne 0x1081ce7
cmp eax, 0x800700ea
jne 0x1081ce7
test edi, edi
mov eax, esi
je 0x1081cb1
mov byte [eax], 0
inc eax
dec edi
jne 0x1081caa
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 1
push edi
push 0
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1081c69
mov eax, 0x8007000e
push eax
mov dword [ebp - 4], eax
push 0x67501a3
jmp 0x1081ced
push eax
push 0x69101a3
call fcn.0107ae44
jmp 0x1081d06
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
xor esi, esi
mov dword [eax], ecx
mov dword [ebp - 4], esi
test esi, esi
je 0x1081d11
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x14
Function at 0x1081dfc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x12a
lea eax, [ebp - 0x12f]
push 0
push eax
mov dword [ebp - 0x138], esi
mov byte [ebp - 0x130], 0
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x130]
push eax
push 0x1019ff4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
lea ebx, [edi + 0x27]
je 0x1081e5d
cmp eax, edi
jb 0x1081e6f
push 0x1018158
push ebx
lea eax, [ebp - 0x130]
push eax
call fcn.01037ba5
lea eax, [ebp - 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1081e78
sub eax, edx
je 0x1081e8d
cmp byte [ebp + eax - 0x131], 0x5c
je 0x1081e96
mov byte [ebp + eax - 0x130], 0x5c
inc eax
push dword [ebp + 0x10]
sub ebx, eax
push dword [ebp + 0xc]
lea eax, [ebp + eax - 0x130]
push 0x1019fe4
push ebx
push eax
call fcn.01037d8f
lea eax, [ebp - 0x130]
push 0x100a76c
push eax
call dword [sym.imp.msvcrt.dll_fopen]
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x1081ee3
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
push 0xbbc01a3
call fcn.0107ae44
jmp 0x1081ff5
and dword [ebp - 0x134], 0
cmp dword [esi + 0xc], 0
jbe 0x1081fed
mov edi, dword [sym.imp.msvcrt.dll_fprintf]
jmp 0x1081efe
mov esi, eax
mov eax, dword [ebp - 0x134]
test eax, eax
mov ecx, dword [esi + 0x10]
mov esi, dword [ecx + eax*4]
jbe 0x1081f1c
push ebx
push 0x100a730
call dword [sym.imp.msvcrt.dll_fputs]
pop ecx
pop ecx
push dword [ebp - 0x134]
push 0x1019fd0
push ebx
call edi
mov eax, dword [esi + 4]
add esp, 0xc
push 0
push dword [eax + 8]
push dword [eax + 4]
push ebx
call fcn.010805db
test eax, eax
jne 0x1081fd2
mov esi, dword [esi + 0x10]
test esi, esi
je 0x1081fb5
cmp dword [esi], 0x1c
jb 0x1081fb5
mov esi, dword [esi + 0x18]
test esi, esi
je 0x1081fb5
mov eax, dword [esi + 4]
test eax, eax
je 0x1081f87
push eax
call fcn.01080662
push eax
push 0x1019fc4
push ebx
call edi
mov eax, dword [esi + 4]
add esp, 0xc
push 9
push dword [eax + 8]
push dword [eax + 4]
push ebx
call fcn.010805db
test eax, eax
jne 0x1081fda
mov eax, dword [esi + 8]
test eax, eax
je 0x1081fb5
push eax
call fcn.01080662
push eax
push 0x1019fb4
push ebx
call edi
mov esi, dword [esi + 8]
add esp, 0xc
push 9
push dword [esi + 8]
push dword [esi + 4]
push ebx
call fcn.010805db
test eax, eax
jne 0x1081fe2
inc dword [ebp - 0x134]
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
cmp ecx, dword [eax + 0xc]
jb 0x1081efc
jmp 0x1081fed
push eax
push 0xbce01a3
jmp 0x1081fe8
push eax
push 0xbe701a3
jmp 0x1081fe8
push eax
push 0xbf401a3
call fcn.0107ae44
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 0xc
Function at 0x1084de4
Capabilities:
Generate random numbers via winapi
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, 2
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x50], edi
je 0x1084e41
cmp ebx, 1
je 0x1084e41
lea eax, [ebp - 0x4c]
push eax
push ebx
push dword [ebp + 8]
call fcn.01084caa
mov esi, eax
cmp esi, edi
je 0x1084e38
push esi
push 0x56901a4
jmp 0x1084f65
mov eax, dword [ebp - 0x4c]
push 2
mov dword [ebp + 8], eax
pop ebx
lea eax, [ebp - 0x48]
push eax
push edi
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1084e69
call fcn.010a4804
mov esi, eax
push esi
push 0x57401a4
jmp 0x1084f65
lea eax, [ebp - 0x44]
push eax
push 0x40
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1084e8e
call fcn.010a4804
mov esi, eax
push esi
push 0x57a01a4
jmp 0x1084f65
push edi
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1084eb4
call fcn.010a4804
mov esi, eax
push esi
push 0x57f01a4
jmp 0x1084f65
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push edi
push ebx
push dword [ebp - 0x48]
call esi
test eax, eax
jne 0x1084edd
call fcn.010a4804
mov esi, eax
push esi
push 0x58501a4
jmp 0x1084f65
push dword [ebp - 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x50], eax
jne 0x1084efb
mov esi, 0x8007000e
push esi
push 0x58b01a4
jmp 0x1084f65
lea ecx, [ebp - 0x58]
push ecx
push eax
push edi
push edi
push ebx
push dword [ebp - 0x48]
call esi
test eax, eax
jne 0x1084f1b
call fcn.010a4804
mov esi, eax
push esi
push 0x59001a4
jmp 0x1084f65
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x5c]
push 1
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
jne 0x1084f40
call fcn.010a4804
mov esi, eax
push esi
push 0x59b01a4
jmp 0x1084f65
push edi
push edi
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x50]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
jne 0x1084f6c
call fcn.010a4804
mov esi, eax
push esi
push 0x5a101a4
call fcn.0107ae44
jmp 0x1084f6e
xor esi, esi
cmp dword [ebp - 0x48], edi
je 0x1084f7c
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x54], edi
je 0x1084f8a
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x50], edi
je 0x1084f98
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x4c], edi
je 0x1084fa7
push edi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 0x10
Function at 0x108a52d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
or dword [esi], 0xffffffff
push edi
mov edi, dword [ebp + 0x10]
and dword [edi], 0
call fcn.01088fe4
test ebx, ebx
jne 0x108a59f
mov ebx, 0xf6
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x1017f1c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x108a584
cmp eax, ebx
jae 0x108a584
push 0x101b268
jmp 0x108a5f6
mov eax, 0x80070002
push eax
push 0x4d30191
mov dword [ebp - 0x210], eax
call fcn.0107ae44
jmp 0x108a6cc
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
jne 0x108a60d
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108a5b3
sub eax, edx
sar eax, 1
lea ecx, [eax + 2]
mov eax, 0x104
cmp ecx, eax
jb 0x108a5e3
mov eax, 0x800700ce
push eax
mov dword [ebp - 0x210], eax
push 0x4df0191
jmp 0x108a6c6
push 0x101b260
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01028f74
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0102920e
lea ebx, [ebp - 0x20c]
push ebx
call fcn.01089926
test eax, eax
mov dword [ebp - 0x210], eax
je 0x108a628
push eax
push 0x4e70191
jmp 0x108a6c6
push 2
pop eax
jmp 0x108a64b
call fcn.010a4804
cmp eax, 0xe0000100
mov dword [ebp - 0x210], eax
jne 0x108a69a
cmp dword [ebp - 0x218], 2
jne 0x108a69a
xor eax, eax
inc eax
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x214]
push ecx
push eax
push 0
push ebx
mov dword [ebp - 0x218], eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov dword [esi], eax
mov eax, dword [ebp - 0x214]
mov dword [edi], eax
cmp dword [esi], 0xffffffff
je 0x108a62d
xor esi, esi
push esi
push esi
push ebx
push 0x3b2
push esi
push 0x505
push 0x191
call fcn.010959b8
mov dword [ebp - 0x210], esi
jmp 0x108a6cc
mov ecx, dword [edi]
neg ecx
sbb ecx, ecx
and ecx, edi
push ecx
push 0
push ebx
push 0x3b3
push eax
push 0x502
push 0x191
call fcn.010959b8
push dword [ebp - 0x210]
push 0x5030191
push ebx
call fcn.0107ae7f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 0xc
Function at 0x108cb55
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x108cb9d
push eax
call fcn.010a47cf
mov esi, eax
push esi
push 0x5a60197
push ebx
call fcn.0107ae7f
jmp 0x108cc1d
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp + 0xc], eax
jne 0x108cbbb
mov esi, 0x8007000e
push esi
push 0x5ad0197
jmp 0x108cc00
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x108cbe5
push eax
call fcn.010a47cf
mov esi, eax
push esi
push 0x5b40197
push ebx
call fcn.0107ae7f
jmp 0x108cc0f
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0107c2d0
mov esi, eax
cmp esi, edi
je 0x108cc07
push esi
push 0x5b80197
call fcn.0107ae44
jmp 0x108cc0f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp + 0xc], edi
je 0x108cc1d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x108cf6e
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
lea eax, [ebp - 8]
push eax
push 2
push 0x1001ea0
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.01097fb5
mov esi, eax
cmp esi, edi
je 0x108cfad
push esi
push 0x7e30197
push dword [ebp + 8]
call fcn.0107ae7f
jmp 0x108cfcc
push 0x101b798
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp esi, edi
je 0x108cfcc
push esi
push 0x7e60197
call fcn.0107ae44
cmp dword [ebp - 4], edi
je 0x108cfda
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x108cfe8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x108d4f8
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0xf0000000
xor eax, eax
push 1
push eax
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x108d542
call fcn.010a4804
mov esi, eax
push esi
push 0xbed0197
call fcn.0107ae44
jmp 0x108d615
mov esi, dword [ebp + 8]
cmp esi, 1
je 0x108d54f
cmp esi, 0x10
jbe 0x108d552
push 0x10
pop esi
mov eax, dword [ebp + 0x10]
dec eax
cmp esi, eax
jbe 0x108d55c
mov esi, eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x28]
call ebx
test eax, eax
jne 0x108d580
call fcn.010a4804
mov esi, eax
push esi
push 0xbfb0197
jmp 0x108d59b
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x28]
call ebx
test eax, eax
jne 0x108d5a2
call fcn.010a4804
mov esi, eax
push esi
push 0xc000197
call fcn.0107ae44
jmp 0x108d614
lea eax, [esi + esi + 2]
push eax
push 0
mov ebx, esi
push edi
mov dword [ebp - 0x2c], 0x59
shr ebx, 3
call sub.msvcrt.dll_memset
add esp, 0xc
xor ecx, ecx
test esi, esi
jbe 0x108d612
movzx eax, byte [ebp + ecx - 0x14]
xor edx, edx
div dword [ebp - 0x2c]
movzx eax, byte [ebp + ecx - 0x24]
mov dword [ebp - 0x30], edx
xor edx, edx
div esi
jmp 0x108d5e3
inc edx
cmp edx, esi
jne 0x108d5e3
xor edx, edx
cmp word [edi + edx*2], 0
jne 0x108d5dc
mov eax, dword [ebp - 0x30]
mov ax, word [eax*2 + 0x101b6a0]
push 0x3e
mov word [edi + edx*2], ax
pop eax
cmp dword [ebp - 0x30], eax
jb 0x108d60d
test ebx, ebx
jbe 0x108d608
dec ebx
test ebx, ebx
jne 0x108d60d
mov dword [ebp - 0x2c], eax
inc ecx
cmp ecx, esi
jb 0x108d5c4
xor esi, esi
pop ebx
push 0x10
pop ecx
lea eax, [ebp - 0x14]
mov byte [eax], 0
inc eax
dec ecx
jne 0x108d61b
cmp dword [ebp - 0x28], ecx
je 0x108d631
push ecx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01068363
leave
ret 0xc
Function at 0x108d9dc
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor edx, edx
cmp esi, edx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x258], edx
mov dword [edi], edx
je 0x108da16
mov dword [esi], edx
lea ebx, [ebp - 0x258]
push ebx
push edx
push eax
push ecx
call fcn.0107bf7f
mov ebx, eax
test ebx, ebx
je 0x108da3b
push ebx
push 0x8b0197
call fcn.0107ae44
jmp 0x108daeb
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x260], eax
jne 0x108da60
xor ebx, ebx
jmp 0x108daeb
test byte [ebp - 0x254], 0x10
jne 0x108daaf
test esi, esi
mov dword [edi], 1
je 0x108daaf
lea eax, [ebp - 0x25c]
push eax
push 0
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x264]
call fcn.0107bf7f
mov ebx, eax
test ebx, ebx
jne 0x108dac8
push dword [ebp - 0x25c]
call fcn.0108cb11
test eax, eax
jne 0x108dad5
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x108da60
jmp 0x108dadd
push ebx
push 0xa20197
call fcn.0107ae44
jmp 0x108dadf
mov eax, dword [ebp - 0x25c]
mov dword [esi], eax
xor ebx, ebx
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x258], 0
je 0x108db00
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 0x10
Function at 0x108ee94
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x668], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
and dword [edi], 0
mov eax, ebx
mov dword [ebp - 0x66c], ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x108eec7
sub eax, ecx
sar eax, 1
add eax, 6
mov esi, 0x104
cmp eax, esi
jb 0x108eef2
mov eax, 0x8007006f
push eax
push 0xe400197
push ebx
jmp 0x108ef96
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01028f74
push 0x101b888
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102920e
push 0x1001d54
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102920e
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x108efc6
test byte [ebp - 0x664], 0x10
je 0x108ef60
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x108ef43
jmp 0x108efb6
lea eax, [ebp - 0x638]
mov dword [ebp - 0x668], 1
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108ef73
sub eax, edx
sar eax, 1
cmp eax, esi
jb 0x108efa2
mov eax, 0x8007006f
push eax
push 0xe520197
push dword [ebp - 0x66c]
mov esi, eax
call fcn.0107ae7f
jmp 0x108f06c
lea eax, [ebp - 0x638]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01028f74
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x668], 0
jne 0x108efd3
mov esi, 0x80070002
push esi
push 0xe5e0197
jmp 0x108f03a
cmp dword [ebp - 0x668], 1
jbe 0x108efe9
mov esi, 0x8007010b
push esi
push 0xe630197
jmp 0x108f03a
mov eax, dword [ebp - 0x66c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108eff2
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x108f00b
sub eax, edx
sar eax, 1
lea esi, [eax + ecx + 2]
lea eax, [esi + esi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [edi], eax
jne 0x108f041
mov esi, 0x8007000e
push esi
push 0xe6b0197
call fcn.0107ae44
jmp 0x108f06c
push dword [ebp - 0x66c]
push esi
push eax
call fcn.01028f74
push 0x1008080
push esi
push dword [edi]
call fcn.0102920e
lea eax, [ebp - 0x414]
push eax
push esi
push dword [edi]
call fcn.0102920e
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 8
Function at 0x108f422
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov eax, edx
inc edi
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108f444
sub eax, esi
sar eax, 1
add eax, 4
mov esi, 0x104
cmp eax, esi
jb 0x108f470
push 0x8007006f
push 0x3570197
push edx
call fcn.0107ae7f
jmp 0x108f4d1
push edx
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01028f74
push 0x101b834
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102920e
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x108f4d1
test byte [ebp - 0x45c], 0x10
je 0x108f4c8
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x108f4ab
jmp 0x108f4ca
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01068363
leave
ret 4