joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5341b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
xor ecx, ecx
cmp dword [ebp + 8], ebx
sete cl
push ebx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], ebx
test eax, eax
je 0x53429a
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x534225
lea eax, [edi + 1]
cmp eax, 2
jb 0x534202
mov dword [esi], edi
call fcn.004ef4b0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 0
inc eax
cmp eax, 1
jbe 0x53429e
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.004ef4b0
mov eax, dword [esi]
cmp dword [0x655034], 0
mov dword [ebp - 0x18], eax
je 0x53425e
mov eax, dword [0x655034]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call dword [0x63e64c]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [ebp - 0x10]
mov dword [esi], 0
jmp 0x5341f3
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6326b5
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5342a1
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x534294
call dword [0x63e64c]
call ecx
push 0
push eax
call fcn.00437740
add esp, 8
jmp 0x534238
push 1
push 0
jmp 0x53428a
mov byte [esi + 4], 0
int3
xor eax, eax
push eax
jmp 0x534289
Function at 0x5397a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x6496dc]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x5397e4
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [0x6496d8]
test ecx, ecx
je 0x539829
call dword [0x63e64c]
push edi
push esi
call ecx
test eax, eax
je 0x53983b
pop esi
pop edi
pop ebp
ret
push 0x6496dc
call fcn.00564ee8
add esp, 4
cmp dword [0x6496dc], 0xffffffff
jne 0x5397c2
push str.bcryptprimitives.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x53983e
push str.ProcessPrng
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6496d8], eax
push 0x6496dc
call fcn.00564f37
add esp, 4
jmp 0x5397c2
test edi, edi
je 0x5397e0
push edi
push esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x5397e0
int3
int3
int3

Function at 0x539850
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x6495f0]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x5398a1
mov eax, dword [0x6495ec]
mov esi, dword [eax]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6495f0
call fcn.00564ee8
add esp, 4
cmp dword [0x6495f0], 0xffffffff
jne 0x539883
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.00569910
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.00564ea5
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x649638]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x53994a
mov ecx, esi
push ebx
push 0x649614
push edi
call fcn.0040d210
mov dword [0x6495ec], esi
push 0x6495f0
call fcn.00564f37
add esp, 4
jmp 0x539883
push 0x649638
call fcn.00564ee8
add esp, 4
cmp dword [0x649638], 0xffffffff
jne 0x539924
xorps xmm0, xmm0
movups xmmword [0x649624], xmm0
movups xmmword [0x649614], xmm0
mov dword [0x649634], 0
push 0x649614
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x649638
call fcn.00564f37
add esp, 4
jmp 0x539924

Function at 0x53a570
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x53a57f
pop ebp
jmp fcn.0053a5a0
cmp dword [ebp + 0x10], 0
jne 0x53a599
xor eax, eax
push eax
push eax
push 0x4edcd0
push 0x656688
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
xor eax, eax
pop ebp
ret
Function at 0x542460
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebx]
mov dword [ebx], 0
lea eax, [edi + 1]
mov dword [ebp - 0x20], eax
cmp eax, 2
jb 0x542486
call fcn.004ef4b0
mov dword [esi], 0
test edi, edi
je 0x5424b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x5424fc
cmp dword [ebp - 0x20], 2
jb 0x5424ae
mov dword [esi], edi
call fcn.004ef4b0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
cmp byte [ebx + 0xf], 0
jns 0x5424e9
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00506680
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x14], eax
mov al, byte [ebx + 0x18]
mov byte [esi + 0x18], al
mov al, byte [ebx + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [ebx + 4]
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
movsd xmm0, qword [eax]
movsd qword [ecx], xmm0
jmp 0x5424cb
call fcn.004ef4b0
mov eax, dword [esi]
cmp dword [0x655034], 0
mov dword [ebp - 0x18], eax
je 0x542538
mov eax, dword [0x655034]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call dword [0x63e64c]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [ebp - 0x10]
mov dword [esi], 0
jmp 0x5424a1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6326b5
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x542574
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x54256e
call dword [0x63e64c]
call ecx
push 0
push eax
call fcn.00437740
add esp, 8
jmp 0x54250f
push 1
push 0
jmp 0x542564
xor eax, eax
push eax
jmp 0x542563
Function at 0x5469c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x5469f8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x546a02
lea eax, [ebx + 1]
cmp eax, 2
jb 0x5469f1
mov dword [esi], ebx
call fcn.004ef4b0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004ef4b0
mov eax, dword [esi]
cmp dword [0x655034], 0
mov dword [ebp - 0x18], eax
je 0x546a3b
mov eax, dword [0x655034]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call dword [0x63e64c]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [ebp - 0x10]
mov dword [esi], 0
jmp 0x5469e2
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6326b5
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x546a77
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x546a71
call dword [0x63e64c]
call ecx
push 0
push eax
call fcn.00437740
add esp, 8
jmp 0x546a15
push 1
push 0
jmp 0x546a67
xor eax, eax
push eax
jmp 0x546a66
Function at 0x548c40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov edx, dword [ebp + 8]
mov eax, edx
sar eax, 0x1f
mov esi, dword [ebp + 0xc]
mov ebx, esi
sar ebx, 0x1f
mov ecx, dword [0x644040]
xor ecx, ebp
mov dword [esp + 0x10], ecx
sub esi, edx
sbb ebx, eax
add esi, 1
adc ebx, 0
xor edi, edi
dec edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov eax, dword [0x6496dc]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x548d16
mov ecx, dword [0x6496d8]
test ecx, ecx
je 0x548d62
call dword [0x63e64c]
push 8
lea eax, [esp + 0xc]
push eax
call ecx
test eax, eax
je 0x548d79
push ebx
push esi
push edi
push edi
call fcn.00584940
mov dword [esp], ebx
mov ebx, edi
mov edi, 0xfffffffe
sub edi, eax
mov dword [esp + 4], esi
mov esi, ebx
sbb esi, edx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
cmp edi, eax
mov edi, ebx
mov ebx, dword [esp]
sbb esi, ecx
mov esi, dword [esp + 4]
jb 0x548c75
push ebx
push esi
push ecx
push eax
call fcn.00584940
mov esi, eax
add esi, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
xor ecx, ebp
call fcn.00568175
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6496dc
call fcn.00564ee8
add esp, 4
cmp dword [0x6496dc], 0xffffffff
jne 0x548c9a
push str.bcryptprimitives.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x548d7c
push str.ProcessPrng
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6496d8], eax
push 0x6496dc
call fcn.00564f37
add esp, 4
jmp 0x548c9a
push 8
lea eax, [esp + 0xc]
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x548cbf
int3
int3
int3
Function at 0x54ec90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x10
mov esi, ecx
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esp + 0xc], eax
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov eax, dword [0x6496dc]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x54ed6e
xor edi, edi
dec edi
mov dword [esp + 4], edi
mov dword [esp], edi
mov ecx, dword [0x6496d8]
test ecx, ecx
je 0x54ee0a
call dword [0x63e64c]
mov eax, esp
push 8
push eax
call ecx
test eax, eax
je 0x54ee34
movsd xmm0, qword [esp]
movsd qword [esi], xmm0
mov dword [esp + 4], edi
mov dword [esp], edi
mov eax, dword [0x6496dc]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x54edbe
mov ecx, dword [0x6496d8]
test ecx, ecx
je 0x54ee1f
call dword [0x63e64c]
mov eax, esp
push 8
push eax
call ecx
test eax, eax
je 0x54ee37
movsd xmm0, qword [esp]
movsd qword [esi + 8], xmm0
mov ecx, dword [esp + 0xc]
xor ecx, ebp
call fcn.00568175
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
push 0x6496dc
call fcn.00564ee8
add esp, 4
cmp dword [0x6496dc], 0xffffffff
jne 0x54eccf
push str.bcryptprimitives.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x54ee3a
push str.ProcessPrng
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6496d8], eax
push 0x6496dc
call fcn.00564f37
add esp, 4
jmp 0x54eccf
push 0x6496dc
call fcn.00564ee8
add esp, 4
cmp dword [0x6496dc], 0xffffffff
jne 0x54ed2d
push str.bcryptprimitives.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x54ee3d
push str.ProcessPrng
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6496d8], eax
push 0x6496dc
call fcn.00564f37
add esp, 4
jmp 0x54ed2d
mov eax, esp
push 8
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x54ecfc
int3
mov eax, esp
push 8
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x54ed50
int3
int3
int3
int3
int3
Function at 0x54ffd0
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, 0x200c
call fcn.005685a0
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x6460b0]
cmp eax, 0xffffffff
je 0x550197
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x550197
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.00569390
add esp, 0xc
mov ecx, dword [0x6460b0]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x2014], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test ebx, ebx
je 0x550049
push ebx
call fcn.005666bd
add esp, 4
lea edi, [ebp - 0x1810]
mov ecx, 0x101
lea esi, [ebp - 0x2010]
mov dword [ebp - 0x2018], ecx
mov eax, dword [0x64a708]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x5501fe
mov ebx, dword [0x64a704]
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x550254
push 0x1000
push 0x649700
lea eax, [ebp - 0x1810]
push eax
call fcn.00569390
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 0x800
push 0xff
push esi
call fcn.00569910
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x17d4]
mov edx, dword [ecx - 0x30]
mov dword [ebp + eax*8 - 0x2010], edx
mov word [ebp + eax*8 - 0x200c], ax
mov edx, dword [ecx - 0x20]
mov dword [ebp + eax*8 - 0x2008], edx
lea edx, [eax + 1]
mov word [ebp + eax*8 - 0x2004], dx
mov edx, dword [ecx - 0x10]
mov dword [ebp + eax*8 - 0x2000], edx
lea edx, [eax + 2]
mov word [ebp + eax*8 - 0x1ffc], dx
mov edx, dword [ecx]
mov dword [ebp + eax*8 - 0x1ff8], edx
lea edx, [eax + 3]
mov word [ebp + eax*8 - 0x1ff4], dx
add ecx, 0x40
add eax, 4
cmp eax, 0x100
jne 0x5500d1
mov ecx, esi
mov edx, edi
push 1
push 0x10
call fcn.00550260
add esp, 8
mov ebx, 4
xor eax, eax
nop word cs:[eax + eax]
movzx edx, word [ebp + ebx - 0x2010]
mov esi, dword [ebp + edx*8 - 0x810]
test esi, esi
jne 0x5501ac
add ebx, 8
cmp ebx, 0x804
jne 0x550150
mov ecx, dword [ebp - 0x2018]
dec ecx
je 0x55023f
test al, 1
lea esi, [ebp - 0x2010]
jne 0x55005a
push 2
push dword [ebp - 0x2014]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
add esp, 0x200c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edx
shl ecx, 4
cmp dword [ebp + ecx - 0x1810], 0
je 0x550249
add ecx, ebp
add ecx, 0xffffe7f0
mov edi, dword [ebp + edx*8 - 0x80c]
cmp edi, dword [ecx + 8]
jne 0x550249
mov ecx, dword [ecx + 4]
test ecx, ecx
lea edi, [ebp - 0x1810]
je 0x550163
mov dword [ebp + edx*8 - 0x810], 0
call dword [0x63e64c]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x550163
push 0x64a708
call fcn.00564ee8
add esp, 4
cmp dword [0x64a708], 0xffffffff
jne 0x550081
push 4
call fcn.00564ea5
add esp, 4
mov dword [eax], 0
mov dword [0x64a704], eax
push 0x64a708
call fcn.00564f37
add esp, 4
jmp 0x550081
call fcn.00593000
jmp 0x550189
lea edi, [ebp - 0x1810]
jmp 0x550163
mov ecx, ebx
call fcn.00505f10
jmp 0x550096
Function at 0x581680
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5816ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5816ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x582746
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x617c04
push str.FlsAlloc
push 0x1f
call fcn.00582bf9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x58277a
push dword [ebp + 8]
mov ecx, esi
call dword [0x63e64c]
call esi
jmp 0x582780
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5827c4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x617c28
push str.FlsGetValue
push 0x21
call fcn.00582bf9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5827fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x63e64c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x582803
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x617c3c
push str.FlsSetValue
push 0x22
call fcn.00582bf9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x58283d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x63e64c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x588981
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x588a1e
push ebx
push esi
call fcn.00588a6f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00588533
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5889cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x588a1d
push edi
push eax
call fcn.00563380
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5889eb
call fcn.00558ca0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x588a1c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00588533
add esp, 0x20
test eax, eax
jne 0x588a0a
push edi
call fcn.00558ca0
jmp 0x588a12
push ebx
call fcn.00558ca0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x588a21
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x588a32
pop esi
ret
push ebx
push edi
push esi
call fcn.00588a6f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00563380
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x588a5a
push ebx
push esi
push edi
call fcn.00569390
add esp, 0xc
push 0
call fcn.00558ca0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x588ab1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00588d1c

Function at 0x5920e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, edx
mov esi, ecx
mov eax, dword [0x6496dc]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x592122
mov ecx, dword [0x6496d8]
test ecx, ecx
je 0x592167
call dword [0x63e64c]
push edi
push esi
call ecx
test eax, eax
je 0x592179
pop esi
pop edi
pop ebp
ret
push 0x6496dc
call fcn.00564ee8
add esp, 4
cmp dword [0x6496dc], 0xffffffff
jne 0x592106
push str.bcryptprimitives.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x59217c
push str.ProcessPrng
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6496d8], eax
push 0x6496dc
call fcn.00564f37
add esp, 4
jmp 0x592106
test edi, edi
je 0x59211e
push edi
push esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x59211e
int3
int3
int3
Function at 0x5d4100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esp + 0x78], eax
lea esi, [esp + 0x1c]
mov dword [esi], 0xffffffff
mov edx, esi
call fcn.00431b40
mov ebx, dword [esi]
mov edi, 3
mov esi, dword [ebp + 8]
test ebx, ebx
jne 0x5d416d
lea ecx, [esp + 0x1c]
call fcn.00431310
test esi, esi
je 0x5d4156
mov ecx, esi
call fcn.005e3560
push esi
call fcn.00564ea0
add esp, 4
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.00568175
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea edi, [ebp + 8]
mov al, byte [esi + 0x1c]
mov byte [esp + 0xc], al
xor eax, eax
push eax
call fcn.0057ae95
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov esi, dword [edi]
lea eax, [esi + 0xc]
mov dword [esp + 0x10], eax
lea edi, [esp + 0x20]
mov ecx, edi
call fcn.005e3470
movups xmm0, xmmword [esi + 0x38]
movaps xmmword [edi], xmm0
lea edi, [esp + 0x30]
mov ecx, edi
push dword [esp + 0x10]
call fcn.005421f0
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x18], eax
xor eax, eax
mov dword [edi + 0x40], eax
mov al, byte [esp + 0xc]
mov byte [edi + 0x35], al
lea ecx, [ebx + 0x28]
lea edx, [esp + 0x20]
call fcn.005d5850
mov byte [ebx + 0x24], 1
cmp byte [edi + 0x17], 0
jns 0x5d41f0
push dword [esp + 0x3c]
call fcn.00564ea0
add esp, 4
cmp byte [esp + 0x3b], 0
jns 0x5d4203
push dword [esp + 0x30]
call fcn.00564ea0
add esp, 4
lea ecx, [esi + 8]
lea eax, [esp + 0x20]
push eax
call fcn.005d42c0
cmp byte [esp + 0x2b], 0
jns 0x5d4223
push dword [esp + 0x20]
call fcn.00564ea0
add esp, 4
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
jmp 0x5d4235
mov ecx, dword [edi]
call fcn.005e4a00
add edi, 4
cmp edi, ebx
jne 0x5d422b
lea eax, [esi + 0x38]
mov dword [esp + 0xc], eax
mov ebx, dword [esi + 0x2c]
mov edi, dword [esi + 0x30]
jmp 0x5d426a
mov ecx, ebx
lea eax, [esp + 0x20]
push eax
call fcn.005d42c0
cmp byte [esp + 0x2b], 0
jns 0x5d4267
push dword [esp + 0x20]
call fcn.00564ea0
add esp, 4
add ebx, 0x14
cmp ebx, edi
jne 0x5d4248
mov eax, dword [esp + 0xc]
movups xmm0, xmmword [eax]
mov eax, dword [ebp + 0xc]
movups xmmword [eax], xmm0
xor edi, edi
push edi
call fcn.005d98c0
add esp, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
lea ebx, [eax + ecx]
add ebx, 4
mov eax, dword [ebx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
call dword [0x63e64c]
mov ecx, ebx
push 2
push edi
push edi
call dword [esp + 0x18]
push edx
push eax
call fcn.005d9920
add esp, 8
jmp 0x5d4139