joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f66c
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x60d965
call fcn.0060cc48
sub esp, 0x5c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x64]
push ebx
push eax
mov esi, edx
mov edi, ecx
call fcn.005e26d0
add esp, 0xc
mov dword [ebp - 0x68], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 1
movups xmmword [ebp - 0x20], xmm0
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
and dword [ebp - 4], ebx
lea eax, [ebp - 0x10]
push esi
push edi
push str.__s___s
push eax
call fcn.00406cc8
add esp, 0x10
cmp dword [ebp + 0xc], ebx
je 0x46f6d4
push 0xa
pop eax
jmp 0x46f6d6
xor eax, eax
mov esi, dword [ebp - 0x10]
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x46f70e
cmp dword [ebp + 8], 0
je 0x46f70b
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x20], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x46f723
push dword [ebp - 0x20]
call edi
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x1c], 0
je 0x46f732
push dword [ebp - 0x1c]
call edi
and dword [ebp - 0x1c], 0
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46f8f9
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x6110cc
call fcn.0060cc48
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push esi
call fcn.00406173
push 3
push 0x5c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00405fec
mov edi, eax
add edi, 1
je 0x46f998
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405d36
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46f984
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x46f99e
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00405fec
mov edi, eax
add edi, 1
jne 0x46f93d
jmp 0x46f99b
mov esi, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46ff7f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x60e826
call fcn.0060cc48
sub esp, 0x74
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
jne 0x46ff9e
xor eax, eax
jmp 0x4700db
call fcn.00404f47
push eax
lea ecx, [ebp - 0x1c]
call fcn.004065d8
push edi
push esi
lea eax, [ebp - 0x1c]
xor ebx, ebx
push str.__s___s
push eax
mov dword [ebp - 4], ebx
call fcn.00406cc8
add esp, 0x10
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x10]
call fcn.00419cc1
mov esi, dword [ebp - 0x1c]
test eax, eax
jne 0x4700c2
push 0x40
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x44
push ebx
push eax
call fcn.005e26d0
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
cmp dword [ebp + 8], ebx
je 0x470001
push 5
pop eax
jmp 0x470003
xor eax, eax
push str.userenv.dll
mov word [ebp - 0x50], ax
mov dword [ebp - 0x78], str.Winsta0Default
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x47006d
push str.CreateEnvironmentBlock
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
call edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x47006a
push ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
call eax
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x470065
mov eax, 0x430
jmp 0x470070
mov dword [ebp - 0x18], ebx
jmp 0x47006d
mov edi, dword [ebp - 0x14]
push 0x30
pop eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push dword [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x34], 0
mov ebx, eax
je 0x47009c
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0
je 0x4700ab
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4700b7
push dword [ebp - 0x18]
call eax
test edi, edi
je 0x4700c2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], 0
je 0x4700d1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4700ec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
and dword [ebp - 8], 0
lea eax, [ebp - 0x68]
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x20], ecx
push ebx
push eax
mov edi, edx
mov dword [ebp - 0x6c], 0x44
call fcn.005e26d0
and dword [ebp - 0xc], ebx
lea edx, [ebp - 0xc]
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x1c], xmm0
xor esi, esi
call fcn.00471094
test eax, eax
je 0x4701c9
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00471151
push 0x800
lea eax, [ebp - 0x86c]
push ebx
push eax
call fcn.005e26d0
push edi
push dword [ebp - 0x20]
lea eax, [ebp - 0x86c]
push str.__s___s
push 0x400
push eax
call fcn.0043cad9
add esp, 0x20
push 0x696f38
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4701ab
push str.CreateProcessWithTokenW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4701ab
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x86c]
push ecx
push ebx
push ebx
push dword [ebp - 8]
call eax
jmp 0x4701c7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x86c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp dword [ebp - 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4701de
push dword [ebp - 8]
call edi
and dword [ebp - 8], 0
cmp dword [ebp - 0x1c], 0
je 0x4701ed
push dword [ebp - 0x1c]
call edi
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
je 0x4701fc
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x18], 0
test esi, esi
je 0x470207
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470431
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x611d96
call fcn.0060cc48
sub esp, 0xc
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
je 0x470622
push esi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
mov dword [ebp - 4], edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], edi
jne 0x4705e7
push ebx
lea ecx, [ebp - 0x10]
call fcn.00406123
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4704a1
lea ecx, [ebp - 0x10]
call fcn.00406271
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x4705e7
lea ecx, [ebp - 0x14]
call fcn.00406271
lea ecx, [ebp - 0x18]
call fcn.00470a98
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov edx, dword [ebp - 0x14]
cmp dword [edx - 0xc], 0
je 0x470546
lea ecx, [ebp - 0x18]
call fcn.00470634
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push ebx
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0040b545
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x470546
lea ecx, [ebp - 0x10]
call fcn.00406271
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x4705e7
lea ecx, [ebp - 0x14]
call fcn.00406271
lea ecx, [ebp - 0x18]
call fcn.00470b59
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov edx, dword [ebp - 0x14]
cmp dword [edx - 0xc], 0
je 0x4705e7
lea ecx, [ebp - 0x18]
call fcn.00470634
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00406123
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push ebx
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0040b545
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.00406123
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4705e7
lea ecx, [ebp - 0x10]
call fcn.00406271
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], edi
je 0x470604
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x470604
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x47060e
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x470a98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword fs:[0x2c]
push esi
push edi
xor edi, edi
mov esi, ecx
mov edx, dword [eax]
mov eax, dword [0x6cad34]
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
cmp eax, dword [edx + 4]
jle 0x470afb
push ebx
mov ebx, 0x6cad34
push ebx
call fcn.0049a991
cmp dword [0x6cad34], 0xffffffff
pop ecx
jne 0x470afa
call fcn.00404f47
push eax
mov ecx, 0x6cad38
call fcn.004065d8
push 0x6142b3
call fcn.0049ace8
push ebx
call fcn.0049a952
pop ecx
pop ecx
pop ebx
mov eax, dword [0x6cad38]
cmp dword [eax - 0xc], edi
jne 0x470b42
push 0x20c
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.005e26d0
add esp, 0xc
lea eax, [ebp - 0x214]
push 1
push 0x25
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x214]
mov ecx, 0x6cad38
push eax
call fcn.004060f8
mov eax, dword [0x6cad38]
add eax, 0xfffffff0
push eax
call fcn.004067cf
pop ecx
add eax, 0x10
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x470b59
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword fs:[0x2c]
push esi
push edi
xor edi, edi
mov esi, ecx
mov edx, dword [eax]
mov eax, dword [0x6cad3c]
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
cmp eax, dword [edx + 4]
jle 0x470bbc
push ebx
mov ebx, 0x6cad3c
push ebx
call fcn.0049a991
cmp dword [0x6cad3c], 0xffffffff
pop ecx
jne 0x470bbb
call fcn.00404f47
push eax
mov ecx, 0x6cad40
call fcn.004065d8
push 0x6142c1
call fcn.0049ace8
push ebx
call fcn.0049a952
pop ecx
pop ecx
pop ebx
mov eax, dword [0x6cad40]
cmp dword [eax - 0xc], edi
jne 0x470c03
push 0x20c
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.005e26d0
add esp, 0xc
lea eax, [ebp - 0x214]
push 1
push 0x24
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x214]
mov ecx, 0x6cad40
push eax
call fcn.004060f8
mov eax, dword [0x6cad40]
add eax, 0xfffffff0
push eax
call fcn.004067cf
pop ecx
add eax, 0x10
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x470c1a
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x60dbcd
call fcn.0060cc48
sub esp, 0x210
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.00404f47
push eax
mov ecx, esi
call fcn.004065d8
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
call fcn.005e26d0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x470c9b
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004060f8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x470de2
Capabilities:
Query environment variable

Disassembly:
push 0x18
push 0x6b3b30
call fcn.0060cc70
mov dword [ebp - 0x24], edx
mov eax, ecx
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x1c], esi
test eax, eax
je 0x470e8b
test edx, edx
je 0x470e8b
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 1
jb 0x470e8b
cmp edi, 0x103
ja 0x470e8b
mov dword [ebp - 4], esi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049a823
pop ecx
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x470e87
lea eax, [edi + edi]
push eax
push esi
push ebx
call fcn.005e26d0
add esp, 0xc
push edi
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x470e87
mov ecx, 0x103
cmp eax, ecx
ja 0x470e87
push eax
push ebx
push ecx
push dword [ebp - 0x24]
call fcn.005f4afd
add esp, 0x10
inc esi
jmp 0x470e84
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x470e9a
push dword [ebp - 0x1c]
call fcn.0049a81e
pop ecx
mov eax, esi
call fcn.0060ccac
ret

Function at 0x470f87
Capabilities:
Get common file path

Disassembly:
mov eax, 0x60dbcd
call fcn.0060cc48
sub esp, 0x210
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x21c]
push 0x208
mov esi, ecx
mov dword [ebp - 0x14], esi
push edi
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x10], edi
call fcn.005e26d0
add esp, 0xc
call fcn.00404f47
push eax
mov ecx, esi
call fcn.004065d8
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], edi
push eax
push 0x104
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x47100f
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004060f8
push str.kinst.log
mov ecx, esi
call fcn.004062d3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x471094
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x60d965
call fcn.0060cc48
sub esp, 0x230
push ebx
push esi
push edi
push str.explorer.exe
lea ecx, [ebp - 0x10]
mov ebx, edx
xor edi, edi
call fcn.00406173
push 0x22c
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.005e26d0
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x471133
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x47111b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x10]
call fcn.00417f34
test eax, eax
je 0x471121
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4710fa
jmp 0x47112c
mov eax, dword [ebp - 0x234]
xor edi, edi
mov dword [ebx], eax
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x471469
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x60db0f
call fcn.0060cc48
push esi
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
push str._access
call fcn.004062d3
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4714aa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
inc esi
jmp 0x4714b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
inc ecx
cmp eax, 5
cmovne esi, ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4717c5
Capabilities:
Move file

Disassembly:
mov eax, 0x611e49
call fcn.0060cc48
sub esp, 0x30
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x4717f0
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406af0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040446d
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x24]
call fcn.00417f58
lea ecx, [ebp - 0x24]
call fcn.0041808e
movzx esi, al
test al, al
jne 0x471842
cmp dword [ebp - 0x14], 0x104
jb 0x471825
mov al, bl
jmp 0x47183f
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push 5
cmovae eax, dword [ebp - 0x24]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
movzx esi, al
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.004044ec
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.004044ec
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x471875
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
push str.DownLoadFile
push 0x6ca908
mov ebx, edx
mov esi, ecx
xor edi, edi
call fcn.0048e9c0
push 3
push edi
push edi
mov edx, ebx
mov ecx, esi
call fcn.004744ff
add esp, 0x14
test eax, eax
jne 0x4718b1
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
cmovne edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x471cbf
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x60d965
call fcn.0060cc48
push ecx
push esi
push edi
xor esi, esi
xor eax, eax
inc esi
mov edi, ecx
push esi
push eax
push eax
push dword [edi]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x471d2e
push esi
push 0
push dword [edi]
push str.IEXPLORE.EXE
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x471d2e
lea ecx, [ebp - 0x10]
call fcn.00470c1a
and dword [ebp - 4], 0
sub esp, 0xc
mov edx, dword [edi]
mov ecx, dword [ebp - 0x10]
call fcn.004700ec
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x471efa
Capabilities:
Get file size

Disassembly:
mov eax, 0x611eeb
call fcn.0060cc48
sub esp, 0x20
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
xor edx, edx
lea ecx, [ebp - 0x14]
call fcn.0040afda
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jle 0x471f80
cmp dword [eax - 4], 1
jle 0x471f39
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406af0
mov eax, dword [ebp - 0x14]
mov ecx, eax
call fcn.00403ffd
mov esi, eax
test esi, esi
je 0x471f7d
mov edx, dword [esi]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call dword [edx + 0x18]
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x471f5d
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.004060f8
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004044ec
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 0x14]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x471feb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x471fe4
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
push ecx
push ecx
addsd xmm0, qword [eax*8 + 0x6a1c10]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x6a1a38]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str._0.2f_MB
push ebx
call fcn.00406cc8
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4744ff
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x6121a2
call fcn.0060cc48
mov ecx, dword [ecx]
sub esp, 0xa4
cmp dword [ecx - 0xc], 0
push ebx
push esi
push edi
mov esi, edx
je 0x474658
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x474658
push 3
lea eax, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], eax
call fcn.00408f48
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
push dword [ebp - 0xac]
call fcn.00413e4d
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 2
cmp dword [ebp - 0xac], eax
je 0x474577
push dword [ebp - 0xac]
call fcn.005f0fb3
pop ecx
mov dword [ebp - 0x28], 0x69e1d4
call fcn.00404f47
push eax
lea ecx, [ebp - 0x1c]
call fcn.004065d8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
push dword [esi]
call fcn.004060f8
mov eax, dword [ebp - 0x20]
cmp dword [ebp + 0xc], 0
push dword [esi]
cmovne eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4745db
push str.file_exists_already__delete
push 0x6ca908
call fcn.0048e9c0
pop ecx
pop ecx
push dword [esi]
call ebx
cmp dword [ebp + 0x10], 0
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
jne 0x4745ee
push 0x12c
jmp 0x4745f1
push dword [ebp + 0x10]
call fcn.00474191
mov edi, eax
pop ecx
push dword [esi]
test edi, edi
je 0x47461a
call ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x47460a
mov dword [eax], edi
mov esi, 0x109
cmp edi, 0x2a
lea eax, [esi - 0xf]
cmovne esi, eax
jmp 0x47462b
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x474629
push 0x35
pop esi
jmp 0x47462b
xor esi, esi
cmp dword [ebp - 0x18], 0
je 0x47463e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404ea9
mov eax, esi
jmp 0x47465b
push 0x33
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47468e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x474710
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x4746c2
cmp dword [ebp - 8], 2
jne 0x474710
mov ecx, dword [ebp + 0xc]
call fcn.00406271
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.0040682a
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x474710
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
shr eax, 1
push 0xffffffffffffffff
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
call fcn.00408f1c
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8