joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40223f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 4
mov eax, 0x55d1a5
call fcn.0052eaed
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40225c
xor al, al
jmp 0x402340
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [eax + 0x10], ebx
jne 0x4022e4
push 0x18
call fcn.0041285f
pop ecx
test eax, eax
je 0x40227d
mov ecx, eax
call fcn.00401abd
mov esi, eax
jmp 0x40227f
mov esi, ebx
mov dword [ebp + 0xc], esi
test esi, esi
je 0x402289
inc dword [esi + 4]
push 0x10
mov dword [ebp - 4], ebx
call dword [sym.imp.gdiplus.dll_GdipAlloc]
test eax, eax
je 0x4022a5
push edi
push dword [ebp + 8]
mov ecx, eax
call fcn.00401a1e
jmp 0x4022a7
mov eax, ebx
mov dword [esi + 0xc], eax
test eax, eax
je 0x4022d7
lea edx, [ebp + 0xc]
lea ecx, [ebp + 8]
call fcn.00403078
mov ecx, dword [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00403032
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4022d5
call fcn.004030c5
mov bl, 1
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004030c5
jmp 0x40233e
cmp dword [eax + 0x14], 8
jb 0x4022ec
mov eax, dword [eax]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x402255
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x402255
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x10]
push eax
push esi
call fcn.004021b9
push dword [ebp + 0xc]
mov bl, al
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, bl
call fcn.0052eabb
ret 0xc
Function at 0x40396c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x5bb5cc], 2
push esi
mov esi, ecx
jne 0x4039e9
push edi
call fcn.004056a1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x4039e8
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
mov edx, edi
lea ecx, [ebp - 8]
call fcn.00406343
mov esi, dword [ebp - 8]
pop ecx
pop ecx
cmp esi, dword [edi + 4]
je 0x4039e8
push dword [esi]
push 0
call dword [sym.imp.USER32.dll_KillTimer]
push esi
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call fcn.00405778
mov eax, dword [edi]
cmp eax, dword [edi + 4]
jne 0x4039e8
mov ecx, edi
call fcn.00405cd9
push edi
call fcn.0052558c
pop ecx
call fcn.004056a1
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403de9
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xc
mov eax, 0x55d2df
call fcn.0052eaed
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 8]
mov ebx, eax
mov dword [ebp - 0x10], ebx
call fcn.004056cb
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x403e4c
push 8
call fcn.0041285f
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x403e38
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0040629f
mov dword [esi], eax
jmp 0x403e3a
mov esi, eax
or dword [ebp - 4], 0xffffffff
call fcn.004056cb
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405a82
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi]
je 0x403e66
xor al, al
jmp 0x403e91
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.00406612
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0040663e
push ebx
call dword [sym.imp.USER32.dll_SetCapture]
mov al, 1
call fcn.0052eabb
ret
Function at 0x403e97
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x5bb5d4], 2
push edi
mov edi, ecx
je 0x403eb0
xor al, al
jmp 0x403f34
push esi
call fcn.004056cb
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x403ee9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov dword [ebp - 4], eax
mov ecx, esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00405a82
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
je 0x403ee9
cmp dword [eax + 0x14], edi
je 0x403eed
xor al, al
jmp 0x403f33
push eax
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0040583d
cmp dword [esi + 4], 0
jne 0x403f1c
mov ecx, esi
call fcn.00405804
push esi
call fcn.0052558c
pop ecx
call fcn.004056cb
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp byte [ebp + 8], 0
je 0x403f27
xor eax, eax
inc eax
jmp 0x403f33
call dword [sym.imp.USER32.dll_ReleaseCapture]
neg eax
sbb eax, eax
neg eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x403f55
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [0x5bb5d4], 2
mov dword [ebp - 4], ecx
je 0x403f6a
xor eax, eax
jmp 0x403f9c
push esi
call fcn.004056cb
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x403f94
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.00405a82
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
jne 0x403f98
xor eax, eax
jmp 0x403f9b
mov eax, dword [eax + 0x14]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405bc5
Capabilities:
Allocate thread local storage

Disassembly:
push 0
push 1
push 0x5bb5cc
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x405c0d
push esi
push 4
call fcn.0041285f
mov esi, eax
pop ecx
test esi, esi
je 0x405bf1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x405bf3
xor esi, esi
mov dword [0x5bb5d0], esi
mov dword [0x5bb5cc], 2
pop esi
ret
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x5bb5cc], 2
jne 0x405c05
ret

Function at 0x405c17
Capabilities:
Allocate thread local storage

Disassembly:
push 0
push 1
push 0x5bb5d4
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x405c5f
push esi
push 4
call fcn.0041285f
mov esi, eax
pop ecx
test esi, esi
je 0x405c43
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x405c45
xor esi, esi
mov dword [0x5bb5d8], esi
mov dword [0x5bb5d4], 2
pop esi
ret
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x5bb5d4], 2
jne 0x405c57
ret
Function at 0x407036
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x110
xor ebx, ebx
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.005278d0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407086
cmp dword [ebp - 0x114], 6
jb 0x407086
inc ebx
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret

Function at 0x4089c3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x5c
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call fcn.005278d0
add esp, 0xc
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push esi
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x118
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.005278d0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x11c], 6
jne 0x408a39
cmp byte [ebp - 6], cl
jne 0x408a46
mov bl, cl
cmp dword [ebp - 0x11c], 6
movzx ebx, bl
cmova ebx, ecx
mov ecx, str.Tahoma
test bl, bl
mov eax, 0x58173c
cmove eax, ecx
push eax
lea eax, [esi + 0x1c]
push 0x20
push eax
call fcn.0052839d
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
pop ebx
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret

Function at 0x40cba7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.0040cf47
test al, al
jne 0x40cbbb
mov ecx, esi
pop esi
jmp fcn.0040396c
pop esi
ret
Function at 0x40cf47
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55d97e
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5b38f0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x5b38f0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0x94]
xor ebx, ebx
inc ebx
cmp eax, 2
je 0x40d026
cmp eax, ebx
je 0x40d028
cmp eax, 4
je 0x40cfaf
cmp eax, 3
je 0x40cfaf
xor bl, bl
jmp 0x40d10f
and dword [esp + 0x10], 0
and dword [esp + 0x50], 0
lea ecx, [esp + 0x10]
cmp eax, 3
jne 0x40cfcb
mov byte [esp + 0x14], bl
lea eax, [edi + 0x68]
jmp 0x40cfd3
mov byte [esp + 0x14], 0
lea eax, [edi + 0x64]
push eax
call fcn.0040d2da
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40d00b
mov al, byte [esi + 0x2f]
test al, al
je 0x40d00b
mov al, byte [esi + 0x2e]
test al, al
je 0x40d00d
push dword [esp + 0x14]
mov ecx, edi
call fcn.0040ce68
mov ecx, edi
call fcn.0040cf30
neg al
sbb al, al
inc al
mov bl, al
jmp 0x40d00d
xor bl, bl
or dword [esp + 0x50], 0xffffffff
test esi, esi
je 0x40d10b
mov ecx, esi
call fcn.00406578
jmp 0x40d10b
cmp eax, ebx
sete byte [esp + 0x10]
cmp byte [edi + 0x2f], 0
je 0x40d109
and dword [esp + 0x18], 0
lea eax, [esp + 0x18]
and dword [esp + 0x1c], 0
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x18]
mov ecx, edi
push eax
mov eax, dword [edi]
call dword [eax + 8]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00403b1f
push dword [esp + 0x1c]
lea esi, [edi + 0x98]
push dword [esp + 0x1c]
lea edi, [esp + 0x38]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x38]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40d116
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x6c]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, eax
lea edi, [esp + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x84], 0
je 0x40d0ce
cmp byte [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
je 0x40d0c8
cmp eax, dword [esp + 0x24]
jmp 0x40d0dd
cmp eax, dword [esp + 0x2c]
jmp 0x40d0e6
cmp byte [esp + 0x10], 0
mov eax, dword [esp + 0x18]
je 0x40d0e2
cmp eax, dword [esp + 0x20]
setl al
jmp 0x40d0e9
cmp eax, dword [esp + 0x28]
setge al
test al, al
je 0x40d116
push dword [esp + 0x10]
mov ecx, edi
call fcn.0040ce89
mov ecx, edi
call fcn.0040cf30
neg al
sbb al, al
inc al
mov bl, al
jmp 0x40d10b
xor bl, bl
test bl, bl
jne 0x40d116
and dword [edi + 0x94], 0
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret
Function at 0x414f4f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
dec esi
jne 0x414f57
mov dword [edx*4 + 0x5cfc20], ecx
inc edx
cmp edx, 0x100
jb 0x414f52
mov esi, 0x800
jmp 0x414f9e
mov ecx, dword [edx*4 + 0x5cf820]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x5cfc20]
mov dword [edx*4 + 0x5cfc20], ecx
inc edx
cmp edx, esi
jb 0x414f82
mov dword [0x5bb63c], 0x41ad60
call fcn.0041af27
mov ecx, dword [0x5bb63c]
test eax, eax
mov edx, 0x41adfd
cmove ecx, edx
mov dword [0x5bb63c], ecx
pop esi
ret

Function at 0x417e7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x100
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
or esi, edi
mov eax, esi
add ebx, ebx
shr eax, 7
mov ecx, edi
and eax, 1
and ecx, ebx
push eax
mov eax, esi
add ecx, edi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
lea edx, [edx + eax*2]
call fcn.00417dec
mov edx, dword [ebp - 8]
add esi, esi
mov eax, esi
xor eax, ebx
not eax
and edi, eax
pop ecx
cmp esi, 0x10000
jb 0x417e97
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417f1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, edx
xor edi, edi
mov ebx, ecx
or esi, 0x100
mov ecx, esi
mov eax, esi
shr ecx, 7
add esi, esi
shr eax, 8
and ecx, 1
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx edx, word [ebx + eax*2]
mov eax, dword [ebp + 8]
shr edx, 4
xor edx, ecx
add edi, dword [eax + edx*4]
cmp esi, 0x10000
jb 0x417f2c
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x417f61
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x100
mov dword [ebp - 4], ecx
xor edi, edi
or edx, esi
add ebx, ebx
mov ecx, esi
and ecx, ebx
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add edi, dword [eax + ecx*4]
mov ecx, edx
xor ecx, ebx
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x417f77
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41804d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
inc eax
mov ecx, edx
shl eax, cl
push edi
or esi, eax
xor edi, edi
cmp esi, 1
je 0x41808d
mov eax, dword [ebp + 0xc]
mov edx, esi
and esi, 1
shr edx, 1
neg esi
sar esi, 4
and esi, 0x7f
movzx ecx, word [ebx + edx*2]
shr ecx, 4
xor ecx, esi
mov esi, edx
add edi, dword [eax + ecx*4]
cmp esi, 1
jne 0x41806b
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x418094
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor esi, esi
inc edi
test ebx, ebx
je 0x4180d9
mov eax, dword [ebp + 8]
mov edx, eax
movzx ecx, word [ecx + edi*2]
and edx, 1
shr eax, 1
add edi, edi
mov dword [ebp + 8], eax
or edi, edx
mov eax, edx
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add esi, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
dec ebx
jne 0x4180a9
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bc95
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push edi
sub eax, 3
je 0x41bd50
sub eax, 3
je 0x41bd3f
dec eax
je 0x41bcef
dec eax
dec eax
je 0x41bcda
dec eax
je 0x41bcc6
dec eax
je 0x41bcc6
dec eax
jne 0x41bd78
mov eax, dword [ebp + 0x14]
push 0x40
pop ecx
mov word [eax], cx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
jmp 0x41bd78
mov eax, dword [ebp + 0x14]
push 0x13
pop ecx
mov word [eax], cx
mov dword [eax + 8], 0x80
jmp 0x41bd78
mov esi, dword [ebp + 0x14]
push 0x15
pop eax
push ebx
mov word [esi], ax
mov eax, dword [ebp + 8]
push 0x80
push 3
push ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
push 1
push SysReAllocString
push dword [ecx + eax*4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41bd38
lea eax, [esi + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41bd78
mov ebx, 0x80004005
jmp 0x41bd78
mov eax, dword [ebp + 0x14]
push 0xb
pop ecx
mov word [eax], cx
xor ecx, ecx
mov word [eax + 8], cx
jmp 0x41bd78
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 8
pop eax
mov word [edi], ax
mov edx, dword [esi + 0xc]
mov edx, dword [edx + ecx*4]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx - 0xc]
lea ecx, [edx + ecx*2]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi + 8], eax
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x10
Function at 0x41d83e
Capabilities:
Delete file
Move file

Disassembly:
push 8
mov eax, 0x55e400
call fcn.0052eaed
mov edi, ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
xor ebx, ebx
call fcn.0041cb95
mov dword [ebp - 4], ebx
mov ecx, edi
push dword [ebp + 8]
call fcn.0041d97b
test eax, eax
jne 0x41d963
push ebx
push dword [ebp + 8]
call fcn.0052b3d2
pop ecx
pop ecx
test eax, eax
jne 0x41d966
call fcn.0040adc1
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a3a4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s.tmp
push eax
call fcn.004210a0
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [ebp + 8]
call fcn.0052b486
pop ecx
pop ecx
test eax, eax
je 0x41d8e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x58b9d0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0041beb9
pop ecx
mov byte [ebp - 4], 2
jmp 0x41d914
lea ecx, [esi - 0x10]
call fcn.0040b4b1
jmp 0x41d966
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp + 8]
mov ecx, edi
call fcn.0041d97b
test eax, eax
jne 0x41d95b
push 0x58b9d0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0041beb9
pop ecx
mov byte [ebp - 4], 3
push dword [eax]
mov ecx, edi
call fcn.0041d97b
mov byte [ebp - 4], 1
mov edi, eax
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040b4b1
test edi, edi
je 0x41d8dd
push 0x58b9d0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0041beb9
pop ecx
push 5
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040b4b1
lea ecx, [esi - 0x10]
call fcn.0040b4b1
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040b4b1
mov eax, ebx
call fcn.0052eabb
ret 4
Function at 0x41dc4b
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0x10
mov eax, 0x55e4cf
call fcn.0052eaed
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
call fcn.0040adc1
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a3a4
mov dword [ebp - 4], ebx
call fcn.0040adc1
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a3a4
mov byte [ebp - 4], 1
push dword [ebp + 8]
call fcn.0041cdf6
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0041cd7d
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0041e803
mov ecx, eax
call fcn.0041e7bb
lea ecx, [ebp - 0x10]
test eax, eax
jle 0x41dcb9
lea eax, [ebp - 0x14]
push eax
call fcn.0041c0b0
jmp 0x41dcc4
mov eax, dword [edi]
push dword [eax - 0xc]
push eax
call fcn.0041cc19
mov esi, dword [ebp - 0x10]
mov ecx, edi
push esi
call fcn.0041de53
test eax, eax
jne 0x41ddd1
push ebx
push esi
call fcn.0052b3d2
pop ecx
pop ecx
test eax, eax
jne 0x41de36
call fcn.0040adc1
push eax
lea ecx, [ebp + 8]
call fcn.0040a3a4
push esi
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push str._s.tmp
push eax
call fcn.004210a0
mov edi, dword [ebp + 8]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.0052b486
pop ecx
pop ecx
test eax, eax
je 0x41dd52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x58b9d0
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0041beb9
pop ecx
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
jmp 0x41dd82
lea ecx, [edi - 0x10]
call fcn.0040b4b1
xor ebx, ebx
jmp 0x41de36
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
push esi
call fcn.0041de53
test eax, eax
jne 0x41ddc5
push 0x58b9d0
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0041beb9
pop ecx
mov byte [ebp - 4], 4
mov ecx, ebx
push dword [eax]
call fcn.0041de53
mov byte [ebp - 4], 2
mov ebx, eax
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040b4b1
test ebx, ebx
je 0x41dd43
push 0x58b9d0
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0041beb9
pop ecx
push 5
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040b4b1
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 1
call fcn.0040b4b1
push ecx
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041e9ef
cmp eax, 0xffffffff
je 0x41de33
lea eax, [esi - 0x10]
push eax
call fcn.0041c6b9
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
lea ecx, [ebp + 8]
mov dword [esp], str.TSVulFw
push str.TSVulFw_Cache
call fcn.0041e85c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp + 8]
test eax, eax
je 0x41de2b
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push edi
push esi
call ebx
test eax, eax
jne 0x41de2b
push 5
push edi
push esi
call ebx
lea ecx, [edi - 0x10]
call fcn.0040b4b1
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040b4b1
lea ecx, [esi - 0x10]
call fcn.0040b4b1
mov eax, ebx
call fcn.0052eabb
ret 4
Function at 0x41e009
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], eax
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
push ecx
mov edi, edx
push edi
push ebx
push eax
jmp 0x41e03c
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
je 0x41e048
push esi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41e02a
jmp 0x41e04b
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e054
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x55e515
call fcn.0052eaed
mov edi, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0041cb95
xor esi, esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41e0c9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41e0c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41e0c9
lea ecx, [ebp - 0x10]
call fcn.0041df78
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x41e0cc
mov ecx, eax
call fcn.0041e054
test eax, eax
je 0x41e0cc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41e0c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41e0cc
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040b4b1
mov eax, esi
call fcn.0052eabb
ret

Function at 0x41e27a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], eax
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
push ecx
mov edi, edx
push edi
push ebx
push eax
jmp 0x41e2ad
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
je 0x41e2b9
push esi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41e29b
jmp 0x41e2bc
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421258
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push edi
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x4c], edx
mov dword [ecx + 0x20], edx
call fcn.0042123e
lea esi, [ecx + 0x70]
push 8
mov ecx, edx
pop edi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
dec edi
jne 0x421272
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jb 0x42126d
pop edi
pop esi
ret