joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d283c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5020a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 2
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov byte [ebp - 4], 1
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x474c93
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 4
lea esi, [edi + 0x30]
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0049f987
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
mov eax, edi
mov dword [edi + 0x44], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404bc0
int3
Function at 0x475fb0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x47604e
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [edi + 0x30]
mov ecx, edi
push 0
call fcn.004762b0
mov esi, dword [edi + 0xc]
sub esi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x47602c
nop word [eax + eax]
test esi, esi
js 0x476057
cmp esi, dword [edi + 0xc]
jge 0x476057
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x47601e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
sub esi, 1
jns 0x475ff0
push dword [edi + 0x40]
call ebx
lea esi, [edi + 0x14]
mov dword [edi + 0x40], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x3c]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 0xc000008c
call fcn.004107b0
int3
Function at 0x4769e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x83c
mov eax, dword [0x5020a8]
xor eax, esp
mov dword [esp + 0x838], eax
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x476ace
push 0x800
push eax
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
push eax
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x14], 0x30
mov dword [esp + 0x28], 0x400000
call fcn.004a1810
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4eb614
lea eax, [esp + 0x40]
push 0x400
push eax
call fcn.004642a0
add esp, 0x10
mov dword [esp + 0x10], 0x476b00
lea eax, [esp + 0x38]
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [esp + 0x20]
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x58]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x476ae6
push esi
push 0xffffffffffffffeb
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.0049fe2d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x83c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0049fe2d
mov esp, ebp
pop ebp
ret
Function at 0x476bb0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2a6e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5020a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push 0x44
call fcn.0049f987
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 3
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x476d78
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 4
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x476d78
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 5
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x476d78
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 6
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x476d78
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 7
lea esi, [edi + 0x28]
mov dword [ebp - 0x1c], esi
push 0x20
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049f987
mov dword [ebp - 0x1c], edi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 1
mov dword [edi + 0x40], 0xffffffff
push 0x10
mov dword [ebp - 4], 8
call fcn.0049f987
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], esi
add esp, 8
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_class_CHttpRequest_.0
mov dword [esi + 0xc], edi
push dword [ebp - 0x10]
lea ecx, [edi + 0x20]
mov dword [ebp - 4], 9
call fcn.00403210
push dword [ebp + 8]
lea ecx, [edi + 0x24]
call fcn.00403210
push dword [ebp + 0xc]
lea ecx, [edi + 0x1c]
call fcn.00403210
push dword [ebp + 0x10]
lea ecx, [edi + 0x18]
call fcn.00403210
mov dword [ebx], edi
mov eax, ebx
mov dword [ebx + 4], 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
push 0x80004005
call fcn.00404bc0
int3
Function at 0x477940
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2bcd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5020a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], ecx
test edi, edi
je 0x477b0f
push 0x4d9516
push 0x100
call fcn.0049ff2c
add esp, 8
mov dword [ebp - 0x34], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x30], 0
test eax, eax
je 0x4779a6
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x4779bb
mov ebx, dword [esi + 4]
sub ebx, dword [esi]
jmp 0x4779bd
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 0x14], 0
call fcn.004878e0
mov ecx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x4779db
test eax, eax
je 0x4779e7
test esi, esi
je 0x4779e7
push eax
mov ecx, esi
call fcn.00477f50
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov eax, dword [edi + 0x10]
push 0x100
push dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x477ae2
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x477b08
test esi, esi
je 0x477a93
mov edx, dword [esi + 4]
xor eax, eax
mov dword [ebp - 0x18], edx
mov edi, ecx
sub edx, dword [esi]
add edi, ebx
adc eax, dword [ebp - 0x14]
test eax, eax
jb 0x477a7c
ja 0x477a3d
cmp edi, edx
jbe 0x477a7c
lea edi, [ebx + ecx]
cmp edi, edx
jae 0x477a48
mov eax, dword [esi]
jmp 0x477a77
jbe 0x477a7c
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp edi, eax
jbe 0x477a61
push ecx
push edi
mov ecx, esi
call fcn.004785a0
mov ecx, dword [ebp - 0x10]
jmp 0x477a7c
sub edi, edx
push edi
push 0
push dword [ebp - 0x18]
call fcn.004a1810
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add eax, edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push ecx
push dword [ebp - 0x30]
add eax, ebx
push eax
call fcn.004a1290
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add ebx, ecx
push ecx
adc eax, 0
push eax
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x24]
push 0
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x28]
call fcn.00475cb0
add esp, 0x24
test eax, eax
je 0x477ae2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov eax, dword [edi + 0x10]
push 0x100
push dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x477a13
xor esi, esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x477af4
push eax
call fcn.0049ff35
add esp, 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 esi, 1
jmp 0x477ae4
xor eax, eax
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 0x478900
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5020a8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x478970
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fe2d
mov esp, ebp
pop ebp
ret
Function at 0x479580
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2fcd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5020a8]
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 0x4796d5
cmp dword [ebp - 0x10], 0
je 0x4796d5
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x479712
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 0x479708
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x479623
push edx
lea ecx, [ebp - 0x14]
call fcn.00404970
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 0x4796aa
call fcn.004a9817
add esp, 8
test eax, eax
js 0x479708
cmp eax, dword [esi - 8]
jg 0x479708
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x4796fe
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 0x4796ea
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.004a9817
add esp, 8
test eax, eax
js 0x479708
cmp eax, dword [esi - 8]
jg 0x479708
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.00404520
add esp, 4
add eax, 0x10
jmp 0x479678
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x479712
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.00404bc0
push 0x80070057
call fcn.00404bc0
push 0x80004005
call fcn.00404bc0
int3
Function at 0x479720
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3005
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5020a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 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 0x4797ca
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4797ca
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004785a0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x1c]
push 0
push 0
push ecx
push edi
push dword [ebp - 0x14]
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 0x4797c2
mov dword [esi + 4], edi
jmp 0x4797de
mov eax, dword [ebp - 0x20]
mov dword [esi + 4], eax
jmp 0x4797de
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 0x479800
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 0x47a200
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d30e0
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5020a8]
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.004a1810
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 0x47a278
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x47a2eb
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.00404740
test al, al
jne 0x47a2ce
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a2b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404a10
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.0049fe2d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404bc0
int3

Function at 0x47a300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d30e0
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5020a8]
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.004a1810
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 0x47a378
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x47a3eb
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.00404740
test al, al
jne 0x47a3ce
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a3b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404a10
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.0049fe2d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404bc0
int3
Function at 0x47a570
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d319d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5020a8]
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 [0x517568]
test esi, esi
je 0x47a5b1
lock inc dword [esi + 4]
mov esi, dword [0x517568]
mov ecx, dword [0x517564]
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 0x47a5f7
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x47a5f7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x47a5f7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.0047a300
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47a629
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]
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x47a6eb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.UserData
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00404740
test al, al
jne 0x47a667
push 8
push str.UserData
lea ecx, [ebp - 0x14]
call fcn.00404a10
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x10]
mov ecx, ebx
call fcn.00488e40
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 0x47a69a
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 0x47a6b8
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 0x47a6d7
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
push 0x80004005
call fcn.00404bc0
int3
Function at 0x47a700
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d31dd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5020a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x10]
call fcn.0047a570
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47a760
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 esi, esi
je 0x47a806
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x47a84f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00404740
test al, al
jne 0x47a7b9
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a7a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00404a10
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.00488e40
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47a7ef
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], esi
dec esi
test esi, esi
jmp 0x47a832
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00404520
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add esp, 4
mov dword [edi], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47a83c
mov ecx, dword [edx]
push edx
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
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404bc0
int3