joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10066760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x800
push eax
push 1
push 0
push str.FolderDefaultIcon
push SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100667c0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
xor edx, edx
push dword [ebp - 8]
test eax, eax
cmovne ecx, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100667d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x818], ecx
lea ecx, [ebp - 0x80c]
push ecx
push 1
push 0
push eax
push SysReAllocString
mov dword [ebp - 0x808], 0x800
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10066914
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0x800
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x808]
xor edx, edx
push dword [ebp - 0x80c]
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x808], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x808]
test eax, eax
je 0x10066916
push esi
push edi
lea edi, [ebp - 0x804]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10066880
mov ecx, 6
lea eax, [ebp - 0x80c]
mov esi, str.DefaultIcon
rep movsd dword es:[edi], dword [esi]
push eax
push 1
push 0
lea eax, [ebp - 0x804]
movsw word es:[edi], word [esi]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
test eax, eax
jne 0x10066914
lea eax, [ebp - 0x808]
push eax
push dword [ebp - 0x818]
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x808]
xor edx, edx
push dword [ebp - 0x80c]
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x808], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x808]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007a730
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007a730
mov esp, ebp
pop ebp
ret
Function at 0x10067090
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10098d78
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x58], ecx
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], 8
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x5c], edi
jb 0x100670ea
mov eax, dword [esi]
jmp 0x100670ec
mov eax, esi
cmp word [eax + edi*2 - 2], 0x5c
je 0x10067103
push 0x5c
push 1
mov ecx, esi
call fcn.1006f250
inc edi
mov dword [ebp - 0x5c], edi
push 3
push 0x100c6850
mov ecx, esi
call fcn.1006f310
cmp dword [esi + 0x14], 8
jb 0x1006711b
mov eax, dword [esi]
jmp 0x1006711d
mov eax, esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
je 0x1006727a
lea edi, [ebx + 0x2c]
mov ecx, 0x100c6858
mov eax, edi
jmp 0x10067140
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10067166
test dx, dx
je 0x10067162
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10067166
add eax, 4
add ecx, 4
test dx, dx
jne 0x10067140
xor eax, eax
jmp 0x1006716b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006725f
mov ecx, 0x100c685c
mov eax, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100671a6
test dx, dx
je 0x100671a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100671a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10067180
xor eax, eax
jmp 0x100671ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006725f
test byte [ebx], 6
jne 0x1006725f
push dword [ebp - 0x5c]
lea eax, [ebp - 0x2c]
mov ecx, esi
push 0
push eax
call fcn.1006ee30
mov edi, eax
cmp esi, edi
je 0x100671fd
cmp dword [esi + 0x14], 8
jb 0x100671e2
push dword [esi]
call fcn.1007b706
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.1006f1f0
cmp dword [ebp - 0x18], 8
jb 0x1006720e
push dword [ebp - 0x2c]
call fcn.1007b706
add esp, 4
cmp word [ebx + 0x2c], 0
lea edi, [ebx + 0x2c]
jne 0x1006721c
xor ecx, ecx
jmp 0x10067230
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10067221
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.1006f310
mov ecx, dword [ebp - 0x58]
lea eax, [ebx + 0xc]
push eax
push dword [ebx]
mov edx, esi
call fcn.10067010
add esp, 8
test byte [ebx], 0x10
je 0x1006725f
mov ecx, dword [ebp - 0x58]
mov edx, esi
push ebx
call fcn.10067090
add esp, 4
push ebx
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10067134
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007a730
mov esp, ebp
pop ebp
ret
Function at 0x100672a0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10098dab
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov ecx, 0x100c6850
mov dword [esp + 0x290], eax
lea edx, [edi + 6]
mov dword [esp + 0x10], eax
sub edx, ecx
mov edi, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10067310
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1006748d
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor eax, eax
mov word [edi + 6], ax
mov ecx, 0x100c6858
lea eax, [esp + 0x58]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10067376
test dx, dx
je 0x10067372
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10067376
add eax, 4
add ecx, 4
test dx, dx
jne 0x10067350
xor eax, eax
jmp 0x1006737b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006746c
mov ecx, 0x100c685c
lea eax, [esp + 0x58]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100673b6
test dx, dx
je 0x100673b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100673b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10067390
xor eax, eax
jmp 0x100673bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006746c
lea eax, [esp + 0x58]
push 0x2e
push eax
call fcn.1007b43d
add esp, 8
test eax, eax
je 0x1006746c
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x100c6864
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1006746c
cmp word [edi], ax
je 0x1006740f
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10067400
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.10063b40
cmp word [esp + 0x58], 0
jne 0x10067426
xor ecx, ecx
jmp 0x1006743f
lea ecx, [esp + 0x58]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10067430
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.1006f310
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1006746c
test al, 6
jne 0x1006747e
lea eax, [esp + 0x2c]
push eax
push ebx
call esi
test eax, eax
jne 0x10067343
jmp 0x10067486
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x28], 8
jb 0x100674a0
push dword [esp + 0x14]
call fcn.1007b706
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.1007a730
mov esp, ebp
pop ebp
ret
Function at 0x100688e0
Capabilities:
Create process on windows
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
push edi
push 0
push 0
push 0
push 0
mov dword [ebp - 0x25c], edi
or ebx, 0xffffffff
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10068a23
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10068920
sub ecx, edx
mov eax, 0x5c
sar ecx, 1
push 0x100c6850
mov word [edi + ecx*2], ax
inc ecx
lea eax, [edi + ecx*2]
push eax
mov dword [ebp - 0x264], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
je 0x10068a23
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x100c6858
lea eax, [ebp - 0x22c]
push eax
call edi
test eax, eax
je 0x100689d0
push 0x100c685c
lea eax, [ebp - 0x22c]
push eax
call edi
test eax, eax
je 0x100689d0
push esi
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100689d0
mov edx, dword [ebp - 0x264]
mov eax, esi
mov ebx, dword [ebp - 0x258]
sub edx, esi
jmp 0x100689c0
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x100689c0
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10068971
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0xffffffff
je 0x10068a23
push 1
push 0
test bl, 0x10
je 0x10068a0e
push dword [ebp - 0x25c]
push str.explorer.exe
jmp 0x10068a16
push 0
push dword [ebp - 0x25c]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007a730
mov esp, ebp
pop ebp
ret

Function at 0x10068a40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
je 0x10068aa4
lea edx, [ebp - 0x204]
mov esi, edi
sub edx, edi
lea ebx, [ebx]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [edx + esi - 2], ax
test ax, ax
jne 0x10068a70
lea eax, [ebp - 0x204]
push 0x5c
push eax
call fcn.1007b43d
mov esi, eax
add esp, 8
test esi, esi
je 0x10068aa6
xor eax, eax
mov word [esi], ax
lea esi, [ebp - 0x204]
jmp 0x10068aa6
xor esi, esi
push 0x44
lea eax, [ebp - 0x258]
xorps xmm0, xmm0
push 0
push eax
movdqu xmmword [ebp - 0x214], xmm0
call fcn.10081610
add esp, 0xc
mov dword [ebp - 0x258], 0x44
xor eax, eax
mov word [ebp - 0x228], ax
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x258]
push eax
push esi
push 0
push 0
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007a730
mov esp, ebp
pop ebp
ret
Function at 0x10068df0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x804]
mov edx, esi
call fcn.10068d50
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
je 0x10068e42
push esi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1007a730
mov esp, ebp
pop ebp
ret
Function at 0x10069950
Capabilities:
Hash data with md5
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov esi, ecx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10069ad1
mov eax, dword [esi]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x67452301
mov esi, dword [eax]
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
cmp esi, eax
je 0x10069aa5
lea ebx, [ebx]
push 0
lea eax, [esp + 0x10]
push eax
push 0x40
lea edi, [esi + 0x20]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10069aca
cmp dword [esp + 0xc], 0x40
jne 0x10069aca
push 0x40
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.10075ff0
mov eax, dword [esi + 0x18]
add esp, 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push 0
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10069aca
cmp dword [esp + 0xc], 4
jne 0x10069aca
push 4
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.10075ff0
mov eax, dword [esp + 0x14]
lea edi, [esi + 8]
add esp, 4
lea ecx, [eax + eax]
mov dword [esp + 0x10], ecx
cmp dword [edi + 0x14], 8
jb 0x10069a60
mov eax, dword [edi]
jmp 0x10069a62
mov eax, edi
push 0
lea edx, [esp + 0x10]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10069aca
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jne 0x10069aca
cmp dword [edi + 0x14], 8
jb 0x10069a88
mov edi, dword [edi]
push eax
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.10075ff0
mov eax, dword [esp + 0x18]
add esp, 4
mov esi, dword [esi]
cmp esi, dword [eax]
jne 0x100699d0
lea edx, [esp + 0x74]
lea ecx, [esp + 0x18]
call fcn.100760b0
push 0
lea eax, [esp + 0x10]
push eax
push 0x10
lea eax, [esp + 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007a730
mov esp, ebp
pop ebp
ret
Function at 0x10069af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], ecx
push esi
push esi
push 3
push esi
push esi
push SysReAllocString
push dword [ebp + 8]
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10069b75
push esi
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10069b64
cmp dword [ebp - 4], 4
jne 0x10069b64
push esi
lea eax, [ebp - 4]
push eax
push 8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10069b64
cmp dword [ebp - 4], 8
jne 0x10069b64
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push edi
mov dword [eax], esi
mov dword [ebx], esi
mov dword [ebx + 4], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10069b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push esi
push 3
push esi
push esi
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10069bdb
push esi
lea eax, [ebp - 4]
push eax
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10069bd2
cmp dword [ebp - 4], 4
jne 0x10069bd2
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10069bf0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x180c
call fcn.1008ba80
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1808], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [ebp - 0x180c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 0x1004]
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x10069c30
lea eax, [ebp - 0x1004]
push 0x22
push eax
call fcn.1007bcf6
add esp, 8
test eax, eax
je 0x10069d98
push esi
add eax, 2
push 0x22
push eax
call fcn.1007bcf6
mov esi, eax
add esp, 8
test esi, esi
je 0x10069d97
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x20
jne 0x10069c91
mov edi, edi
test ax, ax
je 0x10069c91
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x20
je 0x10069c80
mov ax, word [ebp + 0x10]
mov word [ebp - 0x804], ax
cmp word [esi], 0
jne 0x10069cad
xor eax, eax
mov word [ebp - 0x802], ax
jmp 0x10069cf2
lea ecx, [ebp - 0x802]
sub ecx, edi
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x10069cb5
lea eax, [ebp - 0x804]
push 0x5c
push eax
call fcn.1007b43d
add esp, 8
test eax, eax
je 0x10069cf2
add esi, 2
lea ecx, [eax + 2]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x10069ce2
cmp word [ebp + 0x10], 0x30
jne 0x10069d01
mov eax, dword [ebp - 0x1808]
jmp 0x10069d67
push dword [0x100e3b04]
lea eax, [ebp - 0x1804]
push 0x100e3304
push eax
call fcn.1007bf5d
mov esi, dword [0x100e3b04]
lea edx, [ebp - 0x1804]
mov ecx, str.MyFiles_
add esp, 0xc
lea edx, [edx + esi*2]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10069d31
lea edx, [ebp - 0x17f4]
mov ecx, str.HYPERTRM.dll
lea edx, [edx + esi*2]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10069d51
lea eax, [ebp - 0x1804]
lea ecx, [ebp - 0x804]
push ecx
push eax
lea eax, [ebp - 0x1004]
push str.___s__AfxGetHttpRequastMgr__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x180c]
lea edx, [ebp - 0x1004]
push 0
call fcn.10068a40
add esp, 0x14
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1007a730
mov esp, ebp
pop ebp
ret
Function at 0x1006a290
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x274], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x260], ecx
mov esi, dword [eax]
xor edx, edx
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x25c], edx
cmp esi, eax
je 0x1006a421
lea ebx, [ebx]
cmp dword [esi + 0x1c], 8
jb 0x1006a2eb
mov eax, dword [esi + 8]
jmp 0x1006a2ee
lea eax, [esi + 8]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x1006a3a0
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x268], ecx
mov ecx, dword [ebp - 0x23c]
push eax
mov dword [ebp - 0x264], ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
cmp ecx, dword [ebp - 0x264]
jb 0x1006a3fd
mov edx, dword [ebp - 0x268]
ja 0x1006a345
cmp eax, edx
jbe 0x1006a3fd
sub eax, edx
mov dword [edi], eax
sbb ecx, dword [ebp - 0x264]
mov dword [edi + 4], ecx
test ecx, ecx
ja 0x1006a35e
test eax, eax
jbe 0x1006a40a
mov ecx, dword [ebp - 0x274]
lea eax, [esi + 0x20]
mov edi, dword [ebp - 0x26c]
lea edx, [ecx + ecx]
sub edx, eax
add edx, edi
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x1006a374
cmp dword [esi + 0x1c], 8
jb 0x1006a38f
mov eax, dword [esi + 8]
jmp 0x1006a392
lea eax, [esi + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
inc dword [ebp - 0x25c]
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [eax], edi
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x260]
dec dword [eax + 4]
cmp dword [esi + 0x1c], 8
jb 0x1006a3c9
push dword [esi + 8]
call fcn.1007b706
add esp, 4
xor eax, eax
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
push esi
mov word [esi + 8], ax
call fcn.1007b706
mov ecx, dword [ebp - 0x260]
add esp, 4
mov esi, edi
cmp edi, dword [ecx]
je 0x1006a40a
mov edi, dword [ebp - 0x270]
jmp 0x1006a2e0
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [ebp - 0x25c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007a730
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007a730
mov esp, ebp
pop ebp
ret
Function at 0x1006a670
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dx, 0x30
jb 0x1006a686
cmp dx, 0x39
jbe 0x1006a69b
cmp dx, 0x41
jb 0x1006a692
cmp dx, 0x5a
jbe 0x1006a69b
lea eax, [edx - 0x61]
cmp ax, 0x19
ja 0x1006a6aa
mov ecx, dword [esi + 0x1c]
mov edi, 1
mov eax, dword [esi + 0x18]
mov word [eax + ecx*2], dx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
add ecx, edi
push ebx
push 0x10
lea eax, [eax + ecx*2]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.1007c48d
mov edx, dword [esi + 0x1c]
add esp, 0xc
mov ebx, dword [esi + 0x18]
lea eax, [edx + edi]
lea ecx, [ebx + eax*2]
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006a6e0
sub ecx, dword [ebp - 4]
sar ecx, 1
push 0x10
lea eax, [edx + ecx]
add eax, edi
lea eax, [ebx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.1007c48d
add esp, 0xc
lea ecx, [esi + 0x94]
call fcn.1006ef00
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [esi + 0x18]
mov dword [esi + 0x90], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
pop ebx
setne cl
mov eax, ecx
test ecx, ecx
je 0x1006a787
pop edi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0x67452301
mov dword [esi + 0x34], 0xefcdab89
mov dword [esi + 0x38], 0x98badcfe
mov dword [esi + 0x3c], 0x10325476
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x24], 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1006a7a0
Capabilities:
Clear file content
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x1006a81a
cmp dword [esi + 0xc], edi
ja 0x1006a7b9
cmp dword [esi + 8], edi
jbe 0x1006a7f0
push 0
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi + 0x90]
mov ecx, dword [esi + 0x20]
lea eax, [esi + 0x94]
push eax
lea edx, [esi + 8]
call fcn.1006a440
add esp, 8
mov edi, eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1006a811
lea edx, [esi + 0x80]
lea ecx, [esi + 0x28]
call fcn.100760b0
mov eax, edi
pop edi
pop esi
pop ebx
ret
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
pop edi
pop esi
pop ebx
ret