joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415bc0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0d38
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x54b1b4]
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, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x3c], esi
mov edi, edx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
push eax
mov dword [ebp - 4], esi
call fcn.00415eb0
test al, al
jne 0x415c3f
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], 0xf
lea edi, [ebp - 0x2c]
mov esi, ebx
mov byte [ebx], al
call fcn.004015f0
cmp dword [ebp - 0x18], 0x10
jb 0x415d16
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x415d0e
push 0x100000
call fcn.004bb5e0
mov edx, dword [edi + 0xc]
add esp, 4
lea ecx, [ebp - 0x38]
push ecx
push edx
mov esi, eax
mov byte [ebp - 0x2d], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x415cc4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x415cbd
cmp ebx, 0x100000
jbe 0x415c87
push esi
call fcn.004bba29
mov ebx, dword [ebp - 0x38]
push ebx
call fcn.004bb5e0
add esp, 8
mov esi, eax
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x3c]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x415cc1
mov edx, dword [ebp - 0x3c]
push edx
mov eax, esi
lea ecx, [ebp - 0x2c]
call fcn.004017f0
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x415c64
jmp 0x415cc1
mov byte [ebp - 0x2d], 1
mov ebx, dword [ebp - 0x34]
push esi
call fcn.004bba29
add esp, 4
cmp byte [ebp - 0x2d], 0
jne 0x415ce9
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
jae 0x415ce6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
lea edi, [ebp - 0x2c]
mov esi, ebx
mov byte [ebx], 0
call fcn.004015f0
cmp dword [ebp - 0x18], 0x10
jb 0x415d16
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ba3a4
add esp, 4
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.004ba3af
mov esp, ebp
pop ebp
ret 8
Function at 0x415d90
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [edi + 0xc]
push ebx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x15
push ecx
xor bl, bl
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x415e0a
mov edx, dword [ebp - 4]
push esi
push edx
call fcn.004bb5e0
mov ecx, dword [edi + 0xc]
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0x15
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x415e00
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415de5
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.00408440
mov bl, 1
push esi
call fcn.004bba29
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415e20
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x3a
push eax
lea ecx, [ebp - 0x3e]
push ecx
xor bl, bl
mov word [ebp - 0x40], ax
call fcn.004c24e0
mov ecx, dword [esi + 0xc]
add esp, 0xc
push 0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x40]
push eax
push 0
push 5
push ecx
mov dword [ebp - 0x48], 0x3c
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x415e88
push 0xa
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
call fcn.004bce3c
add esp, 0xc
mov dword [edi], eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x4165b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecce8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x54b1b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.004ba752
add esp, 4
cmp eax, ebx
je 0x416694
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.004ba752
add esp, 4
cmp eax, ebx
je 0x416670
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
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 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.004ba457
push 0x524450
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.004beb77
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.004ba457
push 0x524450
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.004beb77
int3
Function at 0x423100
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec2bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x54b1b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00474355
push 4
mov dword [ebp - 4], 0
call fcn.004ba752
mov edi, eax
add esp, 4
test edi, edi
je 0x42317c
call fcn.00474911
mov dword [edi], eax
call fcn.00474652
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004744bb
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x423172
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004744e3
jmp 0x42317e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x42bd60
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xb4]
push ebx
push eax
mov byte [esi], 0
mov byte [esi + 0xa0], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xa4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x42bdcf
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42bdc6
mov edx, dword [esi + 0xa4]
lea ecx, [ebp - 4]
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0xa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xa4]
push edx
call ebx
cmp byte [esi + 0x6c], 0
push edi
je 0x42be01
lea edi, [esi + 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x80]
push eax
call ebx
push edi
mov dword [esi + 0x80], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x6c], 0
mov ecx, dword [esi + 0xb4]
push ecx
call ebx
lea edx, [esi + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ebx, [esi + 0xa8]
call fcn.0042e3d0
mov eax, dword [ebx]
push eax
call fcn.004ba3a4
mov edi, 8
add esp, 4
cmp dword [esi + 0x64], edi
jb 0x42be43
mov ecx, dword [esi + 0x50]
push ecx
call fcn.004ba3a4
add esp, 4
xor ebx, ebx
xor edx, edx
mov dword [esi + 0x64], 7
mov dword [esi + 0x60], ebx
mov word [esi + 0x50], dx
cmp dword [esi + 0x48], edi
jb 0x42be66
mov eax, dword [esi + 0x34]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov dword [esi + 0x48], 7
mov dword [esi + 0x44], ebx
mov word [esi + 0x34], cx
cmp dword [esi + 0x2c], edi
pop edi
jb 0x42be88
mov edx, dword [esi + 0x18]
push edx
call fcn.004ba3a4
add esp, 4
mov dword [esi + 0x28], ebx
xor eax, eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d750
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xb4]
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xa4]
cmp eax, 0xffffffff
je 0x42d7f9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42d7f9
mov edx, dword [esi + 0xa4]
push ebx
lea ecx, [ebp - 4]
push ecx
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0xa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xa4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
cmp byte [esi + 0x6c], 0
mov dword [esi + 0xa4], 0xffffffff
je 0x42d7f2
push edi
lea edi, [esi + 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x80]
push eax
call ebx
push edi
mov dword [esi + 0x80], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x6c], 0
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x430170
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
cmp edi, 0x83
ja 0x4301e4
je case.0x4301fc.133
mov eax, edi
dec eax
je 0x4301be
sub eax, 0x23
jne case.0x4301fc.135
lea edi, [esp + 0x14]
mov ecx, ebx
call fcn.004307c0
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], eax
jmp 0x43023c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
push 1
mov ecx, ebx
call eax
mov dword [esp + 0x10], eax
jmp 0x43023c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [edi - 0x84]
cmp eax, 0x8e
ja case.0x4301fc.135
movzx edx, byte [eax + 0x4302fc]
jmp dword [edx*4 + 0x4302e4]
push 0xd
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x430238
mov ecx, dword [ebx + 0x358]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x430238
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
mov dword [ebx + 0x350], 0
call edx
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
jne 0x4302db
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x10]
push edx
push esi
push eax
push edi
lea ecx, [ebx + 0x14]
call dword [0x51c104]
test al, al
je 0x4302cd
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 0xf060
jne 0x43028d
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
jmp 0x43023c
push esi
push eax
push edi
mov eax, ebx
call fcn.0042fcd0
mov dword [esp + 0x10], eax
jmp 0x43023c
push esi
mov ecx, ebx
call fcn.0042fd90
mov dword [esp + 0x10], eax
jmp 0x43023c
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.0042ffd0
mov dword [esp + 0x10], eax
jmp 0x43023c
mov dword [esp + 0x14], ecx
jmp 0x430247
mov ecx, dword [ebp + 0xc]
push esi
push ecx
push edi
mov ecx, ebx
call dword [0x51c108]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x430a70
Capabilities:
Delete file
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f25a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
mov eax, dword [0x54b1b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 2
lea ecx, [ebp - 0x14]
mov edx, esi
call fcn.0042dbc0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x30]
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x430b07
mov ecx, 0x514ed0
mov edx, edi
call fcn.00431090
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430af5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 0
ja 0x430b1f
jb 0x430b18
cmp dword [ebp - 0x20], 0x1f400000
jae 0x430b1f
mov ecx, 0x514ef0
jmp 0x430acb
mov eax, dword [esi]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea ecx, [ebp - 0x10]
push esi
push ecx
mov ebx, str.WEMediaTestRight.txt
call fcn.0042dce0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
push 0x514f40
push edx
call fcn.004bb543
xor ebx, ebx
add esp, 0x10
cmp eax, ebx
jne 0x430b94
mov edx, edi
mov ecx, 0x514f48
call fcn.00431090
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430b82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
jmp 0x430adc
push eax
call fcn.004bb9b5
mov ecx, dword [ebp - 0x10]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x430bc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430bef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430c10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f1cf4
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x54b1b4]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push esi
mov eax, dword [0x54b1b4]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x6a]
push ebx
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x70], ax
call fcn.004c24e0
add esp, 0xc
test byte [0x54f59c], 1
mov dword [esp + 0xc], esi
jne 0x430ccc
or dword [0x54f59c], 1
push 0x54f520
mov dword [esp + 0x284], ebx
call fcn.00433a60
push 0x4f5f80
mov byte [0x54f598], bl
call fcn.004bc45e
add esp, 4
mov dword [esp + 0x280], 0xffffffff
push 0x514f70
push 0x54f520
mov edx, str.Global
lea ecx, [esp + 0x50]
call fcn.0042b380
mov esi, 8
mov dword [esp + 0x280], 1
cmp dword [esp + 0x5c], esi
jb 0x430d04
mov edx, dword [esp + 0x48]
mov dword [esp + 0x18], edx
jmp 0x430d0c
lea eax, [esp + 0x48]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x20], 0x41
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, ebx
jne 0x430d5b
cmp dword [esp + 0x5c], esi
jb 0x430d36
mov edx, dword [esp + 0x48]
push edx
call fcn.004ba3a4
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x430d70
sub eax, edx
lea edx, [esp + 0x64]
sar eax, 1
push edx
push edi
mov ebx, eax
call fcn.0042edc0
mov ecx, dword [edi]
mov edx, dword [ecx - 0xc]
lea eax, [edx - 1]
test eax, eax
js 0x430e4f
cmp eax, edx
jg 0x430e4f
cmp word [ecx + eax*2], 0x5c
je 0x430db9
push 1
push 0x510884
mov ebx, edi
call fcn.0042e020
lea esi, [esp + 0x2c]
call fcn.00403dc0
mov esi, 8
mov byte [esp + 0x280], 2
cmp dword [esp + 0x40], esi
jb 0x430de1
mov eax, dword [esp + 0x2c]
mov edx, eax
test eax, eax
jne 0x430de5
jmp 0x430dff
lea edx, [esp + 0x2c]
mov eax, edx
lea ebx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430df0
sub eax, ebx
sar eax, 1
push eax
push edx
mov ebx, edi
call fcn.0042e020
cmp dword [esp + 0x40], esi
jb 0x430e1b
mov eax, dword [esp + 0x2c]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
cmp dword [esp + 0x5c], esi
jb 0x430e45
mov edx, dword [esp + 0x48]
push edx
call fcn.004ba3a4
add esp, 4
mov eax, 1
jmp 0x430d38
push 0x80070057
call fcn.00407ad0
int3
Function at 0x431390
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec4a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x54b1b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x43154c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi + 0x2d6]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43151a
cmp dword [esi + 0x8f8], 0
jne 0x4313f9
mov eax, esi
call fcn.00431330
test al, al
je 0x43154c
mov eax, dword [esi + 0x8f8]
mov ecx, dword [eax]
push 0
lea edx, [esi + 0x4e0]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jns 0x431426
add esi, 4
mov edi, str.SetURL
call fcn.00431fe0
jmp 0x43154c
lea edi, [esi + 0x6ea]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431431
sub eax, edx
sar eax, 1
mov ebx, 0xffffffff
je 0x431494
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x431494
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x8f8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x4f798c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x431482
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x431494
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x8f8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x4fb7ec
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4314de
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jns 0x4314f2
add esi, 4
mov edi, 0x515010
call fcn.00431fe0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x43154c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x43154c
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x431504
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 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 4
add esi, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431522
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0
push esi
call fcn.004c24e0
push 0x514fdc
push 0x64
push esi
call fcn.004bd587
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x431580
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec45b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x54b1b4]
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, edx
push edi
mov esi, ecx
mov dword [ebp - 0x224], edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x431757
lea edi, [esi + 0x2d6]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x431757
cmp dword [esi + 0x8f4], 0
jne 0x4315f4
mov eax, esi
call fcn.004312d0
test al, al
je 0x43178a
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
lea edx, [esi + 0xcc]
mov eax, edx
lea ebx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431610
sub eax, ebx
sar eax, 1
je 0x431630
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
push edx
mov edx, dword [ecx + 0x2c]
push eax
call edx
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.004c24e0
add esp, 0xc
test edi, edi
je 0x431674
lea ebx, [ebp - 0x21c]
mov eax, edi
call fcn.00431d50
test al, al
je 0x431674
mov eax, dword [esi + 0x8f4]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
mov ecx, ebx
push ecx
push eax
call edx
lea ebx, [esi + 0x6ea]
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431680
sub eax, edx
sar eax, 1
je 0x4316ad
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4316ad
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push ebx
push eax
call edx
xor edi, edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push 0x4fb7ec
push eax
mov eax, dword [ecx]
call eax
cmp eax, edi
jge 0x4316f7
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x43178a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x43178a
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x224]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, edi
jge 0x43173a
add esi, 4
mov edi, 0x515028
call fcn.00431fe0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x43178a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x43178a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x431753
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
jmp 0x43178c
add esi, 4
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431760
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0
push esi
call fcn.004c24e0
push 0x514fdc
push 0x64
push esi
call fcn.004bd587
add esp, 0x18
xor al, al
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.004ba3af
mov esp, ebp
pop ebp
ret