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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x5dd6a8]
mov ecx, dword [0x5cacb4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x49002a
mov ecx, 0x5dd6a0
call fcn.0047aad0
test eax, eax
jne 0x49001d
push 4
call fcn.004f507e
add esp, 4
mov edi, eax
mov dword [eax], 0
mov ecx, 0x5dd6a0
call fcn.0047aad0
mov esi, eax
mov ecx, 0x5dd6a0
push edi
call fcn.0047ab70
test esi, esi
jne 0x49006d
mov ecx, 0x5dd6a0
pop esi
pop edi
pop ebp
jmp fcn.0047aad0
push 0x5dd6a8
call fcn.004f50f1
add esp, 4
cmp dword [0x5dd6a8], 0xffffffff
jne 0x48ffe2
xor eax, eax
mov dword [0x5dd6a4], eax
mov dword [0x5dd6a0], eax
mov ecx, 0x5dd6a0
push 0x413400
call fcn.0047abb0
push 0x5dd6a8
call fcn.004f516b
add esp, 4
jmp 0x48ffe2
push esi
call fcn.004f50ae
add esp, 4
jmp 0x49001d

Function at 0x4905d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x80
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [ebp - 8], eax
cmp byte [ecx + 0xb], 0
js 0x49066e
je 0x49065b
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x49065b
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call esi
sub esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f5620
add esp, 0x80
pop esi
pop ebp
ret
cmp dword [ecx + 4], 0
je 0x49065b
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x5c], 0x44
mov ecx, dword [ecx]
jmp 0x49060e

Function at 0x4906d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push ecx
push 0x490750
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x49070e
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004f5620
add esp, 0x18
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x20]
push 0x1b
push str....._third_partycrashpadcrashpadutil_thread_thread_win.cc
push str.Start
push edi
call fcn.004b97c0
add esp, 0x10
lea esi, [ebp - 0x10]
push edi
push esi
call fcn.00544ed0
add esp, 8
mov ecx, esi
push 0x5b0b60
call fcn.00527ac0
mov ecx, esi
call fcn.00544f70
jmp 0x4906fd
Function at 0x49f350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
movdqu xmm4, xmmword [ecx]
movdqu xmm3, xmmword [ecx + 0x10]
movdqu xmm2, xmmword [ecx + 0x20]
movdqu xmm1, xmmword [ecx + 0x30]
movd xmm0, dword [ebp + 0x10]
pxor xmm0, xmm4
add eax, 0xffffffc0
add ecx, 0x40
cmp eax, 0x40
jae 0x49f472
movq xmm4, qword [0x5a31b0]
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x5a31f0]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp eax, 0x10
jb 0x49f409
movdqu xmm1, xmmword [ecx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add ecx, 0x10
add eax, 0xfffffff0
cmp eax, 0xf
ja 0x49f3e2
pmovzxdq xmm1, qword [0x5a31f0]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm2, xmm2
pxor xmm1, xmm1
pblendw xmm1, xmm0, 3
psrldq xmm0, 4
pclmulqdq xmm1, xmmword [0x5a31c0], 0
pxor xmm1, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm1, 3
pclmulqdq xmm0, xmmword [0x5a31d0], 0x10
pblendw xmm0, xmm2, 0xfc
pclmulqdq xmm0, xmmword [0x5a31e0], 0
pxor xmm0, xmm1
pextrd eax, xmm0, 1
pop ebp
ret
movq xmm4, qword [0x5a3190]
movdqa xmm5, xmmword [0x5a31a0]
nop word cs:[eax + eax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
movdqa xmm6, xmm3
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm6
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm1
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm1, xmm5, 0x11
pxor xmm1, xmm6
movdqu xmm6, xmmword [ecx]
pxor xmm0, xmm6
movdqu xmm6, xmmword [ecx + 0x10]
pxor xmm3, xmm6
movdqu xmm6, xmmword [ecx + 0x20]
pxor xmm2, xmm6
movdqu xmm6, xmmword [ecx + 0x30]
pxor xmm1, xmm6
add eax, 0xffffffc0
add ecx, 0x40
cmp eax, 0x3f
ja 0x49f490
jmp 0x49f384
Function at 0x4a0d40
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 0x4a0d75
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4a0d7c
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4a0d6e
mov dword [esi], ebx
call fcn.004b97f0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004b97f0
push dword [esi]
call fcn.004a6b40
add esp, 4
mov dword [esi], 0
jmp 0x4a0d5f

Function at 0x4a69f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5ce480]
mov ecx, dword [0x5cacb4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a6a40
mov esi, dword [0x5ce47c]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5620
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5ce480
call fcn.004f50f1
add esp, 4
cmp dword [0x5ce480], 0xffffffff
jne 0x4a6a23
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004f9090
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 0x58
call fcn.004f507e
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x5ce4b0]
mov ecx, dword [0x5cacb4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a6ae9
mov ecx, esi
push ebx
push 0x5ce48c
push edi
call fcn.0043ab30
mov dword [0x5ce47c], esi
push 0x5ce480
call fcn.004f516b
add esp, 4
jmp 0x4a6a23
push 0x5ce4b0
call fcn.004f50f1
add esp, 4
cmp dword [0x5ce4b0], 0xffffffff
jne 0x4a6ac3
xorps xmm0, xmm0
movups xmmword [0x5ce49c], xmm0
movups xmmword [0x5ce48c], xmm0
mov dword [0x5ce4ac], 0
push 0x5ce48c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5ce4b0
call fcn.004f516b
add esp, 4
jmp 0x4a6ac3
Function at 0x4a7e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
movzx eax, byte [0x5ce554]
test al, 1
je 0x4a7efc
call fcn.004c3a50
pop esi
pop edi
pop ebp
jmp fcn.004c3a70
push 0x5ce55c
call fcn.004f50f1
add esp, 4
cmp dword [0x5ce55c], 0xffffffff
jne 0x4a7f19
push str.bcryptprimitives.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4a7f34
push str.ProcessPrng
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a7f37
mov dword [0x5ce558], eax
push 0x5ce55c
call fcn.004f516b
add esp, 4
jmp 0x4a7f19
mov eax, dword [0x5ce55c]
mov ecx, dword [0x5cacb4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a7eb3
mov ecx, dword [0x5ce558]
call dword [0x5c0d2c]
push edi
push esi
call ecx
test eax, eax
je 0x4a7f31
pop esi
pop edi
pop ebp
ret
int3
int3
int3

Function at 0x4aa580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], ecx
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x42
push str....._base_files_file_win.cc
push str.Read
push esi
call fcn.004b97c0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004ad330
xor ebx, ebx
dec ebx
cmp dword [ebp + 0xc], 0
js 0x4aa652
mov edi, dword [ebp + 0x14]
test edi, edi
js 0x4aa652
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004c6310
test al, al
jne 0x4aa689
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
lea eax, [esp + 0xc]
mov dword [eax], 0xffffffff
push esi
push eax
push edi
push dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aa672
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x4aa684
lea ecx, [esp + 0x28]
call fcn.004c63b0
lea ecx, [esp + 0x30]
call fcn.004ad3a0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004f5620
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x4aa649
int3
lea ecx, [esp + 0x28]
push 0
push edi
push dword [esp + 0x10]
push str.File::Read
call fcn.0054ae00
jmp 0x4aa604
Function at 0x4aa6b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x5f
push str....._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.004b97c0
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.004ad330
test ebx, ebx
js 0x4aa771
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004c6310
test al, al
jne 0x4aa78d
lea eax, [esp + 0xc]
mov dword [eax], 0xffffffff
push 0
push eax
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aa77b
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x4aa776
lea ecx, [esp + 0x10]
call fcn.004c63b0
lea ecx, [esp + 0x20]
call fcn.004ad3a0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004f5620
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
dec ebx
jmp 0x4aa751
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x4aa748
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push str.File::ReadAtCurrentPos
call fcn.0054ae00
jmp 0x4aa725

Function at 0x4aa7b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], ecx
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
lea ebx, [esp + 0x10]
push 0x7f
push str....._base_files_file_win.cc
push str.Write
push ebx
call fcn.004b97c0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.004ad330
mov edi, 0xffffffff
cmp dword [ebp + 0xc], 0
js 0x4aa880
mov esi, dword [ebp + 0x14]
test esi, esi
js 0x4aa880
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004c6310
test al, al
jne 0x4aa8a7
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push ebx
push eax
push esi
push dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4aa8a0
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x28]
call fcn.004c63b0
lea ecx, [esp + 0x30]
call fcn.004ad3a0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004f5620
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov edi, 0xffffffff
jmp 0x4aa877
lea ecx, [esp + 0x28]
push 0
push esi
push dword [esp + 0x10]
push str.File::Write
call fcn.0054ae00
jmp 0x4aa834
Function at 0x4ba150
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d1550

Function at 0x4ba160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
js 0x4ba16f
pop ebp
jmp fcn.004d1470
call fcn.00545070
xor eax, eax
pop ebp
ret

Function at 0x4bc6c0
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]
mov ecx, edi
call fcn.004aa4a0
mov dword [esi], 0
test eax, eax
je 0x4bc707
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4bc736
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4bc6fd
mov dword [esi], ebx
call fcn.004b97f0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.004ba3b0
lea ecx, [esi + 0x10]
call fcn.004c6340
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov al, byte [edi + 0x18]
mov byte [esi + 0x18], al
mov al, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004b97f0
push dword [esi]
call fcn.004a6b40
add esp, 4
mov dword [esi], 0
jmp 0x4bc6ee
Function at 0x4c0250
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4c0268
cmp dword [ebp + 0x10], 0
jne 0x4c0264
call fcn.004721c0
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004bfd10
Function at 0x4c1820
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
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 0x4c189e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4c1887
lea eax, [edi + 1]
cmp eax, 2
jb 0x4c186b
mov dword [esi], edi
call fcn.004b97f0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 0
inc eax
cmp eax, 1
jbe 0x4c18a2
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.004b97f0
push dword [esi]
call fcn.004a6b40
add esp, 4
mov dword [esi], 0
jmp 0x4c185c
mov byte [esi + 4], 0
int3
Function at 0x4d0ab0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
test ecx, ecx
js 0x4d0aed
mov eax, dword [ebp + 8]
je 0x4d0ae8
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word [eax + eax]
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x5b26f0]
inc esi
cmp ecx, esi
jne 0x4d0ad0
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x4dbfc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x479e30
lea eax, [ebp - 0x14]
push 0
push eax
push 0x479cd0
push 0x5dbb84
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4dc03a
xor esi, esi
cmp dword [0x5dbb88], 0
jne 0x4dc026
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x5dbb8c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4dc026
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5620
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.005090b7
int3
Function at 0x4dd0c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x2010
call fcn.004f63e0
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5ca950]
cmp eax, 0xffffffff
jne 0x4dd10b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5620
add esp, 0x2010
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
push dword [ebp - 0x2018]
call fcn.0048dc60
add esp, 8
jmp 0x4dd0e4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x4dd0e4
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.004f8b10
add esp, 0xc
mov ecx, dword [0x5ca950]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x2018], ecx
push ecx
call fcn.0048dc60
add esp, 8
test ebx, ebx
je 0x4dd15a
push ebx
call fcn.004f50ec
add esp, 4
mov esi, 0x101
lea edi, [ebp - 0x2010]
mov eax, dword [0x5dcbd4]
mov ecx, dword [0x5cacb4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4dd2b1
mov ebx, dword [0x5dcbd0]
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4dd30d
push 0x1000
push 0x5dbbcc
lea eax, [ebp - 0x1810]
push eax
call fcn.004f8b10
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 0x800
push 0xff
push edi
call fcn.004f9090
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x1804]
nop word cs:[eax + eax]
mov edx, dword [ecx]
mov dword [ebp + eax*8 - 0x2010], edx
mov word [ebp + eax*8 - 0x200c], ax
inc eax
add ecx, 0x10
cmp eax, 0x100
jne 0x4dd1e0
mov ecx, edi
lea edx, [ebp - 0x1810]
push 1
push 0x10
call fcn.004dd320
add esp, 8
mov ebx, 4
xor eax, eax
nop word [eax + eax]
movzx edx, word [ebp + ebx - 0x2010]
mov edi, dword [ebp + edx*8 - 0x810]
test edi, edi
jne 0x4dd258
add ebx, 8
cmp ebx, 0x804
jne 0x4dd220
dec esi
je 0x4dd2f6
test al, 1
lea edi, [ebp - 0x2010]
jne 0x4dd165
jmp 0x4dd0f9
mov dword [ebp - 0x2014], eax
mov eax, esi
mov ecx, edx
shl ecx, 4
cmp dword [ebp + ecx - 0x1810], 0
je 0x4dd300
add ecx, ebp
add ecx, 0xffffe7f0
mov esi, dword [ebp + edx*8 - 0x80c]
cmp esi, dword [ecx + 8]
jne 0x4dd300
mov ecx, dword [ecx + 4]
test ecx, ecx
mov esi, eax
mov eax, dword [ebp - 0x2014]
je 0x4dd233
mov dword [ebp + edx*8 - 0x810], 0
call dword [0x5c0d2c]
push edi
call ecx
add esp, 4
mov al, 1
jmp 0x4dd233
push 0x5dcbd4
call fcn.004f50f1
add esp, 4
cmp dword [0x5dcbd4], 0xffffffff
jne 0x4dd186
push 4
call fcn.004f507e
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.004a7a40
mov dword [0x5dcbd0], ebx
push 0x5dcbd4
call fcn.004f516b
add esp, 4
jmp 0x4dd186
call fcn.00545070
jmp 0x4dd0f9
mov esi, eax
mov eax, dword [ebp - 0x2014]
jmp 0x4dd233
mov ecx, ebx
call fcn.004a7a50
jmp 0x4dd19b
Function at 0x4f2b90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x10
mov esi, ecx
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [esp + 8], eax
mov byte [ecx], 0
mov eax, dword [0x5cacb4]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea ecx, [eax + 0x154]
mov dword [esi + 4], ecx
mov edx, dword [eax + 0x154]
mov dword [eax + 0x154], esi
mov ecx, dword [ebp + 8]
mov dword [esi + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi + 0x30], 0
xorps xmm0, xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x38], eax
mov eax, dword [0x5abe0c]
movzx eax, byte [eax + 0x7f]
test al, al
setne byte [esi + 0x20]
jne 0x4f2c26
mov ecx, dword [esp + 8]
xor ecx, ebp
call fcn.004f5620
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea edi, [esi + 0x10]
mov ebx, esp
push ebx
call fcn.004ac620
movsd xmm0, qword [ebx]
movsd qword [edi], xmm0
jmp 0x4f2c0f

Function at 0x4f5aa8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4f5ae7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f5ae7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f5ae7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4f5ae7
cmp dword [ecx + 0x74], 0xe
jbe 0x4f5ae7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x503db7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00503f4e
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x503f26
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x503f26
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x503edb
jg 0x503e13
test eax, eax
je 0x503ed1
push 1
push 0x1000
call fcn.004be630
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x503e36
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x503ec8
push 0x8000
push ebx
call fcn.0050919b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x503e5f
jg 0x503e5a
cmp ecx, 0x1000
jb 0x503e5f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0050ca0e
add esp, 0x10
cmp eax, 0xffffffff
je 0x503ea4
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x503e5a
jl 0x503e8b
test ecx, ecx
jne 0x503e4c
push dword [ebp - 0xc]
push ebx
call fcn.0050919b
push esi
call fcn.004be590
add esp, 0xc
xor ebx, ebx
jmp 0x503f34
cmp byte [edi + 0x24], 0
je 0x503ebb
cmp dword [edi + 0x20], 5
jne 0x503ebb
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x503ec6
mov ebx, dword [edi + 0x18]
jmp 0x503ec8
xor ebx, ebx
push esi
call fcn.004be590
pop ecx
jmp 0x503f34
test ecx, ecx
jg 0x503e9d
jl 0x503edb
test eax, eax
jae 0x503e9d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0050822b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x503efb
cmp byte [edi + 0x1c], 0
je 0x503e9d
jmp 0x503f2c
push ebx
call fcn.005072fd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x503e9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x503f34
cmp byte [edi + 0x1c], 0
je 0x503f31
mov ebx, dword [edi + 0x18]
jmp 0x503f34
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0050822b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x506dfd
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x592434
push esi
call fcn.0051742f
pop ecx
pop ecx
test eax, eax
jne 0x506e2b
xor al, al
jmp 0x506ea8
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00506b8c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x506e65
push dword [ebp - 0x210]
call fcn.004be590
xor al, al
jmp 0x506ea6
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x506e6b
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x506e8b
push edx
call fcn.00506d4f
pop ecx
test al, al
je 0x506e56
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x506e99
mov bl, 1
push dword [ebp - 0x210]
call fcn.004be590
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f5620
leave
ret