joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10066250
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov dword [ebp - 0x124], eax
mov esi, edx
mov eax, dword [ebp + 0xc]
mov edi, ecx
push 0x11c
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x120]
push 0
push eax
movdqu xmmword [ebp - 0x158], xmm0
mov dword [ebp - 0x138], 0
movdqu xmmword [ebp - 0x148], xmm0
call fcn.10081800
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x100663f5
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x100662f3
lea ecx, [ebp - 0x158]
push ecx
call eax
jmp 0x10066300
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
mov dword [edi], eax
mov eax, dword [ebp - 0x118]
mov dword [esi], eax
mov eax, dword [ebp - 0x114]
push str.ntdll.dll
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x10066391
push str.RtlGetNtVersionNumbers
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x10066391
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x128], 0
push ecx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push ecx
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x130], 0
push ecx
call eax
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x124]
mov dword [edi], eax
mov eax, dword [ebp - 0x12c]
mov dword [esi], eax
movzx eax, word [ebp - 0x130]
mov dword [ecx], eax
mov ax, word [ebp - 0x158]
cmp ax, 6
je 0x100663a8
cmp ax, 9
je 0x100663a8
xor eax, eax
jmp 0x100663ad
mov eax, 1
cmp dword [ebp - 0x110], 2
mov ecx, dword [ebp - 0x134]
mov dword [ecx], eax
jne 0x100663f5
mov eax, dword [edi]
cmp eax, 4
jbe 0x100663f5
cmp eax, 6
jb 0x100663da
cmp eax, 0xa
jne 0x10066407
cmp dword [esi], 0
jne 0x100663da
cmp byte [ebp - 6], 1
je 0x100663f5
cmp eax, 5
jne 0x100663f5
mov eax, dword [esi]
cmp eax, 2
jne 0x100663f5
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x100663f5
mov eax, dword [ebp - 8]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007aa10
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x100663da
mov ecx, dword [esi]
test ecx, ecx
je 0x100663f5
cmp ecx, 1
je 0x100663f5
cmp ecx, 2
jne 0x10066435
xor eax, eax
cmp byte [ebp - 6], 1
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007aa10
mov esp, ebp
pop ebp
ret
cmp ecx, 3
jne 0x100663da
lea eax, [ecx - 2]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1007aa10
mov esp, ebp
pop ebp
ret
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.1007aa10
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007aa10
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 0x10099058
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.1006f530
inc edi
mov dword [ebp - 0x5c], edi
push 3
push 0x100c6860
mov ecx, esi
call fcn.1006f5f0
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, 0x100c6868
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, 0x100c686c
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.1006f110
mov edi, eax
cmp esi, edi
je 0x100671fd
cmp dword [esi + 0x14], 8
jb 0x100671e2
push dword [esi]
call fcn.1007b9e6
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.1006f4d0
cmp dword [ebp - 0x18], 8
jb 0x1006720e
push dword [ebp - 0x2c]
call fcn.1007b9e6
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.1006f5f0
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.1007aa10
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 0x1009908b
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, 0x100c6860
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, 0x100c6868
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, 0x100c686c
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.1007b71d
add esp, 8
test eax, eax
je 0x1006746c
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x100c6874
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.1006f5f0
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.1007b9e6
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.1007aa10
mov esp, ebp
pop ebp
ret
Function at 0x10068510
Capabilities:
Write 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 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1006855c
push esi
lea eax, [ebp - 4]
push eax
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x10068555
mov ecx, dword [ebp - 4]
test ecx, ecx
cmovne esi, ecx
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10068570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
mov ebx, ecx
lea ecx, [esp + 0x18]
push esi
push edi
sub ecx, edx
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x10068595
lea eax, [esp + 0x20]
push 0x5c
push eax
call fcn.1007b71d
add esp, 8
test eax, eax
je 0x1006867d
mov ecx, str.timedatestamp
lea edx, [eax + 2]
sub edx, ecx
jmp 0x100685d0
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x100685d0
xor esi, esi
lea eax, [esp + 0x20]
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10068627
push esi
lea eax, [esp + 0x10]
push eax
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x10068620
mov eax, dword [esp + 0xc]
test eax, eax
cmovne esi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, 4
jae 0x10068666
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
lea ecx, [esp + 0x10]
call fcn.10068490
mov dword [ebx], eax
mov ecx, ebx
lea eax, [esp + 0x20]
push eax
call fcn.10068510
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.1007aa10
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.1007aa10
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x824]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007aa10
mov esp, ebp
pop ebp
ret
Function at 0x10068af0
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 0x10068c33
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10068b30
sub ecx, edx
mov eax, 0x5c
sar ecx, 1
push 0x100c6860
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 0x10068c33
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcmpW]
push 0x100c6868
lea eax, [ebp - 0x22c]
push eax
call edi
test eax, eax
je 0x10068be0
push 0x100c686c
lea eax, [ebp - 0x22c]
push eax
call edi
test eax, eax
je 0x10068be0
push esi
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x10068be0
mov edx, dword [ebp - 0x264]
mov eax, esi
mov ebx, dword [ebp - 0x258]
sub edx, esi
jmp 0x10068bd0
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x10068bd0
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x10068b81
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp ebx, 0xffffffff
je 0x10068c33
push 1
push 0
test bl, 0x10
je 0x10068c1e
push dword [ebp - 0x25c]
push str.explorer.exe
jmp 0x10068c26
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.1007aa10
mov esp, ebp
pop ebp
ret

Function at 0x10068c50
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 0x10068cb4
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 0x10068c80
lea eax, [ebp - 0x204]
push 0x5c
push eax
call fcn.1007b71d
mov esi, eax
add esp, 8
test esi, esi
je 0x10068cb6
xor eax, eax
mov word [esi], ax
lea esi, [ebp - 0x204]
jmp 0x10068cb6
xor esi, esi
push 0x44
lea eax, [ebp - 0x258]
xorps xmm0, xmm0
push 0
push eax
movdqu xmmword [ebp - 0x214], xmm0
call fcn.10081800
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.1007aa10
mov esp, ebp
pop ebp
ret
Function at 0x10069000
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.10068f60
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 0x10069052
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.1007aa10
mov esp, ebp
pop ebp
ret
Function at 0x10069b60
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 0x10069ce1
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 0x10069cb5
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 0x10069cda
cmp dword [esp + 0xc], 0x40
jne 0x10069cda
push 0x40
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.100762d0
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 0x10069cda
cmp dword [esp + 0xc], 4
jne 0x10069cda
push 4
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.100762d0
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 0x10069c70
mov eax, dword [edi]
jmp 0x10069c72
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 0x10069cda
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jne 0x10069cda
cmp dword [edi + 0x14], 8
jb 0x10069c98
mov edi, dword [edi]
push eax
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.100762d0
mov eax, dword [esp + 0x18]
add esp, 4
mov esi, dword [esi]
cmp esi, dword [eax]
jne 0x10069be0
lea edx, [esp + 0x74]
lea ecx, [esp + 0x18]
call fcn.10076390
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.1007aa10
mov esp, ebp
pop ebp
ret
Function at 0x10069d00
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 0x10069d85
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 0x10069d74
cmp dword [ebp - 4], 4
jne 0x10069d74
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 0x10069d74
cmp dword [ebp - 4], 8
jne 0x10069d74
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 0x10069d90
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 0x10069deb
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 0x10069de2
cmp dword [ebp - 4], 4
jne 0x10069de2
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 0x10069e00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x180c
call fcn.1008bd60
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 0x10069e40
lea eax, [ebp - 0x1004]
push 0x22
push eax
call fcn.1007bfd6
add esp, 8
test eax, eax
je 0x10069fa8
push esi
add eax, 2
push 0x22
push eax
call fcn.1007bfd6
mov esi, eax
add esp, 8
test esi, esi
je 0x10069fa7
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x20
jne 0x10069ea1
mov edi, edi
test ax, ax
je 0x10069ea1
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x20
je 0x10069e90
mov ax, word [ebp + 0x10]
mov word [ebp - 0x804], ax
cmp word [esi], 0
jne 0x10069ebd
xor eax, eax
mov word [ebp - 0x802], ax
jmp 0x10069f02
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 0x10069ec5
lea eax, [ebp - 0x804]
push 0x5c
push eax
call fcn.1007b71d
add esp, 8
test eax, eax
je 0x10069f02
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 0x10069ef2
cmp word [ebp + 0x10], 0x30
jne 0x10069f11
mov eax, dword [ebp - 0x1808]
jmp 0x10069f77
push dword [0x100e3b04]
lea eax, [ebp - 0x1804]
push 0x100e3304
push eax
call fcn.1007c23d
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 0x10069f41
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 0x10069f61
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.10068c50
add esp, 0x14
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1007aa10
mov esp, ebp
pop ebp
ret