joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ced
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x405d1b
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x405d12
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x405d0a
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x405d3c
mov esp, ebp
pop ebp
ret

Function at 0x405d40
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x405dac
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x405dd9
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x405dc8
xor ecx, eax
xor edx, ebx
dec edi
jne 0x405db9
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x405dff
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x405da0
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x405e2b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406e50
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x406ed0
push edi
call dword [0x43dde8]
add esp, 4
test eax, eax
jbe 0x406ed0
test esi, esi
je 0x406e8e
cmp esi, 0xffffffff
je 0x406e8e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x406f12
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x406ebc
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x406ed0
jmp 0x406ecb
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x406ed0
mov ebp, 1
test esi, esi
je 0x406f12
cmp esi, 0xffffffff
je 0x406f12
test ebp, ebp
jne 0x406f49
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x406f1f
call edi
test eax, eax
je 0x406f12
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x406f49
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x406efa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x406f12
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x406f49
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x406f2c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x43dde8]
inc eax
push eax
call fcn.004067b0
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x4076c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4076de
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4076d3
pop esi
ret

Function at 0x416d75
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x416da3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x416dc1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00416cdb
jmp 0x416dc1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x416dc1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00416cdb
test edi, edi
mov eax, edi
jne 0x416dab
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4022fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x439bc0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402366
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b4a
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00403a65
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40237e
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e72
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40232e
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406114
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402e72
jmp 0x402368

Function at 0x403ee0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x43aaf0], eax
push 0x27
push 0x439618
push 0x547
mov esi, 0x439640
push esi
call fcn.0040239c
push 0x8aafdc01
push dword [0x43aaf0]
call fcn.004022fd
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x403f40
call fcn.00403de5
xor eax, eax
pop ecx
ret 0x10
Function at 0x403ed9
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [edi + 0x3c]
add ecx, edi
movzx edx, word [ecx + 0x14]
push esi
lea esi, [edx + ecx + 0x18]
movzx edx, word [ecx + 6]
xor eax, eax
test edx, edx
jbe 0x403f07
lea ecx, [esi + 0x10]
mov esi, dword [ecx]
test esi, esi
je 0x403f01
mov eax, dword [ecx + 4]
add eax, esi
add eax, edi
add ecx, 0x28
dec edx
jne 0x403ef4
sub eax, edi
pop esi
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0x384
mov eax, dword [0x42f278]
xor eax, esp
mov dword [esp + 0x380], eax
mov eax, dword [esp + 0x390]
push ebx
mov ebx, dword [esp + 0x38c]
push ebp
mov ebp, dword [esp + 0x394]
push esi
push edi
mov dword [esp + 0x10], eax
xor eax, eax
push 0x114
mov esi, ecx
push eax
lea ecx, [esp + 0x3c]
push ecx
mov edi, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00416890
push 0x248
lea edx, [esp + 0x158]
push 0
push edx
call fcn.00416890
add esp, 0x18
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, 0x4370cc
mov dword [0x4370c8], 0
mov eax, esi
sub ecx, esi
jmp 0x4010a0
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4010a0
mov eax, dword [esp + 0x10]
push 0x1000
mov dword [0x4372dc], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
mov dword [0x4372d4], 0
mov dword [0x4372d8], edi
mov dword [0x4372e0], ebp
mov dword [0x4372e4], eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
push 0x1000
push 8
mov ebp, eax
call ebx
push eax
call esi
mov edi, eax
mov eax, dword [0x43781c]
test eax, eax
mov dword [esp + 0x10], edi
je 0x401134
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x800
push ebp
push 0x88a
push eax
call esi
mov eax, dword [0x43781c]
test eax, eax
je 0x401134
push 0x800
push edi
push 0x88b
push eax
call esi
push 1
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [esp + 0x34]
lea eax, [esp + 0x20]
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [esp + 0x38], 6
jb 0x4011f0
mov edi, edi
movzx ecx, word [eax + str.Global_]
mov word [esp + eax + 0x148], cx
add eax, 2
test cx, cx
jne 0x401180
mov eax, 0x4370cc
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4011a0
lea edi, [esp + 0x148]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4011c0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4011c0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
jmp 0x401207
movzx ecx, word [eax + 0x4370cc]
mov word [esp + eax + 0x148], cx
add eax, 2
test cx, cx
jne 0x4011f0
test ebp, ebp
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x401219
push ebp
push 0
call ebx
push eax
call esi
test edi, edi
je 0x401225
push edi
push 0
call ebx
push eax
call esi
mov ecx, dword [esp + 0x390]
pop edi
pop esi
pop ebp
pop ebx
mov eax, 1
xor ecx, esp
mov dword [0x4370c8], eax
call fcn.004104f3
add esp, 0x384
ret
Function at 0x4016f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
push eax
push 2
lea edi, [esi + 0x10]
push 1
push edi
mov dword [esp + 0x20], edi
call fcn.004109fa
add esp, 0x10
cmp eax, 2
je 0x40177c
push 0x40
push str.fread
push 0x4372f0
mov dword [0x4372ec], 0xd5
call fcn.00410502
push 0x104
xor esi, esi
push str....._src_sftlcmn_sftl_arc1.c
push 0x437580
mov word [0x437370], si
mov dword [0x437370], 2
mov word [0x43757e], si
call fcn.00410502
mov word [0x437786], si
add esp, 0x18
mov dword [0x437374], 0x10b
mov word [edi], si
mov ax, si
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor ebp, ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
lea edi, [ebp + 1]
mov ecx, dword [esi]
push ecx
call fcn.00410627
add esp, 4
mov ebx, eax
push ebp
and eax, 0x7f
cdq
push edi
push edx
push eax
call fcn.004199c0
add dword [esi + 0x18], eax
push 0
push 0x80
adc dword [esi + 0x1c], edx
push ebp
push edi
call fcn.004199c0
test bl, bl
mov edi, eax
mov ebp, edx
jns 0x401787
cmp ebx, 0xffffffff
jne 0x40182f
push 0x40
push str.fgetc
push 0x4372f0
mov dword [0x4372ec], 0xd5
call fcn.00410502
push 0x104
xor esi, esi
push str....._src_sftlcmn_sftl_arc1.c
push 0x437580
mov word [0x437370], si
mov dword [0x437370], 1
mov word [0x43757e], si
call fcn.00410502
mov eax, dword [esp + 0x28]
mov word [0x437786], si
mov word [eax], si
add esp, 0x18
mov dword [0x437374], 0x119
mov ax, si
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x10]
mov ax, word [edx]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402000
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
push edi
mov edi, dword [esi + 0x18]
push edi
call fcn.00410ff7
push edi
mov ebx, eax
call fcn.00410ff7
add esp, 8
test ebx, ebx
mov ebp, eax
je 0x4020ed
test ebp, ebp
je 0x4020ed
mov eax, dword [esi]
push eax
push edi
push 1
push ebx
call fcn.004109fa
add esp, 0x10
cmp eax, edi
je 0x402093
push 0x40
push str.fread
push 0x4372f0
mov dword [0x4372ec], 0xd5
call fcn.00410502
push 0x104
xor esi, esi
push str....._src_sftlcmn_sftl_arc3.c
push 0x437580
mov word [0x437370], si
mov dword [0x437370], edi
mov word [0x43757e], si
call fcn.00410502
mov dword [0x437374], 0xf6
jmp 0x40213c
cmp dword [esi + 0x28], 0
je 0x4020d2
push 0
push 1
mov edx, ebx
mov eax, ebp
mov ecx, esi
call fcn.00401930
cdq
add esp, 8
cmp dword [0x4372ec], 0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
jne 0x402146
mov edx, dword [esp + 0x14]
mov ecx, eax
push ecx
push ebp
push edx
call fcn.00416910
add esp, 0xc
jmp 0x402146
mov eax, dword [esp + 0x14]
push edi
push ebx
push eax
call fcn.00416910
add esp, 0xc
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0
jmp 0x402146
push 0x40
push str.malloc
push 0x4372f0
mov dword [0x4372ec], 0xc9
call fcn.00410502
push 0x104
xor esi, esi
push str....._src_sftlcmn_sftl_arc3.c
push 0x437580
mov word [0x437370], si
mov dword [0x437370], edi
mov word [0x43757e], si
call fcn.00410502
mov dword [0x437374], 0xf4
mov word [0x437786], si
add esp, 0x18
test ebx, ebx
je 0x402153
push ebx
call fcn.00410f1a
add esp, 4
test ebp, ebp
je 0x402160
push ebp
call fcn.00410f1a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402170
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
push edi
mov edi, dword [esi + 0x18]
push edi
call fcn.00410ff7
push edi
mov dword [esp + 0x18], eax
call fcn.00410ff7
push edi
mov ebx, eax
call fcn.00410ff7
mov ebp, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x402324
test ebx, ebx
je 0x402324
test ebp, ebp
je 0x402324
mov ecx, dword [esi]
push ecx
push edi
push 1
push eax
call fcn.004109fa
add esp, 0x10
cmp eax, edi
je 0x40221c
push 0x40
push str.fread
push 0x4372f0
mov dword [0x4372ec], 0xd5
call fcn.00410502
push 0x104
xor esi, esi
push str....._src_sftlcmn_sftl_arc3.c
push 0x437580
mov word [0x437370], si
mov dword [0x437370], edi
mov word [0x43757e], si
call fcn.00410502
mov dword [0x437374], 0x122
jmp 0x402373
cmp dword [esi + 0x28], 0
je 0x402305
mov edx, dword [esp + 0x10]
push 0
push 0
mov eax, ebx
mov ecx, esi
call fcn.00401930
cdq
add esp, 8
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
mov dword [esp + 0x1c], 0x9c4
lea esp, [esp]
mov eax, dword [esi + 4]
cmp eax, 0xb
ja case.0x40225f.9
movzx edx, byte [eax + 0x4023bc]
jmp dword [edx*4 + 0x4023b0]
push edi
push ebx
push ebp
call fcn.00416910
add esp, 0xc
jmp 0x402280
mov eax, dword [esi + 0x60]
push edi
push ebp
push ebx
xor edx, edx
call fcn.00406010
mov dword [esp + 0x14], 0
mov eax, edi
sub eax, dword [esp + 0x14]
cdq
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
cmp eax, 0xb
mov dword [esi + 0x24], edx
ja case.0x4022a4.9
movzx eax, byte [eax + 0x4023d4]
jmp dword [eax*4 + 0x4023c8]
push edi
push ebp
push ebx
call fcn.00416910
add esp, 0xc
jmp 0x4022c5
mov eax, dword [esi + 0x60]
push edi
push ebx
push ebp
xor edx, edx
call fcn.00406010
mov dword [esp + 0x18], 0
mov eax, edi
sub eax, dword [esp + 0x18]
sub dword [esp + 0x1c], 1
cdq
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
jne 0x402250
cmp dword [0x4372ec], 0
jne 0x40237d
mov edx, dword [esp + 0x24]
mov ecx, eax
push ecx
push ebx
push edx
call fcn.00416910
add esp, 0xc
jmp 0x40237d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push edi
push eax
push ecx
call fcn.00416910
add esp, 0xc
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0
jmp 0x40237d
push 0x40
push str.malloc
push 0x4372f0
mov dword [0x4372ec], 0xc9
call fcn.00410502
push 0x104
xor esi, esi
push str....._src_sftlcmn_sftl_arc3.c
push 0x437580
mov word [0x437370], si
mov dword [0x437370], edi
mov word [0x43757e], si
call fcn.00410502
mov dword [0x437374], 0x120
mov word [0x437786], si
add esp, 0x18
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40238e
push eax
call fcn.00410f1a
add esp, 4
test ebx, ebx
je 0x40239b
push ebx
call fcn.00410f1a
add esp, 4
test ebp, ebp
je 0x4023a8
push ebp
call fcn.00410f1a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x402470
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x4030
call fcn.00416c80
mov eax, dword [0x42f278]
xor eax, esp
mov dword [esp + 0x4028], eax
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
push edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
call fcn.004042a0
add esp, 4
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x402539
push 0x40
push str.fopen
push 0x4372f0
mov dword [0x4372ec], 0xde
call fcn.00410502
add esp, 0xc
cmp edi, esi
mov word [0x437370], si
mov dword [0x437370], 1
je 0x4024f2
push 0x104
push edi
push 0x437378
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x437580
mov word [0x43757e], si
call fcn.00410502
add esp, 0xc
mov word [0x437786], si
mov dword [0x437374], 0x17e
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x4028]
xor ecx, esp
call fcn.004104f3
add esp, 0x4030
ret
mov eax, dword [ebx + 0x1c]
cmp eax, esi
mov ebp, dword [ebx + 0x18]
mov dword [esp + 0x1c], eax
jl 0x402717
jg 0x40255d
cmp ebp, esi
jbe 0x402717
jmp 0x40255d
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
jl 0x402572
jg 0x40256b
cmp ebp, 0x2000
jbe 0x402572
mov edi, 0x2000
jmp 0x402579
mov edi, ebp
mov esi, 1
mov eax, dword [ebx]
push eax
push edi
lea ecx, [esp + 0x28]
push 1
push ecx
call fcn.004109fa
add esp, 0x10
cmp eax, edi
jne 0x40262a
cmp dword [ebx + 0x28], 0
je 0x4025c6
mov edx, dword [esp + 0xc]
push edx
push esi
lea edx, [esp + 0x28]
lea eax, [esp + 0x2030]
mov ecx, ebx
call fcn.00401930
add esp, 8
cmp dword [0x4372ec], 0
mov esi, eax
jne 0x402717
jmp 0x4025de
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2030]
push ecx
call fcn.00416910
add esp, 0xc
mov esi, edi
mov edx, dword [esp + 0x10]
push edx
push esi
lea eax, [esp + 0x2030]
push 1
push eax
call fcn.00410b74
add esp, 0x10
cmp eax, esi
jne 0x4026a0
mov eax, dword [esp + 0x1c]
sub ebp, edi
sbb eax, 0
add dword [esp + 0xc], edi
test eax, eax
mov dword [esp + 0x1c], eax
jg 0x402557
jl 0x402717
test ebp, ebp
ja 0x402557
jmp 0x402717
push 0x40
push str.fread
push 0x4372f0
mov dword [0x4372ec], 0xd5
call fcn.00410502
mov eax, dword [esp + 0x20]
xor esi, esi
add esp, 0xc
cmp eax, esi
mov word [0x437370], si
mov dword [0x437370], edi
je 0x402672
push 0x104
push eax
push 0x437378
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x437580
mov word [0x43757e], si
call fcn.00410502
mov word [0x437786], si
mov dword [0x437374], 0x18e
jmp 0x402714
push 0x40
push str.fwrite
push 0x4372f0
mov dword [0x4372ec], 0xe0
call fcn.00410502
mov eax, dword [esp + 0x20]
xor edi, edi
add esp, 0xc
cmp eax, edi
mov word [0x437370], di
mov dword [0x437370], esi
je 0x4026e8
push 0x104
push eax
push 0x437378
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x437580
mov word [0x43757e], di
call fcn.00410502
mov word [0x437786], di
mov dword [0x437374], 0x19c
add esp, 0xc
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00411205
mov ecx, dword [esp + 0x4038]
add esp, 4
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004104f3
add esp, 0x4030
ret
Function at 0x403cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403cbf
or eax, eax
ret
test al, 1
push edi
je 0x403d53
and eax, 0xfffffffe
push eax
push esi
call fcn.00404260
test eax, eax
jne 0x403d53
push 0x40
push str.SetFileAttributes
push 0x4372f0
mov dword [0x4372ec], 0xcb
call fcn.00410502
xor edi, edi
add esp, 0xc
mov word [0x437370], di
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
mov dword [0x437370], eax
je 0x403d1f
push 0x104
push esi
push 0x437378
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x437580
mov word [0x43757e], di
call fcn.00410502
add esp, 0xc
mov word [0x437786], di
mov dword [0x437374], 0xac
or eax, 0xffffffff
pop edi
ret
push esi
call fcn.004041c0
test eax, eax
jne 0x403dda
push 0x40
push str.DeleteFile
push 0x4372f0
mov dword [0x4372ec], 0xcb
call fcn.00410502
xor edi, edi
add esp, 0xc
mov word [0x437370], di
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
mov dword [0x437370], eax
je 0x403da6
push 0x104
push esi
push 0x437378
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x437580
mov word [0x43757e], di
call fcn.00410502
add esp, 0xc
mov word [0x437786], di
mov dword [0x437374], 0xb8
or eax, 0xffffffff
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x4041c0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov esi, 0x32
mov eax, dword [esp + 0x14]
push eax
call ebx
mov edi, eax
cmp edi, 1
je 0x404203
call ebp
cmp eax, 2
je 0x404203
call ebp
cmp eax, 3
je 0x404203
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x32
cmp esi, 0x41a
jb 0x4041d5
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x404260
Capabilities:
Set file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov esi, 0x32
mov eax, dword [esp + 0x14]
push ebp
push eax
call ebx
mov edi, eax
cmp edi, 1
je 0x404294
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x32
cmp esi, 0x41a
jb 0x404273
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x405100
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x42f278]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40520b
mov ecx, 2
cmp dword [esp + 0x14], ecx
jne 0x40520b
mov eax, dword [esp + 8]
cmp eax, 5
jb 0x40520b
jne 0x4051e8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40520b
cmp eax, 1
jne 0x405189
cmp word [esp + 0x118], cx
sbb esi, esi
add esi, eax
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004104f3
add esp, 0x120
ret
cmp eax, ecx
jne 0x4051c9
cmp byte [esp + 0x11e], 1
je 0x4051cb
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x4051cb
cmp word [esp + 0x118], 1
sbb esi, esi
add esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004104f3
add esp, 0x120
ret
jbe 0x40520d
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004104f3
add esp, 0x120
ret
mov ecx, 5
cmp ecx, eax
sbb esi, esi
neg esi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004104f3
add esp, 0x120
ret
xor esi, esi
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004104f3
add esp, 0x120
ret