joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [ebp + 0x14]
mov ecx, dword [0x4d100c]
xor ecx, ebp
mov dword [esp + 0x78], ecx
xor esi, esi
cmp eax, 0x30
ja 0x479735
mov ecx, dword [ebp + 0xc]
movups xmm0, xmmword [ecx + 0x20]
movaps xmmword [esp + 0x50], xmm0
movdqu xmm0, xmmword [ecx]
movdqu xmm1, xmmword [ecx + 0x10]
movdqa xmmword [esp + 0x40], xmm1
movdqa xmmword [esp + 0x30], xmm0
test eax, eax
je 0x47956d
mov ecx, dword [ebp + 0x10]
xor edx, edx
nop word cs:[eax + eax]
movzx ebx, byte [ecx + edx]
xor byte [esp + edx + 0x30], bl
inc edx
cmp eax, edx
jne 0x479560
mov esi, dword [ebp + 8]
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, byte [eax + 0x4c8060]
xor byte [esp + eax + 0x30], cl
inc eax
cmp eax, 0x30
jne 0x479580
lea edi, [esi + 0xf4]
mov eax, dword [0x4e510c]
test eax, 0x2000000
jne 0x4796cb
test eax, 0x200
jne 0x4796ea
mov dword [esp + 0xc], edi
mov dword [esi + 0xf0], 0xe
movaps xmm0, xmmword [esp + 0x30]
movaps xmmword [esp + 0x10], xmm0
movups xmmword [esi], xmm0
movdqa xmm0, xmmword [esp + 0x40]
movdqu xmmword [esi + 0x10], xmm0
mov ebx, 0x30
mov edi, 0x4c80b0
lea esi, [esp + 0x60]
nop word cs:[eax + eax]
pcmpeqd xmm1, xmm1
movdqa xmmword [esp + 0x60], xmm1
mov ecx, esi
movdqa xmmword [esp + 0x20], xmm0
call fcn.00479ea0
movzx eax, byte [edi]
movd xmm1, eax
pxor xmm1, xmmword [esp + 0x10]
movdqa xmm3, xmmword [esp + 0x60]
movdqa xmm2, xmm3
psrld xmm2, 8
pslld xmm3, 0x18
por xmm3, xmm2
psrldq xmm3, 0xc
pxor xmm3, xmm1
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm2, xmm3
pslldq xmm2, 8
pxor xmm2, xmm1
movdqa xmm0, xmm3
pslldq xmm0, 0xc
pxor xmm0, xmm2
pxor xmm0, xmm3
mov eax, dword [ebp + 8]
movdqu xmmword [eax + ebx - 0x10], xmm0
cmp ebx, 0xf0
je 0x47974a
mov ecx, esi
movdqa xmmword [esp + 0x10], xmm0
call fcn.00479ea0
movdqa xmm1, xmmword [esp + 0x60]
psrldq xmm1, 0xc
movdqa xmm0, xmmword [esp + 0x20]
pxor xmm0, xmm1
movdqa xmm2, xmm0
pslldq xmm2, 4
movdqa xmm1, xmm0
pslldq xmm1, 8
pxor xmm1, xmm2
movdqa xmm2, xmm0
pslldq xmm2, 0xc
pxor xmm2, xmm1
pxor xmm0, xmm2
mov eax, dword [ebp + 8]
movdqu xmmword [eax + ebx], xmm0
add ebx, 0x20
inc edi
jmp 0x4795f0
lea eax, [esp + 0x30]
push esi
push 0x100
push eax
call fcn.00403500
add esp, 0xc
mov ecx, 0x401180
mov eax, 0x401d10
jmp 0x479704
lea eax, [esp + 0x30]
push esi
push 0x100
push eax
call fcn.00404020
add esp, 0xc
mov ecx, 0x4040d0
xor eax, eax
test edi, edi
je 0x47970a
mov dword [edi], ecx
mov dword [esi + 0xf8], eax
movaps xmm0, xmmword [esp + 0x50]
movups xmmword [esi + 0xfc], xmm0
mov dword [esi + 0x114], 0
mov dword [esi + 0x110], 1
mov esi, 1
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0048b34a
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x477320
mov eax, 0x478670
mov edi, dword [esp + 0xc]
test edi, edi
mov esi, dword [ebp + 8]
jne 0x479708
jmp 0x47970a
Function at 0x47df40
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 0x47df78
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 + 0x4c817c]
inc esi
cmp ecx, esi
jne 0x47df60
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x47ed68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [0x4d100c]
xor esi, ebp
mov dword [ebp - 8], esi
mov esi, 0x7fffffff
cmp edx, esi
cmovb esi, edx
lea edx, [ebp - 0xc]
mov dword [edx], 0xffffffff
push 0
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47edb1
mov esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
jne 0x47edb4
int3
xor esi, esi
dec esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048b34a
mov eax, esi
add esp, 8
pop esi
pop ebp
ret

Function at 0x47edc6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4d100c]
xor ecx, ebp
mov esi, 0x7fffffff
cmp eax, esi
cmovb esi, eax
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0xffffffff
push 0
push eax
push esi
push ebx
push edi
call ecx
test eax, eax
je 0x47ee4a
mov esi, ebx
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x47ee31
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x47ee5c
mov ebx, esi
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x47edf9
cmp ebx, 0xffffffff
je 0x47ee61
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x47ee36
mov ebx, dword [ebp - 0x14]
jmp 0x47ee36
int3

Function at 0x47f444
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xac
mov esi, dword [ebp + 8]
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call fcn.0047f33c
add esp, 0x10
or edx, eax
jne 0x47f4c7
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
jne 0x47f4c7
push 2
call fcn.00410640
add esp, 4
test al, al
je 0x47f4c5
call fcn.00453230
lea esi, [ebp - 0xb4]
mov ecx, esi
push eax
push 2
push 0xfb
push str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
call fcn.004533d0
lea eax, [ebp - 0xac]
push 0xc
push 0x4c860a
push eax
call fcn.00413e90
add esp, 0xc
mov ecx, esi
call fcn.00453480
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0xac
pop esi
pop ebx
pop ebp
ret
Function at 0x4805fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov edi, dword [ebp + 8]
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x48061f
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48064b
mov ebx, eax
cmp byte [ebp + 0xc], 0
jne 0x480640
mov eax, ebx
and eax, 0x400
jne 0x4806f1
and ebx, 0x10
shr ebx, 4
jmp 0x4806f3
push 2
call fcn.00410640
add esp, 4
test al, al
je 0x4806f1
call fcn.00453230
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x82
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.004533d0
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.00413e90
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x48069f
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc4]
push eax
push edi
push ebx
call fcn.00439450
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4806c4
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push esi
call fcn.00413e90
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x4806e6
push dword [ebp - 0xc4]
call fcn.0048ae3c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00453480
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x48070a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov edi, dword [ebp + 8]
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x48072d
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x480746
test eax, 0x410
sete bl
jmp 0x4807eb
push 2
call fcn.00410640
add esp, 4
test al, al
je 0x4807e9
call fcn.00453230
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x75
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.004533d0
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.00413e90
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x480797
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc4]
push eax
push edi
push ebx
call fcn.00439450
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4807bc
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push esi
call fcn.00413e90
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x4807de
push dword [ebp - 0xc4]
call fcn.0048ae3c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00453480
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x480802
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, dword [ebp + 8]
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x480825
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x480858
and eax, 0x410
cmp eax, 0x410
jne 0x480858
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00480932
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x480862
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x48091b
push 2
call fcn.00410640
add esp, 4
test al, al
je 0x480919
call fcn.00453230
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x95
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.004533d0
lea eax, [ebp - 0xb0]
push 0xb
push str.DeleteFile
push eax
call fcn.00413e90
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4808c7
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.00439450
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4808ec
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.00413e90
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x48090e
push dword [ebp - 0xc4]
call fcn.0048ae3c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00453480
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x480932
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov edi, ecx
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x480954
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x480a11
push 2
call fcn.00410640
add esp, 4
test al, al
je 0x480a11
call fcn.00453230
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x30
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.004533d0
lea eax, [ebp - 0xb0]
push 0x10
push str.RemoveDirectory
push eax
call fcn.00413e90
add esp, 0xc
movzx ecx, byte [edi + 0xb]
test cl, cl
mov dword [ebp - 0xc8], eax
jns 0x4809ba
mov ecx, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc4]
push ecx
push edi
push ebx
call fcn.00439450
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4809df
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push dword [ebp - 0xc8]
call fcn.00413e90
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x480a06
push dword [ebp - 0xc4]
call fcn.0048ae3c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00453480
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x482430
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [esp + 0x18], eax
mov edi, dword [ecx + 0x38]
test edi, edi
jne 0x4824f5
mov esi, ecx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0x9ffffff
lea edx, [esp + 0xc]
cmp edx, str.discarded
ja 0x482487
lea eax, [esp + 0x15]
cmp eax, str.discarded
ja 0x48250c
mov dword [esp + 0x10], 0x65647261
mov dword [esp + 0xc], 0x63736964
mov word [esp + 0x14], 0x64
mov edi, esp
mov ecx, esi
push edx
push edi
call fcn.004823a0
push 0x48
call fcn.0048ae0c
add esp, 4
mov ebx, eax
mov ecx, eax
push edi
push dword [esi + 0x28]
lea eax, [esp + 0x14]
push eax
call fcn.004827c0
mov edi, dword [esi + 0x38]
mov dword [esi + 0x38], ebx
test edi, edi
je 0x4824df
mov ecx, edi
call fcn.004828b0
push edi
call fcn.0048ae3c
add esp, 4
cmp byte [esp + 0x17], 0
jns 0x4824f2
push dword [esp + 0xc]
call fcn.0048ae3c
add esp, 4
mov edi, dword [esi + 0x38]
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.0048b34a
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.char_traits::copy_overlapped_range
push str.__s2_____s1____s2_____s1__n
push 0xf1
push str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
push str._s:_d:_assertion__s_failed:__s
call fcn.00414c6c
int3
Function at 0x486070
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 [0x4d100c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
jne 0x48618d
mov dword [ebp - 0x14], 0x486230
lea eax, [ebp - 0x14]
push 0
push eax
push 0x486050
push 0x4e5184
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4861a1
cmp dword [0x4e5188], 0
jne 0x48618d
push dword [0x4e518c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48618d
mov esi, eax
push 0x4e5190
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x4e5194]
mov ebx, dword [0x4e5198]
mov eax, dword [0x4e519c]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4e51a0]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4e51a4]
mov dword [ebp - 0x24], eax
push 0x4e5190
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x48612b
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 0x486140
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 0x486156
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 0x48616f
mov edi, dword [esi + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x486184
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
push esi
call fcn.00438430
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.0049e294
int3

Function at 0x4861b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x486230
lea eax, [ebp - 0x14]
push 0
push eax
push 0x486050
push 0x4e5184
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x48622a
xor esi, esi
cmp dword [0x4e5188], 0
jne 0x486216
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x4e518c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x486216
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0049e294
int3
Function at 0x486250
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x486230
lea eax, [ebp - 0x14]
push 0
push eax
push 0x486050
push 0x4e5184
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x48633d
mov esi, dword [ebp + 0x10]
cmp dword [0x4e5188], 0
je 0x4862a8
mov ecx, esi
call dword [section..00cfg]
push dword [ebp + 0xc]
call esi
add esp, 4
xor esi, esi
jmp 0x4862f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x4e518c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x486308
mov ebx, dword [ebp + 8]
push 0x4e5190
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [ebx*4 + 0x4e5194], esi
push 0x4e5190
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 0xc]
mov dword [edi + ebx*4], eax
mov esi, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x14
push 1
call fcn.004384b0
add esp, 8
test eax, eax
je 0x486294
mov edi, eax
push eax
push dword [0x4e518c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4862c9
push edi
call fcn.00438430
add esp, 4
jmp 0x486294
call fcn.0049e294
int3

Function at 0x488854
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00480802
Function at 0x488c00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x2010
call fcn.0048c0c0
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4d5228]
cmp eax, 0xffffffff
je 0x488e33
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x488e33
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.0048e500
add esp, 0xc
mov ecx, dword [0x4d5228]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x2014], ecx
push ecx
call fcn.0048ada0
add esp, 8
test ebx, ebx
je 0x488c7b
push ebx
call fcn.0048ae7c
add esp, 4
mov ecx, 0x101
lea esi, [ebp - 0x2010]
nop word cs:[eax + eax]
mov dword [ebp - 0x2018], ecx
mov eax, dword [0x4e61cc]
mov ecx, dword [0x4d5294]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x488dd9
mov ebx, dword [0x4e61c8]
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x488ccf
mov ecx, ebx
call fcn.00456530
push 0x1000
push 0x4e51c8
lea eax, [ebp - 0x1810]
push eax
call fcn.0048e500
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 0x800
push 0xff
push esi
call fcn.0048ea80
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x1804]
nop word [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 0x488d10
mov ecx, esi
lea edx, [ebp - 0x1810]
push 1
push 0x10
call fcn.00488e50
add esp, 8
mov ebx, 4
xor eax, eax
jmp 0x488d5b
add ebx, 8
cmp ebx, 0x804
je 0x488dc0
movzx edx, word [ebp + ebx - 0x2010]
mov edi, dword [ebp + edx*8 - 0x810]
test edi, edi
je 0x488d50
mov ecx, edx
shl ecx, 4
cmp dword [ebp + ecx - 0x1810], 0
je 0x488d50
mov esi, dword [ebp + edx*8 - 0x80c]
cmp esi, dword [ebp + ecx - 0x1808]
jne 0x488d50
mov ecx, dword [ebp + ecx - 0x180c]
test ecx, ecx
je 0x488d50
mov dword [ebp + edx*8 - 0x810], 0
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov al, 1
jmp 0x488d50
mov ecx, dword [ebp - 0x2018]
dec ecx
je 0x488e1e
test al, 1
lea esi, [ebp - 0x2010]
jne 0x488c90
jmp 0x488e23
push 0x4e61cc
call fcn.0048ae81
add esp, 4
cmp dword [0x4e61cc], 0xffffffff
jne 0x488cb7
push 4
call fcn.0048ae0c
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.00456520
mov dword [0x4e61c8], ebx
push 0x4e61cc
call fcn.0048aefb
add esp, 4
jmp 0x488cb7
call fcn.0043fb20
push 2
push dword [ebp - 0x2014]
call fcn.0048ada0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
add esp, 0x2010
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x48b575
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4b7320
push esi
call fcn.004a941f
pop ecx
pop ecx
test eax, eax
jne 0x49c84b
xor al, al
jmp 0x49c8c8
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.0049c5ac
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x49c885
push dword [ebp - 0x210]
call fcn.00438430
xor al, al
jmp 0x49c8c6
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x49c88b
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x49c8ab
push edx
call fcn.0049c76f
pop ecx
test al, al
je 0x49c876
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x49c8b9
mov bl, 1
push dword [ebp - 0x210]
call fcn.00438430
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048b34a
leave
ret
Function at 0x49de47
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x4d5c78]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49de87
cmp byte [ebx], 0xa
jne 0x49de87
or byte [edi + eax + 0x28], 4
jmp 0x49de8c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x49df8b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49df6e
inc eax
cmp dl, 0xd
je 0x49deb8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49dede
cmp eax, ecx
jae 0x49deec
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x49dea0
jmp 0x49df8b
push 0
lea eax, [ebp - 0x10]
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 0x49df69
cmp dword [ebp - 0x10], 0
je 0x49df69
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d5c78]
test byte [eax + edi + 0x28], 0x48
je 0x49df43
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49df2e
mov byte [esi], dl
jmp 0x49df3f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d5c78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49df8b
cmp byte [ebp - 1], 0xa
jne 0x49df52
cmp esi, ebx
jne 0x49df52
mov byte [esi], 0xa
jmp 0x49df8a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a847d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49df8b
mov byte [esi], 0xd
jmp 0x49df8a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d5c78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49df88
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49df8b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret