joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ca920
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 0x4ca955
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4ca95c
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4ca94e
mov dword [esi], ebx
call fcn.004cfe10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004cfe10
push dword [esi]
call fcn.004dfa90
add esp, 4
mov dword [esi], 0
jmp 0x4ca93f
Function at 0x4da810
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.0050e870
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5f4b90]
cmp eax, 0xffffffff
je 0x4da963
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x4da963
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.00510840
add esp, 0xc
mov ecx, dword [0x5f4b90]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.0048a040
add esp, 8
test ebx, ebx
je 0x4da88b
push ebx
call fcn.0050d56c
add esp, 4
mov eax, dword [0x5fa028]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4da978
mov esi, dword [0x5fa024]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4da9bd
lea eax, [ebp - 0x1410]
push 0xc00
push 0x5f9424
push eax
call fcn.00510840
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x101
test al, 1
je 0x4da953
mov dword [ebp - 0x1418], ecx
xor ebx, ebx
lea edi, [ebp - 0x1408]
xor eax, eax
jmp 0x4da90c
inc ebx
add edi, 0xc
cmp ebx, 0x100
je 0x4da94a
mov esi, dword [ebp + ebx*8 - 0x810]
test esi, esi
je 0x4da900
cmp dword [edi - 8], 0
je 0x4da900
mov ecx, dword [ebp + ebx*8 - 0x80c]
cmp ecx, dword [edi]
jne 0x4da900
mov ecx, dword [edi - 4]
test ecx, ecx
je 0x4da900
mov dword [ebp + ebx*8 - 0x810], 0
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x4da900
mov ecx, dword [ebp - 0x1418]
dec ecx
jne 0x4da8e8
push 2
push dword [ebp - 0x1414]
call fcn.0048a040
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050db32
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5fa028
call fcn.0050d5a7
add esp, 4
cmp dword [0x5fa028], 0xffffffff
jne 0x4da8ac
push 4
call fcn.0050d4fe
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.004dfa00
mov dword [0x5fa024], esi
push 0x5fa028
call fcn.0050d61d
add esp, 4
jmp 0x4da8ac
mov ecx, esi
call fcn.004dfa10
jmp 0x4da8c1
Function at 0x4dc9e0
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.004cfde0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004da670
xor ebx, ebx
dec ebx
cmp dword [ebp + 0xc], 0
js 0x4dcaba
mov edi, dword [ebp + 0x14]
test edi, edi
js 0x4dcaba
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004e5650
test al, al
jne 0x4dcaec
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 0x4dcada
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x4dcb06
lea ecx, [esp + 0x28]
call fcn.004e56f0
lea ecx, [esp + 0x30]
call fcn.004da6f0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0050db32
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 0x4dcab1
lea ecx, [esp + 0x28]
push 0
push edi
push dword [esp + 0x10]
push str.File::Read
call fcn.00567fa0
jmp 0x4dca6c
int3

Function at 0x4dcb10
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.004cfde0
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.004da670
test ebx, ebx
js 0x4dcbd6
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004e5650
test al, al
jne 0x4dcbdb
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 0x4dcbef
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x4dcc01
lea ecx, [esp + 0x10]
call fcn.004e56f0
lea ecx, [esp + 0x20]
call fcn.004da6f0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0050db32
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
dec ebx
jmp 0x4dcbb6
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push str.File::ReadAtCurrentPos
call fcn.00567fa0
jmp 0x4dcb8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x4dcbad
int3
Function at 0x4dcc10
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.004cfde0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004da670
xor edi, edi
dec edi
cmp dword [ebp + 0xc], 0
js 0x4dcce0
cmp dword [ebp + 0x14], 0
js 0x4dcce0
mov edi, esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004e5650
test al, al
jne 0x4dcd00
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.004e56f0
lea ecx, [esp + 0x30]
call fcn.004da6f0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0050db32
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.00567fa0
jmp 0x4dcc97
Function at 0x4df870
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 0x4df8ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4df8c2
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4df8a4
mov dword [esi], ebx
call fcn.004cfe10
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 0x4df8d9
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004cfe10
push dword [esi]
call fcn.004dfa90
add esp, 4
mov dword [esi], 0
jmp 0x4df895
int3

Function at 0x4df910
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 0x4df976
cmp dword [esi], edi
je 0x4df958
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x4df980
cmp ebx, 2
jb 0x4df94e
mov dword [esi], edi
mov edi, eax
call fcn.004cfe10
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 0x4df99d
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004cfe10
mov ecx, dword [ebp + 8]
jmp 0x4df92c
mov dword [ebp - 0x10], eax
call fcn.004cfe10
push dword [esi]
call fcn.004dfa90
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x4df93e
mov edi, ecx
call fcn.004cfe10
push dword [edi]
call fcn.004dfa90
add esp, 4
mov dword [edi], 0
jmp 0x4df96a
Function at 0x4dfac0
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 [0x5fa0a8]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4dfb0d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050db32
mov eax, 0x5fa0a4
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5fa0a8
call fcn.0050d5a7
add esp, 4
cmp dword [0x5fa0a8], 0xffffffff
jne 0x4dfaf3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.00510dc0
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.0050d4fe
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x5fa0d8]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4dfbb6
mov ecx, esi
push ebx
push 0x5fa0b4
push edi
call fcn.0046add0
mov dword [0x5fa0a4], esi
push 0x5fa0a8
call fcn.0050d61d
add esp, 4
jmp 0x4dfaf3
push 0x5fa0d8
call fcn.0050d5a7
add esp, 4
cmp dword [0x5fa0d8], 0xffffffff
jne 0x4dfb90
xorps xmm0, xmm0
movups xmmword [0x5fa0c4], xmm0
movups xmmword [0x5fa0b4], xmm0
mov dword [0x5fa0d4], 0
push 0x5fa0b4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5fa0d8
call fcn.0050d61d
add esp, 4
jmp 0x4dfb90
Function at 0x4dfc10
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 [0x5fa0a8]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4dfc60
mov esi, dword [0x5fa0a4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050db32
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5fa0a8
call fcn.0050d5a7
add esp, 4
cmp dword [0x5fa0a8], 0xffffffff
jne 0x4dfc43
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.00510dc0
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.0050d4fe
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x5fa0d8]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4dfd09
mov ecx, esi
push ebx
push 0x5fa0b4
push edi
call fcn.0046add0
mov dword [0x5fa0a4], esi
push 0x5fa0a8
call fcn.0050d61d
add esp, 4
jmp 0x4dfc43
push 0x5fa0d8
call fcn.0050d5a7
add esp, 4
cmp dword [0x5fa0d8], 0xffffffff
jne 0x4dfce3
xorps xmm0, xmm0
movups xmmword [0x5fa0c4], xmm0
movups xmmword [0x5fa0b4], xmm0
mov dword [0x5fa0d4], 0
push 0x5fa0b4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5fa0d8
call fcn.0050d61d
add esp, 4
jmp 0x4dfce3

Function at 0x4dff80
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 [0x5fa0e8]
test dl, 1
je 0x4dff9f
call fcn.004f3c30
pop ebp
jmp fcn.004f3c50
test ecx, ecx
je 0x4dffae
push ecx
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x4dffb0
pop ebp
ret
int3
Function at 0x4ed990
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 0x4ed9c8
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 + 0x5df834]
inc esi
cmp ecx, esi
jne 0x4ed9b0
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ee5d0
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 0x4ee5fb
mov ecx, 0x608ac0
pop ebp
jmp fcn.004613d0
push 0x608ac8
call fcn.0050d5a7
add esp, 4
cmp dword [0x608ac8], 0xffffffff
jne 0x4ee5f0
xor eax, eax
mov dword [0x608ac4], eax
mov dword [0x608ac0], eax
mov ecx, 0x608ac0
push eax
call fcn.00461470
push 0x608ac8
call fcn.0050d61d
add esp, 4
jmp 0x4ee5f0
Function at 0x4f45d0
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 0x4f470d
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 0x4f46ad
xor eax, eax
mov cl, byte [edi + eax]
xor byte [esp + eax + 0x10], cl
inc eax
cmp ebx, eax
jne 0x4f46a1
lea edi, [esi + 0xf4]
mov eax, dword [0x608b74]
bt eax, 0x19
jae 0x4f4711
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 0x4f46e1
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.0050db32
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x4f46f8
bt eax, 9
jae 0x4f4733
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
call fcn.00404020
add esp, 0xc
xor eax, eax
mov ecx, 0x4040d0
jmp 0x4f46db
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
call fcn.0056f250
add esp, 0xc
mov ecx, 0x56f150
mov eax, 0x56f9e0
jmp 0x4f46db
Function at 0x4f7430
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 0x4f74ae
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4f7497
lea eax, [edi + 1]
cmp eax, 2
jb 0x4f747b
mov dword [esi], edi
call fcn.004cfe10
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
inc eax
cmp eax, 1
jbe 0x4f74b2
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.004cfe10
push dword [esi]
call fcn.004dfa90
add esp, 4
mov dword [esi], 0
jmp 0x4f746c
mov byte [esi + 4], 1
int3
Function at 0x508c40
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], 0x4a8a50
lea eax, [ebp - 0x14]
push 0
push eax
push 0x4a8900
push 0x608d7c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x508cba
xor esi, esi
cmp dword [0x608d80], 0
jne 0x508ca6
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 0x508ca6
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050db32
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00522670
int3

Function at 0x5095c0
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 0x5095f8
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 0x5095d2
cmp edx, 1
je 0x509619
cmp edx, 2
je 0x509610
cmp edx, 3
jne 0x509624
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 0x51d1f1
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.0051d394
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x51d369
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x51d369
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x51d318
jg 0x51d24a
test eax, eax
je 0x51d30e
push 1
push 0x1000
call fcn.004dfea0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x51d270
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x51d305
push 0x8000
push ebx
call fcn.00522754
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 0x51d29c
jg 0x51d297
cmp ecx, 0x1000
jb 0x51d29c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00525f85
add esp, 0x10
cmp eax, 0xffffffff
je 0x51d2e1
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 0x51d297
jl 0x51d2c8
test ecx, ecx
jne 0x51d289
push dword [ebp - 0xc]
push ebx
call fcn.00522754
push esi
call fcn.004dfe00
add esp, 0xc
xor edi, edi
jmp 0x51d37a
cmp byte [edi + 0x24], 0
je 0x51d2f8
cmp dword [edi + 0x20], 5
jne 0x51d2f8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x51d303
mov edi, dword [edi + 0x18]
jmp 0x51d305
xor edi, edi
push esi
call fcn.004dfe00
pop ecx
jmp 0x51d37a
test ecx, ecx
jg 0x51d2da
jl 0x51d318
test eax, eax
jae 0x51d2da
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00521833
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x51d33b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x51d2da
jmp 0x51d372
push ebx
call fcn.005208fd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x51d2da
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 0x51d37a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x51d377
mov edi, dword [edi + 0x18]
jmp 0x51d37a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00521833
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5203f7
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.00530ba8
pop ecx
pop ecx
test eax, eax
jne 0x520425
xor al, al
jmp 0x5204a2
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.00520188
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x52045f
push dword [ebp - 0x210]
call fcn.004dfe00
xor al, al
jmp 0x5204a0
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x520465
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x520485
push edx
call fcn.00520348
pop ecx
test al, al
je 0x520450
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x520493
mov bl, 1
push dword [ebp - 0x210]
call fcn.004dfe00
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050db32
leave
ret
Function at 0x522248
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 0x522288
cmp byte [ebx], 0xa
jne 0x522288
or byte [eax + edi + 0x28], 4
jmp 0x52228d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x52238b
mov al, byte [edx]
cmp al, 0x1a
je 0x52236d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5222bc
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5222e1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5222eb
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 0x52229e
jmp 0x52238b
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 0x522368
cmp dword [ebp - 0xc], 0
je 0x522368
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5f8010]
test byte [eax + edi + 0x28], 0x48
je 0x522342
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x52232d
mov byte [esi], dl
jmp 0x52233e
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 0x52238b
cmp byte [ebp - 1], 0xa
jne 0x522351
cmp esi, ebx
jne 0x522351
mov byte [esi], 0xa
jmp 0x52238a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00521833
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x52238b
mov byte [esi], 0xd
jmp 0x52238a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5f8010]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x522387
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x52238b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret