joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40770c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
xor ecx, ecx
mov dl, byte [eax]
inc eax
test dl, dl
je 0x407739
movzx edx, dl
xor ecx, edx
mov edx, ecx
add ecx, ecx
shr edx, 0x1f
or edx, ecx
sub edx, 0x80d2
mov ecx, edx
jmp 0x40771a
cmp ecx, 0xdfcf8029
je 0x407909
cmp ecx, 0x853f62e8
je 0x407909
test ecx, ecx
je 0x407909
cmp ecx, 0xfbf9f741
je 0x407909
cmp ecx, 0x7f40c9a9
je 0x407909
cmp ecx, 0xa0523b9f
je 0x407909
cmp ecx, 0xbf9f5469
je 0x407909
cmp ecx, 0xefe84f29
je 0x407909
mov dword [ebp - 4], 0xa8
cmp dword [ebp - 4], 0
jl 0x407909
push esi
mov eax, dword [0x4d10f8]
mov ecx, dword [ebp - 4]
xor eax, ecx
mov dword [0x4d10f8], eax
mov eax, dword [0x4d10f8]
mov ecx, dword [ebp - 4]
sub eax, ecx
mov dword [0x4d10f8], eax
mov eax, dword [0x4723c4]
sub eax, 0x28d1e82
mov dword [0x4723c4], eax
mov eax, dword [0x4d10f8]
mov ecx, dword [ebp - 4]
sub eax, ecx
mov dword [0x4d10f8], eax
mov eax, dword [0x4723c4]
add eax, 0x418c84d8
mov dword [0x4723c4], eax
mov eax, dword [0x4723c4]
mov ecx, dword [ebp - 4]
sub eax, ecx
mov dword [0x4723c4], eax
mov eax, dword [0x4d10f8]
sub eax, 0x51439d84
mov dword [0x4d10f8], eax
mov eax, dword [ebp - 4]
mov ecx, 0x471fd8
sub ecx, eax
mov esi, dword [ecx]
mov dword [ebp - 0xc], 0xfbd6
cmp word [ebp - 0xc], 0x465c
jne 0x407830
call fcn.0040675f
mov eax, dword [ebp - 4]
sub esi, eax
xor esi, 0x5d9b0614
add esi, dword [ebp - 4]
add esi, dword [0x4d10f8]
sub esi, dword [ebp - 4]
sub esi, dword [ebp - 4]
lea eax, [ebp - 0x10]
mov dword [0x4d3990], eax
mov ax, word [0x4d3998]
xor eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
sub ecx, eax
or cl, 0xfc
add ecx, dword [ebp - 0x10]
mov eax, dword [0x4d3994]
imul eax, eax, 0x11c
xor ecx, eax
mov word [0x4d3994], cx
mov word [0x4d3998], 0
and dword [0x4d399c], 0
movsx eax, word [0x4d3994]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
xor ecx, 0x34
xor eax, 0xfffffff8
cmp eax, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
jbe 0x4078c4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.00405154
mov word [0x4d3998], ax
movzx eax, word [0x4d3998]
mov dword [0x4d399c], eax
add esi, dword [ebp - 4]
mov dword [ebp - 0xc], 0x5ac3
cmp word [ebp - 0xc], 0x686
jne 0x4078e7
call fcn.00401261
sub esi, 0x5a14fc
mov eax, dword [ebp - 4]
mov ecx, 0x472470
sub ecx, eax
mov dword [ecx], esi
mov eax, dword [ebp - 4]
sub eax, 4
mov dword [ebp - 4], eax
jns 0x4077a7
pop esi
leave
ret
Function at 0x407f0c
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
test ecx, ecx
je 0x407f22
cmp ecx, 0x7fffffff
jbe 0x407f27
mov eax, 0x80070057
test eax, eax
jl 0x407f66
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea esi, [ecx - 1]
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
add esp, 0x10
test eax, eax
jl 0x407f58
cmp eax, esi
ja 0x407f58
jne 0x407f61
and word [edi + esi*2], bx
jmp 0x407f61
and word [edi + esi*2], bx
mov ebx, 0x8007007a
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x4083d8
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.004096f8
mov edi, eax
cmp edi, esi
jne 0x408467
cmp dword [ebp - 4], esi
je 0x408428
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004023ac
push dword [ebp - 4]
mov edi, eax
call sub.KERNEL32.DLL_VirtualProtect
cmp edi, esi
pop ecx
jne 0x408467
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push 0x406d74
push fcn.00403508
push 0xc0
push esi
push 0x404e99
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x402091
push 0x4000000
call fcn.004017c8
add esp, 0x10
jmp 0x4084a6
cmp edi, 2
je 0x4084ac
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push 0x406d74
push fcn.00403508
push 0xc4
push esi
push 0x404e99
push esi
push dword [ebp + 0xc]
push 0x402f4f
push 0x2000000
call fcn.004017c8
add esp, 0xc
push eax
call fcn.00408b60
mov eax, edi
neg eax
sbb eax, eax
pop edi
and eax, 0x80004005
pop esi
leave
ret 0x10

Function at 0x408ba0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push ebx
call edi
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push esi
push 0x4050a4
push 0x22d
push ebx
push 0x404e99
push ebx
push dword [ebp - 0x1780]
push fcn.004026dc
push 0x4000000
call fcn.004017c8
add esp, 0xc
push eax
call fcn.00408b60
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1780]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408ba0
leave
ret 0xc
cmp ecx, dword [0x47201c]
jne 0x408baa
repz ret
jmp 0x4050a4
Function at 0x4090ac
Capabilities:
Accept command line arguments

Disassembly:
cmp word [eax], 0x3b
jne 0x409157
mov word [eax], bx
lea eax, [ebp - 0x27d0]
push eax
push dword [ebp - 0x27c8]
push dword [ebp - 0x27c4]
call fcn.00406d8c
test eax, eax
jl 0x409142
cmp dword [ebp - 0x27d0], ebx
jbe 0x409142
push ebx
push ebx
call edi
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push fcn.00403508
push 0x4050a4
push 0x1a0
push ebx
push 0x404e99
push ebx
push dword [ebp - 0x27c4]
push esi
push 0x4000000
call fcn.004017c8
add esp, 0xc
push eax
call fcn.00408b60
push 3
push ebx
lea eax, [ebp - 0x27bd]
push eax
push dword [ebp - 0x27c4]
lea eax, [ebp - 0xac]
push eax
call fcn.00402fe4
test eax, eax
je 0x409142
mov dword [ebp - 0x27d4], 0x80004005
mov eax, dword [ebp - 0x27cc]
add eax, 2
mov dword [ebp - 0x27c4], eax
mov eax, dword [ebp - 0x27cc]
dec dword [ebp - 0x27c8]
inc eax
inc eax
cmp word [eax], bx
mov dword [ebp - 0x27cc], eax
jne fcn.004090ac
lea eax, [ebp - 0x27d0]
push eax
push dword [ebp - 0x27c8]
push dword [ebp - 0x27c4]
call fcn.00406d8c
test eax, eax
jl 0x4091f7
cmp dword [ebp - 0x27d0], ebx
jbe 0x4091f7
push ebx
push ebx
call edi
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push fcn.00403508
push 0x4050a4
push 0x1b2
push ebx
push 0x404e99
push ebx
push dword [ebp - 0x27c4]
push esi
push 0x4000000
call fcn.004017c8
add esp, 0xc
push eax
call fcn.00408b60
push 3
push ebx
lea eax, [ebp - 0x27bd]
push eax
push dword [ebp - 0x27c4]
lea eax, [ebp - 0xac]
push eax
call fcn.00402fe4
test eax, eax
je 0x4091f7
mov dword [ebp - 0x27d4], 0x80004005
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x27d4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408ba0
leave
ret 4

Function at 0x40930c
Capabilities:
Accept command line arguments

Disassembly:
cmp dword [0x4d3870], ebx
jne 0x40265e
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4d3904]
call fcn.00408e2c
ret
push dword [0x4d399c]
push dword [0x4d389c]
push dword [0x4d3940]
call fcn.00407c08
add esp, 0xc
mov dword [0x4d3904], eax
cmp dword [0x4d38b0], ebx
jne 0x402650
push eax
call dword [fcn.00409a90]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call fcn.00407d98
pop ecx
pop ecx
ret
push 0xc
mov eax, 0x403641
call fcn.00409074
mov edi, ecx
mov dword [ebp - 0x18], edi
mov esi, dword [ebp + 8]
or esi, 7
cmp esi, 0x3ffffffe
jbe 0x409330
mov esi, dword [ebp + 8]
jmp 0x409357
xor edx, edx
push 3
mov eax, esi
pop ebx
div ebx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x14], ecx
shr dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x14]
cmp eax, edx
jae 0x409357
mov eax, 0x3ffffffe
sub eax, edx
cmp ecx, eax
ja 0x409357
lea esi, [edx + ecx]
and dword [ebp - 4], 0
lea eax, [esi + 1]
push eax
mov ecx, edi
call fcn.00404893
mov ebx, eax
jmp 0x408724
Function at 0x409d0f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40e258
call fcn.0040acc4
mov edi, 0x94
mov eax, edi
call fcn.0040ad10
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4d3a08], ecx
mov eax, dword [esi + 4]
mov dword [0x4d3a14], eax
mov edx, dword [esi + 8]
mov dword [0x4d3a18], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4d3a0c], esi
cmp ecx, 2
je 0x409d6f
or esi, 0x8000
mov dword [0x4d3a0c], esi
shl eax, 8
add eax, edx
mov dword [0x4d3a10], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x409daa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409daa
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x409dc2
cmp eax, 0x20b
je 0x409daf
mov dword [ebp - 0x1c], esi
jmp 0x409dd6
cmp dword [ecx + 0x84], 0xe
jbe 0x409daa
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x409dd0
cmp dword [ecx + 0x74], 0xe
jbe 0x409daa
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040ac71
pop ecx
test eax, eax
jne 0x409e02
cmp dword [0x4d39a8], 1
jne 0x409def
call fcn.0040a426
push 0x1c
call fcn.0040a2af
push 0xff
call fcn.0040a114
pop ecx
pop ecx
call fcn.0040abcf
mov dword [ebp - 4], esi
call fcn.0040aa24
test eax, eax
jge 0x409e1b
push 0x1b
call fcn.00409cea
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x4d3f34], eax
call fcn.0040a902
mov dword [0x4d39a0], eax
call fcn.0040a860
test eax, eax
jge 0x409e41
push 8
call fcn.00409cea
pop ecx
call fcn.0040a62d
test eax, eax
jge 0x409e52
push 9
call fcn.00409cea
pop ecx
push 1
call fcn.0040a144
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x409e68
push eax
call fcn.00409cea
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0040a5d0
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x409e89
movzx eax, word [ebp - 0x40]
jmp 0x409e8c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401ed0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x409eaa
push edi
call fcn.0040a26f
call fcn.0040a291
jmp 0x409edc
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040acff
ret
Function at 0x409eeb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x409f19
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x409f20
cmp ebx, dword [eax + 4]
jae 0x409f20
xor eax, eax
jmp 0x40a110
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x409f31
xor eax, eax
inc eax
jmp 0x40a10f
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x409f47
cmp ecx, edx
jae 0x40a08c
cmp dword [eax + 4], 0
je 0x409f50
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x409f38
cmp dword [ebp + 8], 0
je 0x409f72
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40a08c
cmp eax, esi
jae 0x40a08c
mov eax, dword [0x4d39b0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x409f97
cmp dword [esi*4 + 0x4d39b8], edi
je 0x40a090
inc esi
cmp esi, eax
jl 0x409f85
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40a10c
cmp dword [ebp - 8], 0x1000000
jne 0x40a10c
test byte [ebp - 0xc], 0xcc
je 0x40a015
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40a10c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a10c
cmp word [eax + 0x18], 0x10b
jne 0x40a10c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40a10c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40a015
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40a015
test byte [ecx + 0x27], 0x80
jne 0x40a08c
push 1
push 0x4d39f8
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x409f29
mov ecx, dword [0x4d39b0]
test ecx, ecx
mov edx, ecx
jle 0x40a049
lea eax, [ecx*4 + 0x4d39b4]
cmp dword [eax], edi
je 0x40a049
dec edx
sub eax, 4
test edx, edx
jg 0x40a03d
test edx, edx
jne 0x40a07a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40a056
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40a06e
lea eax, [edx*4 + 0x4d39b8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40a05c
cmp ecx, 0x10
jge 0x40a07a
inc ecx
mov dword [0x4d39b0], ecx
push 0
push 0x4d39f8
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x409f29
xor eax, eax
jmp 0x40a10f
test esi, esi
jle 0x409f29
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x4d39f8
call ebx
test eax, eax
jne 0x409f29
cmp dword [esi*4 + 0x4d39b8], edi
je 0x40a0e6
mov eax, dword [0x4d39b0]
lea esi, [eax - 1]
test esi, esi
jl 0x40a0d4
cmp dword [esi*4 + 0x4d39b8], edi
je 0x40a0d0
dec esi
jns 0x40a0c4
test esi, esi
jge 0x40a0e4
cmp eax, 0x10
jge 0x40a0df
inc eax
mov dword [0x4d39b0], eax
lea esi, [eax - 1]
jmp 0x40a0e6
je 0x40a0fe
xor ecx, ecx
test esi, esi
jl 0x40a0fe
lea eax, [ecx*4 + 0x4d39b8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40a0ec
push 0
push 0x4d39f8
call ebx
jmp 0x409f29
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a1ae
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4d3a48], esi
push edi
jne 0x40a1ce
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4d3a44], esi
mov byte [0x4d3a40], al
jne 0x40a234
mov ecx, dword [0x4d3f28]
test ecx, ecx
je 0x40a215
mov eax, dword [0x4d3f24]
sub eax, 4
cmp eax, ecx
jmp 0x40a20e
mov eax, dword [eax]
test eax, eax
je 0x40a200
call eax
mov eax, dword [0x4d3f24]
sub eax, 4
cmp eax, dword [0x4d3f28]
mov dword [0x4d3f24], eax
jae 0x40a1f8
mov eax, 0x41001c
mov esi, 0x410020
cmp eax, esi
mov edi, eax
jae 0x40a234
mov eax, dword [edi]
test eax, eax
je 0x40a22d
call eax
add edi, 4
cmp edi, esi
jb 0x40a225
mov eax, 0x410024
mov esi, 0x410028
cmp eax, esi
mov edi, eax
jae 0x40a253
mov eax, dword [edi]
test eax, eax
je 0x40a24c
call eax
add edi, 4
cmp edi, esi
jb 0x40a244
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40a26d
push dword [ebp + 8]
mov dword [0x4d3a48], 1
call fcn.0040a114
pop ebp
ret

Function at 0x40a2af
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4722a0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x472168]
je 0x40a2e4
inc eax
cmp eax, 0x13
jb 0x40a2d5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x472168]
jne 0x40a40a
mov eax, dword [0x4d39a8]
cmp eax, 1
je 0x40a3e2
cmp eax, edx
jne 0x40a314
cmp dword [0x472164], 1
je 0x40a3e2
cmp ecx, 0xfc
je 0x40a40a
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40a34a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040af10
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040b140
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40a37e
mov eax, edi
push eax
call fcn.0040b140
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e670
push edi
call fcn.0040b010
add esp, 0x10
push edi
call fcn.0040b140
push dword [esi + 0x47216c]
mov ebx, eax
call fcn.0040b140
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040ad10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040af10
push edi
push ebx
call fcn.0040af20
push 0x40e650
push ebx
call fcn.0040af20
push dword [esi + 0x47216c]
push ebx
call fcn.0040af20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040ae09
add esp, 0x2c
jmp 0x40a40a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x47216c]
push dword [esi]
call fcn.0040b140
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040b1fc
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40ae09
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4d3b64], ebx
push esi
push edi
jne 0x40ae89
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40aec4
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4d3b64], eax
je 0x40aec4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4d3b68], eax
call esi
cmp dword [0x4d3a08], 2
mov dword [0x4d3b6c], eax
jne 0x40ae89
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4d3b74], eax
je 0x40ae89
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4d3b70], eax
mov eax, dword [0x4d3b70]
test eax, eax
je 0x40aece
call eax
test eax, eax
je 0x40aeb5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4d3b74]
test eax, eax
je 0x40aeb5
test byte [ebp - 8], 1
jne 0x40aece
cmp dword [0x4d3a14], 4
jb 0x40aec8
or byte [ebp + 0x12], 0x20
jmp 0x40aeed
xor eax, eax
jmp 0x40aefd
or byte [ebp + 0x12], 4
jmp 0x40aeed
mov eax, dword [0x4d3b68]
test eax, eax
je 0x40aeed
call eax
mov ebx, eax
test ebx, ebx
je 0x40aeed
mov eax, dword [0x4d3b6c]
test eax, eax
je 0x40aeed
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4d3b64]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d039
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040ad10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40d0d4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4d3a08]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40d0d4
cmp eax, 1
je 0x40d0f5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40d0d4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40d0a1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40d0d0
xor eax, eax
inc eax
jmp 0x40d114
cmp edi, eax
jae 0x40d0d8
xor eax, eax
jmp 0x40d114
cmp eax, esi
jae 0x40d0df
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x4d3a08]
jmp 0x40d0f8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40655f
pop dword [ebp - 0x18]
mov eax, 0x789a0514
sub eax, 0x78599fb5
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x4fdd4c40
sub dword [ebp - 0x28], 0x18b06f5
mov dword [ebp - 0x24], 0x4e7a92db
add dword [ebp - 0x24], 0xe3b8b96a
mov dword [ebp - 0x20], 0xfd8b08c1
add dword [ebp - 0x20], 0x4ec13b6d
mov dword [ebp - 0x1c], 0x839b7163
add dword [ebp - 0x1c], 0x7c648e9d
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xa17763aa
add dword [ebp - 0x28], 0xd2fb05ac
mov dword [ebp - 0x24], 0xc3441663
add dword [ebp - 0x24], 0x7e284b12
mov dword [ebp - 0x20], 0x3e47ec00
add dword [ebp - 0x20], 0x2527806c
mov dword [ebp - 0x1c], 0x8c9bf320
add dword [ebp - 0x1c], 0x73640ce0
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3d71e
push 0
call eax
mov ecx, 0xe63b202a
add ecx, 0x19c53382
xor edx, edx
add edx, eax
mov ebx, 0xd5f0771b
add ebx, 0x2a5128e5
add ebx, dword [ebp - 0x18]
mov esi, 0xd81f93c1
sub dword [ebp - 0x10], ecx
mov edi, dword [ebx]
sub dword [ebp - 0x14], 0xac1d1591
sub edi, esi
add dword [ebp - 4], edi
mov dword [edx], edi
xor dword [ebp - 0x10], 0x9214f0f6
add edx, 0xae284908
add edx, 0x51d7b6fc
add ebx, 4
loop 0x406673
add eax, 0x9dda529d
add eax, 0x6226eee6
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x410280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x41029c
mov dword [eax], ecx
jmp 0x41029e
mov eax, ecx
push ecx
push ecx
push esi
push 0x410310
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1001152
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.010010e4
cmp eax, 1
jl 0x100121b
push ebx
xor ebx, ebx
cmp byte [ebp - 0x170], bl
push esi
lea esi, [ebp - 0x170]
je 0x10011bb
cmp byte [esi], 0x3a
je 0x100119e
inc esi
cmp byte [esi], bl
jne 0x1001192
jmp 0x10011a1
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x10011bb
push 0x10010ac
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10011c1
lea esi, [ebp - 0x170]
push 0x29
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1001219
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x1001219
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1001219
push ebx
lea eax, [ebp - 0x14]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
xor eax, eax
leave
ret 0x10