joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015cd6c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x102688a8], 0x204b
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x1025769e]
mov dl, byte [eax + 0x1025766f]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x1015cd8e
lea eax, [ebp - 0x24]
mov dword [0x102688ac], 0x1bbe
mov dword [0x102688a8], 0x14
mov dword [ebp - 0x34], eax
call fcn.1015d4cf
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1015d156
mov dword [0x102688a8], 0xeeb
mov dword [0x102688ac], 0xfffffe15
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x1015ceb4
mov eax, dword [ebp - 0x38]
mov dword [0x102688a8], 0x2578
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1015cebc
xor eax, eax
mov dword [0x102688ac], 0x145b
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x5c], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x28], ecx
mov esi, dword [0x102688ac]
add esi, 0xffffec67
mov dword [0x102688a8], esi
add ecx, 0x1e41
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x1015ceab
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1015cfd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102688b4], 0
mov byte [0x102688b8], 0
mov dword [0x102688ac], 0x2449
mov dword [0x102688a8], 0x109e
mov dword [0x102688b0], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1015d03e
xor eax, eax
mov dword [0x102688b0], 0
mov ecx, dword [ebp - 0x20]
add ecx, 0x1d78
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x1015d08a
mov eax, dword [ebp - 0x1c]
mov dword [0x102688ac], 0x206
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102688a8]
mov esi, eax
add esi, 0xfffff9d0
mov dword [0x102688a8], esi
mov esi, dword [0x102688b0]
add esi, 1
mov dword [0x102688b0], esi
cmp esi, 0x100
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
jl 0x1015d03e
jmp 0x1015d021
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x3a46
mov esi, 0x100
mov dword [0x102688bc], 0
mov edi, dword [0x102688b4]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
add ebx, edi
mov dword [ebp - 0x2c], eax
xor edi, edi
mov dword [ebp - 0x30], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add ebx, edx
mov dword [0x102688bc], ebx
mov dword [0x102688ac], ecx
mov dword [0x102688a8], 0xe04
mov eax, ebx
cdq
idiv esi
mov dword [0x102688b4], edx
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov cl, byte [ecx + esi]
mov byte [0x102688b8], cl
mov dword [0x102688ac], 0x18fd
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x102688b8]
mov edx, dword [0x102688b4]
mov byte [ebx + edx], cl
mov dword [0x102688a8], 0x169e
mov edx, dword [0x102688b0]
add edx, 1
mov dword [0x102688b0], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
jl 0x1015d08a
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015db90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [0x102688ac], 0x2455
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x102688ac], 0x15ac
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1015dbd8
mov eax, dword [ebp - 0x14]
add esp, 0x20
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1015dc05
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x1015dbd8
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [0x102688a8]
add edx, 0xffffed2c
mov dword [0x102688a8], edx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ecx
jne 0x1015dbd0
xor eax, eax
mov dword [0x102688a8], 0x2d1a
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x14], eax
jne 0x1015dbd0
xor eax, eax
mov dword [0x102688a8], 0x6a7
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x14], eax
jne 0x1015dbd0
xor eax, eax
mov dword [0x102688a8], 0x468
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x14], eax
jne 0x1015dbd0
xor eax, eax
mov dword [0x102688a8], 0xffffe829
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x14], eax
jne 0x1015dbd0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1015dbd0
xor eax, eax
mov dword [0x102688ac], 0x401
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1015dbd0
mov eax, 1
mov dword [0x102688a8], 0x2389
mov dword [ebp - 0x14], eax
jmp 0x1015dbd0
Function at 0x1015e08e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0xffffff79
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, 0xfffff00e
mov dword [0x102688b0], 0
mov dword [0x102688b4], 0
mov dword [0x102688c0], 0
mov dword [ebp - 0x14], eax
mov eax, dword [0x102688a8]
add eax, 0xffffda0d
mov dword [0x102688ac], eax
mov dword [0x102688a8], 0x4ad
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, ebx
mov dword [ebp - 0x20], eax
mov eax, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
je 0x1015e26f
jmp 0x1015e14d
mov eax, 0xfffff74b
mov ecx, dword [0x102688b0]
mov edx, dword [0x102688b4]
mov esi, dword [0x102688ac]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov ebx, 0x6b6
mov dword [ebp - 0x44], eax
mov eax, 0x100
mov dword [0x102688a8], ecx
add edx, 1
mov dword [ebp - 0x48], eax
mov eax, edx
cdq
mov ecx, dword [ebp - 0x48]
idiv ecx
mov dword [0x102688b0], edx
mov ecx, dword [ebp - 0x34]
movzx ecx, byte [ecx + edx]
add ecx, esi
mov eax, ecx
mov dword [ebp - 0x4c], edx
cdq
mov ecx, dword [ebp - 0x48]
idiv ecx
mov dword [0x102688b4], edx
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x4c]
mov cl, byte [esi + ecx]
mov byte [0x102688b8], cl
add edi, 0x1ab1
mov dword [0x102688a8], edi
mov cl, byte [esi + edx]
mov edx, dword [ebp - 0x4c]
mov byte [esi + edx], cl
mov edi, dword [0x102688ac]
add edi, 0xffffe8ac
mov dword [0x102688ac], edi
mov cl, byte [0x102688b8]
mov edi, dword [0x102688b4]
mov byte [esi + edi], cl
mov edi, dword [0x102688b0]
movzx edi, byte [esi + edi]
mov ecx, dword [0x102688b4]
movzx ecx, byte [esi + ecx]
add ecx, edi
and ecx, 0xff
mov dword [0x102688c0], ecx
mov dword [0x102688ac], 0x3cd
mov dword [0x102688a8], 0x2296
mov cl, byte [esi + ecx]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x44]
mov ch, byte [edi + edx]
mov dword [0x102688ac], 0x31f
mov byte [0x102688c5], ch
mov byte [0x102688c6], cl
xor ch, cl
mov byte [0x102688c4], ch
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x44]
mov byte [edx + esi], ch
mov dword [0x102688a8], 0xbea
add esi, 1
mov edx, dword [ebp - 0x10]
cmp esi, edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ebx
jne 0x1015e124
mov eax, dword [ebp - 0x3c]
mov dword [0x102688a8], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015e27f
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov dword [0x102688a8], 0x870
call fcn.10001070
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x1015e3e3
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x102688ac], 0xa27
mov dword [0x102688a8], 0x18d4
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.1015d8a4
lea ecx, [0x1015d46c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x70], edx
mov dword [esp + 0x8c], 0x117600
mov edx, dword [0x10268894]
mov dword [esp + 0x48], edx
mov edx, dword [0x10268898]
mov dword [esp + 0x90], edx
mov edx, dword [0x1026889c]
mov dword [esp + 0x88], edx
mov edx, dword [0x102688a0]
mov dword [esp + 0x68], edx
mov edx, dword [0x102688a4]
mov dword [esp + 0x78], edx
mov dword [0x102688a8], 0x352
mov dword [0x102688ac], 0x139f
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x1015e363
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x1015e377
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x18], eax
jmp 0x1015e340
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov dword [0x102688ac], 0x2416
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x58], edx
mov dword [0x102688a8], 0x64f
call fcn.1015db90
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x1015e3db
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1015cd6c
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x41eca0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41eca6
ret

Function at 0x42a5ac
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42a75d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.0040504c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x42a774
call fcn.00404ca8
mov eax, ebx
call fcn.0041c5a4
mov edi, eax
dec edi
test edi, edi
jl 0x42a664
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041c578
mov edx, dword [0x4308b0]
call fcn.00403d38
test al, al
je 0x42a660
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0041c578
lea edx, [ebp - 0x14]
call fcn.00437c58
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.0040504c
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404d1c
inc esi
dec edi
jne 0x42a612
mov al, byte [0x42a778]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x42a784
mov eax, dword [ebp - 0xc]
call fcn.0040e01c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404a34
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00437c58
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x42a774
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.00437c58
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x42a774
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x42a774
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x42a790
call fcn.0040a1b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a764
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004049c0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004049c0
lea eax, [ebp - 0x14]
call fcn.0040499c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004049c0
ret
Function at 0x4c568a
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x4c56a7
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4c5698
add dl, dl
jne 0x4c56b2
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4c56fe
xor eax, eax
add dl, dl
jne 0x4c56bf
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4c579b
add dl, dl
jne 0x4c56ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4c56d9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4c56e4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4c56ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4c56f9
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x4c569e
mov eax, 1
add dl, dl
jne 0x4c570c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4c5717
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4c5703
sub eax, 2
jne 0x4c5746
mov ecx, 1
add dl, dl
jne 0x4c572c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4c5737
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4c5723
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4c569e
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4c575d
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4c5768
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4c5754
cmp eax, 0x7d00
jae 0x4c578b
cmp eax, 0x500
jb 0x4c5786
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4c569e
cmp eax, 0x7f
ja 0x4c578e
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4c569e
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4c57b7
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4c569e
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x406dd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x450e58
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [eax + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [eax]
cmp edi, eax
mov ebx, ecx
je 0x406e3b
mov eax, dword [edi + 0xc]
lea esi, [edi + 8]
test eax, eax
jne 0x406e0e
mov eax, 0x45561c
push eax
push str.Merging_file__s_n
push 1
push 0x471d20
call fcn.00401200
add esp, 0x10
mov ecx, ebx
push esi
push ebp
call fcn.00406ea0
test eax, eax
jne 0x406e85
mov ecx, dword [esp + 0x38]
mov edi, dword [edi]
cmp edi, dword [ecx + 4]
jne 0x406dff
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406e83
lea ecx, [esp + 0x10]
call fcn.00448bde
push 0
push 0x3001
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
call fcn.00448c53
lea ecx, [esp + 0x10]
call fcn.00448f83
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00448c10
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x408230
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x408240
xor eax, eax
ret 8
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x408250
mov eax, 0x45561c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, 1
ret 8
Function at 0x409e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4510c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x46d5c4]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov cl, byte [esp + 0x30]
xor ebx, ebx
mov byte [esp + 0x10], cl
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], ebx
call fcn.004017f0
push 0xbc6
mov ecx, esi
mov dword [esp + 0x2c], 1
call fcn.004475e4
mov edi, eax
cmp edi, ebx
je 0x409ef5
mov edx, dword [esp + 0x30]
lea eax, [esp + 0xc]
push edx
push eax
mov ecx, esi
call fcn.0040aa70
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, edi
call fcn.004476a3
push 0xbc8
mov ecx, esi
call fcn.004475e4
mov edi, eax
cmp edi, ebx
je 0x409f24
mov edx, dword [esp + 0x34]
lea eax, [esp + 0xc]
push edx
push eax
mov ecx, esi
call fcn.0040aa70
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, edi
call fcn.004476a3
push 0xbc7
mov ecx, esi
call fcn.004475e4
mov edi, eax
cmp edi, ebx
je 0x409f53
mov edx, dword [esp + 0x38]
lea eax, [esp + 0xc]
push edx
push eax
mov ecx, esi
call fcn.0040aa70
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, edi
call fcn.004476a3
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
cmp eax, ebx
je 0x409f80
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x409f77
cmp al, 0xff
je 0x409f77
dec al
mov byte [ecx], al
jmp 0x409f80
push ecx
call fcn.00447dfa
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00448090
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x40cdb9
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x451420
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
push eax
call dword [0x4719f8]
push eax
call fcn.00444fcd
mov ecx, esi
mov ebp, eax
call fcn.0044766f
test al, 0xf
je 0x40cded
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [0x471a50]
jmp 0x40ce9b
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.0044acf8
mov eax, dword [0x46d5c4]
mov dword [esp + 0x50], 0
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 1
push ecx
mov ecx, esi
call fcn.00445998
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x31
push edx
call dword [0x471a6c]
push eax
call fcn.0044af8b
push eax
lea ecx, [esp + 0x24]
call fcn.0044a8be
mov edi, eax
lea eax, [esp + 0x10]
push eax
call dword [0x471a1c]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 0x400
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
call dword [eax + 0x68]
push edi
lea ecx, [esp + 0x24]
call fcn.0044a8be
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0044abea
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 0
call fcn.00448090
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], 0xffffffff
call fcn.0044ad6a
pop edi
push 1
lea edx, [esp + 0x10]
push 1
push edx
call dword [0x471a00]
lea eax, [esp + 0xc]
mov ecx, ebp
push eax
call fcn.0044abae
push ebp
lea ecx, [esp + 0x34]
call fcn.0044acf8
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [0x471a20]
lea ecx, [esp + 0x30]
call fcn.0044ad6a
mov ecx, dword [esp + 0x44]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x48
ret
Function at 0x410be0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.CPreInstallUpdatePlugInApp::ProcessCommandLine__s__n
push 2
push 0x471d20
call fcn.00401200
add esp, 0x10
lea ecx, [esi + 0x1c4]
push str.BOTH
call fcn.0041e080
mov dword [esi + 0x2d0], eax
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x24], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
push ecx
push str.skipDownload
lea ecx, [esi + 0x1c8]
call fcn.0041d056
mov edi, eax
mov eax, dword [ebp - 0x20]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x410c89
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x410c80
cmp al, 0xff
je 0x410c80
dec al
mov byte [ecx], al
jmp 0x410c89
push ecx
call fcn.00447dfa
add esp, 4
push str.CPreInstallUpdatePlugInApp::ProcessCommandLine___n
push 4
push 0x471d20
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [esi + 0x2d4], edi
call fcn.00401200
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416558
Capabilities:
Check os version

Disassembly:
cmp dword [0x481f90], 0
jne 0x4165ec
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov edi, 0x481f90
push edi
mov dword [0x481f90], 0x9c
call esi
test eax, eax
jne 0x416590
push edi
mov dword [0x481f90], 0x94
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4165c8
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4165c1
push 0x48202c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x481f94], 5
pop edi
pop esi
jne 0x4165ec
cmp dword [0x481f98], 2
jne 0x4165ec
push 1
pop eax
cmp byte [0x48202a], al
jne 0x4165ec
mov dword [0x481f98], eax
ret