joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e8b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bd0a0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x30
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x40], edi
mov edx, ecx
mov dword [ebp - 0x38], edx
mov esi, dword [ebx + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
ja 0x4e8b7f
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4e8b71
mov ecx, dword [esi]
xor edi, edi
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], di
mov edi, dword [ebp - 0x40]
jmp 0x4e8b8e
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00459da0
mov edx, dword [ebp - 0x38]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4e8b98
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
push eax
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
jne 0x4e8bfb
mov eax, dword [ebp - 0x3c]
mov ecx, dword [esi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x4e8bd4
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4e8bc9
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x4e8be0
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00459da0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4e8bea
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
push eax
push 0
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x38]
jmp 0x4e8ba3
mov edx, esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004546b0
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x4e8c40
mov ecx, esi
call fcn.0044d7a0
mov eax, dword [ebp - 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x4e8c76
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e8c6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e8ccf
push edx
push ecx
call fcn.006779b1
add esp, 8
test edi, edi
sete al
jmp 0x4e8cb1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00682da2
int3
Function at 0x4e8ce0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4e8d0d
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x4e9e50
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bd3ed
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 0x101
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
ja 0x4e9ed3
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4e9ee0
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00459da0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.004546b0
mov edi, eax
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x4e9f80
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4e9f4b
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e9f41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ea083
push edx
push ecx
call fcn.006779b1
add esp, 8
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
nop dword [eax]
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4e9fba
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e9fb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ea083
push edx
push ecx
call fcn.006779b1
add esp, 8
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov eax, esi
jmp 0x4ea067
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
call fcn.00682da2
call fcn.00682da2
int3
Function at 0x4eb130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bd6a5
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
mov eax, 1
sub eax, dword [ebp - 0x1c]
push eax
call fcn.00459da0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov ecx, edi
cmovae eax, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 8
jb 0x4eb1b5
mov ecx, dword [edi]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jne 0x4eb217
mov dword [esi], eax
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp edx, 8
jb 0x4eb39e
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4eb208
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eb3bc
push edx
push ecx
call fcn.006779b1
add esp, 8
jmp 0x4eb39e
mov ecx, dword [ebp - 0x1c]
cmp ebx, ecx
ja 0x4eb234
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax + ebx*2], cx
jmp 0x4eb243
mov eax, ebx
sub eax, ecx
lea ecx, [ebp - 0x2c]
push 0
push eax
call fcn.00459da0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 8
jb 0x4eb256
mov edi, dword [edi]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4eb2ce
call fcn.004486f0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00531420
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
push str.Unable_to_read_data_from_environment_variable._Error:__0
push 3
mov ecx, edi
call fcn.0044f2f0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4eb2ce
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4eb2c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eb3bc
push edx
push ecx
call fcn.006779b1
add esp, 8
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.004546b0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4eb39e
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4eb313
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eb3c1
push edx
push ecx
call fcn.006779b1
add esp, 8
jmp 0x4eb39e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
call fcn.00682da2
call fcn.00682da2
int3
Function at 0x4ec380
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bd985
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x74], edi
push str.DbgHelp.dll
mov dword [ebp - 0x78], str.DbgHelp.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x4ec3f6
call fcn.004486f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push str.Unable_to_access__0._Error:__1
push ecx
mov ecx, esi
call fcn.004eeb20
mov byte [edi + 0x30], 0
jmp 0x4ec475
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x28]
call fcn.005311c0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
jne 0x4ec492
call fcn.004486f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push str.Unable_to_locate_module__0_._Error:__1
push ecx
mov ecx, esi
call fcn.004eeb20
mov edx, dword [ebp - 0x14]
mov byte [edi + 0x30], 0
cmp edx, 8
jb 0x4ec475
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ec46b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ec5b0
push edx
push ecx
call fcn.006779b1
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
push str.unknown
lea ecx, [ebp - 0x58]
call fcn.0044d100
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.004df620
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4ec4f3
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ec4e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ec5b0
push edx
push ecx
call fcn.006779b1
add esp, 8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x70]
call fcn.0044d190
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x58]
call fcn.0044d190
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0045ea20
lea ecx, [ebp - 0x58]
mov byte [edi + 0x30], 1
call fcn.0044d7a0
lea ecx, [ebp - 0x70]
call fcn.0044d7a0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4ec564
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ec55a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ec5b0
push edx
push ecx
call fcn.006779b1
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x4ec475
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ec46b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4ec46b
call fcn.00682da2
int3
Function at 0x4eda20
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push 0x4eda70
mov byte [esp + 8], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
cmp byte [esp], al
cmovne eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4edc10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bdc40
mov eax, dword fs:[0]
push eax
sub esp, 0x9c8
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x9d4
call fcn.00677616
mov edi, eax
add esp, 4
lea esi, [edi + 0x10]
mov dword [ebp - 0x9d4], edi
mov dword [esi], 0x1571
mov dword [esi + 0x9c0], 1
nop word [eax + eax]
mov edx, dword [esi + 0x9c0]
mov ecx, dword [esi + edx*4 - 4]
shr ecx, 0x1e
xor ecx, dword [esi + edx*4 - 4]
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [esi + edx*4], eax
inc dword [esi + 0x9c0]
cmp dword [esi + 0x9c0], 0x270
jb 0x4edc70
mov ecx, esi
call fcn.004ee0b0
push esi
mov ecx, edi
call fcn.004edfb0
mov dword [edi], vtable.boost::uuids::basic_random_generator_class_boost::random::mersenne_twister_engine_unsigned_int__32__624__397__31___1727483681__11___1__7___1658038656__15___272236544__18__1812433253__::self_contained_impl.0
lea ecx, [ebp - 0x9d4]
mov dword [0x7a9888], edi
call fcn.004e9c30
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x9d0]
push eax
lea ecx, [ebp - 0x9d4]
call fcn.004ef8e0
lea edi, [ebp - 0x9d0]
mov ecx, esi
sub edi, esi
mov edx, 0x270
mov eax, dword [edi + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
sub edx, 1
jne 0x4edcf0
mov ecx, esi
mov dword [esi + 0x9c0], 0x270
call fcn.004ee0b0
mov eax, dword [ebp - 0x9d4]
test eax, eax
je 0x4edd22
push 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov eax, 0x7a9888
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
Function at 0x4ef7f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
sub edi, ebx
jne 0x4ef808
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
cmp edi, 0xffffffff
jne 0x4ef819
call fcn.004ef890
pop edi
pop esi
add eax, ebx
pop ebx
pop ebp
ret
lea ecx, [edi + 1]
or eax, 0xffffffff
xor edx, edx
div ecx
cmp edx, edi
lea ecx, [eax + 1]
cmovne ecx, eax
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x9c0]
cmp ecx, 0x270
jne 0x4ef849
mov ecx, esi
call fcn.004ef9b0
mov ecx, dword [esi + 0x9c0]
mov edx, dword [esi + ecx*4]
mov eax, edx
shr eax, 0xb
inc ecx
xor edx, eax
mov dword [esi + 0x9c0], ecx
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
xor edx, edx
div dword [ebp + 8]
cmp eax, edi
ja 0x4ef834
pop edi
pop esi
add eax, ebx
pop ebx
pop ebp
ret

Function at 0x4ef8e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bd355
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp esi, ebx
je 0x4ef93d
nop word [eax + eax]
push 0
push 4
push esi
push dword [eax]
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov edi, eax
test edi, edi
jne 0x4ef95b
mov eax, dword [ebp - 0x2c]
add esi, 4
cmp esi, ebx
jne 0x4ef920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret 8
push 0xd
push str.get_random_bytes
push 0x58
push str.C:devjenkinsworkspacemonitor_win_buildexternals_boostmt_v142win32include_boost_1_80_boost_uuid_detail_random_provider_bcrypt.ipp
lea ecx, [ebp - 0x3c]
call fcn.004a1310
push 0x753208
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0044d2d0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov eax, edi
lea ecx, [ebp - 0x58]
cdq
push edx
push eax
call fcn.004f00b0
mov edx, esi
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.004f0080
int3
Function at 0x4ef9b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
cmp dword [0x7a8410], 2
jl 0x4efa30
movaps xmm3, xmmword [0x75bdf0]
mov eax, 1
movaps xmm4, xmmword [0x75be20]
movaps xmm6, xmmword [0x75be30]
movaps xmm7, xmmword [0x75bd90]
movd xmm5, eax
movups xmm1, xmmword [ecx + esi*4 + 4]
movups xmm2, xmmword [ecx + esi*4]
movaps xmm0, xmm3
pand xmm0, xmm1
pand xmm2, xmm4
por xmm2, xmm0
movaps xmm0, xmm7
pand xmm0, xmm1
psrld xmm2, xmm5
pmulld xmm0, xmm6
pxor xmm2, xmm0
movups xmm0, xmmword [ecx + esi*4 + 0x634]
pxor xmm2, xmm0
movups xmmword [ecx + esi*4], xmm2
add esi, 4
cmp esi, 0xdc
jb 0x4ef9e1
cmp esi, 0xde
jae 0x4efa62
mov edx, dword [ecx + esi*4]
mov eax, dword [ecx + esi*4 + 4]
xor edx, eax
and edx, 0x7ffffffe
and eax, 1
xor edx, dword [ecx + esi*4]
imul eax, eax, 0x9908b0df
shr edx, 1
xor edx, eax
xor edx, dword [ecx + esi*4 + 0x634]
mov dword [ecx + esi*4], edx
inc esi
cmp esi, 0xde
jb 0x4efa30
mov edx, dword [ecx + 0x378]
mov esi, dword [ecx + 0x380]
push edi
mov edi, dword [ecx + 0x37c]
xor edx, edi
and edx, 0x7ffffffe
mov eax, edi
xor edx, dword [ecx + 0x378]
and eax, 1
shr edx, 1
imul eax, eax, 0x9908b0df
xor edx, eax
mov eax, esi
xor edx, dword [ecx + 0x9ac]
and eax, 1
mov dword [ecx + 0x378], edx
mov edx, edi
xor edx, esi
imul eax, eax, 0x9908b0df
and edx, 0x7ffffffe
xor edx, edi
mov edi, dword [ecx + 0x384]
shr edx, 1
xor edx, eax
mov eax, edi
xor edx, dword [ecx + 0x9b0]
and eax, 1
mov dword [ecx + 0x37c], edx
mov edx, edi
xor edx, esi
imul eax, eax, 0x9908b0df
and edx, 0x7ffffffe
xor edx, esi
mov esi, dword [ecx + 0x388]
shr edx, 1
xor edx, eax
mov eax, esi
xor edx, dword [ecx + 0x9b4]
and eax, 1
mov dword [ecx + 0x380], edx
mov edx, esi
xor edx, edi
imul eax, eax, 0x9908b0df
and edx, 0x7ffffffe
xor edx, edi
shr edx, 1
pop edi
xor edx, eax
mov eax, dword [ecx + 0x38c]
xor edx, dword [ecx + 0x9b8]
mov dword [ecx + 0x384], edx
mov edx, eax
xor edx, esi
and eax, 1
and edx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor edx, esi
mov esi, 0xe3
shr edx, 1
xor edx, eax
xor edx, dword [ecx + 0x9bc]
mov dword [ecx + 0x388], edx
mov edx, dword [ecx + esi*4]
mov eax, dword [ecx + esi*4 + 4]
xor edx, eax
and edx, 0x7ffffffe
and eax, 1
xor edx, dword [ecx + esi*4]
imul eax, eax, 0x9908b0df
shr edx, 1
xor edx, eax
xor edx, dword [ecx + esi*4 - 0x38c]
mov dword [ecx + esi*4], edx
inc esi
cmp esi, 0x26f
jb 0x4efb50
mov edx, dword [ecx + 0x9bc]
mov eax, dword [ecx]
xor edx, eax
and edx, 0x7ffffffe
mov dword [ecx + 0x9c0], 0
xor edx, dword [ecx + 0x9bc]
and eax, 1
imul eax, eax, 0x9908b0df
shr edx, 1
pop esi
xor edx, eax
xor edx, dword [ecx + 0x630]
mov dword [ecx + 0x9bc], edx
ret
Function at 0x4f0120
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x15c], ebx
xor esi, esi
lea edx, [ebx + 0x15]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x144], ecx
inc esi
cmp esi, 0x10
jb 0x4f0143
lea edx, [ebp - 0x13c]
mov esi, 0x40
nop dword [eax]
mov eax, dword [edx + 0x2c]
lea edx, [edx + 4]
xor eax, dword [edx + 0x14]
xor eax, dword [edx - 0xc]
xor eax, dword [edx - 4]
mov ecx, eax
add eax, eax
shr ecx, 0x1f
xor ecx, eax
mov dword [edx + 0x34], ecx
sub esi, 1
jne 0x4f0180
mov eax, dword [ebx]
mov edi, eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x158], eax
mov eax, dword [ebx + 0x10]
xor ebx, ebx
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], eax
jmp 0x4f01d6
mov edi, dword [ebp - 0x14c]
cmp ebx, 0x14
jae 0x4f01f3
mov eax, edx
mov dword [ebp - 0x148], 0x5a827999
not eax
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x4f0231
cmp ebx, 0x28
jae 0x4f0204
mov dword [ebp - 0x148], 0x6ed9eba1
jmp 0x4f022b
cmp ebx, 0x3c
jae 0x4f0221
mov eax, esi
mov dword [ebp - 0x148], 0x8f1bbcdc
or eax, edx
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x4f0231
mov dword [ebp - 0x148], 0xca62c1d6
mov eax, ecx
xor eax, esi
xor eax, edx
mov ecx, dword [ebp - 0x14c]
shr edi, 0x1b
shl ecx, 5
xor edi, ecx
mov ecx, esi
add edi, dword [ebp + ebx*4 - 0x144]
inc ebx
add edi, dword [ebp - 0x148]
add edi, eax
mov eax, dword [ebp - 0x154]
add edi, dword [ebp - 0x150]
mov dword [ebp - 0x154], esi
mov esi, edx
shr edx, 2
shl esi, 0x1e
xor esi, edx
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], edi
cmp ebx, 0x50
jb 0x4f01d0
mov eax, dword [ebp - 0x158]
add eax, edi
mov edi, dword [ebp - 0x15c]
add dword [edi + 0xc], ecx
add dword [edi + 8], esi
add dword [edi + 4], edx
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
mov eax, dword [ebp - 0x150]
add dword [edi + 0x10], eax
pop edi
pop esi
pop ebx
call fcn.006773ff
mov esp, ebp
pop ebp
ret
Function at 0x4f5b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x4f5b95
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x4f5bd3
mov edx, dword [esi + 0x30]
mov ebx, dword [edx]
lea eax, [ecx + ebx*2]
cmp ecx, eax
jae 0x4f5bd3
lea ecx, [ebx - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop ebx
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4f5c9f
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x4f5bfd
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4f5c0a
push dword [esi + 0x4c]
push edi
jmp 0x4f5c48
movzx eax, di
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x4f5c72
sub eax, 1
je 0x4f5c72
sub eax, 2
jne 0x4f5c9f
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0068d02f
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x4f5ca4
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x4f5c8f
push dword [esi + 0x4c]
push ebx
push 1
push eax
call fcn.0068dc25
add esp, 0x10
cmp ebx, eax
jne 0x4f5c9f
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
jne 0x4f5bbd
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.006773ff
mov esp, ebp
pop ebp
ret 4