joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402890
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x98
mov eax, dword [0x42d278]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x9c]
push ebx
push ebp
push esi
mov dword [esp + 0xc], eax
xor ebp, ebp
push edi
mov ebx, ecx
xor eax, eax
lea esp, [esp]
mov byte [esp + eax + 0x94], al
add eax, 1
cmp eax, 0x10
jl 0x4028c0
lea ecx, [esp + 0x94]
push ecx
mov eax, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x5c], 0x67452301
mov dword [esp + 0x60], 0xefcdab89
mov dword [esp + 0x64], 0x98badcfe
mov dword [esp + 0x68], 0x10325476
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
call fcn.004054f0
lea edi, [esp + 0x70]
lea esi, [esp + 0x14]
call fcn.00405600
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [ebx + 0x4c], edx
mov edx, dword [esp + 0x7c]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x58], edx
xor eax, eax
lea esp, [esp]
mov cl, al
add cl, 0x30
mov byte [esp + eax + 0x80], cl
add eax, 1
cmp eax, 0x10
jl 0x402940
lea edx, [esp + 0x80]
push ebp
push edx
mov byte [esp + 0x98], 0
call fcn.00401250
mov eax, dword [esp + 0x18]
push eax
mov eax, ebx
call fcn.00401dc0
xor eax, eax
add esp, 0xc
cmp dword [ebx + 0x60], 2
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
je 0x4029ab
mov dword [ebx + 0x69], eax
mov dword [ebx + 0x6d], eax
mov dword [ebx + 0x71], eax
mov dword [ebx + 0x75], eax
mov dword [ebx + 0x79], eax
mov dword [ebx + 0x7d], eax
mov dword [ebx + 0x81], eax
mov dword [ebx + 0x85], eax
xor eax, eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
mov esi, dword [ebx + 0x5c]
xor ebp, ebp
cmp esi, ebp
mov dword [ebx + 0x28], ebp
je 0x4029e5
mov eax, dword [esi + 0xc]
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x4029d5
push eax
call edi
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x4029df
push eax
call edi
push esi
call edi
mov dword [ebx + 0x5c], ebp
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040eac3
add esp, 0x98
ret
Function at 0x402f30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402f3f
or eax, eax
ret
test al, 1
push edi
je 0x402fd3
and eax, 0xfffffffe
push eax
push esi
call fcn.004034e0
test eax, eax
jne 0x402fd3
push 0x40
push str.SetFileAttributes
push 0x4352f0
mov dword [0x4352e8], 0xcb
call fcn.0040ead2
xor edi, edi
add esp, 0xc
mov word [0x435370], di
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
mov dword [0x4352ec], eax
je 0x402f9f
push 0x104
push esi
push 0x435370
call fcn.0040ead2
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x435578
mov word [0x435576], di
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], di
mov dword [0x435780], 0xac
or eax, 0xffffffff
pop edi
ret
push esi
call fcn.00403440
test eax, eax
jne 0x40305a
push 0x40
push str.DeleteFile
push 0x4352f0
mov dword [0x4352e8], 0xcb
call fcn.0040ead2
xor edi, edi
add esp, 0xc
mov word [0x435370], di
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
mov dword [0x4352ec], eax
je 0x403026
push 0x104
push esi
push 0x435370
call fcn.0040ead2
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x435578
mov word [0x435576], di
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], di
mov dword [0x435780], 0xb8
or eax, 0xffffffff
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x403440
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 0x403483
call ebp
cmp eax, 2
je 0x403483
call ebp
cmp eax, 3
je 0x403483
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x32
cmp esi, 0x41a
jb 0x403455
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4034e0
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 0x403514
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x32
cmp esi, 0x41a
jb 0x4034f3
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x404380
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x42d278]
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 0x40448b
mov ecx, 2
cmp dword [esp + 0x14], ecx
jne 0x40448b
mov eax, dword [esp + 8]
cmp eax, 5
jb 0x40448b
jne 0x404468
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40448b
cmp eax, 1
jne 0x404409
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.0040eac3
add esp, 0x120
ret
cmp eax, ecx
jne 0x404449
cmp byte [esp + 0x11e], 1
je 0x40444b
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x40444b
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.0040eac3
add esp, 0x120
ret
jbe 0x40448d
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040eac3
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.0040eac3
add esp, 0x120
ret
xor esi, esi
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040eac3
add esp, 0x120
ret
Function at 0x4044b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x42d278]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push 0x410
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call fcn.00414e60
add esp, 0xc
test ebx, ebx
jne 0x4044fe
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0040eac3
add esp, 0x414
ret
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404503
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x40451d
push 0x6f
jmp 0x4044e0
push 0x208
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4044e6
push edi
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esp + eax*2 + 6]
lea eax, [esp + 8]
push 0x5c
push eax
call fcn.00410f54
add esp, 8
cmp eax, esi
je 0x404574
lea edi, [esp + 8]
add edi, 0xfffffffe
jmp 0x404560
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404560
mov ecx, dword [0x429d84]
mov dword [edi], ecx
mov eax, ebx
mov edx, ebx
jmp 0x404580
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404580
lea edi, [esp + 8]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x404594
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
push 0
lea edx, [esp + 0x10]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [esp + 0x418]
pop edi
pop esi
xor ecx, esp
call fcn.0040eac3
add esp, 0x414
ret
Function at 0x4045e0
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 0x404600
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 0x4045f0
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 4]
lea edx, [eax*4 + 4]
cmp esi, edx
jge 0x4046f3
push ebx
push ebp
lea ebx, [ecx + esi*4 + 0x10]
jmp 0x404620
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 0x404681
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 + 0x42fb90]
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 0x4046cb
cmp edi, 6
jle 0x4046cb
cmp edx, 4
jne 0x4046cb
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 0x404620
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x404930
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 0x404a47
lea eax, [ecx + 0x22]
push edi
jmp 0x404970
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x4327b0]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x431fb0]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x431bb0]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x4323b0]
movzx edi, byte [eax + 4]
mov dword [eax + 0xee], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x4327b0]
xor esi, dword [edi*4 + 0x4323b0]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x431fb0]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x431bb0]
movzx edi, byte [eax + 8]
mov dword [eax + 0xf2], esi
movzx esi, byte [eax + 9]
mov esi, dword [esi*4 + 0x4327b0]
xor esi, dword [edi*4 + 0x4323b0]
movzx edi, byte [eax + 7]
xor esi, dword [edi*4 + 0x431fb0]
movzx edi, byte [eax + 6]
xor esi, dword [edi*4 + 0x431bb0]
movzx edi, byte [eax + 0xc]
mov dword [eax + 0xf6], esi
movzx esi, byte [eax + 0xd]
mov esi, dword [esi*4 + 0x4327b0]
xor esi, dword [edi*4 + 0x4323b0]
movzx edi, byte [eax + 0xb]
xor esi, dword [edi*4 + 0x431fb0]
movzx edi, byte [eax + 0xa]
xor esi, dword [edi*4 + 0x431bb0]
add edx, 1
mov dword [eax + 0xfa], esi
add eax, 0x10
cmp edx, dword [ecx + 0xc]
jl 0x404970
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 0x4053b0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x70
mov eax, dword [0x42d278]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 4]
push ebp
push esi
push eax
call fcn.0040f6b5
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
je 0x405468
mov ecx, dword [ebx + 4]
push edi
push ecx
push esi
push ebp
call fcn.00414e60
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edx
push eax
push ebp
call fcn.00414ee0
mov ecx, dword [esp + 0x98]
add esp, 0x18
add dword [ebp], ecx
mov eax, dword [ebx + 4]
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.004054f0
lea edi, [esp + 0x68]
lea esi, [esp + 0xc]
call fcn.00405600
mov eax, dword [ebx]
add eax, 0xfffffffe
cmp eax, 2
pop edi
ja 0x40545f
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x64]
call fcn.00404d50
push ebp
call fcn.0040f5d8
add esp, 4
mov ecx, dword [esp + 0x74]
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0040eac3
add esp, 0x70
ret 4

Function at 0x405480
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x60
mov eax, dword [0x42d278]
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.004054f0
lea esi, [esp + 8]
call fcn.00405600
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.0040eac3
add esp, 0x60
ret 8
Function at 0x405ed0
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov eax, dword [0x42d278]
xor eax, esp
mov dword [esp + 8], eax
push edi
push 0x429cc0
mov edi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push 0x429cc0
push 0x434ec0
call fcn.0040f9dd
add esp, 0xc
test eax, eax
jne 0x405f18
mov eax, edi
pop edi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040eac3
add esp, 0xc
ret
mov eax, dword [0x434ec0]
mov cx, word [0x434ec4]
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 0x405fd5
sub eax, 3
je 0x405fd5
lea eax, [esp + 8]
push esi
push eax
call fcn.0040f9a7
add esp, 8
test eax, eax
je 0x406054
push 0x104
push 0x434ec0
push 0x435370
mov dword [0x4352e8], 0xffffef32
mov word [0x435370], si
mov dword [0x4352ec], esi
call fcn.0040ead2
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov word [0x435576], si
call fcn.0040ead2
add esp, 0x18
mov word [0x43577e], si
pop esi
mov dword [0x435780], 0x1ff
xor eax, eax
pop edi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040eac3
add esp, 0xc
ret
lea ecx, [esp + 8]
push esi
push ecx
call fcn.0040f9a7
add esp, 8
test eax, eax
je 0x406054
push 0x104
push 0x434ec0
push 0x435370
mov dword [0x4352e8], 0xffffef32
mov word [0x435370], si
mov dword [0x4352ec], esi
call fcn.0040ead2
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov word [0x435576], si
call fcn.0040ead2
add esp, 0x18
mov word [0x43577e], si
pop esi
mov dword [0x435780], 0x1e7
xor eax, eax
pop edi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040eac3
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
pop esi
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040eac3
add esp, 0xc
ret
Function at 0x406070
Capabilities:
Create directory

Disassembly:
sub esp, 0xc48
mov eax, dword [0x42d278]
xor eax, esp
mov dword [esp + 0xc44], eax
push ebx
push ebp
push esi
push edi
push 0x410
xor ebx, ebx
lea eax, [esp + 0x18]
push ebx
push eax
mov esi, ecx
call fcn.00414e60
push 0x420
lea ecx, [esp + 0x434]
push ebx
push ecx
call fcn.00414e60
push 0x410
lea edx, [esp + 0x860]
push ebx
push edx
call fcn.00414e60
lea edx, [esp + 0x38]
add esp, 0x24
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4060d0
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4060e6
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x12], 0x5c
je 0x406117
lea edi, [esp + 0x14]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x406104
mov eax, dword [0x429d84]
mov dword [edi], eax
lea ecx, [esp + 0x14]
push 0x5c
push ecx
call fcn.00410f54
lea edx, [esp + 0x1c]
push 0x5c
push edx
mov word [eax + 2], bx
call fcn.0040f9bb
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x40613f
add ebp, 2
push 0x429cc0
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [esp + 0x18]
push 0x429cc0
push eax
call fcn.0040f9dd
add esp, 0xc
test eax, eax
je 0x40616f
mov dword [esp + 0x10], ebx
jmp 0x4061a0
lea ecx, [esp + 0x18]
push 0x5c
push ecx
call fcn.0040f9bb
add esp, 8
test eax, eax
jne 0x406189
xor eax, eax
jmp 0x4062e4
add eax, 2
push 0x5c
push eax
call fcn.0040f9bb
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x406182
add ebp, 2
cmp word [ebp], bx
je 0x4062e2
lea ebx, [ebx]
push 0x5c
push ebp
call fcn.0040f9bb
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4062e2
lea edx, [esp + 0x14]
mov esi, ebp
sub esi, edx
sar esi, 1
push esi
mov eax, edx
push eax
lea ecx, [esp + 0x84c]
push ecx
call fcn.0040ead2
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x10], eax
mov word [esp + esi*2 + 0x844], 0
je 0x406250
jmp 0x406200
movzx ecx, word [eax + str._UNC_]
mov word [esp + eax + 0x424], cx
add eax, 2
test cx, cx
jne 0x406200
lea eax, [esp + 0x848]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406220
lea edi, [esp + 0x424]
sub eax, edx
add edi, 0xfffffffe
jmp 0x406240
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406240
jmp 0x40629c
movzx ecx, word [eax + 0x429cdc]
mov word [esp + eax + 0x424], cx
add eax, 2
test cx, cx
jne 0x406250
lea eax, [esp + 0x844]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406270
lea edi, [esp + 0x424]
sub eax, edx
add edi, 0xfffffffe
jmp 0x406290
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406290
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [esp + 0x428]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4062cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4062fd
add ebp, 2
cmp word [ebp], 0
mov ebx, 1
jne 0x4061b0
mov eax, ebx
mov ecx, dword [esp + 0xc54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040eac3
add esp, 0xc48
ret
mov eax, esi
jmp 0x4062e4
Function at 0x406610
Capabilities:
Check for time delay via gettickcount
Create directory
Delete directory
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x42d278]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
push 0x434ec0
mov edi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
push 0x434ec0
lea esi, [eax*2 + 0x434ebe]
call fcn.00410f54
add esp, 8
cmp eax, esi
jne 0x406668
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x434ec0
push 0x42a0d0
lea eax, [esp + 0x14]
push eax
jmp 0x40667e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x434ec0
push str._s_08x
lea ecx, [esp + 0x14]
push ecx
call fcn.0040f88a
add esp, 0x10
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
jne 0x4066bc
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.0040eac3
add esp, 0x414
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406724
push 0x208
lea ecx, [esp + 0x214]
push 0
push ecx
call fcn.00414e60
add esp, 0xc
lea edx, [esp + 0x210]
push edx
push 0
push 0x42a0f0
push 0x434ec0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x406724
lea eax, [esp + 0x210]
push eax
call fcn.00403440
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0040eac3
add esp, 0x414
ret
mov ecx, dword [esp + 0x418]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040eac3
add esp, 0x414
ret
Function at 0x407480
Capabilities:
Delete directory

Disassembly:
sub esp, 0x418
mov eax, dword [0x42d278]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
xor edi, edi
cmp dword [ebx], edi
je 0x4074be
mov eax, ebx
mov edi, edi
mov eax, dword [eax]
cmp dword [eax], 0
je 0x4074b2
lea esi, [eax + 0x418]
call fcn.00402f30
add edi, 1
cmp dword [ebx + edi*4], 0
lea eax, [ebx + edi*4]
jne 0x4074a0
cmp dword [ebx], 0
mov dword [esp + 8], 0
je 0x40759e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, ebx
jmp 0x4074e0
mov eax, dword [esi]
cmp dword [eax], 0
je 0x407586
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x407586
push 0x434ec0
lea eax, [esp + 0x218]
push eax
call edi
push 0x434ec0
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 0x407586
jmp 0x407550
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esp + 0xc]
push 0x5c
push eax
call fcn.00410f54
add esp, 8
test eax, eax
je 0x407573
mov word [eax], 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x218]
push edx
call esi
test eax, eax
jne 0x407550
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 0x4074e0
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
xor ecx, esp
call fcn.0040eac3
add esp, 0x418
ret
Function at 0x40a3b0
Capabilities:
Delete directory

Disassembly:
sub esp, 0x414
mov eax, dword [0x42d278]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
push 0x208
lea eax, [esp + 0x214]
push 0
push eax
mov edi, ecx
call fcn.00414e60
push 0x208
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00414e60
mov esi, dword [edi + 0x418]
add esp, 0x18
test esi, esi
je 0x40a4c6
mov edi, edi
call fcn.00402f30
mov esi, dword [esi + 0x820]
test esi, esi
jne 0x40a400
push ebp
mov ebp, dword [edi + 0x418]
test ebp, ebp
je 0x40a4c5
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x40a430
lea esi, [ebp + 0x410]
push esi
call edi
test eax, eax
je 0x40a4b6
push 0x434ec0
lea edx, [esp + 0x21c]
push edx
call ebx
push 0x434ec0
call edi
mov word [esp + eax*2 + 0x216], 0
push esi
lea eax, [esp + 0x14]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x21c]
push edx
call esi
test eax, eax
je 0x40a4b6
mov edi, edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.00410f54
add esp, 8
test eax, eax
je 0x40a4a3
mov word [eax], 0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x21c]
push eax
call esi
test eax, eax
jne 0x40a480
mov ebp, dword [ebp + 0x820]
test ebp, ebp
jne 0x40a430
pop ebx
pop ebp
mov ecx, dword [esp + 0x418]
pop edi
pop esi
xor ecx, esp
call fcn.0040eac3
add esp, 0x414
ret