joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f1d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
mov ebp, ecx
jg 0x49f1e5
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov ecx, ebp
call fcn.0049f160
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x49f201
pop esi
pop ebp
pop ebx
ret 8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, dword [esp + 0x14]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x49f242
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
call dword [sym.imp.USER32.dll_EmptyClipboard]
xor ecx, ecx
push ebx
mov cx, word [ebp + 0x194]
push ecx
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8

Function at 0x49f7c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4db6b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
push 1
call fcn.004cc713
mov edi, eax
push 0
imul edi, dword [esi + 0x190]
mov ecx, esi
call fcn.004cc713
imul eax, dword [esi + 0x18c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], eax
test ecx, ecx
mov dword [esp + 0xc], edi
jne 0x49f82a
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov dword [ecx + 4], edi
pop edi
mov eax, ecx
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
push esi
lea ecx, [esp + 0x14]
call fcn.004d00d0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x30], 0
call fcn.0049f2e0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push 1
push ecx
push edx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esi], eax
mov dword [esi + 4], ecx
lea ecx, [esp + 0x10]
call fcn.004d0142
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x4a02d0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4db7b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x34]
push edi
push eax
lea eax, [esp + 0x1c]
mov edx, dword [esi]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x38]
push 0xffffff
push 1
push 2
lea ecx, [esp + 0x1c]
call fcn.004d03e5
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
push ecx
mov ecx, esi
call fcn.004cf986
mov edx, dword [esi]
push 5
mov ecx, esi
mov edi, eax
call dword [edx + 0x24]
push 7
mov ecx, esi
mov ebx, eax
call fcn.004cfabe
push 1
mov ecx, esi
mov ebp, eax
call fcn.004cfa62
mov eax, dword [esp + 0x3c]
push eax
push esi
call fcn.00490b20
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
add esp, 8
push eax
lea eax, [esp + 0x24]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x38]
push ebp
mov ecx, esi
call fcn.004cfabe
push edi
mov ecx, esi
call fcn.004cf986
push ebx
mov ecx, esi
call fcn.004cf986
mov dword [esp + 0x10], 0x70f96c
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.004d03cf
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x4a0400
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4db7f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x10]
push edi
mov edi, dword [eax + 0xc]
lea eax, [esp + 0x18]
push 1
push eax
call fcn.0049f7c0
mov ecx, eax
lea edx, [esp + 0x18]
mov eax, dword [ecx]
sub eax, edi
mov ecx, dword [ecx + 4]
sub ecx, esi
mov esi, dword [esp + 0x38]
push ecx
push eax
push edx
mov ecx, esi
call fcn.004cfcb3
push 0xffffff
push 1
push 2
lea ecx, [esp + 0x1c]
call fcn.004d03e5
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x34], 0
call fcn.004cf986
mov edx, dword [esi]
push 5
mov ecx, esi
mov edi, eax
call dword [edx + 0x24]
push 7
mov ecx, esi
mov ebx, eax
call fcn.004cfabe
push 1
mov ecx, esi
mov ebp, eax
call fcn.004cfa62
mov eax, dword [esp + 0x40]
push eax
push esi
call fcn.00490b20
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 8
lea eax, [esp + 0x20]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004cfcb3
push ebp
mov ecx, esi
call fcn.004cfabe
push edi
mov ecx, esi
call fcn.004cf986
push ebx
mov ecx, esi
call fcn.004cf986
mov dword [esp + 0x10], 0x70f96c
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.004d03cf
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x4a1f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4db8a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
push 0xffffff
push 1
push 2
lea ecx, [esp + 0x28]
call fcn.004d03e5
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x1c]
xor edi, edi
push eax
mov ecx, esi
mov dword [esp + 0x40], edi
call fcn.004cf986
mov edx, dword [esi]
push 5
mov ecx, esi
mov dword [esp + 0x10], eax
call dword [edx + 0x24]
push 7
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.004cfabe
mov ecx, dword [esi + 8]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetViewportOrgEx]
push 1
mov ecx, esi
call fcn.004cfa62
mov edx, dword [esp + 0x4c]
mov ebx, dword [edx + 8]
dec ebx
js 0x4a2003
push ebp
mov ebp, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov edx, dword [ebp]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi*4]
mov ecx, dword [eax + 0xc]
sub edx, ecx
mov ecx, dword [ebp + 4]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x10]
sub ecx, edx
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push edx
mov ecx, esi
call fcn.004cfffe
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
sub eax, edx
mov edx, dword [esp + 0x18]
sub ecx, edx
mov edx, dword [esi]
push eax
lea eax, [esp + 0x34]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 4]
mov eax, dword [edx + edi*4]
push eax
push esi
call fcn.00490b20
add esp, 8
inc edi
cmp edi, ebx
jle 0x4a1f98
pop ebp
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esi]
push ecx
lea ecx, [esp + 0x30]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esp + 0x44]
mov ecx, esi
push edx
call fcn.004cfabe
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cf986
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004cf986
mov dword [esp + 0x1c], 0x70f96c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 1
call fcn.004d03cf
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 0x14
Function at 0x4b6110
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x15c
mov eax, dword [esp + 0x160]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x38]
push str._Msg0001_4__Msg0001__s
push ecx
call fcn.004b9af1
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x737dac]
repne scasb al, byte es:[edi]
mov eax, dword [str.0001]
mov dword [esp + 0x2c], edx
not ecx
dec ecx
mov dword [esp + 0x30], eax
mov ebx, ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
lea eax, [ebx + 0x14]
push eax
mov dword [esp + 0x20], eax
call fcn.004b89f7
mov ebp, eax
mov ecx, 5
lea esi, [esp + 0x30]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea esi, [esp + 0x44]
mov edx, ecx
lea edi, [ebp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x174]
xor esi, esi
mov dword [esp + 0x14], esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x68]
push eax
push 0
push ecx
lea eax, [edi + 1]
push 0
push eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x186a0
call sub.WS2_32.dll_select
test eax, eax
jl 0x4b6220
je 0x4b6212
lea edx, [esp + 0x68]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b6212
mov ebx, dword [esp + 0x10]
add ebp, esi
sub ebx, esi
push 0
push ebx
push ebp
push edi
mov dword [esp + 0x20], ebx
call sub.WS2_32.dll_send
mov esi, eax
test esi, esi
jl 0x4b6220
cmp esi, ebx
jge 0x4b6220
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0xa
mov dword [esp + 0x14], eax
jl 0x4b61a7
push ebp
call fcn.004b890e
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret

Function at 0x4ca18d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4ca1af
cmp dword [edi + 0x3c], 0
jne 0x4ca1af
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004d3636
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004ca1dc
pop edi
pop esi
pop ebx
ret 8

Function at 0x4cb840
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cb878
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.004c9806
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c97de
jmp 0x4cb884
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4cd03f
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 0x4cd081
call fcn.004d3636
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cd081
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4cd078
xor eax, eax
jmp 0x4cd089
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cd08f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d3b66
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 0x4d3b94
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d3bb2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d3acc
jmp 0x4d3bb2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d3bb2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d3acc
test edi, edi
mov eax, edi
jne 0x4d3b9c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x47382c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067cfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
lea edi, [ebp - 0x5c]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x34
call fcn.004a068c
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x473880
mov ecx, dword [ebp - 0x18]
call fcn.0045bf55
mov dword [ebp - 0x1c], eax
jmp 0x473887
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x2c], ecx
mov esi, esp
push 0xfffffffffffffffc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79b4]
cmp esi, esp
call fcn.004a064c
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x30], eax
mov esi, esp
push 0x10001b4f
push 0xfffffffffffffffc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79b8]
cmp esi, esp
call fcn.004a064c
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
push 0x10099040
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79bc]
cmp esi, esp
call fcn.004a064c
mov esi, esp
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
push edx
push 0x10099030
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [0x100a79bc]
cmp esi, esp
call fcn.004a064c
mov esi, esp
push 0x10001b4f
push 0x10099020
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79bc]
cmp esi, esp
call fcn.004a064c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, 0x100a34b8
call fcn.0045b9f1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x5c
cmp ebp, esp
call fcn.004a064c
mov esp, ebp
pop ebp
ret
Function at 0x4b9fbc
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b178
push 0x1004d448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x4b9ff9
push 0
call dword [0x100a77a8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x4ba031
push 0xc1
call dword [0x100a76c8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x4ba195
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x4ba069
push 0xbf
call dword [0x100a76c8]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x4ba195
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0x14]
test ecx, ecx
jne 0x4ba097
push 0xc0
call dword [0x100a76c8]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x4ba195
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x4ba0bc
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x4ba16f
push 0x100a2838
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
call fcn.004a60cc
add esp, 8
test eax, eax
jne 0x4ba16a
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
cmp dword [eax + edx + 0xc], 0
je 0x4ba10b
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0x10], 0
jne 0x4ba10d
jmp 0x4ba16f
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0x30
jb 0x4ba13a
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0x727444
je 0x4ba13c
jmp 0x4ba16f
mov eax, dword [ebp - 0x30]
cmp dword [eax + 8], 0
jne 0x4ba150
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ecx + 8], eax
push 0
call dword [0x100a76c8]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x4ba195
jmp 0x4ba0b3
mov dword [ebp - 4], 0xffffffff
jmp 0x4ba188
push 0xc0
call dword [0x100a76c8]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402f90
Capabilities:
Get session user name

Disassembly:
sub esp, 0x3b8
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4030e3
push ebp
call fcn.00402f60
push str.Greet
mov ecx, esi
call fcn.00402eb0
lea eax, [esp + 0x10]
mov word [esp + 0x20], 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
lea ecx, [esp + 0x20]
push str.Good
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov ax, word [esp + 0x18]
cmp ax, 0xc
jae 0x402fee
push str.morning_
jmp 0x403013
jne 0x402ffc
lea eax, [esp + 0x20]
push str.nooning_
push eax
jmp 0x403018
cmp ax, 0x13
jae 0x40300e
lea ecx, [esp + 0x20]
push str.afternoon_
push ecx
jmp 0x403018
push str.evening_
lea edx, [esp + 0x24]
push edx
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatW]
call ebp
lea eax, [esp + 8]
lea ecx, [esp + 0x2c0]
push eax
push ecx
mov dword [esp + 0x10], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x403095
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push edi
push 0
push 0
lea edx, [esp + 0x2d0]
push 0xffffffffffffffff
push edx
push 0
push 0
call ebx
mov edi, eax
lea eax, [edi + edi + 2]
push eax
call fcn.004a8eaa
add esp, 4
mov esi, eax
lea ecx, [esp + 0x2c8]
push edi
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0
call ebx
lea edx, [esp + 0x28]
push esi
push edx
call ebp
push esi
call fcn.004a8ed3
mov esi, dword [esp + 0x18]
add esp, 4
pop edi
pop ebx
mov ax, word [esp + 0x14]
test ax, ax
je 0x4030a5
cmp ax, 6
jne 0x4030b1
lea eax, [esp + 0x20]
push str.__happy_weekend
push eax
call ebp
lea ecx, [esp + 0x20]
push str.__wish_you_have_a_good_time_
push ecx
call ebp
lea edx, [esp + 0x20]
mov ecx, esi
push edx
call fcn.00402e10
push str.GreetReturn
mov ecx, esi
call fcn.00402eb0
pop ebp
mov eax, 1
pop esi
add esp, 0x3b8
ret
mov eax, 1
pop esi
add esp, 0x3b8
ret
Function at 0x406900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
xor edi, edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp eax, edi
jl 0x406982
lea ecx, [ebp - 0x18]
push ecx
push 6
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, edi
je 0x406952
xor esi, esi
jmp 0x406965
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x11c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp esi, edi
mov dword [ebp - 0x14], edi
je 0x4069a9
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x11c]
push edx
call fcn.004a92f2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push edi
push 0x50d790
call fcn.004affba
lea eax, [ebp - 0x11c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, esi
call fcn.004a92f2
push str._favorites
mov ecx, esi
call fcn.004a9545
jmp 0x406991
Function at 0x408c40
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4d0ad6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebp
lea ecx, [esp + 0xc]
call fcn.0042f5c6
mov ebp, dword [esp + 0x448]
lea eax, [esp + 0x230]
push ebp
push str._s.
push eax
mov dword [esp + 0x44c], 0
call fcn.00437ede
add esp, 0xc
lea ecx, [esp + 0x230]
push 0
push ecx
lea ecx, [esp + 0x14]
call fcn.0042f689
test eax, eax
je 0x408d85
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.0042f8a9
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], eax
call fcn.0042f870
test eax, eax
jne 0x408d77
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call fcn.0042faa1
push 0x104
mov ecx, eax
mov byte [esp + 0x44c], 1
call fcn.004a9599
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x448], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.004a9169
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [edx + 0x38]
test eax, eax
lea eax, [esp + 0x30]
push eax
push ebp
push str._s_s
je 0x408d59
lea ecx, [esp + 0x140]
push ecx
call fcn.00437ede
lea edx, [esp + 0x144]
push edx
call fcn.00408c40
add esp, 0x14
jmp 0x408d77
lea ecx, [esp + 0x348]
push ecx
call fcn.00437ede
add esp, 0x10
lea edx, [esp + 0x33c]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x408caa
pop edi
pop esi
lea ecx, [esp + 0xc]
call fcn.0042f63f
push ebp
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
pop ebp
jne 0x408dd1
push eax
push eax
push str.Delete_Directory_Failed
call fcn.004affba
lea ecx, [esp + 8]
mov dword [esp + 0x43c], 0xffffffff
call fcn.0042f603
xor eax, eax
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
add esp, 0x440
ret
lea ecx, [esp + 8]
mov dword [esp + 0x43c], 0xffffffff
call fcn.0042f603
mov ecx, dword [esp + 0x434]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x440
ret
Function at 0x40a3d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4d0d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0
call fcn.0042f5c6
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x40], 1
call fcn.004a91d7
push 0x50dc94
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call fcn.004a9545
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x14]
call fcn.004a9581
mov edx, dword [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x20]
call fcn.0042f689
test eax, eax
je 0x40a4cf
mov ebp, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov bl, 3
lea ecx, [esp + 0x18]
call fcn.0042f8a9
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.0042f870
test eax, eax
jne 0x40a4cb
lea eax, [esp + 0x44]
lea ecx, [esp + 0x18]
push eax
call fcn.0042f978
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call dword [edx + 0x38]
test eax, eax
jne 0x40a497
mov eax, dword [esp + 0x44]
push eax
call ebp
jmp 0x40a4bd
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.004a8ede
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], bl
call fcn.0040a520
push eax
mov ecx, esi
call fcn.0040a3d0
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 2
call fcn.004a9169
test edi, edi
jne 0x40a453
lea ecx, [esp + 0x18]
call fcn.0042f63f
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.004a9169
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call fcn.0042f603
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004a9169
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 8