joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440c34
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x461040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x440c7f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00440dd3
test al, al
jne 0x440c79
sub edx, 2
cmp edx, edi
jne 0x440c5f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x440ca1
lea eax, [edi + 2]
cmp edx, eax
je 0x440ca1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00440b80
add esp, 0x10
jmp 0x440d9b
push esi
lea ecx, [ebp - 0x255]
call fcn.00440dd3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x440ce4
push dword [ebp - 0x25c]
jmp 0x440c91
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x440d21
cmp word [ebp - 0x226], 0
je 0x440d42
cmp word [ebp - 0x226], ax
jne 0x440d21
cmp word [ebp - 0x224], 0
je 0x440d42
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00440b80
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x440d8e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x440cfb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x440d76
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x440d9b
push 0x4409b0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00446ef0
add esp, 0x10
jmp 0x440d6b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429557
leave
ret

Function at 0x4416d0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4416e1
pop esi
ret
push ebx
push edi
push esi
call fcn.00441699
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043cb0a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x441709
push ebx
push esi
push edi
call fcn.0042af20
add esp, 0xc
push 0
call fcn.0043c3f8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x441acd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044171e
Function at 0x449c80
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x407af7
sub edi, ecx
sar edi, 1
cmp word [ebx + edi*2 - 2], 0x5c
je 0x407b1e
mov eax, 0x5c
mov word [ebx + edi*2], ax
inc edi
xor eax, eax
mov word [ebx + edi*2], ax
push 0x458f0c
push ebx
mov esi, edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp + 8]
add edi, 3
mov ebx, 1
lea ecx, [eax + edi*2]
mov edi, eax
mov dword [ebp - 4], ecx
lea eax, [edi + esi*2]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp + 8], eax
nop dword [eax + eax]
push ebx
push str._04X.tmp
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp + 8]
add esp, 0xc
inc ebx
call fcn.00407910
test al, al
jne 0x407b83
push 0
push edi
call esi
test eax, eax
jne 0x407b90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407b9c
cmp ebx, 0xffff
jge 0x407b9c
mov ecx, dword [ebp - 4]
jmp 0x407b50
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407bb0
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push str.shell32.dll
mov edi, edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407c3e
cmp ebx, 0xffffffff
je 0x407c3e
push str.SHGetSpecialFolderPathW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407c37
push 0
push 0x1c
push edi
push 0
call eax
test eax, eax
je 0x407c37
push str.Rescue
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Applet
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407c19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407c37
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x407c23
sub edi, ecx
sar edi, 1
mov eax, edi
pop edi
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop ebx
ret
Function at 0x407c50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x45f094]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea ecx, [ebx - 1]
cmp ecx, 0x100
ja 0x407dd7
cmp word [esi + ebx*2 - 2], 0x5c
je 0x407c9d
mov eax, 0x5c
mov word [esi + ebx*2], ax
inc ebx
lea eax, [esi + ebx*2]
xor ecx, ecx
mov dword [eax], 0x2a
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x407d34
test byte [esp + 0x18], 0x10
je 0x407d19
push 0x458ebc
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407d15
push 0x458ec0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407d15
mov eax, 0x104
sub eax, ebx
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
push esi
mov dl, 1
xor cl, cl
call fcn.00407c50
add esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x407cc1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esi + ebx*2]
mov dword [eax], 0x2a
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x407db8
test byte [esp + 0x18], 0x10
jne 0x407d9b
mov eax, 0x104
sub eax, ebx
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407d8d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x407d9b
test eax, eax
jne 0x407d9b
push 4
push eax
push esi
call edi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407d52
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
xor ecx, ecx
push esi
mov word [eax - 2], cx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x407dd7
test edi, edi
je 0x407dd7
push 4
push eax
push esi
call edi
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423d11
mov esp, ebp
pop ebp
ret
Function at 0x497cd0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov eax, ecx
mov ebx, dword [esp + 0x10]
cdq
and edx, 7
push ebp
add eax, edx
and ecx, 7
sar eax, 3
push esi
mov esi, dword [esp + 0x10]
test eax, eax
mov ebp, ecx
jle 0x497d1b
push edi
mov edi, eax
push 8
mov ecx, esi
call fcn.00492570
xor ecx, ecx
and eax, 0xff
mov cl, bh
xor edx, edx
xor eax, ecx
mov dh, bl
mov ebx, dword [eax*4 + 0x4a0084]
xor ebx, edx
dec edi
jne 0x497cf6
pop edi
test ebp, ebp
jle 0x497d47
push 1
mov ecx, esi
call fcn.00492570
mov ecx, ebx
and ebx, 0x7fff
shr ecx, 0xf
and ecx, 1
xor eax, ecx
shl ebx, 1
test eax, eax
je 0x497d44
xor ebx, 0x8005
dec ebp
jne 0x497d1f
pop esi
mov eax, ebx
pop ebp
pop ebx
ret

Function at 0x798058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007981a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x79807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x79806a
add dl, dl
jne 0x798089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7980dc
xor eax, eax
add dl, dl
jne 0x798096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x79817d
add dl, dl
jne 0x7980a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7980b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7980bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7980c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7980d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x798075
mov eax, 1
add dl, dl
jne 0x7980ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7980f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7980e1
sub eax, ebx
mov ebx, 1
jne 0x798128
mov ecx, 1
add dl, dl
jne 0x79810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x798119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x798105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x798075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x79813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x79814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x798136
cmp eax, 0x7d00
jae 0x79816d
cmp eax, 0x500
jb 0x798168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x798075
cmp eax, 0x7f
ja 0x798170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x798075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x79819e
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 0x798075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403665
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4036a6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4036a2
nop word [eax + eax]
cmp esi, edx
jae 0x4036a6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403690
cmp esi, edx
jb 0x4036ab
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x410780
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push 0
push 0x2001f
push 0
push 0
push str.SOFTWARE_skwgt_no
push dword [0x5d2740]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.004265c0
mov esi, dword [ebp - 0xc]
test eax, eax
jne 0x4107da
push 2
push 0x5ae75c
push 1
push 0
push str.checkvalue
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x4107e5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410960
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5d1e6c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
mov edi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
call esi
push 1
mov dword [ebx], eax
call esi
push 0x5ae2e0
push str.Shell_TrayWnd
mov dword [edi], eax
call dword [sym.imp.USER32.dll_FindWindowA]
xorps xmm0, xmm0
movups xmmword [ebp - 0x14], xmm0
test eax, eax
je 0x4109ba
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [edi]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp eax, esi
jg 0x410a5f
cmp ecx, dword [ebx]
jg 0x410a5f
mov esi, dword [ebp - 0x1c]
mov dword [esi], 0
mov edx, dword [edi]
cmp eax, edx
jne 0x410a2e
mov esi, dword [ebx]
cmp ecx, esi
jne 0x410a2b
cmp dword [ebp - 0x14], 0
jne 0x410a07
sub edx, eax
add edx, dword [ebp - 0x10]
mov dword [edi], edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055026c
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x10], 0
jne 0x410aff
sub esi, ecx
add esi, dword [ebp - 0x14]
pop edi
mov dword [ebx], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055026c
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x10], 0
jne 0x410aff
cmp dword [ebp - 0x14], 0
jne 0x410aff
mov dword [esi], 1
mov edx, dword [ebx]
cmp ecx, edx
je 0x410adf
cmp eax, dword [edi]
jne 0x410aff
jmp 0x410afb
mov edx, eax
sub edx, esi
mov esi, dword [ebp - 0x14]
sub eax, edx
mov dword [ebp - 0x18], edx
add esi, edx
sub ecx, edx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
cmp eax, dword [edi]
jne 0x410ac5
cmp ecx, dword [ebx]
jne 0x410ac5
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0
mov edi, dword [ebp - 0x20]
test esi, esi
jne 0x410aa7
sub edx, dword [ebp - 0x18]
sub edx, eax
add dword [edi], edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055026c
mov esp, ebp
pop ebp
ret 0xc
test edx, edx
jne 0x410aff
sub esi, dword [ebp - 0x18]
sub esi, ecx
add dword [ebx], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055026c
mov esp, ebp
pop ebp
ret 0xc
test edx, edx
jne 0x410aff
test esi, esi
jne 0x410aff
mov edx, dword [ebp - 0x1c]
mov dword [edx], 1
mov edx, dword [ebx]
cmp ecx, edx
jne 0x410af4
add eax, dword [ebp - 0x18]
sub dword [edi], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055026c
mov esp, ebp
pop ebp
ret 0xc
cmp eax, dword [edi]
jne 0x410aff
sub edx, dword [ebp - 0x18]
sub edx, ecx
mov dword [ebx], edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055026c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411dd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f97b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x5d1e6c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x5ae2e0
lea ecx, [ebp - 0x13c]
call fcn.00403860
push 0x128
lea eax, [ebp - 0x138]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00553570
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x411e4c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x411f86
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x128
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x411f7a
nop dword [eax]
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411e80
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x13c]
call fcn.00403d00
push str._System_Process_
push dword [ebp - 0x13c]
call fcn.0055a809
add esp, 8
test eax, eax
sete al
test al, al
jne 0x411f64
push str.System
push dword [ebp - 0x13c]
call fcn.0055a809
add esp, 8
test eax, eax
sete al
test al, al
jne 0x411f64
xor esi, esi
cmp dword [edi + 0x150], esi
jle 0x411f33
test esi, esi
js 0x411fd3
cmp esi, dword [edi + 0x150]
jge 0x411fd3
mov eax, dword [edi + 0x14c]
mov ecx, dword [eax + esi*4]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x411fc9
push ecx
push dword [ebp - 0x13c]
call fcn.0055a809
add esp, 8
test eax, eax
sete al
test al, al
jne 0x411f64
inc esi
cmp esi, dword [edi + 0x150]
jl 0x411ee6
push 0x5ae2e0
push dword [ebp - 0x13c]
call fcn.0055a809
add esp, 8
test eax, eax
setne al
test al, al
je 0x411f64
lea eax, [ebp - 0x13c]
lea ecx, [edi + 0x148]
push eax
push dword [ecx + 8]
call fcn.004325a6
lea eax, [ebp - 0x138]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x411e70
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x13c]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411fab
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055026c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403fd0
call fcn.00427961
int3
Function at 0x412440
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fa2a
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.00550ea0
mov eax, dword [0x5d1e6c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 0x101c], 0
push 0x5ae2e0
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00403860
push 0x400
push 0
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x101c], 1
push eax
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 1
push 1
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0x40
lea eax, [ebp - 0x1074]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x1034], xmm0
call fcn.00553570
mov eax, dword [ebp - 0x1014]
add esp, 0xc
mov dword [ebp - 0x103c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1078], 0x44
mov dword [ebp - 0x104c], 0x100
mov esi, dword [eax - 0xc]
add esi, 1
jns 0x41251f
push 0x80070057
call fcn.00403fd0
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x41253c
push esi
lea ecx, [ebp + 0xc]
call fcn.00403bc0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1034]
push ecx
lea ecx, [ebp - 0x1078]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4125fd
push dword [ebp - 0x1014]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
xor esi, esi
nop word [eax + eax]
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00553570
add esp, 0xc
lea eax, [ebp - 0x1024]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1018]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4125e5
lea eax, [ebp - 0x1010]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4125c4
sub eax, edx
mov ecx, ebx
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.00403270
inc esi
cmp esi, 0x12c
jne 0x412580
push dword [ebp - 0x1018]
call edi
push dword [ebp - 0x1034]
call edi
push dword [ebp - 0x1030]
call edi
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41261c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055026c
mov esp, ebp
pop ebp
ret 8
Function at 0x412d70
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5d1e6c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xff
lea eax, [ebp - 0x104]
mov dword [ebp - 0x10c], 0
push 0
push eax
call fcn.00553570
add esp, 0xc
mov dword [ebp - 0x108], 0xff
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [ebp - 0x10c]
lea ecx, [ebp - 0x110]
call fcn.00404920
test eax, eax
je 0x412df9
mov eax, dword [ebp - 0x110]
sub eax, 1
je 0x412df9
sub eax, 1
je 0x412df9
sub eax, 1
jne 0x412df9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055026c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0055026c
mov esp, ebp
pop ebp
ret
Function at 0x425d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00431842

Function at 0x426490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4264f1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4264cd
cmp eax, 2
jne 0x4264df
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x4264ed
test eax, eax
je 0x4264ea
cmp byte [eax + esi - 1], 0
je 0x4264ed
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc