joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e60
Capabilities:
Check if file exists
Copy file
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557618
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, edi
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x409e9b
mov eax, dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x409fd5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x48], esp
push esi
call fcn.00408200
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push edi
call fcn.00408200
mov dword [ebp - 4], 0xffffffff
call fcn.00408bf0
add esp, 0x30
test eax, eax
jne 0x409fd5
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x409eed
mov eax, dword [esi]
push eax
call ebx
test eax, eax
je 0x409f0c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x409efe
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x409f3c
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00408200
lea eax, [ebp - 0x40]
push eax
call fcn.0040d1d0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0040b060
add esp, 0x20
lea ecx, [ebp - 0x40]
call fcn.004029d0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x409f46
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
test eax, eax
jne 0x409fb4
push str..tmp
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004078f0
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x409f7a
mov ecx, dword [esi]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
jne 0x409fac
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x28]
call fcn.004029d0
cmp dword [esi + 0x14], 8
jb 0x409fbc
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x409fc4
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, 1
jmp 0x409fd7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
Function at 0x40a000
Capabilities:
Check if file exists
Copy file
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557648
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov dword [eax], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x40a047
mov eax, dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x40a1a3
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4c], esp
push esi
call fcn.00408200
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push edi
call fcn.00408200
mov dword [ebp - 4], 0xffffffff
call fcn.00408bf0
add esp, 0x30
test eax, eax
jne 0x40a1a3
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40a099
mov eax, dword [esi]
push eax
call ebx
test eax, eax
je 0x40a0b8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40a0aa
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40a0e8
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00408200
lea eax, [ebp - 0x40]
push eax
call fcn.0040d1d0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0040b060
add esp, 0x20
lea ecx, [ebp - 0x40]
call fcn.004029d0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40a0f2
mov eax, dword [esi]
push eax
call ebx
test eax, eax
je 0x40a171
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40a103
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
test eax, eax
jne 0x40a171
push str..tmp
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004078f0
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x40a137
mov ecx, dword [esi]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
jne 0x40a169
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x28]
call fcn.004029d0
cmp dword [esi + 0x14], 8
jb 0x40a179
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x40a181
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40a1c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x40a1a3
mov eax, dword [ebp - 0x44]
mov dword [eax], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x40a1a5
Function at 0x40a4c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5c8dc0]
push ebx
push esi
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5c61b4]
cmp eax, dword [ecx + 4]
jg 0x40a63e
mov edi, dword [ebp + 8]
test edi, edi
je 0x40a628
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a503
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x40a521
xor ebx, ebx
jmp 0x40a538
add esi, esi
mov eax, esi
call fcn.00484d70
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004086e0
mov ebx, eax
mov eax, dword [0x5c61b0]
mov esi, ebx
mov dword [ebp - 8], eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40a545
sub esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 1]
push eax
call fcn.0050d832
mov edi, eax
add esp, 4
mov dword [ebp - 0xc], edi
test edi, edi
je 0x40a628
push dword [ebp - 8]
call fcn.0051d479
add esp, 4
test esi, esi
jle 0x40a59d
sub ebx, edi
mov dword [ebp - 8], esi
nop
call fcn.0051d458
mov cl, byte [ebx + edi]
lea edi, [edi + 1]
add al, 0x11
xor cl, al
xor cl, 2
mov byte [edi - 1], cl
sub esi, 1
jne 0x40a580
mov esi, dword [ebp - 0x10]
lea eax, [esi + esi]
mov dword [ebp - 0x14], eax
inc eax
push eax
call fcn.0050d832
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x40a607
xor edi, edi
mov dword [ebp - 8], eax
test esi, esi
je 0x40a600
mov ebx, dword [ebp - 0xc]
mov cl, byte [edi + ebx]
lea edx, [eax + 1]
shr cl, 4
cmp cl, 0xa
sbb al, al
add cl, 0x37
and al, 0xf9
add al, cl
mov ecx, dword [ebp - 8]
mov byte [ecx], al
lea eax, [edx + 1]
mov cl, byte [edi + ebx]
and cl, 0xf
mov dword [ebp - 8], eax
cmp cl, 0xa
sbb al, al
inc edi
and al, 0xf9
add al, 0x37
add al, cl
mov byte [edx], al
mov eax, dword [ebp - 8]
cmp edi, esi
jb 0x40a5c2
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov byte [eax + ebx], 0
push dword [ebp - 0xc]
call fcn.004faf71
add esp, 4
mov eax, ebx
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
push 0x5c61b4
call fcn.00484496
add esp, 4
cmp dword [0x5c61b4], 0xffffffff
jne 0x40a4f3
call fcn.0040dda0
push 0x5c61b4
mov dword [0x5c61b0], eax
call fcn.0048444c
add esp, 4
jmp 0x40a4f3
Function at 0x40b060
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00484a20
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x100c], edi
test edi, edi
je 0x40b1ba
cmp word [edi], 0
je 0x40b1ba
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x40b0b6
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
push 0x1002
lea eax, [ebp - 0x1008]
push 0
push eax
call fcn.004f0120
mov ecx, edi
add esp, 0xc
xor ebx, ebx
mov esi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b0d5
sub ecx, edx
sar ecx, 1
cmp ecx, 0x800
ja 0x40b1ba
xor eax, eax
cmp ax, word [edi]
je 0x40b1a7
nop dword [eax + eax]
push 0x57446c
push esi
call fcn.004f05f3
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b128
push 0x574470
push esi
call fcn.004f05f3
mov edi, eax
add esp, 8
test edi, edi
je 0x40b1a7
mov esi, edi
sub esi, dword [ebp - 0x100c]
sar esi, 1
test esi, esi
jle 0x40b199
push 0x1002
lea eax, [ebp - 0x1008]
push 0
push eax
call fcn.004f0120
push esi
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1008]
push 0x801
push eax
call fcn.0051ed14
add esp, 0x1c
cmp word [ebp - 0x1008], 0
je 0x40b197
push 0
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x40b199
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b199
mov ebx, 1
jmp 0x40b199
xor ebx, ebx
lea esi, [edi + 2]
xor eax, eax
cmp ax, word [esi]
jne 0x40b100
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
Function at 0x40c3d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00484a20
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x40c4c6
cmp word [esi], 0
je 0x40c4c6
test edi, edi
je 0x40c4c6
test ebx, ebx
jle 0x40c4c6
push 0x4000
lea eax, [ebp - 0x4004]
push 0
push eax
call fcn.004f0120
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40c4c6
cmp eax, 0x3fff
ja 0x40c4c6
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40c4c6
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x57446c
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c4c6
mov ecx, dword [ebp - 0x4008]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push 0xffffffffffffffff
push ebx
push edi
call fcn.004123e0
add esp, 0x20
xor eax, eax
mov word [edi + ebx*2 - 2], ax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484a0d
mov esp, ebp
pop ebp
ret

Function at 0x40dda0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20c
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.004f0120
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004f0120
add esp, 0x18
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
push 0x105
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x105
lea eax, [ebp - 0x41c]
push eax
push 0x574830
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40de40
mov eax, dword [ebp - 0x420]
test eax, eax
jne 0x40de45
mov eax, 0x7c1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
Function at 0x40e480
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor bl, bl
test eax, eax
je 0x40e6ad
cmp word [eax], 0
je 0x40e6ad
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0040cee0
add esp, 8
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x234]
push eax
mov dword [ebp - 4], 0
call esi
test eax, eax
je 0x40e69e
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x234]
mov edx, dword [ebp - 0x234]
cmp ecx, 8
mov byte [ebp - 0x290], bl
mov edi, 1
cmovae eax, edx
test eax, eax
je 0x40e62d
cmp word [eax], 0
je 0x40e62d
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0040cee0
add esp, 8
cmp dword [ebp - 0x23c], 0
jbe 0x40e5f9
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push eax
call esi
test eax, eax
je 0x40e5f9
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
test esi, esi
je 0x40e5f9
push esi
push str..exe.scr.bat.dll.com.cmd
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40e5ac
mov byte [ebp - 0x290], 1
jmp 0x40e5f9
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004f0120
push esi
push 0x5748d4
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004080c0
add esp, 0x1c
push esi
push str..exe.scr.bat.dll.com.cmd
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov ecx, dword [ebp - 0x290]
test eax, eax
movzx ecx, cl
cmovne ecx, edi
mov dword [ebp - 0x290], ecx
lea ecx, [ebp - 0x24c]
call fcn.004029d0
cmp byte [ebp - 0x290], 0
je 0x40e621
lea ecx, [ebp - 0x234]
mov bl, 1
call fcn.004029d0
mov al, bl
jmp 0x40e6af
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x234]
push 0
push 0x80
push 3
push 0
cmp ecx, 8
lea eax, [ebp - 0x234]
push 1
cmovae eax, edx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e69e
push 0
lea eax, [ebp - 0x290]
mov dword [ebp - 0x290], 0
push eax
push 0x40
lea eax, [ebp - 0x28c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x290], 0x40
jne 0x40e697
mov eax, 0x5a4d
movzx ebx, bl
cmp word [ebp - 0x28c], ax
cmove ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x234]
call fcn.004029d0
mov al, bl
jmp 0x40e6af
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
Function at 0x40e6d0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557c7b
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x40e74d
push 0x5744d4
push eax
call fcn.004f05f3
mov ecx, eax
add esp, 8
mov eax, dword [esi]
test ecx, ecx
je 0x40e728
sub ecx, eax
sar ecx, 1
cmp ecx, 1
je 0x40e754
cmp dword [eax - 0xc], 0
jl 0x40e74d
push 0x5744dc
push eax
call fcn.004f05f3
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40e74d
mov eax, dword [esi]
sub ecx, eax
sar ecx, 1
cmp ecx, 1
je 0x40e754
xor eax, eax
jmp 0x40e8d8
cmp dword [eax - 0xc], 2
jg 0x40e771
add eax, 0xfffffff0
push eax
call fcn.00408b80
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x820], esi
jmp 0x40e7e1
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x40e783
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x40e791
call fcn.004050e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov edi, dword [esi]
test ecx, ecx
je 0x40e914
test edi, edi
je 0x40e91e
mov eax, dword [ecx]
push 2
push 2
call dword [eax]
test eax, eax
je 0x40e928
cmp dword [eax + 8], 2
lea esi, [eax + 0x10]
mov dword [ebp - 0x820], esi
jl 0x40e91e
push 4
push edi
xor eax, eax
mov dword [esi - 0xc], 2
push 4
push esi
mov word [esi + 4], ax
call fcn.00412420
add esp, 0x10
lea eax, [ebp - 0x820]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x824]
push 0x5744e4
push eax
call fcn.00408570
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x828], 0
push 0
push eax
call fcn.004f0120
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push 0x20000
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40e898
push 0
lea eax, [ebp - 0x828]
mov dword [ebp - 0x81c], 0
push eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 0
push eax
push 0xc
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x80c], 0x800
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40e8f4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov edx, dword [ebp - 0x824]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e8ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40e8d6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x7f4]
xor ebx, ebx
cmp eax, 4
je 0x40e906
cmp eax, 7
jne 0x40e90b
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e89a
push 0x80004005
call fcn.00404ca0
push 0x80070057
call fcn.00404ca0
call fcn.00405e00
int3
Function at 0x40e930
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x40ea6f
cmp word [esi], 0
je 0x40ea6f
test edi, edi
je 0x40ea6f
cmp word [edi], 0
je 0x40ea6f
push 7
push str.http:__
push esi
call fcn.0051f6a9
add esp, 0xc
test eax, eax
je 0x40e99e
push 8
push 0x5748dc
push esi
call fcn.0051f6a9
add esp, 0xc
test eax, eax
jne 0x40ea6f
xor eax, eax
mov dword [ebp - 0x24c], 0x3c
xorps xmm0, xmm0
mov word [ebp - 8], ax
push 0x208
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push 0
push eax
movlpd qword [ebp - 0x248], xmm0
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x22c], xmm0
movlpd qword [ebp - 0x224], xmm0
movlpd qword [ebp - 0x21c], xmm0
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0x104
call fcn.004f0120
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ea10
lea eax, [ebp - 0x24c]
sub ecx, edx
push eax
push 0x10000000
sar ecx, 1
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40ea6f
cmp word [ebp - 0x210], 0
je 0x40ea6f
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
movzx ecx, bl
pop edi
mov edx, 1
cmovne ecx, edx
pop esi
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
Function at 0x40ed90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40eee3
push ebx
push esi
xor ebx, ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40ee5a
push ebx
push esi
call fcn.0051d649
add esp, 8
cmp eax, 0xffffffff
je 0x40eece
push 6
push esi
call fcn.0051d649
add esp, 8
cmp eax, 0xffffffff
je 0x40eece
push 0x208
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.004f0120
add esp, 0xc
lea eax, [ebp - 0x214]
push str.SM_testdir.dat
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
push 0x82
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40ee4d
push eax
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x40eece
lea ecx, [ebp - 0xc]
xorps xmm0, xmm0
mov eax, ecx
movlpd qword [ebp - 0xc], xmm0
mov edx, 4
sub esi, eax
lea eax, [edx + 0x7ffffffa]
test eax, eax
je 0x40ee90
movzx eax, word [esi + ecx]
test ax, ax
je 0x40ee90
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40ee72
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40eebc
push 2
push 0x5744ac
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
pop ebx
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00484a0d
mov esp, ebp
pop ebp
ret