joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f2d01
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100f2c7d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100f2e79
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100f2e79
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100f2e28
jg 0x100f2d5a
test eax, eax
je 0x100f2e1e
push 1
push 0x1000
call fcn.100e34e5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100f2d80
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100f2e15
push 0x8000
push ebx
call fcn.100f2bae
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100f2dac
jg 0x100f2da7
cmp ecx, 0x1000
jb 0x100f2dac
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100e6842
add esp, 0x10
cmp eax, 0xffffffff
je 0x100f2df1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100f2da7
jl 0x100f2dd8
test ecx, ecx
jne 0x100f2d99
push dword [ebp - 0xc]
push ebx
call fcn.100f2bae
push esi
call fcn.100e34ab
add esp, 0xc
xor edi, edi
jmp 0x100f2e8a
cmp byte [edi + 0x24], 0
je 0x100f2e08
cmp dword [edi + 0x20], 5
jne 0x100f2e08
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100f2e13
mov edi, dword [edi + 0x18]
jmp 0x100f2e15
xor edi, edi
push esi
call fcn.100e34ab
pop ecx
jmp 0x100f2e8a
test ecx, ecx
jg 0x100f2dea
jl 0x100f2e28
test eax, eax
jae 0x100f2dea
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100e8c73
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100f2e4b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100f2dea
jmp 0x100f2e82
push ebx
call fcn.100f057e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100f2dea
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100f2e8a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100f2e87
mov edi, dword [edi + 0x18]
jmp 0x100f2e8a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100e8c73
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100f4490
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100f44bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100f44bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10946058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.109461a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1094607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1094606a
add dl, dl
jne 0x10946089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x109460dc
xor eax, eax
add dl, dl
jne 0x10946096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1094617d
add dl, dl
jne 0x109460a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x109460b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x109460bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x109460c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x109460d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10946075
mov eax, 1
add dl, dl
jne 0x109460ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x109460f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x109460e1
sub eax, ebx
mov ebx, 1
jne 0x10946128
mov ecx, 1
add dl, dl
jne 0x1094610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10946119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10946105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10946075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1094613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1094614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10946136
cmp eax, 0x7d00
jae 0x1094616d
cmp eax, 0x500
jb 0x10946168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10946075
cmp eax, 0x7f
ja 0x10946170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10946075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1094619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10946075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10001030
Capabilities:
Accept command line arguments
Link many functions at runtime

Disassembly:
push esi
cmp dword [esp + 0xc], 1
jne 0x100011ce
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push eax
call dword [0x1000434c]
add esp, 4
test eax, eax
je 0x1000109d
xor ecx, ecx
jmp 0x10001067
add ecx, 1
cmp eax, ecx
je 0x1000109d
cmp word [esi + ecx*2], 0x72
jne 0x10001060
cmp word [esi + ecx*2 + 2], 0x65
jne 0x10001060
cmp word [esi + ecx*2 + 4], 0x6e
jne 0x10001060
cmp word [esi + ecx*2 + 6], 0x64
jne 0x10001060
cmp word [esi + ecx*2 + 8], 0x65
jne 0x10001060
cmp word [esi + ecx*2 + 0xa], 0x72
jne 0x10001060
mov eax, 1
jmp 0x1000109f
xor eax, eax
mov dword [0x1000c054], eax
cmp dword [0x1000c044], 0
jne 0x100011ce
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call esi
mov dword [0x1000c044], eax
push str.ntdll.dll
call esi
mov dword [0x1000c048], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1000402e
push dword [0x1000c044]
call esi
mov dword [0x1000c058], eax
push 0x10004043
push dword [0x1000c044]
call esi
mov dword [0x1000c05c], eax
push 0x10004059
push dword [0x1000c044]
call esi
mov dword [0x1000c060], eax
push 0x1000406e
push dword [0x1000c044]
call esi
mov dword [0x1000c06c], eax
push 0x1000407e
push dword [0x1000c044]
call esi
mov dword [0x1000c064], eax
push 0x10004099
push dword [0x1000c044]
call esi
mov dword [0x1000c068], eax
push 0x100040b4
push dword [0x1000c044]
call esi
mov dword [0x1000c078], eax
push 0x100040ca
push dword [0x1000c044]
call esi
mov dword [0x1000c084], eax
push 0x100040df
push dword [0x1000c044]
call esi
mov dword [0x1000c07c], eax
push str.NtSetInformationVirtualMemory
push dword [0x1000c048]
call esi
mov dword [0x1000c074], eax
push 0x10004113
push dword [0x1000c048]
call esi
mov dword [0x1000c080], eax
push str.NtQueryInformationToken
push dword [0x1000c048]
call esi
mov dword [0x1000c088], eax
push str.NtSetInformationThread
push dword [0x1000c048]
call esi
mov dword [0x1000c070], eax
call fcn.100011e0
call fcn.10001380
call fcn.10001450
mov eax, 1
pop esi
ret
Function at 0x100011e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push eax
call dword [0x1000434c]
add esp, 4
test eax, eax
je 0x10001375
xor ecx, ecx
jmp 0x1000121b
add ecx, 1
cmp eax, ecx
je 0x10001375
cmp word [edi + ecx*2], 0x67
jne 0x10001210
cmp word [edi + ecx*2 + 2], 0x70
jne 0x10001210
cmp word [edi + ecx*2 + 4], 0x75
jne 0x10001210
push edi
call dword [0x1000434c]
add esp, 4
cmp eax, 6
jb 0x10001375
mov ebx, eax
lea esi, [eax + eax]
add esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10001375
mov esi, eax
lea edx, [ebx + ebx]
xor ebp, ebp
mov eax, 1
jmp 0x1000128b
mov ebp, eax
add eax, 1
cmp cx, 0x22
je 0x100012a1
cmp ebx, eax
je 0x100012a1
movzx ecx, word [edi + eax*2]
cmp cx, 0x5c
je 0x10001280
cmp cx, 0x2f
je 0x10001280
jmp 0x10001282
cmp word [edi], 0x22
lea ebx, [edi + 2]
cmovne ebx, edi
mov eax, ebp
add eax, ebp
push eax
push ebx
mov edi, edx
push edx
push esi
call fcn.10001a00
add esp, 0x10
movzx eax, word [ebx + ebp*2]
or eax, 0x20
cmp ax, 0x6d
jne 0x10001365
movzx eax, word [ebx + ebp*2 + 2]
or eax, 0x20
cmp ax, 0x73
jne 0x10001365
movzx eax, word [ebx + ebp*2 + 4]
or eax, 0x20
cmp ax, 0x65
jne 0x10001365
movzx eax, word [ebx + ebp*2 + 6]
or eax, 0x20
cmp ax, 0x64
jne 0x10001365
movzx eax, word [ebx + ebp*2 + 8]
or eax, 0x20
cmp ax, 0x67
jne 0x10001365
movzx eax, word [ebx + ebp*2 + 0xa]
or eax, 0x20
cmp ax, 0x65
jne 0x10001365
cmp word [ebx + ebp*2 + 0xc], 0x2e
jne 0x10001365
movzx eax, word [ebx + ebp*2 + 0xe]
or eax, 0x20
cmp ax, 0x65
jne 0x10001365
movzx eax, word [ebx + ebp*2 + 0x10]
or eax, 0x20
cmp ax, 0x78
jne 0x10001365
movzx eax, word [ebx + ebp*2 + 0x12]
or eax, 0x20
cmp ax, 0x65
jne 0x10001365
lea eax, [esi + ebp*2]
push 0x16
push 0x100041d8
push edi
push eax
call fcn.10001a00
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001380
Capabilities:
Start service

Disassembly:
push ebx
push edi
push esi
push eax
push str.msedge.exe
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10001446
push str.IsSandboxedProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000c08c], eax
test eax, eax
je 0x100013f3
call eax
test al, al
je 0x10001409
push str.dwrite.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x10001446
mov esi, eax
mov dword [esp], 0
mov eax, esp
push eax
push esi
call fcn.10001e30
add esp, 8
push dword [esp]
push eax
push esi
push section..data
push str.ADVAPI32.DLL
call fcn.10001e80
add esp, 0x14
jmp 0x10001446
push 0x40
push str._BUG_
push str.Function__IsSandboxedProcess____not_found_in_EXPORT_TABLE__
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10001446
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x10001446
mov esi, eax
push 0x14
push str.FontCache
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x10001446
mov edi, eax
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call ebx
push esi
call ebx
add esp, 4
pop esi
pop edi
pop ebx
ret

Function at 0x10001670
Capabilities:
Get uefi variable

Disassembly:
mov eax, dword [0x1000c06c]
test eax, eax
je 0x1000167b
jmp eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
push str.00000000_0000_0000_0000_000000000000
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, 2
sub eax, ecx
ret 4

Function at 0x10001e30
Capabilities:
Parse pe header

Disassembly:
push esi
mov ecx, dword [esp + 8]
movzx edx, word [ecx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x10001e7e
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10001e7e
movzx esi, word [ecx + edx + 0x18]
cmp esi, 0x20b
je 0x10001e68
xor eax, eax
movzx esi, si
cmp esi, 0x10b
jne 0x10001e7c
mov eax, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x84]
mov dword [eax], esi
mov eax, dword [ecx + edx + 0x80]
add eax, ecx
pop esi
ret
Function at 0x10001e80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, dword [esp + 0x20]
xor eax, eax
test ebp, ebp
je 0x10002051
mov edi, dword [esp + 0x24]
test edi, edi
je 0x10002051
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x10002051
mov edx, 0x62
mov eax, dword [ecx]
mov dword [esp], eax
test eax, eax
jne 0x10001ee0
cmp dword [ecx + 0x10], 0
jne 0x10001ee0
cmp dword [ecx + 8], 0
jne 0x10001ee0
cmp dword [ecx + 0xc], 0
jne 0x10001ee0
cmp dword [ecx + 4], 0
je 0x10002059
nop word [eax + eax]
mov esi, dword [ecx + 0xc]
mov eax, dword [esp + 0x28]
mov al, byte [esi + eax]
test al, al
je 0x10001f4c
add esi, dword [esp + 0x28]
mov ebx, ebp
mov ah, byte [ebx]
add ebx, 1
add esi, 1
nop dword [eax]
test ah, ah
je 0x10001f4c
or al, 0x20
or ah, 0x20
cmp al, ah
jne 0x10001f36
movzx eax, byte [esi]
cmp al, 0x2e
jne 0x10001f30
mov ah, byte [ebx]
add ebx, 1
add esi, 1
mov al, 0x2e
cmp ah, 0x2e
jne 0x10001f00
jmp 0x10001f4c
test al, al
jne 0x10001ef4
jmp 0x10001f4c
add ecx, 0x14
mov eax, 1
sub edx, 1
jae 0x10001eb2
jmp 0x10002051
mov ebx, dword [edi]
mov eax, 2
test ebx, ebx
je 0x10002051
mov eax, dword [esp + 0x28]
add dword [esp], eax
mov ecx, dword [ecx + 0x10]
add ecx, eax
mov dword [esp + 4], ecx
jmp 0x10001f7e
mov ebx, dword [edi + 8]
add edi, 8
test ebx, ebx
je 0x1000204c
mov eax, dword [esp]
mov eax, dword [eax]
test eax, eax
je 0x10001f70
mov esi, dword [esp + 4]
mov ebp, dword [esp]
mov ecx, dword [esp + 0x28]
mov cl, byte [eax + ecx + 2]
test cl, cl
je 0x10002010
mov edx, dword [esp + 0x28]
add edx, eax
add edx, 2
mov eax, ebx
mov ch, byte [eax]
add eax, 1
add edx, 1
nop dword [eax]
test ch, ch
je 0x10002010
or cl, 0x20
or ch, 0x20
cmp cl, ch
jne 0x10001ff0
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x10001fe0
mov ch, byte [eax]
add eax, 1
add edx, 1
mov cl, 0x2e
cmp ch, 0x2e
jne 0x10001fb0
jmp 0x10002010
test cl, cl
jne 0x10001fa5
jmp 0x10002010
add esi, 4
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x10001f8e
jmp 0x10001f70
test esi, esi
je 0x10001f70
mov dword [esp + 8], 0
lea ebx, [esp + 8]
push ebx
push 0x40
push 4
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebp
test eax, eax
je 0x10001f70
mov eax, dword [edi + 4]
mov dword [esi], eax
push ebx
push 0x20
push 4
push esi
call ebp
jmp 0x10001f70
mov eax, 2
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 1
jmp 0x10002051

Function at 0x10003b70
Capabilities:
Manipulate console buffer

Disassembly:
push eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov ecx, dword [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop ecx
ret

Function at 0x10003e70
Capabilities:
Get process image filename

Disassembly:
jmp 0x10003f82
jmp dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]

Function at 0x10003e80
Capabilities:
Get process image filename

Disassembly:
jmp 0x10003f88
jmp dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
Function at 0x4096c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x40], eax
xor eax, eax
mov word [ebp - 0x248], ax
push 0x206
push 0
lea ecx, [ebp - 0x246]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x450], dx
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40974f
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.004062c0
push 0x40b3b4
push 0x104
lea ecx, [ebp - 0x450]
push ecx
call fcn.00406310
jmp 0x40979e
lea edx, [ebp - 0x450]
push edx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x409780
push 0x40b3b8
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.00406310
jmp 0x40979e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b3d8
push str.SHGetFolderPath_failed
call fcn.004080a0
add esp, 0xc
jmp 0x409874
lea ecx, [ebp - 0x450]
push ecx
push 0x104
lea edx, [ebp - 0x248]
push edx
call fcn.004062c0
push str.AdobeARMHelper.exe
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00406310
push 0xffffffffffffffff
lea ecx, [ebp - 0x248]
push ecx
call fcn.004095f0
add esp, 8
test eax, eax
jne 0x4097fc
push 0x357
lea edx, [ebp - 0x248]
push edx
push str.Service_workflow_failed__file_not_valid:
call fcn.004080a0
add esp, 0xc
jmp 0x409874
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 0x20], 5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40985b
push 0
push 0x40b48c
push str.ShellExecuteEx_succeeded
call fcn.004080a0
add esp, 0xc
jmp 0x409874
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b4c4
push str.ShellExecuteEx_failed
call fcn.004080a0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401a00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
jmp 0x401a3f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x401afa
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x10], 0
jne 0x401aab
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jle 0x401aa9
push 4
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 8], eax
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0072be30
add esp, 0xc
jmp 0x401a2d
nop
nop
nop
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0072bac0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
jmp 0x401a2d
mov esp, ebp
pop ebp
ret
Function at 0x401b00
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 8], eax
nop
nop
nop
mov dword [ebp - 4], 0
jmp 0x401b39
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x28
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 4], edx
jge 0x401c58
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
je 0x401bb5
push 0x4000
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x401b27
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, dword [ebp - 0x1c]
lea edx, [eax + ecx*8 + 0x852148]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
je 0x401bec
mov ecx, dword [ebp - 0x18]
or ecx, 0x200
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401c2f
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0x40
je 0x401c16
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x20], edx
nop
nop
nop
jmp 0x401c2f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x80
je 0x401c2f
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
nop
nop
nop
nop
nop
cmp dword [ebp - 0x20], 0
jbe 0x401c53
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
jmp 0x401b27
mov esp, ebp
pop ebp
ret
Function at 0x416490
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4164c0
push 0x477
push 0x7bd6f8
call fcn.00443450
test eax, eax
je 0x4164c0
int3
mov eax, dword [ebp - 8]
cmp dword [eax + 0x6c], 0
jne 0x416506
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00422900
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00413fa0
jmp 0x416520
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x6c]
mov edx, dword [eax]
mov eax, dword [edx + 0x94]
call eax
mov esp, ebp
pop ebp
ret 4

Function at 0x416530
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x416560
push 0x48c
push 0x7bd6f8
call fcn.00443450
test eax, eax
je 0x416560
int3
push 0x7bd927
mov ecx, dword [ebp + 0xc]
call fcn.0040c220
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x68], 0
jne 0x4165c7
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4165c5
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
add edx, 1
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00422900
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.00413fa0
jmp 0x4165e8
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0042b410
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4165e8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00416490
mov ecx, dword [ebp + 0xc]
call fcn.00406bc0
mov esp, ebp
pop ebp
ret 8