joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4caa00
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 0x4caa35
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4caa3c
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4caa2e
mov dword [esi], ebx
call fcn.004cfef0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004cfef0
push dword [esi]
call fcn.004dfb70
add esp, 4
mov dword [esi], 0
jmp 0x4caa1f
Function at 0x4da8f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.0050e950
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5f4b90]
cmp eax, 0xffffffff
je 0x4daa43
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x4daa43
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.00510920
add esp, 0xc
mov ecx, dword [0x5f4b90]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.0048a1c0
add esp, 8
test ebx, ebx
je 0x4da96b
push ebx
call fcn.0050d64c
add esp, 4
mov eax, dword [0x5fa038]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4daa58
mov esi, dword [0x5fa034]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4daa9d
lea eax, [ebp - 0x1410]
push 0xc00
push 0x5f9434
push eax
call fcn.00510920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x101
test al, 1
je 0x4daa33
mov dword [ebp - 0x1418], ecx
xor ebx, ebx
lea edi, [ebp - 0x1408]
xor eax, eax
jmp 0x4da9ec
inc ebx
add edi, 0xc
cmp ebx, 0x100
je 0x4daa2a
mov esi, dword [ebp + ebx*8 - 0x810]
test esi, esi
je 0x4da9e0
cmp dword [edi - 8], 0
je 0x4da9e0
mov ecx, dword [ebp + ebx*8 - 0x80c]
cmp ecx, dword [edi]
jne 0x4da9e0
mov ecx, dword [edi - 4]
test ecx, ecx
je 0x4da9e0
mov dword [ebp + ebx*8 - 0x810], 0
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x4da9e0
mov ecx, dword [ebp - 0x1418]
dec ecx
jne 0x4da9c8
push 2
push dword [ebp - 0x1414]
call fcn.0048a1c0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050dc12
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5fa038
call fcn.0050d687
add esp, 4
cmp dword [0x5fa038], 0xffffffff
jne 0x4da98c
push 4
call fcn.0050d5de
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.004dfae0
mov dword [0x5fa034], esi
push 0x5fa038
call fcn.0050d6fd
add esp, 4
jmp 0x4da98c
mov ecx, esi
call fcn.004dfaf0
jmp 0x4da9a1
Function at 0x4dcac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 8], ecx
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x3e
push str....._base_files_file_win.cc
push str.Read
push esi
call fcn.004cfec0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004da750
xor ebx, ebx
dec ebx
cmp dword [ebp + 0xc], 0
js 0x4dcb9a
mov edi, dword [ebp + 0x14]
test edi, edi
js 0x4dcb9a
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004e5730
test al, al
jne 0x4dcbcc
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 0x4dcbba
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x4dcbe6
lea ecx, [esp + 0x28]
call fcn.004e57d0
lea ecx, [esp + 0x30]
call fcn.004da7d0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0050dc12
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 0x4dcb91
lea ecx, [esp + 0x28]
push 0
push edi
push dword [esp + 0x10]
push str.File::Read
call fcn.00568080
jmp 0x4dcb4c
int3

Function at 0x4dcbf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x5b
push str....._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.004cfec0
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.004da750
test ebx, ebx
js 0x4dccb6
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004e5730
test al, al
jne 0x4dccbb
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 0x4dcccf
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x4dcce1
lea ecx, [esp + 0x10]
call fcn.004e57d0
lea ecx, [esp + 0x20]
call fcn.004da7d0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0050dc12
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
dec ebx
jmp 0x4dcc96
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push str.File::ReadAtCurrentPos
call fcn.00568080
jmp 0x4dcc6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x4dcc8d
int3
Function at 0x4dccf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x7b
push str....._base_files_file_win.cc
push str.Write
push ebx
call fcn.004cfec0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004da750
xor edi, edi
dec edi
cmp dword [ebp + 0xc], 0
js 0x4dcdc0
cmp dword [ebp + 0x14], 0
js 0x4dcdc0
mov edi, esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004e5730
test al, al
jne 0x4dcde0
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], esi
lea esi, [esp + 0xc]
mov dword [esi], 0xffffffff
push ebx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp eax, 1
sbb edi, edi
or edi, dword [esi]
lea ecx, [esp + 0x28]
call fcn.004e57d0
lea ecx, [esp + 0x30]
call fcn.004da7d0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0050dc12
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
lea ecx, [esp + 0x28]
push 0
push dword [ebp + 0x14]
push edi
push str.File::Write
call fcn.00568080
jmp 0x4dcd77
Function at 0x4df950
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x4df98b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4df9a2
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4df984
mov dword [esi], ebx
call fcn.004cfef0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x4df9b9
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004cfef0
push dword [esi]
call fcn.004dfb70
add esp, 4
mov dword [esi], 0
jmp 0x4df975
int3

Function at 0x4df9f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edi, dword [ecx]
mov dword [ecx], 0
lea ebx, [edi + 1]
cmp ebx, 2
jae 0x4dfa56
cmp dword [esi], edi
je 0x4dfa38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x4dfa60
cmp ebx, 2
jb 0x4dfa2e
mov dword [esi], edi
mov edi, eax
call fcn.004cfef0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 4]
mov byte [esi + 4], al
mov byte [ecx + 4], 0
mov eax, dword [ecx]
inc eax
cmp eax, 2
jae 0x4dfa7d
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004cfef0
mov ecx, dword [ebp + 8]
jmp 0x4dfa0c
mov dword [ebp - 0x10], eax
call fcn.004cfef0
push dword [esi]
call fcn.004dfb70
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x4dfa1e
mov edi, ecx
call fcn.004cfef0
push dword [edi]
call fcn.004dfb70
add esp, 4
mov dword [edi], 0
jmp 0x4dfa4a
Function at 0x4dfba0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5fa0b8]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4dfbed
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050dc12
mov eax, 0x5fa0b4
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5fa0b8
call fcn.0050d687
add esp, 4
cmp dword [0x5fa0b8], 0xffffffff
jne 0x4dfbd3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.00510ea0
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.0050d5de
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x5fa0e8]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4dfc96
mov ecx, esi
push ebx
push 0x5fa0c4
push edi
call fcn.0046aeb0
mov dword [0x5fa0b4], esi
push 0x5fa0b8
call fcn.0050d6fd
add esp, 4
jmp 0x4dfbd3
push 0x5fa0e8
call fcn.0050d687
add esp, 4
cmp dword [0x5fa0e8], 0xffffffff
jne 0x4dfc70
xorps xmm0, xmm0
movups xmmword [0x5fa0d4], xmm0
movups xmmword [0x5fa0c4], xmm0
mov dword [0x5fa0e4], 0
push 0x5fa0c4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5fa0e8
call fcn.0050d6fd
add esp, 4
jmp 0x4dfc70
Function at 0x4dfcf0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5fa0b8]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4dfd40
mov esi, dword [0x5fa0b4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050dc12
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5fa0b8
call fcn.0050d687
add esp, 4
cmp dword [0x5fa0b8], 0xffffffff
jne 0x4dfd23
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.00510ea0
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.0050d5de
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x5fa0e8]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4dfde9
mov ecx, esi
push ebx
push 0x5fa0c4
push edi
call fcn.0046aeb0
mov dword [0x5fa0b4], esi
push 0x5fa0b8
call fcn.0050d6fd
add esp, 4
jmp 0x4dfd23
push 0x5fa0e8
call fcn.0050d687
add esp, 4
cmp dword [0x5fa0e8], 0xffffffff
jne 0x4dfdc3
xorps xmm0, xmm0
movups xmmword [0x5fa0d4], xmm0
movups xmmword [0x5fa0c4], xmm0
mov dword [0x5fa0e4], 0
push 0x5fa0c4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5fa0e8
call fcn.0050d6fd
add esp, 4
jmp 0x4dfdc3

Function at 0x4e0060
Capabilities:
Encode data using xor
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dl, byte [0x5fa0f8]
test dl, 1
je 0x4e007f
call fcn.004f3d10
pop ebp
jmp fcn.004f3d30
test ecx, ecx
je 0x4e008e
push ecx
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x4e0090
pop ebp
ret
int3
Function at 0x4eda70
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]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x4edaa8
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word cs:[eax + eax]
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x5df8b4]
inc esi
cmp ecx, esi
jne 0x4eda90
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ee6b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x608ac8]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ee6db
mov ecx, 0x608ac0
pop ebp
jmp fcn.004614b0
push 0x608ac8
call fcn.0050d687
add esp, 4
cmp dword [0x608ac8], 0xffffffff
jne 0x4ee6d0
xor eax, eax
mov dword [0x608ac4], eax
mov dword [0x608ac0], eax
mov ecx, 0x608ac0
push eax
call fcn.00461550
push 0x608ac8
call fcn.0050d6fd
add esp, 4
jmp 0x4ee6d0
Function at 0x4f46b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov ebx, dword [ebp + 8]
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [esp + 0x48], eax
cmp ebx, 0x30
ja 0x4f47ed
mov edi, edx
mov esi, ecx
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x30]
movdqa xmmword [eax], xmm0
movdqa xmmword [eax - 0x10], xmm0
movdqa xmmword [eax - 0x20], xmm0
mov ecx, dword [ecx + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
lea eax, [esi + 0xfc]
mov dword [esp + 0xc], eax
call dword [section..00cfg]
lea eax, [esp + 0x10]
push esi
push eax
push dword [esp + 0x14]
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x14]
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x14]
call ecx
add esp, 0xc
test ebx, ebx
je 0x4f478d
xor eax, eax
mov cl, byte [edi + eax]
xor byte [esp + eax + 0x10], cl
inc eax
cmp ebx, eax
jne 0x4f4781
lea edi, [esi + 0xf4]
mov eax, dword [0x608b74]
bt eax, 0x19
jae 0x4f47f1
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
call fcn.00403500
add esp, 0xc
mov ecx, 0x401180
mov eax, 0x401d10
test edi, edi
je 0x4f47c1
mov dword [edi], ecx
mov dword [esi + 0xf8], eax
lea eax, [esp + 0x30]
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0xc]
movups xmmword [eax], xmm0
xor esi, esi
inc esi
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.0050dc12
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x4f47d8
bt eax, 9
jae 0x4f4813
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
call fcn.00404020
add esp, 0xc
xor eax, eax
mov ecx, 0x4040d0
jmp 0x4f47bb
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
call fcn.0056f330
add esp, 0xc
mov ecx, 0x56f230
mov eax, 0x56fac0
jmp 0x4f47bb
Function at 0x4f7510
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 0x4f758e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4f7577
lea eax, [edi + 1]
cmp eax, 2
jb 0x4f755b
mov dword [esi], edi
call fcn.004cfef0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
inc eax
cmp eax, 1
jbe 0x4f7592
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.004cfef0
push dword [esi]
call fcn.004dfb70
add esp, 4
mov dword [esi], 0
jmp 0x4f754c
mov byte [esi + 4], 1
int3
Function at 0x508d20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x4a8b30
lea eax, [ebp - 0x14]
push 0
push eax
push 0x4a89e0
push 0x608d7c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x508d9a
xor esi, esi
cmp dword [0x608d80], 0
jne 0x508d86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x608d84]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x508d86
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050dc12
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00522750
int3

Function at 0x5096a0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, edx
cmp edx, 4
jb 0x5096d8
imul esi, dword [ecx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x5096b2
cmp edx, 1
je 0x5096f9
cmp edx, 2
je 0x5096f0
cmp edx, 3
jne 0x509704
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop esi
pop edi
pop ebp
ret 8
Function at 0x51d2d1
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]
push dword [ebp + 0xc]
push ebx
call fcn.0051d474
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x51d449
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x51d449
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x51d3f8
jg 0x51d32a
test eax, eax
je 0x51d3ee
push 1
push 0x1000
call fcn.004dff80
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x51d350
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x51d3e5
push 0x8000
push ebx
call fcn.00522834
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x51d37c
jg 0x51d377
cmp ecx, 0x1000
jb 0x51d37c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00526065
add esp, 0x10
cmp eax, 0xffffffff
je 0x51d3c1
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 0x51d377
jl 0x51d3a8
test ecx, ecx
jne 0x51d369
push dword [ebp - 0xc]
push ebx
call fcn.00522834
push esi
call fcn.004dfee0
add esp, 0xc
xor edi, edi
jmp 0x51d45a
cmp byte [edi + 0x24], 0
je 0x51d3d8
cmp dword [edi + 0x20], 5
jne 0x51d3d8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x51d3e3
mov edi, dword [edi + 0x18]
jmp 0x51d3e5
xor edi, edi
push esi
call fcn.004dfee0
pop ecx
jmp 0x51d45a
test ecx, ecx
jg 0x51d3ba
jl 0x51d3f8
test eax, eax
jae 0x51d3ba
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00521913
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x51d41b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x51d3ba
jmp 0x51d452
push ebx
call fcn.005209dd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x51d3ba
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x51d45a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x51d457
mov edi, dword [edi + 0x18]
jmp 0x51d45a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00521913
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5204d7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5c234c
push esi
call fcn.00530c88
pop ecx
pop ecx
test eax, eax
jne 0x520505
xor al, al
jmp 0x520582
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.00520268
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x52053f
push dword [ebp - 0x210]
call fcn.004dfee0
xor al, al
jmp 0x520580
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x520545
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x520565
push edx
call fcn.00520428
pop ecx
test al, al
je 0x520530
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x520573
mov bl, 1
push dword [ebp - 0x210]
call fcn.004dfee0
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050dc12
leave
ret
Function at 0x522328
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5f8010]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x522368
cmp byte [ebx], 0xa
jne 0x522368
or byte [eax + edi + 0x28], 4
jmp 0x52236d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x52246b
mov al, byte [edx]
cmp al, 0x1a
je 0x52244d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x52239c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5223c1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5223cb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x52237e
jmp 0x52246b
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x522448
cmp dword [ebp - 0xc], 0
je 0x522448
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5f8010]
test byte [eax + edi + 0x28], 0x48
je 0x522422
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x52240d
mov byte [esi], dl
jmp 0x52241e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5f8010]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x52246b
cmp byte [ebp - 1], 0xa
jne 0x522431
cmp esi, ebx
jne 0x522431
mov byte [esi], 0xa
jmp 0x52246a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00521913
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x52246b
mov byte [esi], 0xd
jmp 0x52246a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5f8010]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x522467
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x52246b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret