joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a420
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4db186
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x6f9fa8]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.004ca6f7
push str..
lea ecx, [esp + 0x10]
call fcn.004ca94a
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x48a4c3
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.004ca56e
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.004ca56e
xor eax, eax
jmp 0x48a608
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x6eb6c0
push edx
call fcn.004b8f74
add esp, 8
test eax, eax
je 0x48a5b9
lea eax, [esp + 0x48]
push 0x6eb6bc
push eax
call fcn.004b8f74
add esp, 8
test eax, eax
je 0x48a5b9
test ebp, ebp
jne 0x48a525
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.004b9023
add esp, 8
test eax, eax
je 0x48a5b9
push esi
lea ecx, [esp + 0x14]
call fcn.004ca6f7
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004ca971
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.004ca94a
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x48a565
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x48a587
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.0048a420
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x48a5b9
test edi, edi
je 0x48a5ae
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.004b9023
add esp, 8
test eax, eax
jne 0x48a5ae
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.0048a630
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x48a4d3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.004ca56e
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004ca56e
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x48a630
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4db19b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.004b9830
mov eax, dword [0x6f9fa8]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.004ca6f7
push 0x5c
lea ecx, [esp + 8]
call fcn.004ca971
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.004ca94a
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48a6d6
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.004ca56e
xor eax, eax
jmp 0x48a753
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x48a731
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x48a723
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x48a6fd
jmp 0x48a731
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.004ca56e
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8
Function at 0x48c84e
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4db2c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x6f9fa8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
xor ebx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x6c], ebx
mov eax, dword [esi + 0xa8]
mov byte [esp + 0x6c], 1
cmp eax, ebx
jne 0x48c87f
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0xa8]
push ebp
push edi
push eax
push ecx
lea edx, [esp + 0x18]
push str.___Open_Ver1.0___Open_Handler_d___Open_View_d
push edx
call fcn.004c810a
mov eax, dword [esi + 0xa8]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x7c]
lea edx, [esp + 0x14]
mov ecx, dword [ebp]
push ecx
push str._scefview_e_pair_.exe
push edx
call fcn.004c810a
mov edi, dword [esp + 0x90]
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
cmp eax, ebx
jl 0x48c8fb
push str.__open_cache_path_
lea ecx, [esp + 0x14]
call fcn.004ca94a
push edi
lea ecx, [esp + 0x14]
call fcn.004ca986
push 0x6ec2f4
lea ecx, [esp + 0x14]
call fcn.004ca94a
mov edi, dword [esp + 0x88]
mov ecx, dword [edi]
cmp dword [ecx - 8], ebx
jl 0x48c92f
push str.__open_user_agent_
lea ecx, [esp + 0x14]
call fcn.004ca94a
push edi
lea ecx, [esp + 0x14]
call fcn.004ca986
push 0x6ec2f4
lea ecx, [esp + 0x14]
call fcn.004ca94a
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x10]
push edx
call fcn.004ca986
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push 1
push ebx
push ebx
push eax
push ecx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop ebp
test eax, eax
je 0x48c999
mov edx, dword [esi + 0xa8]
mov ecx, esi
push edx
call fcn.0048c9d0
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], bl
call fcn.004ca56e
lea ecx, [esp + 8]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004ca56e
mov ecx, dword [esp + 0x64]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 0x10
Function at 0x48dee0
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 0x48df83
test eax, eax
jbe 0x48df83
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x48df83
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 0x48df2e
xor esi, esi
jmp 0x48df34
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48df5f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004283c0
add esi, eax
push esi
mov ebx, esi
call fcn.004283c0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x48df40
pop ebp
test edi, edi
pop edi
jne 0x48df83
test ebx, ebx
je 0x48df83
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004b9950
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x48e0e5
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 0x48e1fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48e1fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004cbfe7
mov esi, eax
test esi, esi
je 0x48e1fd
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 0x48e1fd
mov ecx, esi
call fcn.0048e070
cmp edi, eax
jge 0x48e1fd
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 0x48e183
mov dword [esp + 0x34], 1
jmp 0x48e1de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48e1fd
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.0048d620
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 0x49ca60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7300f0]
xor edx, edx
cmp eax, edx
jne 0x49ca86
xor eax, eax
mov byte [eax + 0x72fff0], al
inc eax
cmp eax, 0x100
jl 0x49ca6e
mov dword [0x7300f0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x72fff0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49cb17
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49caea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x49cab8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x49cb20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x49cb73
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49cb5a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a3530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4db77e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a3e50
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6cbc8c
call fcn.004ca2af
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a35c3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ca2af
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a35bc
push 0
mov ecx, eax
call fcn.0049a6a0
mov dword [esi + 0xc], eax
jmp 0x4a35c5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a35c5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4cc98b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cc9c3
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.004caa15
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ca9ed
jmp 0x4cc9cf
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ce07d
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 0x4ce0bf
call fcn.004d3da0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ce0bf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ce0b6
xor eax, eax
jmp 0x4ce0c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ce0cd
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d42d0
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 0x4d42fe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d431c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d4236
jmp 0x4d431c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d431c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d4236
test edi, edi
mov eax, edi
jne 0x4d4306
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x427159
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00427309
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x427257
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4271fa
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x42723d
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x427211
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x42722c
test al, 0x40
je 0x427223
mov ecx, dword [edi + 0x20]
jmp 0x42722a
test al, 0x80
je 0x42723d
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x42723d
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4271c9
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x401473
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], esp
clc
jae 0x401483
jnp 0x343f1ce5
mov ebx, dword [ebp + 8]
push dword [ebx]
pop ebp
or bh, bh
xor ebp, dword [eax]
add byte [eax], al
add byte [eax + 3], ch
add byte [edi], bl
add byte [eax + 1], bh
push 0
push 0x1f0003
mov eax, 1
clc
jae 0x40149b
jl 0x401484
call fcn.0040302a
mov bl, byte [ebx]
add byte [eax], al
cmp dword [ebp - 4], esp
je 0x4014b2
push 6
call fcn.0040301e
add esp, 4
mov dword [ebp - 8], eax
stc
jb 0x4014b9
test byte [ebx + 0xf00f87d], al
test byte [esi], dl
add byte [eax], al
add al, bh
cmp dword [ebp - 8], 0
je 0x4014d9
clc
jae 0x4014c7
je 0x401532
push 0
call fcn.00403030
add al, ch
bound ebx, qword [ebx]
add byte [eax], al
add esp, 4
jmp 0x4014d4
jmp 0x401522
mov dword [ebp - 4], esp
call 0x4014e1
add dword [esp], 6
ret
mov esp, ebp
pop ebp
ret 4
add dword [edi], ecx
push getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x401549
mov eax, 0x46a49b
push eax
push getpeername
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsProxyServer
push 0x80000301
push 0
push 3
push 3
mov ebx, 0x404240
call fcn.00403018
add esp, 0x28
clc
jae 0x401578
punpckhbw mm3, qword [ebx - 0x74ffb95c]
pop ebp
or bh, bh
xor ebp, eax
add eax, 0x83fffffb
les ecx, [eax]
push 0x46a49b
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.0040108c
add esp, 8
cmp eax, 0
jne 0x4015d2
clc
jae 0x401597
punpckhbw mm0, qword [ecx]
add eax, dword [eax]
sub byte [edx], 0x68
add byte [eax], al
add byte [eax], al
push 0x80000301
push 0
push 0
push getpeername
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsProxyEnable
push 0x80000301
push 0
push 3
push 3
mov ebx, 0x404240
call fcn.00403018
add esp, 0x28
jmp 0x40160c
clc
jae 0x4015d6
punpckhbw mm0, qword [ecx]
add eax, dword [eax]
sub byte [edx], 0x68
add dword [eax], eax
add byte [eax], al
push 0x80000301
push 0
push 1
push getpeername
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsProxyEnable
push 0x80000301
push 0
push 3
push 3
mov ebx, 0x404240
call fcn.00403018
add esp, 0x28
mov esp, ebp
pop ebp
ret 8
Function at 0x4085d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x464a1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004597b4
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408652
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00457637
mov eax, dword [eax]
push 0x4791d4
push eax
call fcn.00449c14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00459a3f
test bl, bl
je 0x408652
push 0x4791d4
lea ecx, [esp + 0xc]
call fcn.00459dcf
push 0x47cd20
lea ecx, [esp + 0xc]
call fcn.00459dcf
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40868e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00459a3f
jmp 0x408759
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408712
lea edx, [esp + 0x7c]
push 0x47cd1c
push edx
call fcn.00449c14
add esp, 8
test eax, eax
je 0x408712
lea eax, [esp + 0x7c]
push 0x47cd18
push eax
call fcn.00449c14
add esp, 8
test eax, eax
je 0x408712
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4086a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00459a3f
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x408f50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408fb2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x408fc0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x464a9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4833d0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4090f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409026
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459a3f
xor eax, eax
jmp 0x40916f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00459b7c
push esi
lea ecx, [esp + 0xc]
call fcn.00459e0b
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40914d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00408f50
test eax, eax
jne 0x40914d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00408f50
test eax, eax
jne 0x40914d
lea eax, [esp + 0x14]
push 0x47cd34
push eax
call fcn.0044ac50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40912c
lea ecx, [esp + 0x14]
push 0x47cd30
push ecx
call fcn.0044abd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40912c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40912f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00459b2c
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40903e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459a3f
xor eax, eax
jmp 0x40916f
mov byte [esi], 0
push 0x47cd2c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00459a3f
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4