joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e4f0
Capabilities:
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x75c
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x344], 0
push 0x38
push 0
lea eax, [ebp - 0x340]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x344], 0x3c
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x330], 0x100
lea edx, [ebp - 0x300]
mov dword [ebp - 0x318], edx
mov dword [ebp - 0x314], 0x200
lea eax, [ebp - 0x344]
push eax
push 0x10000000
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push 0
push 0
push 0
push 1
push str.Mozilla_4.0__compatible__UPnP_1.0__Windows_9x_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
je 0x40e721
push 0
push 0
push 3
push 0
push 0
movzx edx, word [ebp - 0x32c]
push edx
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x308]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
je 0x40e714
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x300]
push edx
push str.POST
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x40e707
push 0xa0000000
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov dword [ebp - 0x350], str.Content_Type:_text_xml__charset_utf_8__r_nConnection:_Close_r_nCache_Control:_no_cache_r_nPragma:_no_cache_r_n
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x350]
push eax
mov ecx, dword [ebp - 0x34c]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40e6fa
mov dword [ebp - 0x354], 0
mov edx, 1
test edx, edx
je 0x40e6ef
lea eax, [ebp - 0x75c]
push eax
push 0x400
lea ecx, [ebp - 0x758]
push ecx
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40e691
cmp dword [ebp - 0x75c], 0
jne 0x40e693
jmp 0x40e6ef
mov eax, dword [ebp - 0x354]
add eax, dword [ebp - 0x75c]
push eax
mov ecx, dword [ebp - 0x304]
push ecx
call fcn.00409fe0
add esp, 8
mov dword [ebp - 0x304], eax
mov edx, dword [ebp - 0x75c]
push edx
lea eax, [ebp - 0x758]
push eax
mov ecx, dword [ebp - 0x304]
add ecx, dword [ebp - 0x354]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x354]
add edx, dword [ebp - 0x75c]
mov dword [ebp - 0x354], edx
jmp 0x40e657
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x354]
mov dword [eax], ecx
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x308]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x304]
mov esp, ebp
pop ebp
ret
Function at 0x40e730
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xa
lea eax, [ebp - 0xc]
push eax
push 7
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x412208
lea ecx, [ebp - 0xc]
push ecx
call sub.ntdll.dll_strcmp
add esp, 8
test eax, eax
jne 0x40e762
mov al, 1
jmp 0x40e764
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40e770
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40e7b8
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40e7c0
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov byte [ebp - 0x11], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 0
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40e91a
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40e910
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40e906
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jbe 0x40e8fc
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0040c7f0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40e8fc
mov edx, dword [ebp - 8]
sub edx, 0x100
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], edx
jne 0x40e8fc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x100
push ecx
push 0x10
mov edx, dword [ebp - 0x10]
add edx, 8
push edx
call fcn.0040c190
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40e8fc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040a4e0
add esp, 0xc
push 0x10
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 8
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
je 0x40e8fc
mov edx, dword [ebp - 4]
push edx
call fcn.0040a1b0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40e974
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40e968
mov byte [ebp - 0x11], 1
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call fcn.0040a1b0
add esp, 4
mov al, byte [ebp - 0x11]
mov esp, ebp
pop ebp
ret
Function at 0x40e980
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov edx, 5
mov word [ebp - 0x30], dx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x40e9f1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x40ea28
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x41220c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x20
jle 0x40ea26
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x40ea28
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40ea30
Capabilities:
Create http request
Get http content length
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 5], 0
push 0
push 0
push 0
push 1
push 0x412218
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40eac8
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40eabe
mov dword [ebp - 0x14], 4
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
push 0x20000005
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x10], 0x1388
jbe 0x40eab4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx]
je 0x40eab4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x40f0b1
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40f0e2
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x40f0e9
cmp ebx, dword [ebp + 8]
jae 0x40f0e9
xor eax, eax
jmp 0x40f2cf
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40f0fa
xor eax, eax
inc eax
jmp 0x40f2ce
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40f10c
cmp ecx, edx
jae 0x40f170
cmp dword [eax + 4], 0
je 0x40f115
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40f101
cmp dword [ebp + 8], 0
je 0x40f12f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f170
cmp eax, esi
jae 0x40f170
mov ecx, dword [0x416ed8]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x40f151
cmp dword [eax*4 + 0x416ee0], esi
je 0x40f177
inc eax
cmp eax, ecx
jl 0x40f143
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x40f1e7
mov eax, dword [ebp + 8]
jmp 0x40f1e9
xor eax, eax
jmp 0x40f2ce
test eax, eax
jle 0x40f0f2
xor edx, edx
mov ebx, 0x416f20
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x40f0f2
cmp dword [eax*4 + 0x416ee0], esi
je 0x40f1c6
lea eax, [ecx - 1]
test eax, eax
jl 0x40f1b3
cmp dword [eax*4 + 0x416ee0], esi
je 0x40f1af
dec eax
jns 0x40f1a3
test eax, eax
jge 0x40f1c4
cmp ecx, 0x10
jge 0x40f1bf
inc ecx
mov dword [0x416ed8], ecx
lea eax, [ecx - 1]
jmp 0x40f1c6
je 0x40f1de
xor edx, edx
test eax, eax
jl 0x40f1de
lea ecx, [edx*4 + 0x416ee0]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x40f1cc
xor eax, eax
xchg dword [ebx], eax
jmp 0x40f0f2
xor eax, eax
test eax, eax
je 0x40f2cc
cmp dword [ebp - 8], 0x1000000
jne 0x40f2cc
test byte [ebp - 0xc], 0xcc
je 0x40f25e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f2cc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f2cc
cmp word [eax + 0x18], 0x10b
jne 0x40f2cc
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f2cc
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f25e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f25e
test byte [ecx + 0x27], 0x80
jne 0x40f170
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x416f20
xchg dword [edx], ecx
test ecx, ecx
jne 0x40f2ce
mov ecx, dword [0x416ed8]
test ecx, ecx
mov edx, ecx
jle 0x40f28d
lea eax, [ecx*4 + 0x416edc]
cmp dword [eax], esi
je 0x40f28d
dec edx
sub eax, 4
test edx, edx
jg 0x40f281
test edx, edx
jne 0x40f2be
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f29a
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f2b2
lea eax, [edx*4 + 0x416ee0]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x40f2a0
cmp ecx, 0x10
jge 0x40f2be
inc ecx
mov dword [0x416ed8], ecx
xor eax, eax
mov ecx, 0x416f20
xchg dword [ecx], eax
jmp 0x40f0f2
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f348
Capabilities:
Packed with generic packer

Disassembly:
lea ecx, [edi + 0x49]
jge 0x40f3a9
inc ecx
mov dl, 0xd3
nop
sbb dl, dl
and dl, 0xac
not eax
inc dh
jmp int.00416f28
adc al, 0x7c
xor ecx, esi
not eax
mov ecx, ebp
inc eax
inc eax
jmp 0x40f37c
sub ah, ch
dec eax
inc ecx
inc al
setb ah
add ah, 0x6c
push 0x6a0a
clc
pop edx
xchg ecx, eax
jmp 0x40f3a9
inc al
xchg al, al
sub edx, 2
xchg ch, al
mov ecx, eax
mov ecx, 0xec862e69
nop
not eax
nop
not al
jmp 0x40f2f2
xchg ecx, ecx
sbb word [edx + int.00416f28], 0xbe78
inc ch
inc ecx
xor cl, 0x76
jmp 0x40f31e
Function at 0x4029c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004037f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004037f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40639c]
test esi, esi
jle 0x402b20
mov eax, dword [0x4063a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x402a50
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402acf
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402a40
mov dword [esp], ebx
call fcn.00403390
mov edi, eax
test eax, eax
je 0x402b47
mov eax, dword [0x4063a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004034a0
mov edx, dword [0x4063a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402b27
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402ac8
sub eax, 4
and eax, 0xfffffffb
jne 0x402ad6
add dword [0x40639c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4063a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402ac8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004029c0
xor esi, esi
jmp 0x402a5a
mov eax, dword [0x4063a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004029c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004029c0
lea esi, [esi]
nop
Function at 0x403000
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4063b0]
sub esp, 4
test ebx, ebx
je 0x403055
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40304e
test esi, esi
je 0x40304e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403030
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402550
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x402599
push 0x81fcbc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4025c3
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4025c3
push 0
push dword [esi]
push dword [ebp + 0x18]
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call eax
pop esi
pop ebp
ret 0x14
cmp dword [esi + 4], 0
je 0x4025c3
pop esi
mov dword [ebp + 0x14], 0x2001f
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
pop ebp
jmp dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, 1
pop esi
pop ebp
ret 0x14

Function at 0x4025d0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4025f3
sub esp, 0x10
call fcn.00402550
jmp 0x40260a
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402633
mov eax, dword [esi]
xor edx, edx
test eax, eax
je 0x402625
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, eax
mov dword [esi], 0
mov ecx, dword [ebp - 4]
mov eax, edx
mov dword [esi], ecx
mov dword [esi + 4], 0
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403990
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x747e58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x8606e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x2c], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.004084b0
lea eax, [ebp - 0x2c]
push eax
push 0x403950
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
cmp eax, 8
jb 0x403a11
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409480
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x403a3a
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00409480
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret
Function at 0x403ab0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x747e8b
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x8606e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x403afd
mov eax, dword [ecx]
jmp 0x403aff
mov eax, ecx
push 0x26
xor edx, edx
push str.466985C1_C9AE_4E60_9C03_F07BA558047F
mov word [eax], dx
call fcn.004083b0
call fcn.00403990
mov esi, eax
add esp, 0x18
test esi, esi
je 0x403bcc
lea ecx, [ebp - 0x2c0]
call fcn.0041cb10
sub esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c0]
push 0x31
push 0
push 0x81fe48
push edi
call fcn.0041cd30
cmp eax, 1
jne 0x403bbb
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2c4], 0
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x2c4], 0
jbe 0x403baa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x2c4]
cmp ecx, eax
je 0x403baa
test ecx, ecx
je 0x403baa
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x403baa
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c0]
mov bl, 1
call fcn.0041cc50
mov al, bl
jmp 0x403bce
lea ecx, [ebp - 0x2c0]
xor bl, bl
call fcn.0041cc50
mov al, bl
jmp 0x403bce
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret

Function at 0x403bf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x747ecb
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x8606e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
lea ecx, [ebp - 0x2c0]
call fcn.0041cb10
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x403c59
sub esp, 0x10
lea ecx, [ebp - 0x2c0]
push 0x30
push eax
push 0x81fe7c
push edi
call fcn.0041cd30
xor bl, bl
jmp 0x403cde
cmp eax, 0xc8
jbe 0x403c7c
sub esp, 0x10
lea ecx, [ebp - 0x2c0]
push 0x30
push 0
push 0x81fe9c
push edi
call fcn.0041cd30
xor bl, bl
jmp 0x403cde
cmp dword [esi + 0x14], 8
jb 0x403c86
mov eax, dword [esi]
jmp 0x403c88
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403cb5
sub esp, 0x10
lea ecx, [ebp - 0x2c0]
push 0x31
push 0
push 0x81fec0
push edi
call fcn.0041cd30
cmp eax, 2
je 0x403cd8
cmp eax, 8
je 0x403cd8
mov ecx, esi
call fcn.00405210
test al, al
je 0x403cdc
sub esp, 0x10
lea ecx, [ebp - 0x2c0]
push 0x30
push 0
push 0x81fee8
push edi
call fcn.0041cd30
xor bl, bl
jmp 0x403cde
mov bl, 1
lea ecx, [ebp - 0x2c0]
call fcn.0041cc50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret