joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x414be8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x414c1a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x414c16
cmp esi, eax
jae 0x414c1a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x414c08
cmp esi, eax
jb 0x414c20
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4158b0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f068b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x54c1b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, 0x1388
mov dword [esi], vtable.CHttpClient.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, dword [0x54bf28]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf28
lea edi, [esi + 0x20]
call edx
add eax, 0x10
mov dword [edi], eax
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push 0x513580
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x41594b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5135b8
push 0x5138b8
call fcn.00407fa0
add esp, 0xc
jmp 0x41595f
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push ecx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
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 0x415e90
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1f18
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
mov edi, ecx
mov dword [esi + 0x10], ebx
jb 0x415ece
mov ecx, dword [esi]
jmp 0x415ed0
mov ecx, esi
mov byte [ecx], bl
push eax
xor ecx, ecx
mov edx, edi
mov byte [ebp - 0x2d], bl
call fcn.00416460
test al, al
je 0x415f4e
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], ebx
call fcn.00416350
test al, al
je 0x415f55
push 3
push 0x51362c
lea edx, [ebp - 0x2c]
push edx
xor eax, eax
call fcn.00407570
cmp eax, 0xffffffff
je 0x415f55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryRawHeaders404
push 0x5138b8
add edi, 0x20
call fcn.00407fa0
add esp, 0xc
cmp dword [ebp - 0x18], 8
jb 0x415f4e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
add esp, 4
xor al, al
jmp 0x415ff9
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x415f3c
push 0x100000
call fcn.004bc710
mov ebx, eax
mov eax, dword [ebp - 0x34]
add esp, 4
cmp eax, 0x100000
ja 0x415fc1
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x415fdb
mov eax, dword [ebp - 0x38]
push eax
mov eax, ebx
mov ecx, esi
call fcn.004017f0
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x415fdb
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x415fd7
cmp eax, 0x100000
jbe 0x415f80
push ebx
call fcn.004bcb59
mov eax, dword [ebp - 0x34]
push eax
call fcn.004bc710
add esp, 8
mov ebx, eax
jmp 0x415fdb
mov byte [ebp - 0x2d], 1
push ebx
call fcn.004bcb59
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x415ff6
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004bb4d8
add esp, 4
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret 4
Function at 0x416020
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x54c1b4]
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.00416460
test al, al
jne 0x41609f
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 0x416176
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x41616e
push 0x100000
call fcn.004bc710
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 0x416124
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x41611d
cmp ebx, 0x100000
jbe 0x4160e7
push esi
call fcn.004bcb59
mov ebx, dword [ebp - 0x38]
push ebx
call fcn.004bc710
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 0x416121
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 0x4160c4
jmp 0x416121
mov byte [ebp - 0x2d], 1
mov ebx, dword [ebp - 0x34]
push esi
call fcn.004bcb59
add esp, 4
cmp byte [ebp - 0x2d], 0
jne 0x416149
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
jae 0x416146
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 0x416176
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004bb4d8
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.004bb4e3
mov esp, ebp
pop ebp
ret 8
Function at 0x416350
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 0x4163ca
mov edx, dword [ebp - 4]
push esi
push edx
call fcn.004bc710
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 0x4163c0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4163a5
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.00408810
mov bl, 1
push esi
call fcn.004bcb59
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4163e0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x54c1b4]
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.004c3610
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 0x416448
push 0xa
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
call fcn.004bdf6c
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.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x417060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ede18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x54c1b4]
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.004bb886
add esp, 4
cmp eax, ebx
je 0x417144
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.004bb886
add esp, 4
cmp eax, ebx
je 0x417120
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.004bb58b
push 0x525728
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.004bfca7
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.004bb58b
push 0x525728
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.004bfca7
int3
Function at 0x423bb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed3eb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x54c1b4]
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.00475485
push 4
mov dword [ebp - 4], 0
call fcn.004bb886
mov edi, eax
add esp, 4
test edi, edi
je 0x423c2c
call fcn.00475a41
mov dword [edi], eax
call fcn.00475782
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004755eb
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x423c22
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00475613
jmp 0x423c2e
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 0x42c810
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 0x42c87f
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42c876
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 0x42c8b1
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.0042ee80
mov eax, dword [ebx]
push eax
call fcn.004bb4d8
mov edi, 8
add esp, 4
cmp dword [esi + 0x64], edi
jb 0x42c8f3
mov ecx, dword [esi + 0x50]
push ecx
call fcn.004bb4d8
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 0x42c916
mov eax, dword [esi + 0x34]
push eax
call fcn.004bb4d8
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 0x42c938
mov edx, dword [esi + 0x18]
push edx
call fcn.004bb4d8
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 0x42e200
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 0x42e2a9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42e2a9
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 0x42e2a2
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 0x430c20
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 0x430c94
je case.0x430cac.133
mov eax, edi
dec eax
je 0x430c6e
sub eax, 0x23
jne case.0x430cac.135
lea edi, [esp + 0x14]
mov ecx, ebx
call fcn.00431270
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], eax
jmp 0x430cec
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 0x430cec
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.0x430cac.135
movzx edx, byte [eax + 0x430dac]
jmp dword [edx*4 + 0x430d94]
push 0xd
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x430ce8
mov ecx, dword [ebx + 0x358]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x430ce8
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 0x430d8b
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x10]
push edx
push esi
push eax
push edi
lea ecx, [ebx + 0x14]
call dword [0x51d3c4]
test al, al
je 0x430d7d
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 0x430d3d
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
jmp 0x430cec
push esi
push eax
push edi
mov eax, ebx
call fcn.00430780
mov dword [esp + 0x10], eax
jmp 0x430cec
push esi
mov ecx, ebx
call fcn.00430840
mov dword [esp + 0x10], eax
jmp 0x430cec
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.00430a80
mov dword [esp + 0x10], eax
jmp 0x430cec
mov dword [esp + 0x14], ecx
jmp 0x430cf7
mov ecx, dword [ebp + 0xc]
push esi
push ecx
push edi
mov ecx, ebx
call dword [0x51d3c8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x431520
Capabilities:
Delete file
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3740
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
mov eax, dword [0x54c1b4]
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.0042e670
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 0x4315b7
mov ecx, 0x5160f8
mov edx, edi
call fcn.00431b40
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 0x4315a5
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 0x4315cf
jb 0x4315c8
cmp dword [ebp - 0x20], 0x1f400000
jae 0x4315cf
mov ecx, 0x516118
jmp 0x43157b
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.0042e790
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
push 0x516168
push edx
call fcn.004bc673
xor ebx, ebx
add esp, 0x10
cmp eax, ebx
jne 0x431644
mov edx, edi
mov ecx, 0x516170
call fcn.00431b40
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 0x431632
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 0x43158c
push eax
call fcn.004bcae5
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 0x431679
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 0x43169f
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 0x4316c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f2e94
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x54c1b4]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push esi
mov eax, dword [0x54c1b4]
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.004c3610
add esp, 0xc
test byte [0x55059c], 1
mov dword [esp + 0xc], esi
jne 0x43177c
or dword [0x55059c], 1
push 0x550520
mov dword [esp + 0x284], ebx
call fcn.00434510
push 0x4f7030
mov byte [0x550598], bl
call fcn.004bd58e
add esp, 4
mov dword [esp + 0x280], 0xffffffff
push 0x516198
push 0x550520
mov edx, str.Global
lea ecx, [esp + 0x50]
call fcn.0042be30
mov esi, 8
mov dword [esp + 0x280], 1
cmp dword [esp + 0x5c], esi
jb 0x4317b4
mov edx, dword [esp + 0x48]
mov dword [esp + 0x18], edx
jmp 0x4317bc
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 0x43180b
cmp dword [esp + 0x5c], esi
jb 0x4317e6
mov edx, dword [esp + 0x48]
push edx
call fcn.004bb4d8
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.004bb4e3
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 0x431820
sub eax, edx
lea edx, [esp + 0x64]
sar eax, 1
push edx
push edi
mov ebx, eax
call fcn.0042f870
mov ecx, dword [edi]
mov edx, dword [ecx - 0xc]
lea eax, [edx - 1]
test eax, eax
js 0x4318ff
cmp eax, edx
jg 0x4318ff
cmp word [ecx + eax*2], 0x5c
je 0x431869
push 1
push 0x5118c0
mov ebx, edi
call fcn.0042ead0
lea esi, [esp + 0x2c]
call fcn.00403dc0
mov esi, 8
mov byte [esp + 0x280], 2
cmp dword [esp + 0x40], esi
jb 0x431891
mov eax, dword [esp + 0x2c]
mov edx, eax
test eax, eax
jne 0x431895
jmp 0x4318af
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 0x4318a0
sub eax, ebx
sar eax, 1
push eax
push edx
mov ebx, edi
call fcn.0042ead0
cmp dword [esp + 0x40], esi
jb 0x4318cb
mov eax, dword [esp + 0x2c]
push eax
call fcn.004bb4d8
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 0x4318f5
mov edx, dword [esp + 0x48]
push edx
call fcn.004bb4d8
add esp, 4
mov eax, 1
jmp 0x4317e8
push 0x80070057
call fcn.00407ea0
int3