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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.004a9200
mov eax, dword [0x4f6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4f9c2c]
cmp eax, 0xffffffff
je 0x46d55a
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x46d55a
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.004aafe0
add esp, 0xc
mov ecx, dword [0x4f9c2c]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.00483cc0
add esp, 8
test ebx, ebx
je 0x46d47b
push ebx
call fcn.004a7f1c
add esp, 4
mov eax, dword [0x507098]
mov ecx, dword [0x4f9e7c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46d57b
mov esi, dword [0x507094]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x46d56f
lea eax, [ebp - 0x1410]
push 0xc00
push 0x506494
push eax
call fcn.004aafe0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x101
jmp 0x46d4e9
mov ecx, dword [ebp - 0x1418]
dec ecx
je 0x46d54a
test al, 1
je 0x46d54a
mov dword [ebp - 0x1418], ecx
xor edi, edi
lea ebx, [ebp - 0x1408]
xor eax, eax
jmp 0x46d50c
inc edi
add ebx, 0xc
cmp edi, 0x100
je 0x46d4e0
mov esi, dword [ebp + edi*8 - 0x810]
test esi, esi
je 0x46d500
cmp dword [ebx - 8], 0
je 0x46d500
mov ecx, dword [ebp + edi*8 - 0x80c]
cmp ecx, dword [ebx]
jne 0x46d500
mov ecx, dword [ebx - 4]
test ecx, ecx
je 0x46d500
mov dword [ebp + edi*8 - 0x810], 0
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x46d500
push 2
push dword [ebp - 0x1414]
call fcn.00483cc0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8de3
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00451e10
jmp 0x46d4b1
push 0x507098
call fcn.004a7f57
add esp, 4
cmp dword [0x507098], 0xffffffff
jne 0x46d49c
push 4
call fcn.004a7eb0
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.00451e00
mov dword [0x507094], esi
push 0x507098
call fcn.004a7fcd
add esp, 4
jmp 0x46d49c

Function at 0x46d5c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4f9c2c]
cmp eax, 0xffffffff
je 0x46d5e0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x46d5f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x4f9c2c]
cmp eax, 0xffffffff
je 0x46d60d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x46d612
call fcn.0046d710
mov eax, dword [0x507098]
mov ecx, dword [0x4f9e7c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46d6bd
mov edi, dword [0x507094]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x46d6b4
mov ecx, dword [0x506490]
inc ecx
xor edx, edx
nop dword [eax]
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x506494], 0
je 0x46d66e
inc edx
cmp edx, 0x100
jne 0x46d650
jmp 0x46d69e
lea eax, [eax*4 + 0x506494]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x506498], ecx
mov dword [0x506490], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x50649c]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x46d702
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, edi
call fcn.00451e10
jmp 0x46d644
push 0x507098
call fcn.004a7f57
add esp, 4
cmp dword [0x507098], 0xffffffff
jne 0x46d633
push 4
call fcn.004a7eb0
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.00451e00
mov dword [0x507094], edi
push 0x507098
call fcn.004a7fcd
add esp, 4
jmp 0x46d633
int3

Function at 0x46d710
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x808
mov eax, dword [0x4f6014]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x810], 0xffffffff
mov ecx, dword [0x4f9c2c]
mov dword [ebp - 0x810], ecx
cmp ecx, 0xffffffff
jne 0x46d7b4
lea esi, [ebp - 0x810]
push esi
call fcn.00483c90
add esp, 4
test al, al
je 0x46d835
mov ecx, dword [ebp - 0x810]
cmp ecx, 0xffffffff
jne 0x46d790
push esi
call fcn.00483c90
add esp, 4
test al, al
je 0x46d838
cmp dword [ebp - 0x810], 0xffffffff
je 0x46d838
push 0xffffffffffffffff
call fcn.00483cb0
add esp, 4
mov ecx, dword [ebp - 0x810]
mov eax, 0xffffffff
lock cmpxchg dword [0x4f9c2c], ecx
je 0x46d7b4
push ecx
call fcn.00483cb0
add esp, 4
mov ecx, dword [0x4f9c2c]
mov dword [ebp - 0x810], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x46d832
lea edi, [ebp - 0x80c]
push 0x800
push 0
push edi
call fcn.004ab560
add esp, 0xc
lea eax, [ebp - 0x809]
push eax
push dword [ebp - 0x810]
call fcn.00483cc0
add esp, 8
push 0x800
call fcn.004a7f13
add esp, 4
mov esi, eax
push 0x800
push edi
push eax
call fcn.004aafe0
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x810]
call fcn.00483cc0
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004a8de3
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebp
ret
int3
int3
int3
Function at 0x46f5d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x46f6af
mov edi, ecx
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx + 0x74], 0
je 0x46f6af
add eax, ecx
cmp word [eax + 0x14], 0x68
jb 0x46f6af
add eax, 0x78
je 0x46f6af
mov ecx, edi
push dword [eax]
call fcn.0046f530
test eax, eax
je 0x46f6af
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
cmp eax, 0xffff
jbe 0x46f6dc
mov ecx, edi
push dword [ebx + 0x20]
call fcn.0046f530
mov ecx, eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x46f6af
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], edi
lea esi, [ecx + eax*4]
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
mov ebx, ecx
mov edi, esi
sub edi, ebx
mov eax, edi
sar eax, 2
shr edi, 0x1f
add edi, eax
and edi, 0xfffffffe
mov ecx, dword [ebp - 0x14]
push dword [ebx + edi*2]
call fcn.0046f530
mov ecx, dword [ebp + 8]
mov cl, byte [ecx]
test cl, cl
je 0x46f68d
mov edx, dword [ebp - 0x20]
cmp cl, byte [eax]
jne 0x46f68f
inc eax
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x46f681
xor ecx, ecx
lea edi, [ebx + edi*2]
movzx eax, byte [eax]
cmp cl, al
je 0x46f6bb
movzx ecx, cl
cmp ecx, eax
lea eax, [edi + 4]
cmovg ebx, eax
cmovs esi, edi
xor eax, eax
cmp ebx, esi
jne 0x46f659
jmp 0x46f6b1
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push dword [esi + 0x24]
call fcn.0046f530
sub edi, dword [ebp - 0x18]
sar edi, 1
movzx eax, word [eax + edi]
add ax, word [esi + 0x10]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov word [esi], ax
mov al, 1
jmp 0x46f6b1

Function at 0x46fa50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043d5a0

Function at 0x471a50
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
pop ebp
ret 4

Function at 0x471a70
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
pop ebp
ret 4
Function at 0x47bb30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x47bb64
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call fcn.0046f8f0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x47bb5d
mov dword [esi], ebx
call fcn.00440730
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x47ebdc
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.0047ebf8
add esp, 4
test al, al
je 0x47ebf2
mov al, 1
pop ebp
ret
pop ebp
jmp fcn.0047eff6
Function at 0x47feb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4f6014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
jne 0x47ffcd
mov dword [ebp - 0x14], 0x480070
lea eax, [ebp - 0x14]
push 0
push eax
push 0x47fe70
push 0x509bc8
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x47ffe1
cmp dword [0x509bcc], 0
jne 0x47ffcd
push dword [0x509bd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47ffcd
mov esi, eax
push 0x509bd4
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x509bd8]
mov ebx, dword [0x509bdc]
mov eax, dword [0x509be0]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x509be4]
mov dword [ebp - 0x20], eax
mov eax, dword [0x509be8]
mov dword [ebp - 0x24], eax
push 0x509bd4
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x47ff6b
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [section..00cfg]
push dword [ebp - 0x18]
call edi
add esp, 4
test ebx, ebx
je 0x47ff80
mov edi, dword [esi + 4]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x47ff96
mov edi, dword [esi + 8]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov ebx, dword [ebp - 0x24]
je 0x47ffaf
mov edi, dword [esi + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x47ffc4
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
push esi
call fcn.0047f880
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8de3
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.004bc880
int3

Function at 0x47fff0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4f6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x480070
lea eax, [ebp - 0x14]
push 0
push eax
push 0x47fe70
push 0x509bc8
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x48006a
xor esi, esi
cmp dword [0x509bcc], 0
jne 0x480056
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x509bd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x480056
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8de3
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004bc880
int3
Function at 0x480090
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4f6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x480070
lea eax, [ebp - 0x14]
push 0
push eax
push 0x47fe70
push 0x509bc8
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x480188
mov esi, dword [ebp + 0x10]
cmp dword [0x509bcc], 0
je 0x4800e8
mov ecx, esi
call dword [section..00cfg]
push dword [ebp + 0xc]
call esi
add esp, 4
xor esi, esi
jmp 0x480134
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x509bd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x480148
mov ebx, dword [ebp + 8]
push 0x509bd4
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [ebx*4 + 0x509bd8], esi
push 0x509bd4
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 0xc]
mov dword [edi + ebx*4], eax
mov esi, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8de3
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x14
call fcn.0047f840
add esp, 4
test eax, eax
je 0x4800d4
mov edi, eax
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
push eax
push dword [0x509bd0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x480109
push edi
call fcn.0047f880
add esp, 4
jmp 0x4800d4
call fcn.004bc880
int3
Function at 0x482d20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x482d31
test eax, eax
jne 0x482d81
test eax, eax
jne 0x482d47
mov ecx, dword [0x509c4c]
test ecx, ecx
je 0x482d47
call dword [section..00cfg]
call ecx
cmp dword [0x509c44], 0
je 0x482d81
mov esi, dword [0x509c48]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x482d87
test esi, esi
je 0x482d81
mov ecx, dword [0x509c44]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x482d6f
jmp 0x482d81

Function at 0x48c1b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x50b0d0]
mov ecx, dword [0x4f9e7c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x48c1db
mov ecx, 0x50b0c8
pop ebp
jmp fcn.0046d900
push 0x50b0d0
call fcn.004a7f57
add esp, 4
cmp dword [0x50b0d0], 0xffffffff
jne 0x48c1d0
mov dword [0x50b0cc], 0
mov dword [0x50b0c8], 0
mov ecx, 0x50b0c8
push 0
call fcn.0046d970
push 0x50b0d0
call fcn.004a7fcd
add esp, 4
jmp 0x48c1d0

Function at 0x48cef0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x4f6014]
xor eax, ebp
mov dword [esp + 0x18], eax
mov edi, dword [ecx + 0x38]
test edi, edi
jne 0x48cfb5
mov esi, ecx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0x9ffffff
lea edx, [esp + 0xc]
cmp edx, str.discarded
ja 0x48cf47
lea eax, [esp + 0x15]
cmp eax, str.discarded
ja 0x48cfcc
mov dword [esp + 0x10], 0x65647261
mov dword [esp + 0xc], 0x63736964
mov word [esp + 0x14], 0x64
mov edi, esp
mov ecx, esi
push edx
push edi
call fcn.0048ce60
push 0x48
call fcn.004a7eb0
add esp, 4
mov ebx, eax
mov ecx, eax
push edi
push dword [esi + 0x28]
lea eax, [esp + 0x14]
push eax
call fcn.0048d120
mov edi, dword [esi + 0x38]
mov dword [esi + 0x38], ebx
test edi, edi
je 0x48cf9f
mov ecx, edi
call fcn.0048d210
push edi
call fcn.004a7ee0
add esp, 4
cmp byte [esp + 0x17], 0
jns 0x48cfb2
push dword [esp + 0xc]
call fcn.004a7ee0
add esp, 4
mov edi, dword [esi + 0x38]
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.004a8de3
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.char_traits::copy_overlapped_range
push str.__s2_____s1____s2_____s1__n
push 0xec
push str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
push str._s:_d:_assertion__s_failed:__s
call fcn.00416514
int3
Function at 0x4930a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
mov eax, dword [ecx]
jne 0x4930cc
test eax, eax
jne 0x4930cc
xor eax, eax
cmp dword [esi + 0xc], 0
jne 0x4930cc
xor eax, eax
cmp dword [esi + 4], 0
mov edx, 0
je 0x493123
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4930eb
call fcn.00440730
push dword [esi]
call fcn.004642e0
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esi + 4]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x493111
call fcn.00440730
push dword [esi + 4]
call fcn.004642e0
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
xor ecx, ecx
mov edx, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, ecx
mov ebx, dword [edi]
cmp edx, ebx
je 0x49316a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x49314e
call fcn.00440730
push dword [esi]
call fcn.004642e0
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x49315d
mov dword [esi], ebx
call fcn.00440730
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp eax, ebx
je 0x4931b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jb 0x493199
call fcn.00440730
push dword [esi + 4]
call fcn.004642e0
add esp, 4
mov dword [esi + 4], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4931a9
mov dword [esi + 4], ebx
call fcn.00440730
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4932e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x4f6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x493370
mov edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov ebx, eax
call esi
lea ecx, [ebp - 0x14]
push 2
push 0
push 0
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, eax
test eax, eax
je 0x493374
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp dword [esi], ebx
je 0x493381
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jb 0x49335b
mov dword [ebp - 0x18], eax
call fcn.00440730
push dword [esi]
call fcn.004642e0
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x49337a
mov dword [esi], ebx
mov esi, eax
call fcn.00440730
mov eax, esi
jmp 0x49337a
mov bl, 1
jmp 0x493386
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8de3
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4934c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
call fcn.00493270
test al, al
je 0x4934e5
push 0x32
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esi + 0x20]
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.00493560
lea ecx, [esi + 0x30]
call fcn.0047cb5a
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x2c], ebx
test eax, eax
je 0x49350d
push eax
call fcn.00453410
add esp, 4
mov eax, dword [esi + 0x24]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x4fdb64]
bt edx, ecx
jae 0x49352f
push eax
call fcn.004435f0
add esp, 4
xor eax, eax
mov dword [esi + 0x24], eax
mov ecx, edi
push eax
call fcn.00493560
lea ecx, [esi + 0x18]
call fcn.0046f8f0
lea ecx, [esi + 0x14]
call fcn.0046f8f0
lea ecx, [esi + 0x10]
call fcn.0046f8f0
mov ecx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004931d0
Function at 0x495540
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x4f6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.0044cde0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x49556e
mov esi, dword [ebp - 0x1c]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
js 0x49558c
cmp dword [ebp + 8], 0
jne 0x4955a1
jmp 0x49563c
push dword [ebp - 0x1c]
call fcn.004a7ee0
add esp, 4
cmp dword [ebp + 8], 0
je 0x49563c
test esi, esi
je 0x49563c
lea eax, [esi + esi]
test esi, esi
mov ecx, 0xffffffff
cmovns ecx, eax
push ecx
call fcn.004a7f13
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.0044cde0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x4955dc
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x4955f6
push dword [ebp - 0x1c]
call fcn.004a7ee0
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x495655
push edi
call fcn.004c3f8c
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.0044ca20
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x495624
push dword [ebx]
call fcn.004a7ee0
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.004a7f1c
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8de3
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3

Function at 0x495658
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004642a0
Function at 0x498e40
Capabilities:
Reference processor manufacturer constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, ecx
xor eax, eax
xor ecx, ecx
cpuid
test eax, eax
jle 0x498f4b
mov esi, eax
mov dword [ebp - 0x14], edi
mov eax, 1
xor ecx, ecx
cpuid
mov edi, eax
mov dword [ebp - 0x10], ecx
mov ecx, 0
cmp esi, 7
mov ebx, 0
jb 0x498e91
mov eax, 7
xor ecx, ecx
mov esi, edx
cpuid
mov edx, esi
and ebx, 0x20
shr cl, 3
and cl, 1
mov esi, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edi
mov eax, edi
and eax, 0xf
mov dword [ecx + 8], eax
shr edi, 0xc
and edi, 3
mov dword [ecx + 4], edi
mov edi, ecx
mov eax, edx
shr eax, 0x17
and al, 1
mov byte [ecx + 0xc], al
mov eax, edx
shr eax, 0x19
and al, 1
mov byte [ecx + 0xd], al
shr edx, 0x1a
and dl, 1
mov byte [ecx + 0xe], dl
mov ecx, dword [ebp - 0x10]
mov eax, ecx
and al, 1
mov byte [edi + 0xf], al
mov eax, ecx
shr eax, 9
and al, 1
mov byte [edi + 0x10], al
mov eax, ecx
shr eax, 0x13
and al, 1
mov byte [edi + 0x11], al
mov eax, ecx
shr eax, 0x14
and al, 1
mov byte [edi + 0x12], al
mov eax, ecx
shr eax, 0x17
and al, 1
mov byte [edi + 0x13], al
mov eax, ecx
shr eax, 0x1f
mov byte [edi + 0x1a], al
mov eax, ecx
not eax
test eax, 0x1c000000
jne 0x498f1b
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
jmp 0x498f1d
xor eax, eax
mov byte [edi + 0x14], al
mov edx, dword [ebp - 0x10]
mov ecx, edx
shr ecx, 0x19
and cl, 1
mov byte [edi + 0x17], cl
shr edx, 0xc
and dl, 1
mov byte [edi + 0x15], dl
test al, al
setne al
test ebx, ebx
setne cl
and cl, al
mov byte [edi + 0x16], cl
mov eax, esi
mov byte [edi + 0x18], al
mov eax, 0x80000000
xor ecx, ecx
cpuid
cmp eax, 0x80000006
jle 0x498f70
mov eax, 0x80000007
xor ecx, ecx
cpuid
and dh, 1
mov byte [edi + 0x19], dh
test dh, dh
jne 0x498fa2
jmp 0x498f77
mov dh, byte [edi + 0x19]
test dh, dh
jne 0x498fa2
cmp byte [edi + 0x1a], 0
je 0x498fa2
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp ebx, 0x7263694d
jne 0x498fa2
cmp ecx, 0x666f736f
jne 0x498fa2
cmp edx, 0x76482074
jne 0x498fa2
mov byte [edi + 0x19], 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret