joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d5ee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x465258]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43d631
cmp word [esi], dx
jne 0x43d631
or byte [edi + eax + 0x28], 4
jmp 0x43d636
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x43d789
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x43d769
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x43d678
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43d6ae
cmp eax, edx
jae 0x43d6ba
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x43d650
jmp 0x43d789
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43d765
cmp dword [ebp - 0x14], 0
je 0x43d765
mov eax, dword [ebx*4 + 0x465258]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x43d73d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x43d706
mov word [esi], cx
jmp 0x43d739
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x465258]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x465258]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x465258]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x43d789
pop ebx
cmp word [ebp - 4], bx
jne 0x43d74e
cmp esi, dword [ebp + 0xc]
jne 0x43d74e
mov word [esi], bx
jmp 0x43d786
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043e022
add esp, 0x10
cmp word [ebp - 4], bx
je 0x43d789
push 0xd
jmp 0x43d782
mov ecx, dword [ebx*4 + 0x465258]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43d780
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43d789
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x440f8a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x441027
push ebx
push esi
call fcn.00440f53
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0043b7d7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x440fd4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x441026
push edi
push eax
call fcn.00439fcc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x440ff4
call fcn.0043952b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x441025
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043b7d7
add esp, 0x20
test eax, eax
jne 0x441013
push edi
call fcn.0043952b
jmp 0x44101b
push ebx
call fcn.0043952b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x447d00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x447d2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x447d2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x469d80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x46000]
push edi
or ebp, 0xffffffff
jmp 0x469da2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x469da9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x469d98
mov eax, 1
add ebx, ebx
jne 0x469dbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x469db0
jne 0x469dcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x469db0
xor ecx, ecx
sub eax, 3
jb 0x469de0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x469e52
mov ebp, eax
add ebx, ebx
jne 0x469deb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x469df8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x469e1c
inc ecx
add ebx, ebx
jne 0x469e08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x469dfd
jne 0x469e19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x469dfd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x469e3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x469e2d
jmp 0x469d9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x469e3c
add edi, ecx
jmp 0x469d9e
pop esi
mov edi, esi
mov ecx, 0xd9a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x469e5a
cmp byte [edi], 0x11
jne 0x469e5a
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 0x469e5f
lea edi, [esi + 0x66000]
mov eax, dword [edi]
or eax, eax
je 0x469ed7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8a1b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8a2a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x469e8c
mov ecx, edi
jns 0x469ebb
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 + 0x8a2ac]
or eax, eax
je 0x469ed1
mov dword [ebx], eax
add ebx, 4
jmp 0x469ea9
call dword [esi + 0x8a2bc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x469f08
cmp al, 0xef
ja 0x469efb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x469edd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x469eea
mov ebp, dword [esi + 0x8a2b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x469f3c
sub esp, 0xffffff80
jmp 0x416b4f
Function at 0x401440
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push eax
nop
nop
nop
nop
mov eax, dword fs:[0x30]
nop
nop
nop
nop
mov dword [ebp - 4], eax
nop
nop
pop eax
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0xc]
mov esi, dword [edi + 0x14]
add edi, 0x14
cmp esi, edi
je 0x40148b
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x28]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x401494
mov esi, dword [esi]
cmp esi, edi
jne 0x401476
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4020f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
xor esi, esi
mov dword [ebp - 4], ebx
mov byte [ebx + edi], 0
test edi, edi
je 0x402161
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, ebx
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, esi
call edi
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov eax, dword [ebp + 0xc]
push 0x4276a5
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call edi
push 0x4276a5
call edi
push 0x4276a5
call edi
mov ebx, dword [ebp - 4]
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x402125
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404280
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0x33323130
mov dword [ebp - 8], 0x37363534
mov word [ebp - 4], 0x3938
mov byte [ebp - 2], 0
mov esi, edi
mov edx, ecx
lea ebx, [ebx]
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc esi
add edx, eax
jne 0x4042b0
mov byte [esi], dl
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
mov cl, byte [ebp + ecx - 0xc]
dec esi
mov byte [esi], cl
mov ecx, edx
test ecx, ecx
jne 0x4042c6
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404970
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x594
push ebx
push esi
push edi
sub esp, 0xc
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040cad0
lea ecx, [ebp - 0x94]
push ecx
call fcn.00404310
add esp, 0x10
push 0x5f5e0ff
mov esi, eax
mov ecx, 0xf
lea edi, [ebp - 0x58]
push 0
rep movsd dword es:[edi], dword [esi]
call dword [0x643dac]
push eax
call dword [0x643d44]
xor edi, edi
push edi
push edi
push edi
push edi
lea ecx, [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 1
call fcn.0040cd50
push eax
call dword [0x643cac]
mov edx, dword [0x632fb8]
mov ebx, eax
mov eax, dword [ebp - 0x54]
push edx
push eax
mov dword [ebp - 0x10], ebx
xor esi, esi
call dword [0x643d84]
test eax, eax
jne 0x4049f7
lea esi, [edi + 1]
test ebx, ebx
je 0x404b3a
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x48]
push 0
push 0
push 3
push 0
push 0
push ecx
push edx
push ebx
call dword [0x643da8]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x404b33
mov edx, dword [ebp - 0x2c]
mov eax, esi
neg eax
sbb eax, eax
push 0
and eax, 0x800000
add eax, 0x400100
push eax
mov eax, dword [0x632e08]
push 0
push 0
push eax
push edx
push 0x42a850
push ecx
call dword [0x643dd8]
mov ebx, eax
test ebx, ebx
je 0x404b26
test esi, esi
je 0x404a76
or dword [ebp - 8], 0x10300
push 4
lea eax, [ebp - 8]
push eax
push 0x1f
push ebx
call dword [0x643bb4]
push 0
push 0
push 0
push 0
push ebx
call dword [0x643d70]
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x194]
push edx
push 0x13
push ebx
mov esi, eax
mov dword [ebp - 0x14], 0x100
call dword [0x643df0]
test eax, eax
jne 0x404ac6
lea ecx, [ebp + 8]
xor esi, esi
call fcn.0040cb10
lea ecx, [ebp + 0x14]
call fcn.0040cb10
mov eax, dword [ebp - 0x1c]
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x194]
push eax
call fcn.0040e1f0
add esp, 4
cmp eax, 0xc8
jne 0x404aa8
test esi, esi
je 0x404b26
cmp dword [ebp - 4], edi
jbe 0x404b26
lea ecx, [ebp - 4]
push ecx
push 0x400
lea edx, [ebp - 0x594]
push edx
push ebx
call dword [0x643cd4]
xor esi, esi
cmp dword [ebp - 4], esi
jbe 0x404b26
mov ecx, dword [ebp - 0xc]
push 1
lea eax, [ebp + esi - 0x594]
push eax
lea edx, [edi + ecx]
push edx
call fcn.0040e270
mov eax, dword [ebp - 4]
inc esi
inc edi
cmp esi, eax
jb 0x404b03
test eax, eax
jne 0x404ae5
push ebx
call dword [0x643ca8]
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x643ca8]
push ebx
call dword [0x643ca8]
lea ecx, [ebp + 8]
call fcn.0040cb10
lea ecx, [ebp + 0x14]
call fcn.0040cb10
mov eax, dword [ebp - 0xc]
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405570
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x974
push esi
push edi
sub esp, 0xc
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0040cad0
lea ecx, [ebp - 0xa4]
push ecx
call fcn.00404310
mov esi, eax
add esp, 0x10
mov ecx, 0xf
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
push 0x4276a5
lea ecx, [ebp - 0x14]
call fcn.0040ca90
push 0
push 0
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.0040cd50
push eax
call dword [0x643cac]
mov edx, dword [0x632fb8]
mov esi, eax
mov eax, dword [ebp - 0x64]
push edx
push eax
mov dword [ebp - 0x18], esi
xor edi, edi
call dword [0x643d84]
test eax, eax
jne 0x4055e7
lea edi, [eax + 1]
test esi, esi
je 0x40574a
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x58]
push 0
push 0
push 3
push 0
push 0
push ecx
push edx
push esi
call dword [0x643da8]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x405743
mov edx, dword [ebp - 0x3c]
mov eax, edi
neg eax
sbb eax, eax
push 0
and eax, 0x800000
add eax, 0x400100
push eax
mov eax, dword [0x632e08]
push 0
push 0
push eax
push edx
push 0x42a850
push ecx
call dword [0x643dd8]
mov esi, eax
test esi, esi
je 0x405736
test edi, edi
je 0x405666
or dword [ebp - 4], 0x10300
push 4
lea eax, [ebp - 4]
push eax
push 0x1f
push esi
call dword [0x643bb4]
push 0
push 0
push 0
push 0
push esi
call dword [0x643d70]
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1a4]
push edx
push 0x13
push esi
mov edi, eax
mov dword [ebp - 0x20], 0x100
call dword [0x643df0]
test eax, eax
jne 0x4056ac
mov esi, dword [ebp + 8]
push str.ERROR
mov ecx, esi
call fcn.0040ca90
jmp 0x405758
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040e1f0
add esp, 4
cmp eax, 0xc8
jne 0x405698
test edi, edi
je 0x40572f
lea ecx, [ebp - 8]
push ecx
push 0x7cf
lea edx, [ebp - 0x974]
push edx
push esi
call dword [0x643cd4]
test eax, eax
je 0x40572f
mov eax, dword [ebp - 8]
test eax, eax
je 0x40572f
mov byte [ebp + eax - 0x974], 0
lea eax, [ebp - 0x974]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0x14]
call fcn.0040cb70
lea ecx, [ebp - 0x2c]
call fcn.0040cb10
lea edx, [ebp - 8]
push edx
push 0x7cf
lea eax, [ebp - 0x974]
push eax
push esi
call dword [0x643cd4]
test eax, eax
jne 0x4056e1
push esi
call dword [0x643ca8]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x643ca8]
mov esi, dword [ebp - 0x18]
push esi
call dword [0x643ca8]
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
mov ecx, esi
call fcn.0040cad0
lea ecx, [ebp - 0x14]
call fcn.0040cb10
lea ecx, [ebp + 0xc]
call fcn.0040cb10
lea ecx, [ebp + 0x18]
call fcn.0040cb10
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405ee0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x405efa
mov eax, 1
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x405fa8
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x405fa8
push edi
push ebx
push 0xf8
push eax
lea edi, [esi + 0x40]
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x405f31
mov eax, 1
pop edi
pop ebp
ret
cmp dword [edi], 0x4550
jne 0x405fa0
mov ecx, 0x10b
cmp word [esi + 0x58], cx
jne 0x405fa0
movzx eax, word [esi + 0x46]
test ax, ax
je 0x405fa0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
mov dword [esi + 0x140], eax
call fcn.0040e2b0
add esp, 4
mov dword [esi + 0x138], eax
test eax, eax
jne 0x405f77
mov eax, 3
pop edi
pop ebp
ret
movzx edx, word [esi + 0x54]
mov ecx, dword [esi + 0x3c]
lea ecx, [edx + ecx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop edi
pop ebp
ret
mov eax, 2
pop edi
pop ebp
ret
mov eax, 2
pop ebp
ret

Function at 0x4066e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40671c
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x40671c
mov edx, 0x10b
cmp word [eax + ecx + 0x18], dx
jne 0x40671c
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + ecx + 0x78]
push edx
push ecx
push eax
call fcn.00406620
add esp, 0xc
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40df10
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
xor esi, esi
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 8]
push eax
push 0x42e55c
push 1
push esi
push 0x42e62c
mov dword [ebp - 8], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push str.ROOTCIMV2
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x40e079
mov ecx, dword [ebp - 4]
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x20
push str.Select__From_Win32_OperatingSystem
mov dword [ebp - 0xc], esi
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push 0x42ae90
push eax
call edx
test eax, eax
js 0x40e079
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
cmp eax, esi
je 0x40e08a
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x10], esi
je 0x40e08a
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
push esi
lea ecx, [ebp - 0x3c]
push ecx
push esi
push str.InstallDate
push eax
call edx
mov ecx, dword [ebp - 0x34]
push 1
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.0040de60
add esp, 0xc
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x104
push esi
call dword [0x643dac]
push eax
call dword [0x643d44]
movzx ecx, word [ebp - 0x20]
movzx edx, word [ebp - 0x22]
push ecx
movzx ecx, word [ebp - 0x2c]
push edx
movzx edx, word [ebp - 0x2a]
mov esi, eax
movzx eax, word [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x26]
push ecx
push edx
push eax
push 0x42ae64
push esi
call dword [0x643bd8]
add esp, 0x20
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0040ca90
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push str.Unknown
mov ecx, esi
call fcn.0040ca90
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e090
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 8]
push eax
push 0x42e55c
push 1
push esi
push 0x42e62c
mov dword [ebp - 8], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push str.rootSecurityCenter2
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x40e197
mov ecx, dword [ebp - 4]
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x20
push str.Select__From_AntiVirusProduct
mov dword [ebp - 0xc], esi
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push 0x42ae90
push eax
call edx
test eax, eax
js 0x40e197
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
cmp eax, esi
je 0x40e1a8
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x10], esi
je 0x40e1a8
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
push esi
lea ecx, [ebp - 0x24]
push ecx
push esi
push str.displayName
push eax
call edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040e4f0
mov esi, dword [ebp + 8]
add esp, 4
push eax
mov ecx, esi
call fcn.0040ca90
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push str.Unknown
mov ecx, esi
call fcn.0040ca90
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4115c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
lea ecx, [ebp - 0x40]
call fcn.0040ca80
lea ecx, [ebp - 0x34]
call fcn.0040ca80
lea ecx, [ebp - 0x28]
call fcn.0040ca80
lea ecx, [ebp - 0x1c]
call fcn.0040ca80
test byte [0x643b78], 1
jne 0x4115f7
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44], eax
jmp 0x4115fd
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x44], ecx
push esi
lea edx, [ebp + 0x5c]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040cb70
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x68]
lea edx, [ebp + 0x2c]
mov dword [ebp - 0xc], ecx
xor esi, esi
push edx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.0040cb70
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040cb70
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040cb70
cmp dword [0x643b78], 2
jb 0x411664
jmp 0x411650
push 0x3e8
call dword [0x643bf0]
cmp dword [0x643b78], 2
jae 0x411650
inc dword [0x643b78]
push esi
push esi
lea edx, [ebp - 0x44]
push edx
push 0x410500
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp + 8]
push 0x4276a5
mov ecx, esi
call fcn.0040ca90
lea ecx, [ebp - 0x1c]
call fcn.0040cb10
lea ecx, [ebp - 0x28]
call fcn.0040cb10
lea ecx, [ebp - 0x34]
call fcn.0040cb10
lea ecx, [ebp - 0x40]
call fcn.0040cb10
lea ecx, [ebp + 0x2c]
call fcn.0040cb10
lea ecx, [ebp + 0x18]
call fcn.0040cb10
lea ecx, [ebp + 0xc]
call fcn.0040cb10
lea ecx, [ebp + 0x5c]
call fcn.0040cb10
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x413d30
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x413d45
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x413d3e
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi], 0x4550
jne 0x413d3e
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
mov eax, dword [esi + edi + 0x1c]
add esi, edi
add eax, edi
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x24]
add eax, edi
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x20]
add eax, edi
xor ebx, ebx
mov dword [ebp + 8], eax
cmp dword [esi + 0x18], ebx
ja 0x413d93
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + ebx*4]
push ecx
add edx, edi
push edx
call fcn.0040eb90
add esp, 8
test eax, eax
je 0x413db8
inc ebx
cmp ebx, dword [esi + 0x18]
jb 0x413d90
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
movzx ecx, word [eax + ebx*2]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
mov esp, ebp
pop ebp
ret