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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b897b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4e4018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x228], ebx
mov eax, dword [0x4f95f0]
test al, 1
jne 0x46b9d6
or eax, 1
mov dword [0x4f95f0], eax
call fcn.00404a90
mov ecx, eax
test ecx, ecx
je 0x46bb67
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x4bb4a0
mov dword [0x4f95f4], eax
call fcn.00487cf0
add esp, 4
mov eax, dword [0x4f95f4]
cmp dword [eax - 0xc], 0
jne 0x46bb36
mov esi, dword [0x4f9128]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
test esi, esi
je 0x46ba0d
lock inc dword [esi + 4]
mov esi, dword [0x4f9128]
mov ecx, dword [0x4f9124]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x224]
mov eax, dword [ecx]
push edx
call dword [eax + 0x4c]
or edi, 0xffffffff
mov byte [ebp - 4], 2
test esi, esi
je 0x46ba5c
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x46ba5c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x46ba5c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x21c]
push eax
push 0x201
push 0
push dword [ebp - 0x224]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46bb14
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00489ec0
add esp, 0xc
mov dword [ebp - 0x220], 1
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push str.DisplayVersion
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46baf3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4f95f4
call fcn.00404740
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x46bb36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x4f95f4]
add ecx, 0xfffffff0
call fcn.00416ab0
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048782e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404860
int3
Function at 0x46ced0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4e4018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov esi, dword [0x4f9128]
test esi, esi
je 0x46cf1b
lock inc dword [esi + 4]
mov esi, dword [0x4f9128]
mov ecx, dword [0x4f9124]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], esi
mov byte [ebp - 4], 2
lea edx, [ebp - 0x21c]
mov eax, dword [ecx]
push edx
call dword [eax + 0xf4]
or edi, 0xffffffff
mov byte [ebp - 4], 4
test esi, esi
je 0x46cf6a
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x46cf6a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x46cf6a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00489ec0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push 0x104
push eax
push 0x4ceb2c
push dword [ebp + 0xc]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x46cfe5
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46cfc0
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00404740
mov esi, 1
jmp 0x46cfe7
xor esi, esi
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46d008
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46d026
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x46d045
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048782e
mov esp, ebp
pop ebp
ret
Function at 0x46f4d0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8f4d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e4018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
je 0x46f5aa
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
test eax, eax
jne 0x46f5aa
push edi
call esi
test eax, eax
je 0x46f5aa
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x46f53c
push edi
call ebx
test eax, eax
jne 0x46f5aa
call fcn.00404a90
mov ecx, eax
test ecx, ecx
je 0x46f5c1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea eax, [ebp - 0x10]
push 0x4d1404
push eax
call fcn.00403d00
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call ebx
push 1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
push 4
push 0
push esi
call edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46f5aa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404860
int3
Function at 0x470130
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9070
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4e4018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x21c], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], esi
push 0
push eax
call fcn.00489ec0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x4701a8
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00404a90
mov ecx, eax
test ecx, ecx
je 0x47021b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00404440
test al, al
jne 0x4701fe
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4701e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404740
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048782e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404860
int3

Function at 0x470230
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9070
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4e4018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x21c], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], esi
push 0
push eax
call fcn.00489ec0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x4702a8
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00404a90
mov ecx, eax
test ecx, ecx
je 0x47031b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00404440
test al, al
jne 0x4702fe
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4702e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404740
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048782e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404860
int3
Function at 0x470d40
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b923d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e4018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x470e93
cmp dword [ebp - 0x10], 0
je 0x470e93
call fcn.00404a90
mov ecx, eax
test ecx, ecx
je 0x470ed0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
test edx, edx
js 0x470ec6
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x470de3
push edx
lea ecx, [ebp - 0x14]
call fcn.00404650
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
push dword [esi - 8]
push esi
test eax, eax
jne 0x470e6a
call fcn.0048fe2b
add esp, 8
test eax, eax
js 0x470ec6
cmp eax, dword [esi - 8]
jg 0x470ec6
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00404a90
mov ecx, eax
test ecx, ecx
je 0x470ebc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x470ea8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0048fe2b
add esp, 8
test eax, eax
js 0x470ec6
cmp eax, dword [esi - 8]
jg 0x470ec6
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
add esi, 0xfffffff0
mov ecx, esi
call fcn.00416ab0
add eax, 0x10
jmp 0x470e38
call fcn.00404a90
mov ecx, eax
test ecx, ecx
je 0x470ed0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404860
push 0x80070057
call fcn.00404860
push 0x80004005
call fcn.00404860
int3
Function at 0x470ee0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9275
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e4018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
push ebx
push ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
push ecx
push ebx
push edx
mov dword [ebp - 0x10], ebx
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x470fc1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x470fc1
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0046b0f0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
push 0
push 0
push ecx
push edi
push dword [ebp - 0x20]
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov dword [esi], edi
mov dword [esi + 8], ebx
test eax, eax
jne 0x470fb9
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esi + 4], edi
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x470ff7
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
jmp 0x470fd5
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x470ff7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4717a0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9365
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e4018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov esi, dword [0x4f9128]
test esi, esi
je 0x4717e1
lock inc dword [esi + 4]
mov esi, dword [0x4f9128]
mov ecx, dword [0x4f9124]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x24]
or edi, 0xffffffff
mov byte [ebp - 4], 2
test esi, esi
je 0x471827
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x471827
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x471827
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.00470230
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x471859
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push str.UserData
lea ecx, [ebp - 0x14]
call fcn.004066c0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x10]
mov ecx, ebx
call fcn.0046f6b0
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471899
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4718b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4718d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4718f0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b93a5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4e4018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x10]
call fcn.004717a0
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x471950
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test edi, edi
je 0x4719aa
push edi
lea ecx, [ebp - 0x14]
call fcn.004066c0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.0046f6b0
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471993
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jmp 0x4719d2
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00416ab0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [esi], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4719dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4755c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
mov eax, edx
push 1
push SysReAllocString
push ecx
mov dword [eax], 0
mov dword [ebp - 4], eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x475633
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
je 0x47566f
cmp eax, 0xffffffff
je 0x47566f
add eax, 8
push 0x4bc910
push eax
call fcn.00487e1f
mov ebx, dword [ebp - 4]
mov ecx, eax
add esp, 8
mov dword [ebx], ecx
test ecx, ecx
jne 0x47563c
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
add eax, 8
push eax
push 0
push ecx
call fcn.00489ec0
add esp, 0xc
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push dword [edi]
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp ecx, dword [edi]
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x475680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b98fd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4e4018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
test esi, esi
je 0x47572a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47572a
mov dword [ebp - 0x1c], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov ecx, esi
call fcn.004755c0
mov esi, dword [ebp - 0x18]
add esp, 4
test eax, eax
je 0x475708
cmp dword [ebp - 0x10], 0
je 0x475708
mov edx, edi
mov ecx, esi
call fcn.00475980
mov edi, eax
jmp 0x47570a
xor edi, edi
test esi, esi
je 0x475717
push esi
call fcn.00487e1a
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x477ba0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9d8d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4e4018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x5c]
push eax
call fcn.004782c0
mov dword [ebp - 4], 0
push dword [ebp - 0x5c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x477c1a
and dword [ebp - 0x70], 0xfffffe00
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x78]
mov ecx, dword [ebp - 0x5c]
call fcn.00475680
mov eax, dword [ebp - 0x70]
test al, al
je 0x477c5c
cmp al, 7
je 0x477c5c
lea ecx, [ebp - 0x78]
call fcn.00473f00
xor edi, edi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x5c]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x477c3e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048782e
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
push ecx
push str.send_date
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.004744b0
lea edx, [ebp - 0x68]
mov ecx, eax
call fcn.004798c0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
sub eax, ecx
sar eax, 2
cmp eax, 3
jb 0x477cdd
mov edx, dword [ecx]
cmp edx, 0x7d0
jb 0x477cdd
mov eax, dword [ecx + 4]
cmp eax, 1
jb 0x477cdd
cmp eax, 0xc
ja 0x477cdd
mov ecx, dword [ecx + 8]
cmp ecx, 1
jb 0x477cdd
cmp ecx, 0x1f
ja 0x477cdd
sub esp, 0x10
push ecx
push eax
push edx
lea ecx, [ebp - 0x88]
call fcn.0046df10
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x40], eax
lea ecx, [ebp - 0x80]
call fcn.00460550
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0049b123
xor esi, esi
lea ebx, [edi + 0x3c]
test eax, eax
lea eax, [ebp - 0x58]
push ebx
cmove esi, dword [ebp - 0x28]
push eax
call fcn.0049b123
xor ecx, ecx
add esp, 0x10
test eax, eax
cmove ecx, dword [ebp - 0x4c]
add edi, 0x34
cmp esi, ecx
je 0x477d42
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
mov dword [ebx + 4], ecx
mov ecx, edi
mov dword [ebx], eax
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.00471440
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
jmp 0x477d59
push ecx
push str.reports
lea ecx, [ebp - 0x78]
call fcn.004744b0
mov edx, edi
mov ecx, eax
call fcn.00479a90
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x477dac
mov eax, dword [ebp - 0x60]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x477d8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x477dbe
push edx
push ecx
call fcn.0048783c
add esp, 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x78]
call fcn.00473f00
mov edi, 1
jmp 0x477c1c
call fcn.0048faf7
int3