joyce8/EMBER2024-capa huggingface dataset:
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, 0x43704c
mov dword [0x437048], 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 [0x43725c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
mov dword [0x437254], 0
mov dword [0x437258], edi
mov dword [0x437260], ebp
mov dword [0x437264], 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 [0x43779c]
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 [0x43779c]
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, 0x43704c
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 + 0x43704c]
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 [0x437048], 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 0x437270
mov dword [0x43726c], 0xd5
call fcn.00410502
push 0x104
xor esi, esi
push str....._src_sftlcmn_sftl_arc1.c
push 0x437500
mov word [0x4372f0], si
mov dword [0x4372f0], 2
mov word [0x4374fe], si
call fcn.00410502
mov word [0x437706], si
add esp, 0x18
mov dword [0x4372f4], 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 0x437270
mov dword [0x43726c], 0xd5
call fcn.00410502
push 0x104
xor esi, esi
push str....._src_sftlcmn_sftl_arc1.c
push 0x437500
mov word [0x4372f0], si
mov dword [0x4372f0], 1
mov word [0x4374fe], si
call fcn.00410502
mov eax, dword [esp + 0x28]
mov word [0x437706], si
mov word [eax], si
add esp, 0x18
mov dword [0x4372f4], 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 0x437270
mov dword [0x43726c], 0xd5
call fcn.00410502
push 0x104
xor esi, esi
push str....._src_sftlcmn_sftl_arc3.c
push 0x437500
mov word [0x4372f0], si
mov dword [0x4372f0], edi
mov word [0x4374fe], si
call fcn.00410502
mov dword [0x4372f4], 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 [0x43726c], 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 0x437270
mov dword [0x43726c], 0xc9
call fcn.00410502
push 0x104
xor esi, esi
push str....._src_sftlcmn_sftl_arc3.c
push 0x437500
mov word [0x4372f0], si
mov dword [0x4372f0], edi
mov word [0x4374fe], si
call fcn.00410502
mov dword [0x4372f4], 0xf4
mov word [0x437706], 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 0x437270
mov dword [0x43726c], 0xd5
call fcn.00410502
push 0x104
xor esi, esi
push str....._src_sftlcmn_sftl_arc3.c
push 0x437500
mov word [0x4372f0], si
mov dword [0x4372f0], edi
mov word [0x4374fe], si
call fcn.00410502
mov dword [0x4372f4], 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 [0x43726c], 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 0x437270
mov dword [0x43726c], 0xc9
call fcn.00410502
push 0x104
xor esi, esi
push str....._src_sftlcmn_sftl_arc3.c
push 0x437500
mov word [0x4372f0], si
mov dword [0x4372f0], edi
mov word [0x4374fe], si
call fcn.00410502
mov dword [0x4372f4], 0x120
mov word [0x437706], 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 0x437270
mov dword [0x43726c], 0xde
call fcn.00410502
add esp, 0xc
cmp edi, esi
mov word [0x4372f0], si
mov dword [0x4372f0], 1
je 0x4024f2
push 0x104
push edi
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x437500
mov word [0x4374fe], si
call fcn.00410502
add esp, 0xc
mov word [0x437706], si
mov dword [0x4372f4], 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 [0x43726c], 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 0x437270
mov dword [0x43726c], 0xd5
call fcn.00410502
mov eax, dword [esp + 0x20]
xor esi, esi
add esp, 0xc
cmp eax, esi
mov word [0x4372f0], si
mov dword [0x4372f0], edi
je 0x402672
push 0x104
push eax
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x437500
mov word [0x4374fe], si
call fcn.00410502
mov word [0x437706], si
mov dword [0x4372f4], 0x18e
jmp 0x402714
push 0x40
push str.fwrite
push 0x437270
mov dword [0x43726c], 0xe0
call fcn.00410502
mov eax, dword [esp + 0x20]
xor edi, edi
add esp, 0xc
cmp eax, edi
mov word [0x4372f0], di
mov dword [0x4372f0], esi
je 0x4026e8
push 0x104
push eax
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x437500
mov word [0x4374fe], di
call fcn.00410502
mov word [0x437706], di
mov dword [0x4372f4], 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 0x437270
mov dword [0x43726c], 0xcb
call fcn.00410502
xor edi, edi
add esp, 0xc
mov word [0x4372f0], di
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
mov dword [0x4372f0], eax
je 0x403d1f
push 0x104
push esi
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x437500
mov word [0x4374fe], di
call fcn.00410502
add esp, 0xc
mov word [0x437706], di
mov dword [0x4372f4], 0xac
or eax, 0xffffffff
pop edi
ret
push esi
call fcn.004041c0
test eax, eax
jne 0x403dda
push 0x40
push str.DeleteFile
push 0x437270
mov dword [0x43726c], 0xcb
call fcn.00410502
xor edi, edi
add esp, 0xc
mov word [0x4372f0], di
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
mov dword [0x4372f0], eax
je 0x403da6
push 0x104
push esi
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x437500
mov word [0x4374fe], di
call fcn.00410502
add esp, 0xc
mov word [0x437706], di
mov dword [0x4372f4], 0xb8
or eax, 0xffffffff
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x405360
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push esi
mov esi, eax
xor eax, eax
cmp dword [ecx + 4], eax
push edi
jle 0x405380
lea edx, [ecx + 0x10]
nop
mov edi, dword [esi + eax*4]
mov dword [edx], edi
add eax, 1
add edx, 4
cmp eax, dword [ecx + 4]
jl 0x405370
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 4]
lea edx, [eax*4 + 4]
cmp esi, edx
jge 0x405473
push ebx
push ebp
lea ebx, [ecx + esi*4 + 0x10]
jmp 0x4053a0
mov eax, dword [ebx - 4]
mov edi, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov eax, esi
cdq
idiv edi
test edx, edx
mov ebp, eax
jne 0x405401
movzx edx, byte [esp + 0x10]
mov al, byte [edx + str.cw]
mov edx, dword [esp + 0x10]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor dl, byte [ebp + 0x431b10]
mov byte [esp + 0x10], dl
movzx edx, byte [esp + 0x12]
movzx edx, byte [edx + str.cw]
mov byte [esp + 0x11], dl
movzx edx, byte [esp + 0x13]
movzx edx, byte [edx + str.cw]
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], al
jmp 0x40544b
cmp edi, 6
jle 0x40544b
cmp edx, 4
jne 0x40544b
movzx eax, byte [esp + 0x10]
movzx edx, byte [eax + str.cw]
movzx eax, byte [esp + 0x11]
mov byte [esp + 0x10], dl
movzx edx, byte [eax + str.cw]
movzx eax, byte [esp + 0x12]
mov byte [esp + 0x11], dl
movzx edx, byte [eax + str.cw]
movzx eax, byte [esp + 0x13]
mov byte [esp + 0x12], dl
movzx edx, byte [eax + str.cw]
mov byte [esp + 0x13], dl
mov eax, esi
sub eax, edi
mov edx, dword [ecx + eax*4 + 0x10]
xor edx, dword [esp + 0x10]
add esi, 1
mov dword [ebx], edx
mov eax, dword [ecx + 0xc]
lea edx, [eax*4 + 4]
add ebx, 4
cmp esi, edx
jl 0x4053a0
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x4056b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0x104], edx
mov edx, dword [ecx + 0x1c]
mov dword [ecx + 0x10c], edx
mov dword [ecx + 0x100], eax
mov eax, dword [ecx + 0x18]
mov edx, 1
cmp dword [ecx + 0xc], edx
push esi
mov dword [ecx + 0x108], eax
jle 0x4057c7
lea eax, [ecx + 0x22]
push edi
jmp 0x4056f0
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x434730]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x433f30]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x433b30]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x434330]
movzx edi, byte [eax + 4]
mov dword [eax + 0xee], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x434730]
xor esi, dword [edi*4 + 0x434330]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x433f30]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x433b30]
movzx edi, byte [eax + 8]
mov dword [eax + 0xf2], esi
movzx esi, byte [eax + 9]
mov esi, dword [esi*4 + 0x434730]
xor esi, dword [edi*4 + 0x434330]
movzx edi, byte [eax + 7]
xor esi, dword [edi*4 + 0x433f30]
movzx edi, byte [eax + 6]
xor esi, dword [edi*4 + 0x433b30]
movzx edi, byte [eax + 0xc]
mov dword [eax + 0xf6], esi
movzx esi, byte [eax + 0xd]
mov esi, dword [esi*4 + 0x434730]
xor esi, dword [edi*4 + 0x434330]
movzx edi, byte [eax + 0xb]
xor esi, dword [edi*4 + 0x433f30]
movzx edi, byte [eax + 0xa]
xor esi, dword [edi*4 + 0x433b30]
add edx, 1
mov dword [eax + 0xfa], esi
add eax, 0x10
cmp edx, dword [ecx + 0xc]
jl 0x4056f0
pop edi
mov eax, edx
shl eax, 4
mov esi, dword [eax + ecx + 0x10]
add eax, ecx
add edx, 0x10
shl edx, 4
mov dword [edx + ecx], esi
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov dword [eax + 0x104], ecx
mov ecx, dword [eax + 0x1c]
mov dword [eax + 0x108], edx
mov dword [eax + 0x10c], ecx
pop esi
ret
Function at 0x406130
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x90
mov eax, dword [0x42f278]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [ebx + 4]
push ebp
push esi
push eax
call fcn.00410ff7
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
je 0x40621f
mov ecx, dword [ebx + 4]
push ecx
push esi
push ebp
call fcn.00416890
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edx
push eax
push ebp
call fcn.00416910
mov ecx, dword [esp + 0xb4]
mov eax, dword [0x437268]
add dword [ebp], ecx
add esp, 0x18
cmp eax, 0xc
je 0x4061eb
cmp eax, 0xd
je 0x4061eb
mov eax, dword [ebx + 4]
push edi
push ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x54], 0x67452301
mov dword [esp + 0x58], 0xefcdab89
mov dword [esp + 0x5c], 0x98badcfe
mov dword [esp + 0x60], 0x10325476
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
call fcn.004062b0
lea edi, [esp + 0x68]
lea esi, [esp + 0xc]
call fcn.004063c0
mov eax, dword [ebx]
add eax, 0xfffffffe
cmp eax, 2
pop edi
ja 0x406216
lea ecx, [esp + 0x64]
jmp 0x40620b
mov eax, dword [ebx + 4]
lea edx, [esp + 0x74]
push edx
push eax
push ebp
call fcn.00403850
mov eax, dword [ebx]
add eax, 0xfffffffe
add esp, 0xc
cmp eax, 2
ja 0x406216
lea ecx, [esp + 0x74]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.00405ad0
push ebp
call fcn.00410f1a
add esp, 4
mov ecx, dword [esp + 0x94]
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004104f3
add esp, 0x90
ret 4

Function at 0x406240
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x60
mov eax, dword [0x42f278]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
push eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0xc]
mov dword [esp + 0x50], 0x67452301
mov dword [esp + 0x54], 0xefcdab89
mov dword [esp + 0x58], 0x98badcfe
mov dword [esp + 0x5c], 0x10325476
call fcn.004062b0
lea esi, [esp + 8]
call fcn.004063c0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.004104f3
add esp, 0x60
ret 8
Function at 0x406fc0
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov eax, dword [0x42f278]
xor eax, esp
mov dword [esp + 8], eax
push edi
push 0x42bcc8
mov edi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push 0x42bcc8
push 0x436e40
call fcn.00411372
add esp, 0xc
test eax, eax
jne 0x407008
mov eax, edi
pop edi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004104f3
add esp, 0xc
ret
mov eax, dword [0x436e40]
mov cx, word [0x436e44]
push esi
lea edx, [esp + 8]
xor esi, esi
push edx
mov dword [esp + 0xc], eax
mov word [esp + 0x10], cx
mov word [esp + 0x12], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x4070c5
sub eax, 3
je 0x4070c5
lea eax, [esp + 8]
push esi
push eax
call fcn.0041231c
add esp, 8
test eax, eax
je 0x407144
push 0x104
push 0x436e40
push 0x4372f8
mov dword [0x43726c], 0xffffef32
mov word [0x4372f0], si
mov dword [0x4372f0], esi
call fcn.00410502
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov word [0x4374fe], si
call fcn.00410502
add esp, 0x18
mov word [0x437706], si
pop esi
mov dword [0x4372f4], 0x204
xor eax, eax
pop edi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004104f3
add esp, 0xc
ret
lea ecx, [esp + 8]
push esi
push ecx
call fcn.0041231c
add esp, 8
test eax, eax
je 0x407144
push 0x104
push 0x436e40
push 0x4372f8
mov dword [0x43726c], 0xffffef32
mov word [0x4372f0], si
mov dword [0x4372f0], esi
call fcn.00410502
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov word [0x4374fe], si
call fcn.00410502
add esp, 0x18
mov word [0x437706], si
pop esi
mov dword [0x4372f4], 0x1ec
xor eax, eax
pop edi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004104f3
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
pop esi
mov eax, edi
pop edi
xor ecx, esp
call fcn.004104f3
add esp, 0xc
ret
Function at 0x407700
Capabilities:
Check for time delay via gettickcount
Create directory
Delete directory
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x42f278]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
push 0x436e40
mov edi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
push 0x436e40
lea esi, [eax*2 + 0x436e3e]
call fcn.00412984
add esp, 8
cmp eax, esi
jne 0x407758
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x436e40
push 0x42c20c
lea eax, [esp + 0x14]
push eax
jmp 0x40776e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x436e40
push str._s_08x
lea ecx, [esp + 0x14]
push ecx
call fcn.004112ba
add esp, 0x10
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
jne 0x4077ac
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004104f3
add esp, 0x414
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407814
push 0x208
lea ecx, [esp + 0x214]
push 0
push ecx
call fcn.00416890
add esp, 0xc
lea edx, [esp + 0x210]
push edx
push 0
push 0x42c22c
push 0x436e40
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x407814
lea eax, [esp + 0x210]
push eax
call fcn.004041c0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004104f3
add esp, 0x414
ret
mov ecx, dword [esp + 0x418]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004104f3
add esp, 0x414
ret
Function at 0x408990
Capabilities:
Delete directory

Disassembly:
sub esp, 0x418
mov eax, dword [0x42f278]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
xor edi, edi
cmp dword [ebx], edi
je 0x4089ce
mov eax, ebx
mov edi, edi
mov eax, dword [eax]
cmp dword [eax], 0
je 0x4089c2
lea esi, [eax + 0x418]
call fcn.00403cb0
add edi, 1
cmp dword [ebx + edi*4], 0
lea eax, [ebx + edi*4]
jne 0x4089b0
cmp dword [ebx], 0
mov dword [esp + 8], 0
je 0x408aae
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, ebx
jmp 0x4089f0
mov eax, dword [esi]
cmp dword [eax], 0
je 0x408a96
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x408a96
push 0x436e40
lea eax, [esp + 0x218]
push eax
call edi
push 0x436e40
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
add ecx, 8
push ecx
lea edx, [esp + 0x10]
push edx
mov word [esp + eax*2 + 0x21a], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x218]
push ecx
call esi
test eax, eax
je 0x408a96
jmp 0x408a60
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esp + 0xc]
push 0x5c
push eax
call fcn.00412984
add esp, 8
test eax, eax
je 0x408a83
mov word [eax], 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x218]
push edx
call esi
test eax, eax
jne 0x408a60
mov eax, dword [esp + 8]
add eax, 1
cmp dword [ebx + eax*4], 0
lea esi, [ebx + eax*4]
mov dword [esp + 8], eax
jne 0x4089f0
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
xor ecx, esp
call fcn.004104f3
add esp, 0x418
ret