joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405180
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x4c
push ebp
mov ebp, dword [esp + 0x54]
test ebp, ebp
jne 0x405193
xor eax, eax
pop ebp
add esp, 0x4c
ret
xor eax, eax
xor ecx, ecx
mov dword [esp + 4], eax
push ebx
mov dword [esp + 0xc], eax
push esi
mov word [esp + 0x14], ax
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x24]
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push edx
push eax
mov dword [esp + 0x38], ecx
call fcn.00405140
mov edx, eax
mov ecx, 0x100
mov eax, 0x58585858
mov edi, ebp
add esp, 8
rep stosd dword es:[edi], eax
xor eax, eax
mov cl, al
xor cl, 0x55
mov byte [eax + ebp], cl
inc eax
cmp eax, 0x100
jl 0x4051d7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x100], eax
mov ax, word [esp + 0x18]
mov dword [ebp + 0x104], ecx
mov ecx, dword [esp + 0x28]
mov word [ebp + 0x108], ax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x10a], ecx
mov ecx, dword [esp + 0x30]
mov dword [ebp + 0x10e], eax
mov eax, edx
mov dword [ebp + 0x112], ecx
xor ecx, ecx
shr eax, 0x10
mov cl, ah
mov byte [ebp + 0x117], al
xor eax, eax
mov byte [ebp + 0x116], cl
mov al, dh
mov ecx, 9
mov esi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
lea edi, [esp + 0x34]
mov byte [ebp + 0x118], al
mov byte [ebp + 0x119], dl
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x64]
mov ebx, 0x11a
lea esi, [ebx + ebp]
mov eax, 0xfffffff0
mov cl, bl
mov al, byte [eax + esi]
not cl
xor al, cl
mov ecx, 0x24
mov byte [esi], al
and eax, 0xff
cdq
idiv ecx
xor eax, eax
lea ecx, [esp + 0x1c]
mov al, byte [esp + edx + 0x34]
push eax
push 0x447498
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov dl, byte [esp + 0x28]
add esp, 0xc
test edi, edi
mov byte [esi], dl
je 0x4052c6
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4052bd
mov al, byte [esp + 0x1c]
mov byte [ebx + edi - 0x11a], al
jmp 0x4052c6
mov cl, byte [ebx + edi - 0x11a]
mov byte [esi], cl
inc ebx
cmp ebx, 0x12a
jl 0x405264
mov ecx, 0xfffffe00
pop edi
pop esi
lea eax, [ebp + 0x200]
sub ecx, ebp
pop ebx
mov dl, byte [eax - 0x200]
mov byte [eax], dl
inc eax
lea edx, [ecx + eax]
cmp edx, 0x200
jl 0x4052df
push ebp
call fcn.00405310
push ebp
call fcn.00405390
add esp, 8
mov eax, 1
pop ebp
add esp, 0x4c
ret

Function at 0x405390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
lea edi, [ebp + 0x200]
xor eax, eax
sub ebp, edi
lea esi, [edi + eax]
mov cl, al
not cl
mov dl, byte [esi + ebp]
xor dl, cl
inc eax
cmp eax, 0x200
mov byte [esi], dl
jl 0x4053a1
pop edi
pop esi
pop ebp
ret
Function at 0x40d4d0
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x438c59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push esi
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x168], esi
call fcn.00429a97
push 0x44b620
lea ecx, [esp + 8]
mov byte [esp + 0x16c], 1
call fcn.0042a725
mov eax, dword [esp + 0x170]
mov byte [esp + 0x168], 2
cmp dword [eax - 8], esi
jle 0x40d595
mov al, byte [esi + eax]
cmp al, 0x5c
je 0x40d543
mov byte [esp + 8], al
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 8]
call fcn.0042aaba
jmp 0x40d564
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.00429c73
push 0x4474ac
lea ecx, [esp + 8]
call fcn.0042aa93
mov eax, dword [esp + 0x170]
mov ecx, dword [eax - 8]
dec ecx
cmp esi, ecx
jne 0x40d58d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00429c73
mov eax, dword [esp + 0x170]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jl 0x40d528
mov eax, dword [esp + 0x14]
mov esi, 1
cmp eax, esi
jle 0x40d606
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.0040d6d0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 3
call fcn.0042a7f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 2
call fcn.0042a6b7
mov eax, dword [esp + 0xc]
push 0
push eax
call edi
test eax, eax
je 0x40d5fb
mov ecx, dword [esp + 0xc]
push 0x80
push ecx
call ebp
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x40d5b0
pop edi
pop ebp
or esi, 0xffffffff
lea ecx, [esp + 0xc]
push esi
push 0
call fcn.00429b2a
mov eax, dword [esp + 0x170]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x168], 1
cmp eax, 0x10
lea ecx, [esp + 4]
jne 0x40d688
call fcn.0042a6b7
lea ecx, [esp + 0xc]
mov byte [esp + 0x168], 0
call fcn.00429aca
lea ecx, [esp + 0x170]
mov dword [esp + 0x168], esi
call fcn.0042a6b7
mov eax, 1
pop esi
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
add esp, 0x168
ret
call fcn.0042a6b7
lea ecx, [esp + 0xc]
mov byte [esp + 0x168], 0
call fcn.00429aca
lea ecx, [esp + 0x170]
mov dword [esp + 0x168], esi
call fcn.0042a6b7
mov ecx, dword [esp + 0x160]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x168
ret
Function at 0x40e000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438d31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov ecx, 0x43b604
xor eax, eax
push edi
mov dword [esp + 8], esi
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov dword [esp + 0x14], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], eax
mov ecx, dword [0x44927c]
mov dword [esi + 0x4c], ecx
mov edi, dword [esp + 0x1c]
mov dword [esi], eax
mov dword [esi + 0x18], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 4], eax
mov dword [esi + 0x20], 4
mov edx, dword [edi]
push edx
mov byte [esp + 0x18], 2
call fcn.0040dd60
add esp, 4
mov ecx, esi
push eax
call fcn.0040e320
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx]
call dword [eax + 8]
push eax
mov ecx, esi
call fcn.0040ed40
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x41f895
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44ace8
cmp edx, dword [eax]
je 0x41f8b7
add eax, 8
inc ecx
cmp eax, 0x44ad78
jl 0x41f8a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44ace8]
jne 0x41f9e5
mov eax, dword [0x44db2c]
cmp eax, 1
je 0x41f9bf
test eax, eax
jne 0x41f8e8
cmp dword [0x44a550], 1
je 0x41f9bf
cmp edx, 0xfc
je 0x41f9e5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41f91f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00420030
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c640
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41f962
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c640
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43e8c8
push edi
call fcn.00418240
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00420030
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00420040
lea eax, [ebp - 0xa0]
push 0x43e8a8
push eax
call fcn.00420040
push dword [esi + 0x44acec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00420040
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004235bd
add esp, 0x2c
pop edi
jmp 0x41f9e5
lea eax, [ebp + 8]
lea esi, [esi + 0x44acec]
push 0
push eax
push dword [esi]
call fcn.0041c640
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 0x4278d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00419fb0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42799b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42799b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42794e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x427959
or bh, 8
and edi, 0x8000000
je 0x427974
mov eax, dword [0x44f29c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42799b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x427d9b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x427dbf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x427dda
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x42c443
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42c47b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042ab5e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042ab36
jmp 0x42c487
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42da1b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42da5d
call fcn.00434891
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42da5d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42da54
xor eax, eax
jmp 0x42da65
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042da6b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4353a2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4353d0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4353ee
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00435308
jmp 0x4353ee
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4353ee
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00435308
test edi, edi
mov eax, edi
jne 0x4353d8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4358b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x435964
mov ecx, 0x44da50
call fcn.0043548f
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x435942
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x435920
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x435920
push ebx
push edi
push eax
call fcn.0043027c
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.0042a840
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x40127a
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, 0x80004005
mov byte [ebp - 0x108], 0
call fcn.00401660
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x10c], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x401314
test edi, edi
je 0x401312
mov esi, str.SYSTEM
lea edx, [ebp - 0x108]
push ebx
movzx eax, byte [edx]
lea ecx, [eax - 0x41]
inc edx
cmp ecx, 0x19
ja 0x4012f1
add eax, 0x20
movzx ecx, byte [esi]
lea ebx, [ecx - 0x41]
inc esi
cmp ebx, 0x19
ja 0x401300
add ecx, 0x20
test eax, eax
je 0x401308
cmp eax, ecx
je 0x4012e2
sub eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [edi], eax
pop ebx
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040153f
leave
ret
Function at 0x401323
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
push edi
push str.Program_Manager
push str.Progman
mov dword [ebp - 0x20], 0x80004005
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x40142e
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x1c]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x40142e
lea eax, [ebp - 0xc]
push eax
push 0x17
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40142e
lea eax, [ebp - 8]
push eax
push 1
push 2
push esi
push 0x2000000
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x40142e
push str.Userenv.dll
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x4013fe
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x18]
mov ebx, eax
call edi
cmp ebx, esi
mov dword [ebp - 0x14], eax
je 0x4013fd
cmp eax, esi
je 0x4013fd
push esi
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call ebx
pop ebx
push dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
neg eax
push esi
push dword [ebp - 4]
sbb eax, eax
and eax, 0x400
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x40142e
mov dword [ebp - 0x20], esi
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401441
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
cmp dword [ebp - 0xc], esi
je 0x40144e
push dword [ebp - 0xc]
call edi
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x10], esi
je 0x401458
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 4], esi
je 0x40146b
cmp dword [ebp - 0x14], esi
je 0x401468
push dword [ebp - 4]
call dword [ebp - 0x14]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], esi
pop edi
pop esi
je 0x40147b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
leave
ret 0x10

Function at 0x40153f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401549
repz ret
jmp fcn.0040154e
Function at 0x407e80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ce2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00461b21
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407f02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045f8a0
mov eax, dword [eax]
push 0x5341f0
push eax
call fcn.004524d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461dac
test bl, bl
je 0x407f02
push 0x5341f0
lea ecx, [esp + 0xc]
call fcn.0046213c
push 0x537d5c
lea ecx, [esp + 0xc]
call fcn.0046213c
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x407f3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461dac
jmp 0x408009
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x407fc2
lea edx, [esp + 0x7c]
push 0x537d58
push edx
call fcn.004524d4
add esp, 8
test eax, eax
je 0x407fc2
lea eax, [esp + 0x7c]
push 0x537d54
push eax
call fcn.004524d4
add esp, 8
test eax, eax
je 0x407fc2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407f52
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00461dac
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x408800
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408862
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x408870
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ceab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x53e6f8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4089a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4088d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461dac
xor eax, eax
jmp 0x408a1f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00461ee9
push esi
lea ecx, [esp + 0xc]
call fcn.00462178
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x537d94
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4089fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00408800
test eax, eax
jne 0x4089fd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00408800
test eax, eax
jne 0x4089fd
lea eax, [esp + 0x14]
push 0x537d70
push eax
call fcn.00453510
mov esi, eax
add esp, 8
test esi, esi
jne 0x4089dc
lea ecx, [esp + 0x14]
push 0x537d6c
push ecx
call fcn.00453490
mov esi, eax
add esp, 8
test esi, esi
jne 0x4089dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4089df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00461e99
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4088ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461dac
xor eax, eax
jmp 0x408a1f
mov byte [esi], 0
push 0x537d68
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00461dac
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4