joyce8/EMBER2024-capa huggingface dataset:
Function at 0x541f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x541f97
test eax, eax
jne 0x5420f8
mov edi, dword [0x6320e0]
test edi, edi
je 0x5420f8
mov dword [ebp - 0x10], 0
jmp 0x541fb7
mov edi, dword [edi + 8]
test edi, edi
je 0x541fe6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x542137
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x541fb0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x541fb0
test byte [ebp - 0x10], 1
je 0x5420f8
mov edi, dword [0x6320e0]
test edi, edi
je 0x5420f8
mov dword [ebp - 0x10], 0
jmp 0x542017
mov edi, dword [edi + 8]
test edi, edi
je 0x542046
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x542137
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x542010
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x542010
test byte [ebp - 0x10], 1
je 0x5420f8
mov edi, dword [0x6320e0]
test edi, edi
je 0x5420f8
mov dword [ebp - 0x10], 0
jmp 0x542077
mov edi, dword [edi + 8]
test edi, edi
je 0x5420a6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x542137
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x542070
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x542070
test byte [ebp - 0x10], 1
je 0x5420f8
mov edi, dword [0x6320e0]
test edi, edi
je 0x5420f8
mov dword [ebp - 0x10], 0
jmp 0x5420c7
mov edi, dword [edi + 8]
test edi, edi
je 0x5420f2
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x542137
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x5420c0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x5420c0
test byte [ebp - 0x10], 1
jne 0x542102
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x6320e0]
jmp 0x54210d
mov edi, dword [edi + 8]
test edi, edi
je 0x5420f8
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x542137
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x54210a
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x54210a
push 0x601128
push 0x2b
push str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rs
call fcn.004251d0
add esp, 0xc
ud2
Function at 0x548590
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
movaps xmm0, xmmword [0x5fe370]
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x34], 0
mov word [esp + 0x38], 0
mov dword [esp + 0x18], 0
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0
mov byte [esp + 0x34], 1
lea esi, [esp + 0x18]
lea ecx, [esp + 0x10]
push esi
push eax
call fcn.005393c0
add esp, 8
cmp byte [esp + 0x10], 4
jne 0x5485f0
mov esi, dword [esp + 0x14]
jmp 0x54864e
movzx eax, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp eax, 4
je 0x54864e
cmp eax, 3
jne 0x548643
mov edi, dword [esi + 4]
mov dword [esp + 4], ebx
mov ebx, dword [esi]
mov eax, dword [edi]
push ebx
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x548631
cmp dword [edi + 8], 9
jb 0x548623
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [esp + 4]
mov dword [ebx], 0
jmp 0x548788
lea edi, [esp + 0x18]
mov edx, esi
mov ecx, edi
call fcn.005395f0
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x5486c0
cmp byte [esp + 0x20], 3
jne 0x548701
mov eax, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov dword [esp + 8], eax
mov eax, dword [ebx]
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x5486a9
cmp dword [ebx + 8], 9
jb 0x54869b
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
push dword [esp + 8]
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [esp + 4]
jmp 0x548701
cmp dword [esp + 0x54], 0
jne 0x548701
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 8], eax
je 0x548709
mov dword [esp + 0x18], 0
call sub.KERNEL32.dll_GetCurrentProcess
push 2
push 0
push 0
push edi
push eax
push esi
push eax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x548777
mov eax, dword [esp + 0x18]
mov dword [esp + 4], ebx
jmp 0x54870f
mov dword [ebx], 0
jmp 0x548782
mov dword [esp + 4], ebx
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x20], eax
push eax
call sub.KERNEL32.dll_CreateFileMappingA
test eax, eax
je 0x548762
mov edi, eax
push dword [esp + 8]
push 0
push 0
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov ebx, eax
push edi
call sub.KERNEL32.dll_CloseHandle
test ebx, ebx
je 0x548762
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax], 1
jmp 0x548782
mov eax, dword [esp + 4]
mov dword [eax], 0
push dword [esp + 0xc]
call sub.KERNEL32.dll_CloseHandle
jmp 0x548782
call sub.KERNEL32.dll_GetLastError
mov dword [ebx], 0
push esi
call sub.KERNEL32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x548ee0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x5990b0]
mov esi, ecx
test eax, eax
je 0x548f09
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x548f21
cmp dword [eax + 4], 0
je 0x548f21
add eax, 8
pop esi
pop edi
pop ebp
ret
push 0x5990b0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x548efc
mov eax, dword [0x5990b0]
test eax, eax
je 0x548fd1
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x548fed
mov edi, eax
test eax, eax
jne 0x548f99
mov eax, dword [0x607474]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x548f67
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x549002
mov dword [0x6320d0], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x549002
mov dword [eax], 0x5990b0
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x5990b0]
test eax, eax
je 0x548ff3
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x548fb9
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0
mov dword [esi], 0
cmp eax, 1
jne 0x548fbd
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x548fbd
xor ecx, ecx
xor edx, edx
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
lea eax, [edi + 8]
mov byte [edi + 0xc], dl
pop esi
pop edi
pop ebp
ret
push 0x5990b0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x548f3e
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x5990b0
call fcn.00541e40
add esp, 4
jmp 0x548f92
push 0x10
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x549010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x5990c0]
mov esi, ecx
test eax, eax
je 0x54903d
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x549055
cmp dword [eax + 4], 0
mov ebx, eax
je 0x549055
add ebx, 8
jmp 0x549132
push 0x5990c0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x54902d
mov eax, dword [0x5990c0]
test eax, eax
je 0x549114
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x549130
mov edi, eax
test eax, eax
jne 0x5490cd
mov eax, dword [0x607474]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x54909b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x54914b
mov dword [0x6320d0], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x54914b
mov dword [eax], 0x5990c0
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x5990c0]
test eax, eax
je 0x549139
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x5490e7
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
mov edx, eax
je 0x5490eb
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x5490eb
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 0xc]
cmp dword [edi + 4], 0
lea ebx, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
je 0x549132
test ecx, ecx
je 0x549132
lock dec dword [ecx]
jne 0x549132
call fcn.00515920
jmp 0x549132
push 0x5990c0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x549072
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5990c0
call fcn.00541e40
add esp, 4
jmp 0x5490c6
push 0x10
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x549160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x5990d0]
mov esi, ecx
test eax, eax
je 0x549189
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x5491a1
cmp byte [eax + 4], 0
je 0x5491a1
add eax, 5
pop esi
pop edi
pop ebp
ret
push 0x5990d0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x54917c
mov eax, dword [0x5990d0]
test eax, eax
je 0x549235
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x549251
mov edi, eax
test eax, eax
jne 0x549212
mov eax, dword [0x607474]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x5491e7
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x549266
mov dword [0x6320d0], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x549266
mov dword [eax], 0x5990d0
mov byte [eax + 4], 0
mov edi, eax
mov eax, dword [0x5990d0]
test eax, eax
je 0x549257
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
xor ecx, ecx
test esi, esi
je 0x549227
cmp byte [esi], 0
mov byte [esi], 0
movzx eax, byte [esi + 1]
cmove eax, ecx
mov ecx, eax
mov byte [edi + 4], 1
lea eax, [edi + 5]
mov byte [edi + 5], cl
pop esi
pop edi
pop ebp
ret
push 0x5990d0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x5491be
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x5990d0
call fcn.00541e40
add esp, 4
jmp 0x54920b
push 8
push 4
call fcn.0041a8c0
add esp, 8
ud2

Function at 0x549280
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x5990e0]
test eax, eax
je 0x5492a5
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x5492bd
cmp byte [eax + 4], 0
je 0x5492bd
add eax, 5
pop esi
pop ebp
ret
push 0x5990e0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x549299
mov eax, dword [0x5990e0]
test eax, eax
je 0x549353
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x54936f
mov esi, eax
test eax, eax
jne 0x54932e
mov eax, dword [0x607474]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x549303
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x549383
mov dword [0x6320d0], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x549383
mov dword [eax], 0x5990e0
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x5990e0]
test eax, eax
je 0x549374
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
je 0x549346
cmp byte [eax], 0
mov byte [eax], 0
movzx eax, byte [eax + 1]
cmove eax, ecx
mov ecx, eax
mov byte [esi + 4], 1
lea eax, [esi + 5]
mov byte [esi + 5], cl
pop esi
pop ebp
ret
push 0x5990e0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x5492da
xor eax, eax
pop esi
pop ebp
ret
push 0x5990e0
call fcn.00541e40
add esp, 4
jmp 0x549327
push 8
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x5493a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x5990f0]
test eax, eax
je 0x5493ca
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x5493e2
cmp dword [eax + 4], 0
mov edi, eax
je 0x5493e2
add edi, 8
jmp 0x5494ba
push 0x5990f0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x5493ba
mov eax, dword [0x5990f0]
test eax, eax
je 0x54949c
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x5494b8
mov esi, eax
test eax, eax
jne 0x54945a
mov eax, dword [0x607474]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x549428
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5494cf
mov dword [0x6320d0], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5494cf
mov dword [eax], 0x5990f0
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5990f0]
test eax, eax
je 0x5494c0
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x549495
mov eax, dword [ecx + 4]
cmp dword [ecx], 0
mov dword [ecx], 0
je 0x549495
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
je 0x5494ba
test ecx, ecx
je 0x5494ba
lock dec dword [ecx]
jne 0x5494ba
call fcn.00515860
jmp 0x5494ba
call fcn.005329f0
jmp 0x54946f
push 0x5990f0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x5493ff
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
push 0x5990f0
call fcn.00541e40
add esp, 4
jmp 0x549453
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x549500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x599100]
mov esi, ecx
test eax, eax
je 0x54952d
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x549545
cmp dword [eax + 4], 0
mov ebx, eax
je 0x549545
add ebx, 8
jmp 0x549618
push 0x599100
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x54951d
mov eax, dword [0x599100]
test eax, eax
je 0x5495fa
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x549616
mov edi, eax
test eax, eax
jne 0x5495bd
mov eax, dword [0x607474]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x54958b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x54962e
mov dword [0x6320d0], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x54962e
mov dword [eax], 0x599100
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x599100]
test eax, eax
je 0x54961f
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x5495d2
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x5495d4
mov eax, dword [esi + 4]
jmp 0x5495d4
xor eax, eax
mov ecx, dword [edi + 8]
cmp dword [edi + 4], 0
lea ebx, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x549618
test ecx, ecx
je 0x549618
lock dec dword [ecx]
jne 0x549618
call fcn.005157f0
jmp 0x549618
push 0x599100
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x549562
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x599100
call fcn.00541e40
add esp, 4
jmp 0x5495b6
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x549640
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x599110]
test eax, eax
je 0x549755
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x549670
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x549750
mov eax, dword [0x599110]
test eax, eax
je 0x549776
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x549792
mov esi, eax
test eax, eax
jne 0x5496f3
mov eax, dword [0x607474]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x5496b6
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5497ae
mov dword [0x6320d0], eax
push 0x20
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5497ae
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x599110
mov esi, eax
mov eax, dword [0x599110]
test eax, eax
je 0x54979c
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov eax, dword [ebp + 8]
test eax, eax
je 0x549712
mov ecx, dword [eax]
movups xmm0, xmmword [eax + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
cmp ecx, 1
je 0x54973f
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x549731
movaps xmm0, xmmword [esp]
jmp 0x54973f
lea ecx, [esp + 0x10]
call fcn.00541420
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x549794
push 0x599110
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x549663
jmp 0x549670
push 0x599110
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x54968d
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x599110
call fcn.00541e40
add esp, 4
jmp 0x5496ec
push 0x20
push 8
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x54d6b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xffffffc0
sub esp, 0x180
movaps xmm0, xmmword [0x601940]
mov edi, dword [0x607474]
mov esi, dword [0x607460]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0xc0], 0
mov byte [esp + 0xc4], 0
mov dword [esp + 0xc8], 4
mov dword [esp + 0xcc], 0
movaps xmmword [esp + 0xd0], xmm0
mov byte [esp + 0xe0], 1
mov dword [esp + 0x100], 1
mov dword [esp + 0x104], 1
mov byte [esp + 0x108], 0
movzx eax, byte [edi]
mov eax, dword [esi]
test eax, eax
jne 0x54d767
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x54d8c2
mov dword [esi], eax
push 0x140
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x54d8c2
mov ecx, eax
and ecx, 0xffffffc0
mov dword [ecx + 0x3c], eax
add ecx, 0x40
lea ebx, [esp + 0x40]
push 0x100
push ebx
mov dword [esp + 0x44], ecx
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x54d7ab
mov ebx, dword [ecx + 4]
jmp 0x54d7cd
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
push ebx
call sub.KERNEL32.dll_GetSystemInfo
mov ebx, dword [esp + 0x54]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x18]
movsd xmm0, qword [ecx + 0x10]
mov dword [esp + 0x58], eax
movsd qword [esp + 0x50], xmm0
movsd xmm0, qword [ecx + 8]
mov eax, dword [esp + 0x3c]
movsd qword [esp + 0x48], xmm0
mov dword [esp + 0x5c], 0
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0
mov byte [esp + 0x70], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], 0
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 1
movzx eax, byte [edi]
mov eax, dword [esi]
test eax, eax
jne 0x54d86d
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x54d8d3
mov dword [esi], eax
push 0x4c
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x54d8d3
lea esi, [esp + 0x40]
mov ecx, 0x13
mov edi, eax
inc ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
nop dword [eax + eax]
dec ebx
je 0x54d8a1
lock inc dword [edi]
jle 0x54d8be
mov ecx, edi
call fcn.0054dc10
jmp 0x54d890
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x3c]
mov dword [ecx], 1
mov dword [ecx + 4], eax
mov dword [ecx + 8], edi
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
push 0x100
push 0x40
call fcn.0041a8c0
add esp, 8
jmp 0x54d8df
push 0x4c
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x556bb0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
xorps xmm0, xmm0
mov edi, ecx
lea esi, [ebp - 0x30]
mov dword [ebp - 0x10], edx
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
push 2
push 0x20
push esi
push 0
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x556bed
mov ebx, eax
push 0x20
push esi
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x556c2f
movups xmm0, xmmword [ebp - 0x30]
movups xmm1, xmmword [ebp - 0x20]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
movups xmmword [edi], xmm0
xorps xmm0, xmm0
movups xmmword [edi + 0x10], xmm1
movups xmmword [edi + 0x20], xmm0
mov edx, dword [ebp + 8]
add eax, 0xffffff00
adc ecx, 0xffffffff
mov dword [edi + 0x40], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x3c], ecx
mov ecx, edi
mov dword [edi + 0x38], eax
call fcn.00557020
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x607474]
mov esi, dword [0x607460]
movzx eax, byte [eax]
mov eax, dword [esi]
test eax, eax
jne 0x556c4e
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x556c76
mov dword [esi], eax
push 4
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x556c76
add ebx, 0x80000000
mov dword [eax], ebx
push eax
push 0
push dword [esi]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
jmp 0x556c09
push 4
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x55e940
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
call sub.advapi32.dll_GetUserNameW
test eax, eax
jne 0x55ea85
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x55e9c8
xor ebx, ebx
cmp esi, 0x40000000
setb al
jae 0x55eaa9
mov bl, al
lea ecx, [esi + esi]
add ebx, ebx
test ecx, ecx
mov dword [ebp - 0x14], ecx
js 0x55eab0
je 0x55e9cf
mov eax, dword [0x607474]
mov edi, dword [0x607460]
movzx eax, byte [eax]
mov eax, dword [edi]
test eax, eax
jne 0x55e9b2
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x55ea9b
mov dword [edi], eax
push dword [ebp - 0x14]
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov edi, eax
test edi, edi
jne 0x55e9d9
jmp 0x55ea9b
mov edi, 2
jmp 0x55e9d9
mov edi, ebx
test edi, edi
je 0x55ea9b
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
push eax
push edi
call sub.advapi32.dll_GetUserNameW
mov ebx, dword [ebp + 8]
test eax, eax
je 0x55ea11
mov eax, dword [ebp - 0x10]
xor ecx, ecx
sub eax, 1
cmovb eax, ecx
push eax
push edi
push ebx
call fcn.0052f440
add esp, 0xc
test esi, esi
je 0x55ea7b
mov eax, dword [0x607460]
push edi
push 0
jmp 0x55ea74
mov eax, dword [0x607474]
movzx eax, byte [eax]
mov eax, dword [0x607460]
mov eax, dword [eax]
test eax, eax
jne 0x55ea39
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x55eab7
mov ecx, dword [0x607460]
mov dword [ecx], eax
push 7
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x55eab7
test esi, esi
mov dword [eax + 3], 0x6e776f6e
mov dword [eax], 0x6e6b6e75
mov dword [ebx], eax
mov dword [ebx + 4], 7
mov dword [ebx + 8], 7
mov byte [ebx + 0xc], 1
je 0x55ea7b
push edi
push 0
mov eax, dword [0x607460]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x603874
push 0x19
push 0x6037ff
call fcn.004251d0
add esp, 0xc
ud2
push dword [ebp - 0x14]
push ebx
call fcn.0041a8c0
add esp, 8
ud2
call fcn.0041a880
ud2
call fcn.0041a880
ud2
push 7
push 1
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x56b5c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0056b5e0
mov ecx, esi
call fcn.0056c370
mov ecx, esi
pop esi
pop ebp
jmp fcn.0056d260