joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47b570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004536c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00453740
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00453740
lea ecx, [esi + 0xc]
call fcn.0046c4fd
lea ecx, [esi + 0x10]
call fcn.0046c4fd
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00455f80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00455f80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00455f80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046c572
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046c572
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4547b8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47b798
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4547c8
call fcn.00454ce0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x4548ab
cmp byte [edi], 0
je 0x4548ab
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x4547ed
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004534e0
test eax, eax
jne 0x45480d
push 0x562564
lea ecx, [esi + 0x38]
call fcn.0046c6af
jmp 0x4548ab
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00453530
test eax, eax
jne 0x45483c
mov ecx, esi
call fcn.00453630
push edi
add esi, 0x38
push 0x562540
push esi
call fcn.0046a4e2
add esp, 0xc
jmp 0x4548ab
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00455570
test eax, eax
je 0x4548a4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00454980
test eax, eax
jne 0x4548c0
push edi
lea eax, [esi + 0x38]
push 0x56251c
push eax
call fcn.0046a4e2
add esp, 0xc
mov ecx, esi
call fcn.00454ce0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x454968
mov ecx, dword [0x562c2c]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0046a4e2
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.004535e0
test eax, eax
jne 0x45492a
push 0x562500
lea ecx, [esi + 0x38]
call fcn.0046c6af
jmp 0x45493a
push 0xfa
mov ecx, esi
call fcn.00455570
test eax, eax
jne 0x454957
mov ecx, esi
call fcn.00454ce0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046c572
jmp 0x4548ab
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046c572
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x457b20
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 0x457b6a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x457b99
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 0x457bdb
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 0x46e916
Capabilities:
Get graphical window text

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

Function at 0x47000b
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 0x47004d
call fcn.00475dc4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47004d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x470044
xor eax, eax
jmp 0x470055
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047005b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4762f4
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 0x476322
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x476340
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047625a
jmp 0x476340
mov eax, dword [esi + 0x14]
test eax, eax
je 0x476340
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047625a
test edi, edi
mov eax, edi
jne 0x47632a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4013e6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4b5d10]
cmp eax, 0x1c00
jle 0x40141c
push esi
lea eax, [ebp - 4]
push 0
mov esi, 0x4b3d10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
pop esi
mov dword [0x4b5d10], eax
lea ecx, [ebp + 0x10]
lea eax, [eax + 0x4b3d10]
push ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
add dword [0x4b5d10], eax
leave
ret

Function at 0x401438
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
lea eax, [ebp - 0x48]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x44]
mov eax, 0x40000000
xor edx, edx
push 0
div ebx
pop edi
mov dword [ebp - 4], 1
mov dword [ebp - 8], edi
mov esi, eax
shl esi, 2
je 0x4014c9
lea eax, [ebp - 0x24]
push 0x1c
push eax
mov eax, edi
imul eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4014ba
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x4014ba
xor edx, edx
div ebx
add edi, eax
cmp dword [ebp - 0x14], 0x1000
jne 0x4014c5
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
jbe 0x4014c5
push dword [ebp - 4]
mov dword [ebp - 8], eax
push eax
push dword [ebp + 8]
call fcn.004014ce
add esp, 0xc
test al, al
je 0x4014c5
inc dword [ebp - 4]
jmp 0x4014c5
mov eax, 0x10000
xor edx, edx
div ebx
add edi, eax
cmp edi, esi
jb 0x40146b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401809
Capabilities:
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f0
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [ebp - 8]
lea eax, [ebp - 0x120]
push dword [ebp - 0xc]
push eax
call fcn.0040178e
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push eax
push str.Error_occurred_at__s._r_n
push esi
call fcn.004013e6
push 0x208
lea eax, [ebp - 0x3f0]
push 0
push eax
call fcn.0046c780
add esp, 0x24
lea eax, [ebp - 0x3f0]
push 0x206
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, str.Unknown
test eax, eax
ja 0x401889
lea eax, [ebp - 0x3f0]
push ebx
push eax
call edi
push 0xc8
lea eax, [ebp - 0x1e8]
push 0
push eax
call fcn.0046c780
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0xc6
push eax
lea eax, [ebp - 0x1e8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4018c5
lea eax, [ebp - 0x1e8]
push ebx
push eax
call edi
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x3f0]
push eax
push str._s__run_by__s._r_n
push esi
call fcn.004013e6
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00401dd1
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xbc]
push eax
push str.Operating_system:___s___s_._r_n
push esi
call fcn.004013e6
add esp, 0x2c
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push str._d_processor_s___type__d._r_n
push esi
call fcn.004013e6
add esp, 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [ebp - 0x28]
push str._d___memory_in_use._r_n
push esi
call fcn.004013e6
mov eax, dword [ebp - 0x24]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory._r_n
push esi
call fcn.004013e6
mov eax, dword [ebp - 0x20]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory_free._r_n
push esi
call fcn.004013e6
mov eax, dword [ebp - 0x1c]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file._r_n
push esi
call fcn.004013e6
mov eax, dword [ebp - 0x18]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file_free._r_n
push esi
call fcn.004013e6
mov eax, dword [ebp - 0x14]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space._r_n
push esi
call fcn.004013e6
mov eax, dword [ebp - 0x10]
add esp, 0x48
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space_free._r_n
push esi
call fcn.004013e6
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401dd1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x402014
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x402014
cmp dword [ebp + 0x10], ebx
je 0x402014
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.unknown_Windows_version
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x9c]
mov dword [edi], ebx
push eax
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402014
mov eax, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x94]
and ebx, 0xffff
push ebx
push eax
push ecx
push str._u._u._u
push dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp dword [ebp - 8], 1
jne 0x401f5e
cmp dword [ebp - 4], 4
jne 0x40200f
cmp dword [ebp + 0xc], 0xa
jae 0x401edf
mov eax, 0x3b6
cmp ebx, eax
jne 0x401ea0
push str.Windows_95
push dword [ebp + 8]
call esi
mov dword [edi], 1
jmp 0x40200f
cmp ebx, eax
mov ecx, 0x438
jbe 0x401ec2
cmp ebx, ecx
ja 0x401ec6
push str.Windows_95_SP1
push dword [ebp + 8]
call esi
mov dword [edi], 2
jmp 0x40200f
cmp ebx, ecx
jbe 0x401edb
push str.Windows_95_OSR2
push dword [ebp + 8]
call esi
mov dword [edi], 3
jmp 0x40200f
cmp dword [ebp + 0xc], 0xa
jne 0x401f3f
mov eax, 0x7ce
cmp ebx, eax
jne 0x401eff
push str.Windows_98
push dword [ebp + 8]
call esi
mov dword [edi], 4
jmp 0x40200f
jbe 0x401f1e
cmp ebx, 0x887
jae 0x401f2a
push str.Windows_98_SP1
push dword [ebp + 8]
call esi
mov dword [edi], 5
jmp 0x40200f
cmp ebx, 0x887
jb 0x40200f
push str.Windows_98_SE
push dword [ebp + 8]
call esi
mov dword [edi], 6
jmp 0x40200f
cmp dword [ebp + 0xc], 0x5a
jne 0x40200f
push str.Windows_ME
push dword [ebp + 8]
call esi
mov dword [edi], 7
jmp 0x40200f
cmp dword [ebp - 8], 2
jne 0x401ff9
cmp dword [ebp - 4], 3
jne 0x401f8d
cmp dword [ebp + 0xc], 0x33
jne 0x40200f
push str.Windows_NT_3.51
push dword [ebp + 8]
call esi
mov dword [edi], 0x65
jmp 0x40200f
cmp dword [ebp - 4], 4
jne 0x401fab
cmp dword [ebp + 0xc], 0
jne 0x40200f
push str.Windows_NT_4
push dword [ebp + 8]
call esi
mov dword [edi], 0x66
jmp 0x40200f
cmp dword [ebp - 4], 5
jne 0x40200f
cmp dword [ebp + 0xc], 0
jne 0x401fc9
push str.Windows_2000
push dword [ebp + 8]
call esi
mov dword [edi], 0x67
jmp 0x40200f
cmp dword [ebp + 0xc], 1
jne 0x401fe1
push str.Windows_XP
push dword [ebp + 8]
call esi
mov dword [edi], 0x68
jmp 0x40200f
cmp dword [ebp + 0xc], 2
jne 0x40200f
push str.Windows_2003_Server
push dword [ebp + 8]
call esi
mov dword [edi], 0x69
jmp 0x40200f
cmp dword [ebp - 8], 3
jne 0x40200f
push str.Windows_CE
push dword [ebp + 8]
call esi
mov dword [edi], 0xc9
push 1
pop eax
jmp 0x402016
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4020af
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, ecx
lea ecx, [ebp - 4]
push edi
lea eax, [esi + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4021a9
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.004804d7
push ebx
push 0
push eax
mov dword [esi], eax
call fcn.0046c780
add esp, 0x10
lea eax, [esi + 0x28]
push dword [esi]
push edi
push dword [ebp - 4]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop ebx
je 0x4021a9
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.004022b9
test eax, eax
je 0x4021a9
mov eax, dword [ebp - 0x30]
mov ecx, eax
mov word [esi + 0xa], ax
mov eax, dword [ebp - 0x2c]
shr ecx, 0x10
mov word [esi + 8], cx
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
mov word [esi + 0xc], cx
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
mov word [esi + 0x10], cx
mov ecx, eax
mov word [esi + 0x16], ax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x230]
shr ecx, 0x10
mov word [esi + 0x14], cx
push eax
push str.CompanyName
mov ecx, esi
call fcn.004022f9
lea eax, [esi + 0x640]
mov ecx, esi
push eax
push str.FileDescription
call fcn.004022f9
lea eax, [esi + 0x438]
mov ecx, esi
push eax
push str.ProductName
call fcn.004022f9
push 1
pop eax
jmp 0x4021ab
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x403004
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea eax, [edi + 0x44]
cmp eax, ebx
jne 0x40301c
xor eax, eax
jmp 0x40301f
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x28]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov esi, dword [ebp + 8]
push esi
push ebx
push 0x419
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, edi
call fcn.004834f6
and eax, 2
cmp al, 2
jne 0x403093
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
sub eax, ecx
mov dword [esi], ebx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x20]
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
lea eax, [edi + ecx]
mov ecx, dword [ebp - 0x24]
cmp eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
jge 0x403088
mov dword [esi + 4], ebx
mov eax, dword [esi + 4]
add eax, dword [ebp - 0x20]
mov dword [esi + 0xc], eax
jmp 0x4030c0
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
mov edi, dword [ebp - 0x24]
sub eax, ecx
cdq
sub eax, edx
mov dword [esi + 4], ebx
mov ebx, eax
mov eax, edi
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
sub ebx, eax
lea eax, [ebx + ecx]
mov dword [esi], eax
add eax, edi
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404a9c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push SysReAllocStringLen
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp - 8]
push esi
push ecx
push ebx
push eax
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0xc]
push eax
push 0x49ed28
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, dword [ebp + 0x10]
mov ecx, esi
call fcn.0048808c
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00488035
lea eax, [ebp - 0x28]
push eax
push 0x18
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x24]
pop edi
pop esi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
pop ebx
leave
ret

Function at 0x407b3d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407b96
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x407cc3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [ebp - 4], eax
ja 0x407db0
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
mov edi, SysReAllocStringLen
push str..htm
push edi
call fcn.00407b3d
test eax, eax
jne 0x407db0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x210]
push str._shellopencommand
push eax
call esi
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.00407b3d
test eax, eax
jne 0x407db0
lea eax, [ebp - 0x210]
push str.__1_
push eax
call fcn.0046d610
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x407d8d
lea eax, [ebp - 0x210]
push 0x4aeed4
push eax
call fcn.0046d590
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x407d8d
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x211]
jmp 0x407d8f
mov byte [edi], bl
push 0x4aeed0
push edi
call esi
push dword [ebp + 8]
push edi
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4087f9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 4
push esi
mov dword [ebp - 8], ecx
push edi
call fcn.0046c780
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
cmp dword [ebp + 0x10], esi
jle 0x40882b
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call ebx
lea eax, [ebp - 4]
push esi
push eax
push 4
push edi
mov dword [ebp + 0x10], esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
mov ecx, dword [ebp - 8]
push 4
push edi
mov dword [ebp + 0xc], eax
call fcn.00408daa
cmp dword [ebp + 0xc], 0
je 0x40888d
cmp dword [ebp - 4], 4
jne 0x40888d
mov eax, dword [edi]
mov ecx, 0xffe00000
and eax, ecx
cmp eax, ecx
je 0x408892
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0x2710
jg 0x408892
push 1
push 0
push 0xfffffffffffffffd
push dword [ebp + 8]
call ebx
lea eax, [ebp - 4]
push 0
push eax
push 4
push edi
push dword [ebp + 8]
jmp 0x40883f
mov ecx, 0xffe00000
mov eax, dword [edi]
pop edi
and eax, ecx
pop esi
sub eax, ecx
pop ebx
neg eax
sbb eax, eax
inc eax
leave
ret 0xc
Function at 0x4098a8
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x40993c
xor ebx, ebx
cmp byte [esi + 0x15], bl
je 0x4098cd
cmp dword [esi + 0x2024], ebx
je 0x40993c
push 1
mov dword [ebp - 0x108], eax
pop eax
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10c]
push ebx
push ecx
push ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10c], eax
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jle 0x40993c
cmp byte [esi + 0x15], bl
jne 0x409905
mov byte [esi + 0x15], 1
jmp 0x40993c
push ebx
lea eax, [esi + 0x101f]
push dword [esi + 0x2024]
push eax
push dword [esi + 0x18]
call dword [sym.imp.WSOCK32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40992d
push ebx
mov ecx, esi
call fcn.00409d26
jmp 0x40993c
mov ecx, esi
call fcn.00409df2
push edi
mov ecx, esi
call fcn.00409ef6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409941
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x4099de
mov edi, 0x1000
cmp dword [esi + 0x2020], edi
je 0x4099de
push 1
mov dword [ebp - 0x108], eax
pop eax
lea ecx, [ebp - 8]
xor ebx, ebx
push ecx
push ebx
lea ecx, [ebp - 0x10c]
push ebx
push ecx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10c], eax
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jle 0x4099de
mov eax, dword [esi + 0x2020]
push ebx
sub edi, eax
lea eax, [eax + esi + 0x1f]
push edi
push eax
push dword [esi + 0x18]
call dword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
cmp edi, ebx
jg 0x4099bf
push ebx
mov ecx, esi
call fcn.00409d26
jmp 0x4099de
mov ecx, esi
call fcn.00409df2
add dword [esi + 0x2020], edi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.004096bb
test al, al
jne 0x4099cc
pop edi
pop esi
pop ebx
leave
ret