joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aaa50
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, ecx
lea esi, [ecx + 0x40]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
sub esp, 4
test al, al
je 0x4aaa88
cmp byte [edi + 0x1168], 0
je 0x4aaa98
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add esp, 0x1c
jmp 0x4aac8d
mov ecx, esi
call fcn.0047f4c0
cmp byte [edi + 0x1168], 0
jne 0x4aaa77
lea ebx, [ebp + 8]
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x5aabed], cl
jne 0x4aab09
movaps xmm0, xmmword [0x587c10]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0
call fcn.004b2680
movaps xmm0, xmmword [0x587c20]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0
call fcn.004b2680
movaps xmm0, xmmword [0x587c30]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0
call fcn.004b2680
movaps xmm0, xmmword [0x587c40]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0
call fcn.004b2680
cmp byte [ebx], 1
sete byte [edi + 4]
cmp byte [ebx + 3], 1
sete byte [edi + 5]
movzx eax, byte [ebx + 4]
cmp al, 1
sete byte [edi + 6]
cmp byte [ebx + 5], 1
sete byte [edi + 7]
jne 0x4aab34
cmp al, 1
jne 0x4aac94
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
cmp al, 1
mov dword [ebp - 0x10], esi
jne 0x4aab5d
mov dword [edi + 0xc], 4
cmp byte [ebx + 7], 1
jne 0x4aab6a
int3
cmp byte [ebx + 7], 1
jne 0x4aab6a
mov dword [edi + 0xc], 4
mov byte [edi], 0
xorps xmm0, xmm0
movups xmmword [edi + 0x1148], xmm0
movups xmmword [edi + 0x1158], xmm0
call fcn.0042c400
mov dword [edi + 0x1148], eax
mov eax, edi
not eax
mov dword [edi + 0x13cc], eax
lea ebx, [edi + 0x48]
mov eax, 8
mov esi, 0xffffff78
mov dword [esp], eax
mov ecx, ebx
call fcn.004acab0
sub esp, 4
mov eax, dword [esi*4 + 0x582ae0]
add ebx, 0x20
inc esi
cmp eax, 1
jne 0x4aaba0
mov eax, esi
add eax, 0x88
jae 0x4aabed
neg esi
nop dword [eax + eax]
mov dword [esp], 1
mov ecx, ebx
call fcn.004acab0
sub esp, 4
mov dword [ebx], 0
add ebx, 0x20
dec esi
jne 0x4aabd0
mov dword [esp], 0x599b50
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
sub esp, 4
test al, al
jne 0x4aac0b
mov ecx, 0x599b50
call fcn.0047f4c0
cmp byte [0x59d9c4], 0
mov esi, dword [ebp - 0x10]
lea ebx, [ebp + 8]
jne 0x4aac49
cmp dword [0x5aac0c], 0
jne 0x4aac97
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4aac9a
mov dword [0x59d970], eax
mov dword [0x5aac10], eax
mov dword [0x5aac0c], 0x47e7e0
mov byte [0x59d9c4], 1
mov dword [esp], 0x599b50
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub esp, 4
cmp byte [ebx + 1], 1
sete byte [edi + 3]
jne 0x4aac6b
mov dword [esp], edi
call fcn.0047e9c0
mov byte [edi + 0x1168], 1
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub esp, 4
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x5aabec], cl
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 8
int3
int3
int3
Function at 0x4aad10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0x1174]
mov ebx, dword [ecx + 0x1178]
add ebx, eax
mov eax, dword [ecx + 0x116c]
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x40000001
jb 0x4aad51
push dword [ebp + 8]
call fcn.004bccd0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, 0x40000000
mov edi, 0xaf000000
cmove edi, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0x365f776f
mov dword [esp + 0x50], 0x775f7369
lea eax, [esp + 0x50]
push eax
call fcn.0042a7c0
add esp, 4
cmp ebx, edi
jbe 0x4aadb1
push ebx
call fcn.004bcd00
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0x657a69
mov dword [esp + 0x40], 0x735f6176
lea eax, [esp + 0x40]
push eax
call fcn.0042a7c0
add esp, 4
mov eax, dword [esi + 0x117c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0x20200063
mov dword [esp + 0x30], 0x6f6c6c61
lea eax, [esp + 0x30]
push eax
call fcn.0042a7c0
add esp, 4
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
mov eax, dword [esi + 0x116c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x20007469
mov dword [esp + 0x20], 0x6d6d6f63
lea eax, [esp + 0x20]
push eax
call fcn.0042a7c0
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x20202000
mov dword [esp + 0x10], 0x657a6973
lea eax, [esp + 0x10]
push eax
call fcn.0042a7c0
add esp, 4
push esi
call fcn.0047f570
int3
Function at 0x4b23b0
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 0x4b23c1
test eax, eax
jne 0x4b2411
test eax, eax
jne 0x4b23d7
mov ecx, dword [0x5aac14]
test ecx, ecx
je 0x4b23d7
call dword [section..00cfg]
call ecx
cmp dword [0x5aac0c], 0
je 0x4b2411
mov esi, dword [0x5aac10]
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 0x4b2417
test esi, esi
je 0x4b2411
mov ecx, dword [0x5aac0c]
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 0x4b23ff
jmp 0x4b2411
Function at 0x4b8780
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 [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
lea esi, [ebp - 0x1c]
push esi
push edx
push ecx
call fcn.00464fc0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x4b87c3
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 0x4b87e1
cmp dword [ebp + 8], 0
jne 0x4b87f6
jmp 0x4b88bb
push dword [ebp - 0x1c]
call fcn.00528424
add esp, 4
cmp dword [ebp + 8], 0
je 0x4b88bb
test esi, esi
je 0x4b88bb
lea eax, [esi + esi]
test esi, esi
mov ecx, 0xffffffff
cmovns ecx, eax
push ecx
call fcn.00528453
add esp, 4
mov ecx, edi
mov edi, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov eax, ebx
lea ebx, [ebp - 0x1c]
push ebx
push eax
push ecx
call fcn.00464fc0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x4b8846
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x4b8860
push dword [ebp - 0x1c]
call fcn.00528424
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x4b88d4
push edi
call fcn.00542c14
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
push edi
call fcn.004648a0
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x4b88a3
push dword [ebx]
call fcn.00528424
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.0052845c
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x4ba9e0
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 [0x597010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
jne 0x4bab04
mov dword [ebp - 0x14], 0x4bab20
lea eax, [ebp - 0x14]
push 0
push eax
push 0x4ba9c0
push 0x5aacf4
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4bab18
cmp dword [0x5aacf8], 0
jne 0x4bab04
push dword [0x5aacfc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bab04
mov esi, eax
push 0x5aad00
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x5aad04]
mov ebx, dword [0x5aad08]
mov eax, dword [0x5aad0c]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5aad10]
mov dword [ebp - 0x20], eax
mov eax, dword [0x5aad14]
mov dword [ebp - 0x24], eax
push 0x5aad00
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x4baa9b
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 0x4baab0
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 0x4baac6
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 0x4baadf
mov edi, dword [esi + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x4baaf4
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
push 0
push esi
push 0x587578
call fcn.00497f20
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.0053bf0b
int3
Function at 0x4bba8e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [ecx + 4]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + ecx + 0x74], 0
je 0x4bbb98
cmp word [edi + ecx + 0x14], 0x68
jb 0x4bbb98
mov esi, dword [edi + ecx + 0x78]
test esi, esi
je 0x4bbb98
add esi, edi
je 0x4bbb98
mov edx, dword [ebp + 8]
mov ecx, edx
cmp edx, 0xffff
ja 0x4bbadf
mov edx, dword [esi + 0x10]
jmp 0x4bbb83
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x1c], esi
mov edx, dword [esi + 0x20]
lea esi, [edi + edx]
test edx, edx
cmove esi, edx
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x4bbb98
mov esi, dword [ebp - 0x14]
lea ebx, [esi + ebx*4]
mov dl, byte [ecx]
inc ecx
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x18], edi
mov eax, ebx
sub eax, esi
mov ecx, eax
sar ecx, 2
shr eax, 0x1f
add eax, ecx
and eax, 0xfffffffe
mov ecx, dword [esi + eax*2]
add edi, ecx
test ecx, ecx
cmove edi, ecx
test dl, dl
je 0x4bbb3b
mov ecx, dword [ebp - 0x20]
cmp dl, byte [edi]
jne 0x4bbb3d
inc edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4bbb2f
xor edx, edx
lea eax, [esi + eax*2]
movzx ecx, byte [edi]
cmp dl, cl
je 0x4bbb63
movzx edx, dl
cmp edx, ecx
lea ecx, [eax + 4]
cmovg esi, ecx
cmovs ebx, eax
xor eax, eax
cmp esi, ebx
mov edi, dword [ebp - 0x18]
mov dl, byte [ebp - 0xd]
jne 0x4bbb0d
jmp 0x4bbb98
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x24]
mov edi, dword [ebp - 0x18]
lea edx, [edi + ecx]
test ecx, ecx
cmove edx, ecx
sub eax, dword [ebp - 0x14]
sar eax, 1
movzx ecx, word [edx + eax]
mov edx, dword [esi + 0x10]
add cx, dx
mov eax, dword [esi + 0x1c]
add edi, eax
test eax, eax
cmove edi, eax
movzx eax, cx
lea eax, [edi + eax*4]
shl edx, 2
sub eax, edx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4d5278
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x4d529a
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x4d5383
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4d52d5
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004d539a
cmp dword [0x59d910], 2
jg 0x4d5381
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x266
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.00471a00
lea eax, [ebp - 0xb0]
push 0x10
push str.CreateDirectory
push eax
call fcn.0042d698
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4d5325
mov eax, dword [esi + 4]
mov esi, dword [esi]
xor ecx, ecx
lea ebx, [ebp - 0xc4]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
push ebx
push eax
push esi
call fcn.004648a0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4d5354
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.0042d698
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x4d5376
push dword [ebp - 0xc4]
call fcn.00528424
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00471b70
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d539a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x4d53bc
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4d5490
mov bl, 1
test al, 0x10
jne 0x4d553e
cmp dword [0x59d910], 2
jg 0x4d553c
lea ecx, [ebp - 0xb8]
push 2
push 0x255
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.00470c60
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.0042d698
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4d541f
mov eax, dword [esi + 4]
mov esi, dword [esi]
xor ecx, ecx
lea ebx, [ebp - 0xc4]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
push ebx
push eax
push esi
call fcn.004648a0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4d544e
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.0042d698
add esp, 0xc
push 0x11
push str.:_not_a_directory
push eax
call fcn.0042d698
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x4d5480
push dword [ebp - 0xc4]
call fcn.00528424
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00471070
jmp 0x4d553c
cmp dword [0x59d910], 2
jg 0x4d553c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x251
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.00471a00
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.0042d698
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4d54e0
mov eax, dword [esi + 4]
mov esi, dword [esi]
xor ecx, ecx
lea ebx, [ebp - 0xc4]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
push ebx
push eax
push esi
call fcn.004648a0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4d550f
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.0042d698
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x4d5531
push dword [ebp - 0xc4]
call fcn.00528424
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00471b70
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d6ae8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
movdqu xmm0, xmmword [edx]
movdqu xmmword [ebp - 0x20], xmm0
mov eax, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
cmp eax, ecx
je 0x4d6b6d
mov edi, dword [ebp + 8]
add eax, 0x10
movdqu xmm0, xmmword [eax - 0x10]
movdqu xmm1, xmmword [ebp - 0x20]
pcmpeqb xmm1, xmm0
pmovmskb edx, xmm1
cmp edx, 0xffff
je 0x4d6b3c
lea edx, [eax + 0x58]
add eax, 0x48
cmp eax, ecx
mov eax, edx
jne 0x4d6b14
jmp 0x4d6b6d
lea ebx, [eax - 0x10]
cmp ebx, ecx
je 0x4d6b6d
cmp byte [eax + 0xb], 0
jns 0x4d6b4b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
xor esi, esi
inc esi
cmp eax, 0xffffffff
cmovne esi, ecx
test esi, esi
jne 0x4d6b70
mov dword [edi], ebx
xor esi, esi
jmp 0x4d6b70
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d800e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x50]
cmp eax, edx
jne 0x4d8023
cmp byte [ecx + 0x1b], 0
jns 0x4d8031
mov ecx, dword [ecx + 0x10]
jmp 0x4d8034
xor ecx, ecx
cmp eax, 1
sete cl
lea eax, [ecx + ecx*2]
inc eax
jmp 0x4d804e
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov edx, eax
shr edx, 3
and edx, 2
xor eax, eax
inc eax
cmp ecx, 0xffffffff
cmovne eax, edx
pop ebp
ret
Function at 0x4e3af6
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
test byte [ebp + 0xc], 0x40
je 0x4e3b97
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
push 4
push esi
call sub.ADVAPI32.dll_SystemFunction036
mov edi, dword [esi]
shl edi, 0xa
and edi, 0xff0000
add edi, 0x80000
xor ebx, ebx
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmmword [ebp - 0x30], xmm0
push 0x1c
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x4e3b97
mov eax, edi
sub eax, ebx
mov esi, dword [ebp - 0x24]
mov ecx, 0xffff
add esi, ecx
and esi, 0xffff0000
cmp eax, esi
cmovb esi, eax
test ebx, ebx
je 0x4e3b91
cmp dword [ebp - 0x20], 0x10000
jne 0x4e3b91
push 1
push 0x2000
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
add ebx, esi
cmp ebx, edi
jb 0x4e3b37
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov al, 1
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4e7550
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 0x4e757c
test eax, eax
jne 0x4e757c
xor eax, eax
cmp dword [esi + 0xc], 0
jne 0x4e757c
xor eax, eax
cmp dword [esi + 4], 0
mov edx, 0
je 0x4e75d3
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4e759b
call fcn.004733d0
push dword [esi]
call fcn.00456a60
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esi + 4]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x4e75c1
call fcn.004733d0
push dword [esi + 4]
call fcn.00456a60
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 0x4e761a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x4e75fe
call fcn.004733d0
push dword [esi]
call fcn.00456a60
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4e760d
mov dword [esi], ebx
call fcn.004733d0
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 0x4e7663
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jb 0x4e7649
call fcn.004733d0
push dword [esi + 4]
call fcn.00456a60
add esp, 4
mov dword [esi + 4], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4e7659
mov dword [esi + 4], ebx
call fcn.004733d0
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 0x4e7760
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x4e77f1
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]
test eax, eax
setne bl
je 0x4e77f5
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp dword [esi], edi
je 0x4e7802
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jb 0x4e77dc
mov dword [ebp - 0x18], eax
call fcn.004733d0
push dword [esi]
call fcn.00456a60
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [esi], 0
lea ecx, [edi + 1]
cmp ecx, 2
jb 0x4e77fb
mov dword [esi], edi
mov esi, eax
call fcn.004733d0
mov eax, esi
jmp 0x4e77fb
mov bl, 1
jmp 0x4e7802
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4e7902
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
cmp dword [ecx + 8], 0
mov eax, dword [ecx]
jne 0x4e7923
test eax, eax
jne 0x4e7923
xor eax, eax
cmp dword [esi + 0xc], 0
jne 0x4e7923
cmp dword [esi + 4], 0
je 0x4e7936
push 0x32
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esi + 0x1c]
mov ecx, edi
xor edx, edx
call fcn.004e79b4
mov eax, dword [esi + 0x28]
mov dword [esi + 0x28], 0
test eax, eax
je 0x4e7960
push 0
push eax
push 0x587578
call fcn.00497f20
add esp, 0xc
mov eax, dword [esi + 0x20]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x4e7982
push eax
call fcn.0042f1aa
add esp, 4
mov dword [esi + 0x20], 0
mov ecx, edi
xor edx, edx
call fcn.004e79b4
lea ecx, [esi + 0x18]
call fcn.0042e300
lea ecx, [esi + 0x14]
call fcn.0042e300
lea ecx, [esi + 0x10]
call fcn.0042e300
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.004e7680
Function at 0x4e81a8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 8], 0
mov eax, dword [ecx]
jne 0x4e81c5
test eax, eax
jne 0x4e81c5
xor eax, eax
cmp dword [ecx + 0xc], 0
jne 0x4e81c5
cmp dword [ecx + 4], 0
je 0x4e81ce
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop ebp
ret
Function at 0x4ebea0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [0x5aae68]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ebf60
mov esi, dword [ebp + 8]
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4ebefd
mov ecx, dword [0x5aae60]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x5aae64]
jne 0x4ebefd
test esi, esi
sete bl
je 0x4ebf02
cmp dword [eax + ecx*8], 0
je 0x4ebf02
xor eax, eax
jmp 0x4ebf4f
test esi, esi
sete bl
mov eax, dword [0x5aae68]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ebfac
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4ebf53
mov ecx, dword [0x5aae60]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x5aae64]
mov edx, dword [0x5aae60]
mov dword [eax + edx*8 + 4], ecx
mov al, 1
pop esi
pop ebx
pop ebp
ret
mov al, 1
test bl, bl
jne 0x4ebf4f
call fcn.004625e0
jmp 0x4ebf34
push 0x5aae68
call fcn.00528497
add esp, 4
cmp dword [0x5aae68], 0xffffffff
jne 0x4ebec6
mov dword [0x5aae64], 0
mov dword [0x5aae60], 0xffffffff
mov ecx, 0x5aae60
push 0
call fcn.004624b0
push 0x5aae68
call fcn.0052850d
add esp, 4
jmp 0x4ebec6
push 0x5aae68
call fcn.00528497
add esp, 4
cmp dword [0x5aae68], 0xffffffff
jne 0x4ebf23
mov dword [0x5aae64], 0
mov dword [0x5aae60], 0xffffffff
mov ecx, 0x5aae60
push 0
call fcn.004624b0
push 0x5aae68
call fcn.0052850d
add esp, 4
jmp 0x4ebf23