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

Disassembly:
sub esp, 0x120
mov eax, dword [0x476400]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.0042d3c0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x45423f
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004053e0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.0041a8c0
push esi
call dword [0x476004]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x45439f
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x454299
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004053e0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.0041a8c0
push 0
mov esi, 0x4d
call dword [0x476004]
add esp, 0x20
jmp 0x454391
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4542d9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004053e0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.0041a8c0
add esp, 0x1c
mov esi, 0x4d
jmp 0x45437d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x454307
jg 0x4542ed
cmp edi, 0x100000
jbe 0x454307
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.0041a8c0
add esp, 0xc
mov esi, 0x4d
jmp 0x45437d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45431f
lea esi, [eax + 0x1b]
jmp 0x45437d
test edi, edi
je 0x454364
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4543bc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4543b8
add esi, eax
cmp esi, edi
jb 0x454330
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00453fc0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x476004]
add esp, 4
push dword [esp + 0x20]
call fcn.0045f7e8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045e62e
add esp, 0x120
ret
mov edi, esi
jmp 0x454364
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004053e0
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.0041a8c0
add esp, 0x1c
mov esi, 0x4d
jmp 0x45437d
Function at 0x45a6f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
jne 0x45a71b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x45a76a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x45a772
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x45a7e6
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x45a7a0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x45a815
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x46ec55
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x46ec56
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x45a7f0
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x45a820
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.0041dbf0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [section..data]
mov esi, eax
add esp, 8
test esi, esi
je 0x45a9a2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x45a8a2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x45a916
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x45a8d0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x45a945
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x46ec55
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x46ec56
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x45a920
push dword [esp + 0x30]
call fcn.0041dbf0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x45a970
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x476004]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x45aa70
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x45aa96
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x45aace
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.0041dbf0
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x45ab25
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x45ab34
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x45ab45
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x45b780
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x45b7cb
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x45b791
pop edi
pop esi
pop ebx
ret
Function at 0x45f3fd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45f43c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45f43c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45f43c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45f43c
cmp dword [ecx + 0x74], 0xe
jbe 0x45f43c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40db80
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4143d8], 0
jne 0x40dc01
cmp dword [0x4143f8], 0
jne 0x40dbb0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4143f8], eax
test eax, eax
jne 0x40dbb0
push str.GetEnvironmentStrings_failed
call fcn.0040cbf0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4143f8]
jmp 0x40dbc4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dbbc
lea edi, [ebp + 1]
push edi
call fcn.00405c3c
pop ecx
mov ebx, eax
mov dword [0x4143dc], ebx
test ebx, ebx
jne 0x40dbee
xor eax, eax
jmp 0x40dcc4
push edi
mov edx, dword [0x4143f8]
push edx
push ebx
call fcn.004069b8
add esp, 0xc
jmp 0x40dc21
xor esi, esi
mov ebx, dword [0x4143d8]
jmp 0x40dc1b
push eax
call fcn.00406b08
pop ecx
test eax, eax
jne 0x40dc17
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc0b
lea ebx, [esi + 4]
push 4
mov dword [0x4143e0], ebx
inc ebx
push ebx
call fcn.00405a3c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40dc44
xor eax, eax
jmp 0x40dcc4
cmp dword [0x4143d8], 0
jne 0x40dc75
xor esi, esi
mov ebx, dword [0x4143dc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40dc66
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dc5c
jmp 0x40dca6
xor esi, esi
mov ebx, dword [0x4143d8]
mov eax, dword [esp]
mov edi, eax
jmp 0x40dca0
push eax
call fcn.00406b08
pop ecx
test eax, eax
je 0x40dc95
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40dc99
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc84
mov eax, dword [0x4143d8]
test eax, eax
je 0x40dcb6
push eax
call fcn.00405c4c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4143d8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5d34300
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.05d3438f
jae 0x5d3430e
xor ecx, ecx
call fcn.05d3438f
jae 0x5d3433d
xor eax, eax
call fcn.05d3438f
jae 0x5d3434d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.05d3438f
adc al, al
jae 0x5d3432f
jne 0x5d34379
stosb byte es:[edi], al
jmp 0x5d34311
call fcn.05d3439b
sub ecx, ebx
jne 0x5d34356
call fcn.05d34399
jmp 0x5d34375
lodsb al, byte [esi]
shr eax, 1
je 0x5d34383
adc ecx, ecx
jmp 0x5d34372
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.05d34399
cmp eax, 0x7d00
jae 0x5d34372
cmp ah, 5
jae 0x5d34373
cmp eax, 0x7f
ja 0x5d34374
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5d34311
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x40644e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40645d
pop dword [ebp - 0x40]
mov eax, 0x40645d
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xe58afabd
add dword [ebp - 0x50], 0x68c74a8e
mov dword [ebp - 0x4c], 0x1c0776ba
add dword [ebp - 0x4c], 0x162bd58b
mov dword [ebp - 0x48], 0x68151c8c
add dword [ebp - 0x48], 0xe43727a2
mov dword [ebp - 0x44], 0x2fb075be
add dword [ebp - 0x44], 0xd04f8a42
lea eax, [ebp - 0x50]
push eax
mov eax, 0x7c91a945
sub eax, 0x7c5128cd
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x890a37c
sub dword [ebp - 0x50], 0x941e3a26
mov dword [ebp - 0x4c], 0x96bc8cc
add dword [ebp - 0x4c], 0x380098a9
mov dword [ebp - 0x48], 0xa8dca208
add dword [ebp - 0x48], 0xba92ca64
mov dword [ebp - 0x44], 0x152035a3
add dword [ebp - 0x44], 0xeadfca5d
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x35e0b
push 0
call eax
mov ecx, 0x52c6e018
add ecx, 0xad396335
xor edx, edx
add edx, eax
mov ebx, 0x451400
add ebx, dword [ebp - 0x40]
mov esi, 0x4bcf4c05
sub esi, 0x3ec8a79c
xor dword [ebp - 0x20], 0x5ed2a26d
mov edi, dword [ebx]
xor dword [ebp - 0x30], 0xa59e72fc
sub edi, esi
sub dword [ebp - 4], 0xa8c9fee8
mov dword [edx], edi
add dword [ebp - 0x38], edx
add edx, 0xdc54296e
sub edx, 0xdc54296a
add ebx, 4
loop 0x406571
add eax, 0x617cf06c
sub eax, 0x617bf065
xor ebx, ebx
add ebx, eax
add eax, 0xff070bb6
add eax, 0xf8f44f
mov ecx, 0xd0e6da2f
add ecx, 0x2f5925d1
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x4068f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc
Function at 0x40363e
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.0041c840
mov eax, dword [0x42b268]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x800
push esi
xor edi, edi
lea eax, [ebp - 0x1104]
push edi
push eax
call fcn.0040de60
push esi
lea eax, [ebp - 0x904]
push edi
push eax
call fcn.0040de60
add esp, 0x18
lea eax, [ebp - 0x1104]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.0040de60
add esp, 0xc
lea esi, [ebp - 0x104]
call fcn.0040357d
mov eax, esi
push eax
lea eax, [ebp - 0x1104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x904]
push str..tmp
push eax
call fcn.0040dfd7
pop ecx
pop ecx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403700
inc edi
cmp edi, 0xa
jl 0x4036a4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d325
leave
ret
lea eax, [ebp - 0x904]
push eax
mov eax, ebx
call fcn.00403d2f
xor eax, eax
inc eax
jmp 0x4036f2
Function at 0x403713
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x42b268]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x10
mov eax, 0x4214bc
call fcn.0040fc2e
mov eax, dword [ebp + 0x41c]
push str.AcNet.dll
push eax
lea eax, [ebp]
mov edi, edx
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
cmp eax, esi
je 0x403858
push str.CreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x403858
lea ecx, [ebp - 0x14]
push ecx
push 1
mov dword [ebp - 0x14], esi
call eax
cmp dword [ebp - 0x14], esi
je 0x403858
push 0x2f
push edi
call fcn.0040e125
mov edi, eax
mov eax, dword [0x42c8c4]
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0040363e
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x208]
mov edx, eax
mov ebx, 0x104
sub ecx, edx
lea edx, [ebx + 0x7ffffefa]
test edx, edx
je 0x4037dd
movzx edx, word [ecx + eax]
cmp dx, si
je 0x4037dd
mov word [eax], dx
inc eax
inc eax
dec ebx
jne 0x4037c2
cmp ebx, esi
jne 0x4037e3
dec eax
dec eax
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x208]
push eax
cmp edi, esi
je 0x40380c
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add edi, 2
push edi
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x403824
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str..exe
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
push esi
lea edx, [ebp + 0x208]
push edx
push dword [ebp - 0x18]
call dword [eax + 4]
test eax, eax
je 0x403850
push 5
push esi
push dword [ebp - 0x1c]
lea eax, [ebp + 0x208]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea esi, [ebp - 0x10]
call fcn.00403c73
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0040d325
add ebp, 0x414
leave
ret
Function at 0x405787
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x42b268]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0040de60
xor eax, eax
push edi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0040de60
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.AdCleanUninstall.exe
lea eax, [ebp - 0x20c]
push eax
push str._s_s
mov esi, 0x103
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0040f1bd
mov ebx, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
add esp, 0x14
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
xor eax, eax
push edi
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0040de60
xor eax, eax
push edi
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0040de60
add esp, 0x18
push esi
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
call ebx
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d325
leave
ret

Function at 0x405897
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x42b268]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
xor ebx, ebx
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.0040de60
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.0040de60
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.AdCleanUninstall.exe
lea eax, [ebp - 0x414]
push eax
push str._s_s
mov edi, 0x103
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0040f1bd
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push ebx
push eax
call fcn.0040de60
add esp, 0x20
push edi
lea eax, [ebp - 0x61c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d325
leave
ret
Function at 0x405967
Capabilities:
Create process on windows
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x42b268]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.0040de60
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.0040de60
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.AdCleanUninstall.exe
lea eax, [ebp - 0x20c]
push eax
push str._s_s
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.0040f1bd
add esp, 0x14
push 5
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 4
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.0040d325
leave
ret