joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10060b90
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x1016b0ac]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10060bb5
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x10060bfc
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x10060c00
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x10060c5e
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x10060c23
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x10060ca1
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x101273d7
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x101273d8
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x10060c70
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x10061731
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1016b2e8]
jne 0x1006173b
repz ret
jmp fcn.1006af3e

Function at 0x10061f8f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10061fc0
call fcn.1006888b
mov dword [eax], esi
call fcn.10068878
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10061cfa
add esp, 0x14
push 0x16
pop eax
jmp 0x10062015
test dword [ebp + 0xc], 0xfffffff9
jne 0x10061f9c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10061fed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
call fcn.10068878
mov eax, dword [eax]
jmp 0x10062015
test al, 0x10
jne 0x10062013
test al, 1
je 0x10062013
test byte [ebp + 0xc], 2
je 0x10062013
call fcn.1006888b
mov dword [eax], 5
call fcn.10068878
mov dword [eax], 0xd
jmp 0x10061fe4
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10065701
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10065732
call fcn.1006888b
mov dword [eax], esi
call fcn.10068878
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10061cfa
add esp, 0x14
push 0x16
pop eax
jmp 0x10065787
test dword [ebp + 0xc], 0xfffffff9
jne 0x1006570e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1006575f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
call fcn.10068878
mov eax, dword [eax]
jmp 0x10065787
test al, 0x10
jne 0x10065785
test al, 1
je 0x10065785
test byte [ebp + 0xc], 2
je 0x10065785
call fcn.1006888b
mov dword [eax], 5
call fcn.10068878
mov dword [eax], 0xd
jmp 0x10065756
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10078859
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1006b1ea
and dword [ebp - 4], 0
cmp dword [0x10175ea8], 0
mov ebx, eax
jne 0x1007890a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100789bb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101299f0
push edi
call esi
test eax, eax
je 0x100789bb
push eax
call fcn.1006b178
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10175ea8], eax
call esi
push eax
call fcn.1006b178
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10175eac], eax
call esi
push eax
call fcn.1006b178
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10175eb0], eax
call esi
push eax
call fcn.1006b178
pop ecx
mov dword [0x10175eb8], eax
test eax, eax
je 0x1007890a
push 0x10129998
push edi
call esi
push eax
call fcn.1006b178
pop ecx
mov dword [0x10175eb4], eax
mov eax, dword [0x10175eb4]
cmp eax, ebx
je 0x10078962
cmp dword [0x10175eb8], ebx
je 0x10078962
push eax
call fcn.1006b1f3
push dword [0x10175eb8]
mov esi, eax
call fcn.1006b1f3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10078962
test edi, edi
je 0x10078962
call esi
test eax, eax
je 0x10078959
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10078959
test byte [ebp - 0xc], 1
jne 0x10078962
or dword [ebp + 0x10], 0x200000
jmp 0x1007899b
mov eax, dword [0x10175eac]
cmp eax, ebx
je 0x1007899b
push eax
call fcn.1006b1f3
pop ecx
test eax, eax
je 0x1007899b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1007899b
mov eax, dword [0x10175eb0]
cmp eax, ebx
je 0x1007899b
push eax
call fcn.1006b1f3
pop ecx
test eax, eax
je 0x1007899b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10175ea8]
call fcn.1006b1f3
pop ecx
test eax, eax
je 0x100789bb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100789bd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007e790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.1006af10
mov eax, dword [0x1016b2e8]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x1007e7d7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.10061731
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.10062d32
add esp, 8
test eax, eax
jl 0x1007e7c0
mov eax, 8
call fcn.1006af10
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.1007e600
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x1007e7c0
push 0x10163dac
push esi
call fcn.10062493
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x1007e8b1
jmp 0x1007e834
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x1007e842
cmp ebx, 0x400
mov esi, ebx
jl 0x1007e847
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.10062ab7
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x1007e895
fild dword [esp + 0x44]
mov eax, 8
call fcn.1006af10
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.1007e600
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x1007e830
sub ebx, esi
test ebx, ebx
jg 0x1007e830
mov ecx, dword [esp + 0x40]
push ecx
call fcn.10062353
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.1008f2a0
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10061731
mov esp, ebp
pop ebp
ret

Function at 0x1008b470
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.10068c80
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x1008c080
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.10068c80
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret
Function at 0x100918c0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.1006af10
mov eax, dword [0x1016b2e8]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10091925
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10091925
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.10068dd7
add eax, 0x40
push eax
call fcn.10072640
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10061731
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.101189b1
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x100919b8
call fcn.10091780
test eax, eax
jle 0x100919b8
push esi
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x100919a2
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10061731
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10061731
add esp, 0x108
ret

Function at 0x10091a20
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x10091a44
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
sub edi, 1
jne 0x10091a36
pop esi
movzx eax, cl
pop edi
ret
Function at 0x100c41c0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x100c42a3
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x100c423e
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x100c4290
shl edx, 0x10
cmp edi, 2
jne 0x100c424f
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x100c427d
lea edx, [edi + 0x3c]
jmp 0x100c428a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x100c41e0
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x100d1697
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.1006af10
mov eax, dword [0x1016b2e8]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
jbe 0x100d1804
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 8
or ebx, eax
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
shl edx, 0x18
inc esi
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
inc esi
mov byte [edi], dl
mov byte [ebp], al
call fcn.1008d570
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.1008d670
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.100a5d50
push ebp
call fcn.1008d570
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.1008d670
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.100a5d50
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
inc eax
shr edx, 8
add esp, 0x30
mov byte [eax], dl
inc eax
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
inc eax
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
inc eax
inc eax
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
inc eax
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x100d16b3
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.10061731
add esp, 0xa0
ret
Function at 0x100f3190
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x100f31a9
mov esi, edi
mov edi, eax
jmp 0x100f31ab
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x100f31bb
mov eax, ebx
jmp 0x100f31c5
push eax
push ebx
call fcn.10089110
add esp, 8
test eax, eax
jne 0x100f31cd
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x100f31e9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x100f31d4
cmp eax, dword [esi + 4]
jge 0x100f3200
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x100f31f0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x100f3221
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x100f321e
dec eax
test eax, eax
jg 0x100f3210
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x402cd0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jle 0x402d03
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
mov eax, ecx
xor edx, edx
div ebx
mov al, byte [edx + ebp]
mov dl, byte [ecx + esi]
xor dl, al
mov byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jl 0x402cea
pop esi
pop ebp
pop ebx
pop edi
ret
Function at 0x407130
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41ad26
push eax
mov eax, 0x20c8
mov dword fs:[0], esp
call fcn.0040e740
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x98]
call fcn.004058f0
xor ebx, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x20e0], ebx
call fcn.0040cfc0
mov al, byte [esp + 0x12]
mov dword [esp + 0x74], ebx
mov byte [esp + 0x70], al
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x34], 0x41c51c
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1a]
push eax
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20f8]
lea eax, [esp + 0x34]
push edx
push eax
push ecx
lea ecx, [esp + 0xb4]
mov byte [esp + 0x20fc], 1
call fcn.00405950
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x4072e4
jmp 0x4071e7
mov edx, dword [esp + 0x20ec]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
lea edx, [esp + 0xe4]
push 0x423ee0
push edx
call fcn.0040e67a
add esp, 0x14
lea eax, [esp + 0xd8]
lea ecx, [esp + 0x34]
push 0xffffffffffffffff
push ebx
push eax
push ebx
call fcn.0040d010
jmp 0x407235
mov eax, dword [0x42af88]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x14], 1
je 0x40725c
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push 0x406
push eax
call edi
cmp dword [esp + 0x14], ebx
je 0x4072d8
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x98]
call fcn.00406070
test eax, eax
lea ecx, [esp + 0x98]
jne 0x407323
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.004060a0
cmp eax, ebx
jge 0x407296
push 1
call ebp
jmp 0x4072d2
mov eax, dword [0x42af88]
inc esi
cmp eax, ebx
je 0x4072aa
push ebx
push esi
push 0x402
push eax
call edi
call fcn.00406fc0
test eax, eax
jne 0x40732a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.0040d970
lea ecx, [esp + 0x98]
call fcn.004060b0
cmp dword [esp + 0x14], ebx
jne 0x407262
lea ecx, [esp + 0x98]
call fcn.00405f60
lea ecx, [esp + 0x34]
call fcn.0040d2f0
mov eax, dword [0x42af88]
cmp eax, ebx
je 0x407301
push ebx
push 0x64
push 0x402
push eax
call edi
mov eax, dword [esp + 0x74]
mov byte [esp + 0x20e0], bl
cmp eax, ebx
je 0x407343
mov cl, byte [eax - 1]
dec eax
cmp cl, bl
je 0x40733a
cmp cl, 0xff
je 0x40733a
dec cl
mov byte [eax], cl
jmp 0x407343
call fcn.00406060
jmp 0x4072d8
lea ecx, [esp + 0x34]
call fcn.0040d4f0
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
call fcn.0040e1ff
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call fcn.0040d000
lea ecx, [esp + 0x98]
mov dword [esp + 0x20e0], 0xffffffff
call fcn.00405940
mov ecx, dword [esp + 0x20d8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20d4
ret
Function at 0x40d000
Capabilities:
Read file on windows
Read pipe
Terminate process

Disassembly:
mov dword [ecx], 0x41c540
jmp fcn.0040d2f0
Function at 0x40d4f0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
call fcn.0040d2c0
test eax, eax
je 0x40d517
mov eax, dword [esi + 0x2c]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esi + 0x2c]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x2c], 0
pop esi
ret

Function at 0x40d520
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
mov edx, dword [esp + 0x78]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x7c]
neg eax
sbb eax, eax
mov dword [esp + 0x20], 0x44
and eax, 5
mov dword [esp + 0x4c], 0x101
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], edx
mov word [esp + 0x50], ax
xor edi, edi
xor esi, esi
call fcn.0040cf90
test eax, eax
je 0x40d5bb
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x14
push 0x40
call esi
mov edi, eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push 0xc
push 0x40
call esi
mov esi, eax
mov dword [esi], 0xc
mov dword [esi + 4], edi
mov dword [esi + 8], 1
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push 0
push 0
push 0x10
push 1
push 0
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, eax
test esi, esi
je 0x40d5ef
push esi
call ebp
test edi, edi
je 0x40d5f6
push edi
call ebp
pop edi
pop esi
test ebx, ebx
pop ebp
pop ebx
jne 0x40d606
xor eax, eax
add esp, 0x54
ret 0x18
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
add esp, 0x54
ret 0x18
Function at 0x40d620
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov eax, 0x2010
call fcn.0040e740
mov eax, dword [0x426abc]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov ebx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
je 0x40d6d3
mov esi, dword [esp + 0x2024]
mov ebp, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x28]
push 0x1000
push eax
push esi
call ebp
cmp dword [esp + 0x14], edi
jbe 0x40d6c3
lea ecx, [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x24]
push 0x1000
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d69d
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x40d6b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x40d6d3
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40d6cb
lea ecx, [esp + 0x1c]
mov word [esp + eax*2 + 0x1c], di
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 4]
jmp 0x40d6cb
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x426abc], edi
jne 0x40d658
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2010
ret 4

Function at 0x40d6f0
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov eax, 0x2010
call fcn.0040e740
mov eax, dword [0x426abc]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov ebx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
je 0x40d7a4
mov esi, dword [esp + 0x2024]
mov ebp, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x28]
push 0x1000
push eax
push esi
call ebp
cmp dword [esp + 0x14], edi
jbe 0x40d794
lea ecx, [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x24]
push 0x1000
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d76d
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x40d780
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x40d7a4
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40d79c
mov edx, dword [ebx]
mov word [esp + eax*2 + 0x1c], di
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call dword [edx + 8]
jmp 0x40d79c
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x426abc], edi
jne 0x40d728
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2010
ret 4

Function at 0x40d970
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [ecx + 0x14]
mov dword [esp], 0
test eax, eax
je 0x40d9a6
mov ecx, dword [esp + 0xc]
test ecx, ecx
jbe 0x40d9a6
lea edx, [esp]
push 0
push edx
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d9a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
ret 8