joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ef6
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1260
call fcn.0042d380
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
xor esi, esi
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x125e]
mov word [ebp - 0x1260], si
mov word [ebp - 0x218], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
mov ebx, str.Flag
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
mov edi, str.SyncMgr
push eax
push ebx
push edi
mov dword [ebp - 0xc], esi
push dword [ebp + 8]
call fcn.0041e678
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x1260]
push dword [ebp + 8]
push dword [ebp - 0xc]
push str.http:__user.toolbar.soso.com_tbi.q_cmdVRflag_duin_lutm_ld
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 3
call fcn.0041dc67
push esi
call dword [sym.imp.MSVCRT.dll__wtmpnam]
add esp, 0x28
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x1260]
push eax
call fcn.0040839e
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1260]
push eax
call fcn.00408217
mov dword [ebp - 8], esi
mov esi, 0x2ee7
cmp eax, esi
jne 0x408008
cmp dword [ebp - 8], 0xa
jge 0x408008
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1260]
push eax
call fcn.00408217
inc dword [ebp - 8]
jmp 0x407fd8
test eax, eax
lea eax, [ebp - 0x218]
push eax
je 0x408033
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40802a
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
call fcn.0041f36c
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041f49d
mov dword [ebp - 8], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041f3cf
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041f413
add esp, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, 0xffffffff
je 0x40802a
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 8]
jne 0x40802a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x4080a5
push eax
push ebx
push edi
push ecx
call fcn.0041e6f4
add esp, 0x10
push 1
pop eax
jmp 0x40802c
Function at 0x4080aa
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x44564c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x1c
push edi
push dword [ebp + 8]
push str.http:__user.toolbar.soso.com
call fcn.0040839e
lea ecx, [ebp - 0x28]
call fcn.0041d0b2
xor edi, edi
lea ecx, [ebp - 0x28]
push edi
push edi
mov dword [ebp - 4], edi
call fcn.0041d0ed
test eax, eax
jne 0x4081fa
or dword [ebp - 0x10], 0xffffffff
push ebx
push esi
push edi
push 0x1f90
push str.user.toolbar.soso.com
lea ecx, [ebp - 0x28]
xor esi, esi
mov dword [ebp - 0x14], edi
call fcn.0041d11e
test eax, eax
jne 0x4081d3
push edi
push edi
push edi
push str._tbi.q
push 0x45716c
lea ecx, [ebp - 0x28]
call fcn.0041d171
test eax, eax
jne 0x4081d3
push edi
push edi
push 3
push edi
push edi
push SysReAllocString
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4081d3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ebx, [eax + 0x14]
mov dword [ebp + 0xc], eax
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
cmp esi, edi
je 0x4081d3
push ebx
push edi
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x186a0
div ecx
mov eax, edx
xor edx, edx
add eax, 0xd
imul eax, eax, 7
div ecx
dec ebx
push edx
push dword [ebp + 8]
push str.UP_010lu_05ld_r_n
push ebx
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x20
lea ecx, [ebp - 0x18]
lea eax, [esi + 0x13]
mov dword [ebp - 0x18], edi
push edi
push ecx
push dword [ebp + 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.0041d1dd
test eax, eax
jne 0x4081d3
push dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
call fcn.0041d378
test eax, eax
jne 0x4081d3
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x28]
call fcn.0041d482
cmp esi, edi
je 0x4081e6
push esi
call fcn.0042c9ee
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
pop esi
pop ebx
je 0x4081f7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0041d0e2
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4083f5
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
mov dword [ebp - 4], ecx
mov edx, 0x81
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x822]
mov word [ebp - 0x824], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x412]
mov word [ebp - 0x414], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
mov esi, 0x104
push ebx
lea eax, [ebp - 0x824]
push esi
push eax
push dword [ebp + 8]
push ebx
call fcn.0041f243
lea eax, [ebp - 0x20c]
push esi
push eax
push 3
call fcn.0041dc67
add esp, 0x24
lea eax, [ebp - 0x20c]
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [sym.imp.MSVCRT.dll__wtmpnam]
push ebx
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
push 0
call edi
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x20c]
push 0
push eax
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4085d0
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041f451
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.0041f4b4
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.0041f3ec
add esp, 0x18
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.004080aa
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
call ebx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408557
lea eax, [ebp - 0x414]
push eax
call fcn.0041f36c
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 0x414]
push eax
call ebx
xor edx, edx
cmp edi, edx
je 0x4085d0
cmp dword [ebp - 4], edx
jle 0x4085d0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x61a]
mov word [ebp - 0x61c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push edx
lea eax, [ebp - 0x61c]
push esi
push eax
push dword [ebp + 8]
push 1
call fcn.0041f243
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call ebx
push 1
push 0
lea eax, [ebp - 0x61c]
push esi
push eax
push dword [ebp + 8]
push 2
call fcn.0041f243
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call ebx
push dword [ebp - 4]
lea eax, [ebp - 0x824]
push eax
call fcn.0041f383
pop ecx
pop ecx
jmp 0x4085d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x409eb9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x45fafc], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
push edi
jne 0x409f01
call ebx
test eax, 0x80000000
je 0x409ef7
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x45fb00], eax
mov dword [0x45fafc], 1
mov eax, dword [0x45fb00]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409f1d
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x409f4e
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x409f45
call ebx
test eax, 0x80000000
mov eax, dword [ebp + 8]
je 0x409f39
push dword [eax + 8]
call dword [eax]
jmp 0x409f3f
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x409f4e
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a516
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
cmp eax, esi
jne 0x40a52a
xor eax, eax
jmp 0x40a5dd
mov dword [eax], esi
push ebx
movzx eax, word [ebp + 0xc]
push edi
push 0x458058
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x40a5d9
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp ebx, esi
je 0x40a5d9
cmp eax, esi
je 0x40a5d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x40a5d9
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x40a5d9
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
je 0x40a5d2
push ebx
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
push esi
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebp + 8], esi
je 0x40a5cb
push esi
push dword [ebp + 8]
call fcn.0040b279
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x40bc5f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
lea eax, [ebp - 8]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
and word [ebp - 0x218], 0
push 4
pop eax
mov ecx, 0x81
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov dword [esp], str.Action
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041e4a3
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push 0x458450
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
je 0x40bce1
push 1
pop eax
leave
ret
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jg 0x40bcdc
add eax, 0xffffaba0
xor ecx, ecx
cmp dword [ebp - 8], eax
setl cl
mov eax, ecx
leave
ret

Function at 0x40be54
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ecx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCRT.dll_time]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x282]
mov word [ebp - 0x284], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp], str.Action
lea eax, [ebp - 0x284]
push 0x104
push eax
call fcn.0041e4a3
add esp, 0xc
mov dword [ebp - 4], ebx
mov esi, SysReAllocString
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
mov cx, word [eax + 0x14]
push 0x13
add cx, 0x76c
lea edi, [ebp - 0x7a]
mov word [ebp - 0x28], cx
mov cl, byte [eax + 0x10]
mov al, byte [eax + 0xc]
inc cl
mov byte [ebp - 0x26], cl
mov byte [ebp - 0x25], al
pop ecx
xor eax, eax
push dword [ebp - 0x28]
mov word [ebp - 0x7c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x458444
lea eax, [ebp - 0x7c]
push 0x28
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x284]
push eax
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00421482
add esp, 0x2c
test eax, eax
je 0x40bf59
push dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.0040c0f6
test eax, eax
je 0x40bf49
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x284]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
jmp 0x40bf50
mov dword [ebp - 0x10], 1
push dword [ebp - 8]
call fcn.0042c9ee
pop ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], ebx
jne 0x40bf8c
add dword [ebp - 4], 0x15180
cmp dword [ebp - 4], 0x278d00
jl 0x40bead
cmp dword [ebp - 0x10], ebx
mov ecx, eax
mov dword [ecx + 0x10], ebx
jne 0x40bf84
call fcn.0040bf90
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x40bf87
Function at 0x40bf90
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov eax, 0x44573c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x434
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x43e]
mov word [ebp - 0x440], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x104
push str.Action
lea eax, [ebp - 0x440]
push esi
push eax
call fcn.0041e4a3
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0xf003f
lea eax, [ebp - 0x440]
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40bffe
xor eax, eax
jmp 0x40c0e7
mov al, byte [ebp - 0x15]
push ebx
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.0040c465
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
rep stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ebx
push eax
lea eax, [ebp - 0x238]
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], ebx
call edi
test eax, eax
jne 0x40c0b3
cmp word [ebp - 0x238], 0x23
jne 0x40c08f
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x20]
push eax
call fcn.00406b84
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.0040c42b
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00403a89
inc dword [ebp - 0x1c]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x238]
push eax
mov word [ebp - 0x238], bx
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
push dword [ebp - 0x10]
jmp 0x40c04e
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
cmp esi, eax
je 0x40c0cf
push dword [esi + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, dword [esi]
cmp esi, dword [ebp - 0x28]
jne 0x40c0bc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040c373
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c0f6
Capabilities:
Parse url

Disassembly:
mov eax, 0x445750
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x1240
call fcn.0042d380
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
mov esi, eax
add esi, 0x3c
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
pop ecx
je 0x40c246
push edi
mov ecx, 0x45dc80
push dword [ebp + 8]
call fcn.004212e4
push eax
push str.gid_sencode_s
push esi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
and word [ebp - 0x24c], 0
add esp, 0x14
xor eax, eax
lea edi, [ebp - 0x24a]
push 0x7f
and word [ebp - 0x124c], 0
pop ecx
mov esi, str.http:__toolbar.soso.com_T4_cin_recv.q
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x124a]
push 0xe
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x124c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
push 0x10000000
push esi
mov dword [ebp - 0x38], pe_nt_image_headers32
mov dword [ebp - 0x1c], 0x800
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40c235
cmp dword [ebp - 0x40], 0xffffffff
je 0x40c235
mov eax, dword [0x45724c]
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push 0xbb8
push dword [ebp - 0x10]
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x124c]
push dword [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x34]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00415d1e
add esp, 0x1c
lea ecx, [ebp + 8]
push 0
call fcn.004039ee
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp + 8]
mov edi, eax
call fcn.00403a89
push dword [ebp - 0x10]
call fcn.0042c9ee
xor eax, eax
pop ecx
test edi, edi
sete al
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40d203
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, ebx
je 0x40d2c1
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
jne 0x40d2c1
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
je 0x40d2c1
lea eax, [ebp + 0x14]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
push eax
mov dword [ebp + 0x14], ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d18d
add esp, 0x14
test eax, eax
je 0x40d2c1
cmp dword [ebp + 0x14], ebx
jbe 0x40d2c1
push ebx
push 0x20
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x40d2c1
push edi
mov edi, dword [ebp - 4]
mov dword [ebp - 8], ebx
cmp dword [ebp + 0x14], ebx
je 0x40d2b0
mov esi, 0x1000
cmp dword [ebp + 0x14], esi
ja 0x40d295
mov esi, dword [ebp + 0x14]
sub dword [ebp + 0x14], esi
lea eax, [ebp - 8]
push ebx
push eax
push esi
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d2b3
add edi, esi
jmp 0x40d283
push 1
pop ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
jmp 0x40d2c3
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x40d2c7
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40d2dd
pop esi
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 1
pop eax
pop esi
ret
Function at 0x40e12d
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x40e13e
push edi
call fcn.0040d815
pop ecx
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40e14d
push esi
call fcn.0040d815
pop ecx
call fcn.0041414c
test eax, eax
je 0x40e16b
xor eax, eax
test esi, esi
setne al
add eax, 4
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40e174
push esi
push edi
call fcn.0040e177
pop ecx
pop ecx
pop edi
pop esi
ret
Function at 0x40e71e
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x40e74b
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40e948
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40e75b
push dword [ebp + 0xc]
call fcn.0040d815
pop ecx
push dword [ebp + 8]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x872]
mov word [ebp - 0x874], bx
mov dword [ebp - 8], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x40e948
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 4
pop ecx
jb 0x40e948
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x874]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x874]
push 0x4586a4
push eax
call ebx
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40e948
cmp dword [ebp - 4], 0
je 0x40e93a
and word [ebp - 0x41c], 0
mov edx, 0x81
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x41a]
and word [ebp - 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x212]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x104
lea eax, [ebp - 0x41c]
push edi
push dword [ebp + 8]
push eax
call esi
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x41c]
push eax
call ebx
push edi
lea eax, [ebp - 0x214]
push dword [ebp + 0xc]
push eax
call esi
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
test byte [ebp - 0x66c], 0x10
jne 0x40e8c8
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x40e896
lea eax, [ebp - 0x214]
push eax
call fcn.0040d815
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0040e12d
add esp, 0xc
jmp 0x40e915
lea eax, [ebp - 0x214]
push edi
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40e8b4
mov dword [ebp - 4], edi
jmp 0x40e915
cmp dword [ebp + 0x10], edi
je 0x40e915
lea eax, [ebp - 0x214]
push eax
call fcn.0040d815
pop ecx
jmp 0x40e915
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea eax, [ebp - 0x640]
push eax
push 0x4586a0
call edi
pop ecx
test eax, eax
pop ecx
je 0x40e915
lea eax, [ebp - 0x640]
push eax
push 0x458698
call edi
pop ecx
test eax, eax
pop ecx
je 0x40e915
push dword [ebp + 0x14]
lea eax, [ebp - 0x214]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0040e71e
add esp, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x66c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e930
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x40e7e8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
jmp 0x40e94a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret