joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa74a92
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x3c]
add eax, edx
add eax, 4
add eax, 0x14
lea eax, [eax + 0x60]
add eax, 8
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x118], 0x49
mov byte [ebp - 0x117], 0x6d
mov byte [ebp - 0x116], 0x70
mov byte [ebp - 0x115], 0x6f
mov byte [ebp - 0x114], 0x72
mov byte [ebp - 0x113], 0x74
mov byte [ebp - 0x112], 0x20
mov byte [ebp - 0x111], 0x54
mov byte [ebp - 0x110], 0x61
mov byte [ebp - 0x10f], 0x62
mov byte [ebp - 0x10e], 0x6c
mov byte [ebp - 0x10d], 0x65
mov byte [ebp - 0x10c], 0x3a
mov byte [ebp - 0x10b], 0
mov eax, 1
mov eax, 1
test eax, eax
je 0xa74b67
lea esi, [ebp - 0x14]
mov ecx, 0x14
mov al, 0
mov byte [esi], al
inc esi
dec ecx
jne 0xa74b31
mov ebx, dword [ebp - 0x18]
lea esi, [ebp - 0x14]
mov edi, ebx
mov ecx, 0x14
repe cmpsb byte [esi], byte es:[edi]
je 0xa74b5d
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00a74b71
test eax, eax
je 0xa74b67
add ebx, 0x14
jmp 0xa74b3a
popal
mov eax, 1
leave
ret 8
popal
mov eax, 0
leave
ret 8
Function at 0xa74b71
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
pushal
mov eax, 1
test eax, eax
je 0xa74ddd
mov byte [ebp - 0x10c], 0x50
mov byte [ebp - 0x10b], 0x72
mov byte [ebp - 0x10a], 0x6f
mov byte [ebp - 0x109], 0x63
mov byte [ebp - 0x108], 0x65
mov byte [ebp - 0x107], 0x73
mov byte [ebp - 0x106], 0x73
mov byte [ebp - 0x105], 0x69
mov byte [ebp - 0x104], 0x6e
mov byte [ebp - 0x103], 0x67
mov byte [ebp - 0x102], 0x20
mov byte [ebp - 0x101], 0x49
mov byte [ebp - 0x100], 0x6d
mov byte [ebp - 0xff], 0x70
mov byte [ebp - 0xfe], 0x6f
mov byte [ebp - 0xfd], 0x72
mov byte [ebp - 0xfc], 0x74
mov byte [ebp - 0xfb], 0x20
mov byte [ebp - 0xfa], 0x44
mov byte [ebp - 0xf9], 0x69
mov byte [ebp - 0xf8], 0x72
mov byte [ebp - 0xf7], 0x65
mov byte [ebp - 0xf6], 0x63
mov byte [ebp - 0xf5], 0x74
mov byte [ebp - 0xf4], 0x6f
mov byte [ebp - 0xf3], 0x72
mov byte [ebp - 0xf2], 0x79
mov byte [ebp - 0xf1], 0x3a
mov byte [ebp - 0xf0], 0
mov eax, 1
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
add eax, dword [ebp + 0xc]
mov ebx, eax
mov eax, 1
test eax, eax
je 0xa74ddd
mov eax, 1
test eax, eax
je 0xa74ddd
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0xa74ddd
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0x10]
add eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
sub ecx, ecx
mov eax, dword [ebp - 0xc]
add eax, ecx
mov eax, dword [eax]
test eax, eax
je 0xa74dd3
mov ebx, eax
and eax, 0x80000000
jne 0xa74d4a
mov byte [ebp - 0x10c], 0x4e
mov byte [ebp - 0x10b], 0x61
mov byte [ebp - 0x10a], 0x6d
mov byte [ebp - 0x109], 0x65
mov byte [ebp - 0x108], 0x3a
mov byte [ebp - 0x107], 0x20
mov byte [ebp - 0x106], 0
lea eax, [ebp - 0x10c]
mov eax, 1
test eax, eax
je 0xa74ddd
add ebx, dword [ebp + 0xc]
lea ebx, [ebx + 2]
mov eax, ebx
mov eax, 1
test eax, eax
je 0xa74ddd
mov eax, 1
test eax, eax
je 0xa74ddd
push ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
pop ecx
test eax, eax
je 0xa74ddd
mov ebx, dword [ebp - 8]
add ebx, ecx
mov dword [ebx], eax
add ecx, 4
jmp 0xa74ca5
mov byte [ebp - 0x10c], 0x4f
mov byte [ebp - 0x10b], 0x72
mov byte [ebp - 0x10a], 0x64
mov byte [ebp - 0x109], 0x69
mov byte [ebp - 0x108], 0x6e
mov byte [ebp - 0x107], 0x61
mov byte [ebp - 0x106], 0x6c
mov byte [ebp - 0x105], 0x3a
mov byte [ebp - 0x104], 0x20
mov byte [ebp - 0x103], 0
lea eax, [ebp - 0x10c]
mov eax, 1
test eax, eax
je 0xa74ddd
xor ebx, 0x80000000
mov eax, ebx
mov eax, 1
test eax, eax
je 0xa74b67
push ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
pop ecx
test eax, eax
je 0xa74ddd
mov ebx, dword [ebp - 8]
add ebx, ecx
mov dword [ebx], eax
add ecx, 4
jmp 0xa74ca5
popal
mov eax, 1
leave
ret 0xc
popal
mov eax, 0
leave
ret 0xc
Function at 0xa74e9d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov edx, dword [ebp + 0xc]
sub eax, eax
mov ax, word [edx + 2]
mov dword [ebp - 0x118], eax
add edx, 0x14
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x114], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x110], edx
lea edx, [ebp - 0xc]
mov ebx, dword [ebp + 8]
push edx
push 4
push eax
push dword [ebp - 0x114]
call dword [ebx + 0x24]
test eax, eax
je 0xa74fee
mov byte [ebp - 0x10c], 0x53
mov byte [ebp - 0x10b], 0x65
mov byte [ebp - 0x10a], 0x74
mov byte [ebp - 0x109], 0x20
mov byte [ebp - 0x108], 0x49
mov byte [ebp - 0x107], 0x6d
mov byte [ebp - 0x106], 0x61
mov byte [ebp - 0x105], 0x67
mov byte [ebp - 0x104], 0x65
mov byte [ebp - 0x103], 0x20
mov byte [ebp - 0x102], 0x77
mov byte [ebp - 0x101], 0x72
mov byte [ebp - 0x100], 0x69
mov byte [ebp - 0xff], 0x74
mov byte [ebp - 0xfe], 0x61
mov byte [ebp - 0xfd], 0x62
mov byte [ebp - 0xfc], 0x6c
mov byte [ebp - 0xfb], 0x65
mov byte [ebp - 0xfa], 0x3a
mov byte [ebp - 0xf9], 0
mov eax, 1
mov eax, 1
test eax, eax
je 0xa74fee
mov edx, dword [ebp - 0x110]
lea ebx, [edx + 0x60]
mov eax, dword [edx + 0x5c]
mov edx, 8
mul edx
add eax, ebx
mov dword [ebp - 8], eax
mov eax, 0x28
mov edx, dword [ebp - 0x118]
mul edx
add eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
sub eax, ebx
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0x114]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x118]
mov ebx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 0x114]
push ebx
push dword [ebp + 8]
call fcn.00a74ff8
test eax, eax
je 0xa74fee
add ebx, 0x28
dec ecx
jne 0xa74fc7
popal
mov eax, dword [ebp - 0x114]
leave
ret 0x10
popal
mov eax, 0
leave
ret 0x10

Function at 0xa7509e
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
pushal
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x24]
and ebx, 0xe0000000
cmp ebx, 0xe0000000
jne 0xa750c9
mov eax, 0x40
mov dword [ebp - 0x108], eax
jmp 0xa7512e
mov ebx, dword [edx + 0x24]
and ebx, 0x60000000
cmp ebx, 0x60000000
jne 0xa750e7
mov eax, 0x20
mov dword [ebp - 0x108], eax
jmp 0xa7512e
mov ebx, dword [edx + 0x24]
and ebx, 0xc0000000
cmp ebx, 0xc0000000
jne 0xa75105
mov eax, 4
mov dword [ebp - 0x108], eax
jmp 0xa7512e
mov ebx, dword [edx + 0x24]
and ebx, 0x40000000
cmp ebx, 0x40000000
jne 0xa75123
mov eax, 2
mov dword [ebp - 0x108], eax
jmp 0xa7512e
mov eax, 1
mov dword [ebp - 0x108], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov ebx, dword [edx + 8]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x104]
push edx
push dword [ebp - 0x108]
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
je 0xa7516b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov eax, 1
popal
mov eax, 1
leave
ret 0x10
popal
sub eax, eax
leave
ret 0x10
Function at 0xa75172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0xa751a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0xa751a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0xa75dff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.00a75f04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.00a75f20
push edx
push dword [ebp + 0x10]
push eax
call fcn.00a75eec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00a75f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00a75ecb
push ecx
push dword [ebp + 8]
call fcn.00a75f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00a75f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00a75ecb
push ecx
push dword [ebp + 8]
call fcn.00a75f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00a75f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00a75ecb
push ecx
push dword [ebp + 8]
call fcn.00a75f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00a75f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00a75ecb
cmp ecx, 0x2b
jne 0xa75e0f
leave
ret 0xc

Function at 0xa774b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0xa77544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x2010
push 0
call dword [eax + 0x20]
test eax, eax
je 0xa775d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x2010
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x2010
call fcn.00a773fa
push 0x2010
push dword [ebp + 0xc]
call fcn.00a751a8
test eax, eax
jne 0xa775b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x2010
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.00a775dd
test eax, eax
je 0xa775d6
jmp 0xa77574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0xa775d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0xa7760b
Capabilities:
Terminate process

Disassembly:
call fcn.00a77618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x102cd10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x54c000]
push edi
jmp 0x102cd2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x102cd31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x102cd20
mov eax, 1
add ebx, ebx
jne 0x102cd43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x102cd54
jne 0x102cd73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x102cd73
dec eax
add ebx, ebx
jne 0x102cd60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x102cd38
add ebx, ebx
jne 0x102cd6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x102cdc5
xor ecx, ecx
sub eax, 3
jb 0x102cd8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x102cdfa
sar eax, 1
mov ebp, eax
jmp 0x102cd96
add ebx, ebx
jne 0x102cd96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x102cd64
inc ecx
add ebx, ebx
jne 0x102cda4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x102cd64
add ebx, ebx
jne 0x102cdb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x102cda6
jne 0x102cdc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x102cda6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x102cde4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x102cdd6
jmp 0x102cd26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x102cde4
add edi, ecx
jmp 0x102cd26
pop esi
mov edi, esi
mov ecx, 0x1e7db
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x102ce02
cmp byte [edi], 0x43
jne 0x102ce02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x102ce07
lea edi, [esi + 0x7eb000]
mov eax, dword [edi]
or eax, eax
je 0x102ce7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8175f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x817634]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x102ce34
mov ecx, edi
jns 0x102ce63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x817638]
or eax, eax
je 0x102ce79
mov dword [ebx], eax
add ebx, 4
jmp 0x102ce51
call dword [esi + 0x817648]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x102ceb0
cmp al, 0xef
ja 0x102cea3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x102ce85
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x102ce92
mov ebp, dword [esi + 0x81763c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x102cee4
sub esp, 0xffffff80
jmp 0xb6155c
Function at 0x401190
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
sub esp, 0x824
mov eax, dword [0x411008]
xor eax, esp
mov dword [esp + 0x820], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x20c]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4011b1
cmp word [esp + 0x20c], 0x22
push esi
lea esi, [esp + 0x210]
jne 0x4011f4
lea esi, [esp + 0x212]
mov eax, esi
push 0x22
push eax
call fcn.00402c37
add esp, 8
test eax, eax
jne 0x40120a
push 0x20
mov ecx, esi
push ecx
jmp 0x4011fe
push 0x20
lea edx, [esp + 0x214]
push edx
call fcn.00402c37
add esp, 8
test eax, eax
je 0x40120f
mov word [eax], 0
push 0x2e
push esi
call fcn.00402cfe
add esp, 8
test eax, eax
je 0x401223
mov word [eax], 0
push 0x5c
push esi
call fcn.00402cfe
add esp, 8
test eax, eax
je 0x401255
push edi
lea edi, [esp + 8]
mov word [eax], 0
mov ecx, esi
sub edi, esi
movzx edx, word [ecx]
mov word [edi + ecx], dx
add ecx, 2
test dx, dx
jne 0x401240
lea esi, [eax + 2]
pop edi
jmp 0x401265
lea eax, [esp + 4]
push eax
push 0x20a
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str..ini
push esi
push 0x5c
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x628]
push str._s_c_s_s
push edx
call fcn.00402c68
add esp, 0x18
mov edx, 0x414a60
mov eax, esi
sub edx, esi
pop esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401291
xor eax, eax
movzx ecx, word [esp + eax]
mov word [eax + 0x41c6c0], cx
add eax, 2
test cx, cx
jne 0x4012a2
xor eax, eax
jmp 0x4012c0
movzx ecx, word [esp + eax + 0x614]
mov word [eax + 0x41c8e0], cx
add eax, 2
test cx, cx
jne 0x4012c0
mov ecx, dword [esp + 0x820]
xor ecx, esp
mov eax, 1
call fcn.00402c59
add esp, 0x824
ret
Function at 0x401a70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x268
mov eax, dword [0x411008]
xor eax, esp
mov dword [esp + 0x264], eax
mov eax, dword [esp + 0x270]
push esi
mov esi, dword [esp + 0x270]
lea eax, [eax + esi*2]
add eax, esi
imul eax, eax, 0x20a
cmp word [eax + 0x414c60], 0
lea eax, [eax + 0x414c60]
jne 0x401ac6
xor eax, eax
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00402c59
add esp, 0x268
ret
lea edx, [esp + 0x5c]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401ad0
push 0x44
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00403360
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x1c]
push edx
push 0
test esi, esi
setne al
push 0
push 0
push eax
push 0
push 0
lea eax, [esp + 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [esp + 4], 0
je 0x401b81
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 4]
push eax
call esi
mov ecx, dword [esp + 0x268]
mov eax, dword [esp + 0x14]
pop esi
xor ecx, esp
call fcn.00402c59
add esp, 0x268
ret
Function at 0x401cf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x618
mov eax, dword [0x411008]
xor eax, esp
mov dword [esp + 0x614], eax
mov eax, dword [esp + 0x61c]
push ebx
mov ebx, dword [esp + 0x624]
mov ecx, eax
push esi
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x208
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x401d30
sub ecx, esi
sar ecx, 1
je 0x401e31
xor ecx, ecx
cmp dword [0x412068], ecx
je 0x401d70
nop
movzx edx, word [ecx + str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionUninstall_]
mov word [esp + ecx + 0x14], dx
add ecx, 2
test dx, dx
jne 0x401d50
jmp 0x401d84
movzx edx, word [ecx + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov word [esp + ecx + 0x14], dx
add ecx, 2
test dx, dx
jne 0x401d70
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d86
push edi
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xfffffffe
jmp 0x401da0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401da0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
pop edi
nop
movzx ecx, word [eax + str.UninstallString]
mov word [esp + eax + 0x41c], cx
add eax, 2
test cx, cx
jne 0x401dc0
lea eax, [esp + 8]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x401e1d
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x218]
push eax
push esi
push esi
lea ecx, [esp + 0x42c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401e4a
mov word [ebx], 0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x614]
xor ecx, esp
call fcn.00402c59
add esp, 0x618
ret
lea eax, [esp + 0x214]
mov edx, ebx
mov ecx, eax
sub edx, ecx
jmp 0x401e60
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401e60
mov ecx, dword [esp + 0x61c]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00402c59
add esp, 0x618
ret

Function at 0x402c59
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411008]
jne 0x402c63
repz ret
jmp fcn.00403f57
Function at 0x402fc3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x403000
cmp dword [ebp + 0x14], edi
je 0x403000
cmp ecx, edi
jne 0x403007
call fcn.00404cc9
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00404c6a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40301b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x40303c
cmp ebx, 0xffffffff
je 0x40302b
push ebx
push edi
push ecx
call fcn.00403360
add esp, 0xc
cmp esi, edi
je 0x402fe8
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x402fe8
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x403058
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40305f
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x403150
test word [esi + 0xc], 0x10c
je 0x4030b3
mov eax, dword [esi + 4]
test eax, eax
je 0x4030b3
jl 0x4031b1
cmp ebx, eax
mov edi, ebx
jb 0x403084
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x403158
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00406793
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x403148
cmp ebx, dword [ebp - 0xc]
jb 0x403120
cmp dword [ebp - 0xc], 0
je 0x4030dd
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4030d2
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4030d9
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4030e8
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4030e8
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x403184
push eax
push dword [ebp - 8]
push esi
call fcn.00404eff
pop ecx
push eax
call fcn.00406696
add esp, 0xc
test eax, eax
je 0x4031c3
cmp eax, 0xffffffff
je 0x4031b1
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x403148
push esi
call fcn.00405fb5
cmp eax, 0xffffffff
pop ecx
je 0x4031b5
cmp dword [ebp - 4], 0
je 0x403184
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x403067
mov eax, dword [ebp + 0x14]
jmp 0x403002
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x40316f
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00403360
add esp, 0xc
call fcn.00404cc9
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x402ff8
cmp dword [ebp + 0xc], 0xffffffff
je 0x40319a
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00403360
add esp, 0xc
call fcn.00404cc9
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x402ff8
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x403002
or dword [esi + 0xc], 0x10
jmp 0x4031b5
Function at 0x407c2f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x411c58]
je 0x407c4a
inc edi
cmp edi, 0x17
jb 0x407c3b
cmp edi, 0x17
jae 0x407dca
push ebp
push 3
call fcn.0040ceea
cmp eax, 1
pop ecx
je 0x407d96
push 3
call fcn.0040ceea
test eax, eax
pop ecx
jne 0x407c7e
cmp dword [0x411530], 1
je 0x407d96
cmp ebx, 0xfc
je 0x407dc9
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4125c0
push ebp
call fcn.0040ad79
add esp, 0xc
test eax, eax
je 0x407cb4
push esi
push esi
push esi
push esi
push esi
call fcn.00404b6e
add esp, 0x14
push 0x104
mov esi, 0x4125d9
push esi
push 0
mov byte [0x4126dd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407cf8
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040ad79
add esp, 0xc
test eax, eax
je 0x407cf8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404b6e
add esp, 0x14
push esi
call fcn.00409620
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407d3d
push esi
call fcn.00409620
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4128d4
push 0x40f2dc
sub ecx, eax
push ecx
push eax
call fcn.0040acc6
add esp, 0x14
test eax, eax
je 0x407d3d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404b6e
add esp, 0x14
jmp 0x407d3f
xor esi, esi
push 0x40f2d8
push ebx
push ebp
call fcn.0040ac04
add esp, 0xc
test eax, eax
je 0x407d5f
push esi
push esi
push esi
push esi
push esi
call fcn.00404b6e
add esp, 0x14
push dword [edi*8 + 0x411c5c]
push ebx
push ebp
call fcn.0040ac04
add esp, 0xc
test eax, eax
je 0x407d81
push esi
push esi
push esi
push esi
push esi
call fcn.00404b6e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040cd2d
add esp, 0xc
jmp 0x407dc9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x407dc9
cmp ebp, 0xffffffff
je 0x407dc9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x411c5c]
push dword [esi]
call fcn.00409620
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret