joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f80
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40e034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push esi
push edi
mov esi, edx
xor edi, edi
mov dword [ebp - 0x208], eax
cmp esi, edi
jne 0x401fb1
or eax, 0xffffffff
jmp 0x4020f3
cmp dword [ebp + 8], edi
jg 0x401fbe
push 0xfffffffffffffffe
pop eax
jmp 0x4020f3
cmp dword [ebp + 0x14], edi
jne 0x401fc7
push 0xfffffffffffffffd
jmp 0x401fb8
cmp dword [ebp + 0x10], edi
jg 0x401fd0
push 0xfffffffffffffffc
jmp 0x401fb8
cmp eax, edi
jne 0x401fd8
push 0xfffffffffffffffb
jmp 0x401fb8
cmp ecx, edi
jg 0x401fe0
push 0xfffffffffffffffa
jmp 0x401fb8
cmp dword [ebp + 0x10], ecx
jge 0x401fe9
push 0xfffffffffffffff9
jmp 0x401fb8
xor edx, edx
xor ecx, ecx
mov al, byte [edx + esi]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
cdq
idiv dword [ebp + 8]
mov byte [ebp + ecx - 0x104], cl
inc ecx
cmp ecx, 0x100
jl 0x401fed
xor esi, esi
push ebx
movzx ecx, byte [ebp + edi - 0x204]
lea eax, [ebp + edi - 0x104]
mov dl, byte [eax]
movzx ebx, dl
add esi, ecx
add esi, ebx
and esi, 0x800000ff
jns 0x402039
dec esi
or esi, 0xffffff00
inc esi
lea ecx, [ebp + esi - 0x104]
mov bl, byte [ecx]
inc edi
mov byte [ecx], dl
mov byte [eax], bl
cmp edi, 0x100
jl 0x402011
mov eax, dword [ebp + 0x18]
xor edi, edi
mov dword [ebp - 0x20c], edi
cmp eax, edi
jle 0x4020f0
mov esi, dword [ebp - 0x208]
mov ecx, dword [ebp + 0x14]
sub ecx, esi
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], eax
inc edi
and edi, 0x800000ff
jns 0x40208a
dec edi
or edi, 0xffffff00
inc edi
lea eax, [ebp + edi - 0x104]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x20c]
and ecx, 0x800000ff
jns 0x4020aa
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [eax]
mov dword [ebp - 0x20c], ecx
lea ecx, [ebp + ecx - 0x104]
mov dl, byte [ecx]
mov byte [ecx], bl
mov byte [eax], dl
movzx ecx, byte [ecx]
movzx eax, dl
add eax, ecx
and eax, 0x800000ff
jns 0x4020d5
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [ebp + eax - 0x104]
mov ecx, dword [ebp - 0x210]
xor al, byte [ecx + esi]
mov byte [esi], al
inc esi
dec dword [ebp - 0x208]
jne 0x402079
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004097e2
leave
ret
Function at 0x402101
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40e034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push esi
push edi
mov esi, edx
xor edi, edi
mov dword [ebp - 0x208], eax
cmp esi, edi
jne 0x402132
or eax, 0xffffffff
jmp 0x402274
cmp dword [ebp + 8], edi
jg 0x40213f
push 0xfffffffffffffffe
pop eax
jmp 0x402274
cmp eax, edi
jne 0x402147
push 0xfffffffffffffffd
jmp 0x402139
cmp dword [ebp + 0x10], edi
jg 0x402150
push 0xfffffffffffffffc
jmp 0x402139
cmp dword [ebp + 0x14], edi
jne 0x402159
push 0xfffffffffffffffb
jmp 0x402139
cmp ecx, edi
jg 0x402161
push 0xfffffffffffffffa
jmp 0x402139
cmp dword [ebp + 0x10], ecx
jge 0x40216a
push 0xfffffffffffffff9
jmp 0x402139
xor edx, edx
xor ecx, ecx
mov al, byte [edx + esi]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
cdq
idiv dword [ebp + 8]
mov byte [ebp + ecx - 0x104], cl
inc ecx
cmp ecx, 0x100
jl 0x40216e
xor esi, esi
push ebx
movzx ecx, byte [ebp + edi - 0x204]
lea eax, [ebp + edi - 0x104]
mov dl, byte [eax]
movzx ebx, dl
add esi, ecx
add esi, ebx
and esi, 0x800000ff
jns 0x4021ba
dec esi
or esi, 0xffffff00
inc esi
lea ecx, [ebp + esi - 0x104]
mov bl, byte [ecx]
inc edi
mov byte [ecx], dl
mov byte [eax], bl
cmp edi, 0x100
jl 0x402192
mov eax, dword [ebp + 0x18]
xor edi, edi
mov dword [ebp - 0x20c], edi
cmp eax, edi
jle 0x402271
mov esi, dword [ebp - 0x208]
mov ecx, dword [ebp + 0x14]
sub ecx, esi
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], eax
inc edi
and edi, 0x800000ff
jns 0x40220b
dec edi
or edi, 0xffffff00
inc edi
lea eax, [ebp + edi - 0x104]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x20c]
and ecx, 0x800000ff
jns 0x40222b
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [eax]
mov dword [ebp - 0x20c], ecx
lea ecx, [ebp + ecx - 0x104]
mov dl, byte [ecx]
mov byte [ecx], bl
mov byte [eax], dl
movzx ecx, byte [ecx]
movzx eax, dl
add eax, ecx
and eax, 0x800000ff
jns 0x402256
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [ebp + eax - 0x104]
mov ecx, dword [ebp - 0x210]
xor al, byte [ecx + esi]
mov byte [esi], al
inc esi
dec dword [ebp - 0x208]
jne 0x4021fa
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004097e2
leave
ret
Function at 0x4022a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, eax
test esi, esi
je 0x402321
test edi, edi
je 0x402321
cmp dword [ebp + 8], 0
je 0x402321
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 8]
push esi
call ebx
test eax, eax
je 0x402321
cmp dword [ebp + 8], 5
je 0x4022ed
cmp dword [ebp + 8], 0xa
jne 0x40230b
lea ecx, [esi + 6]
mov word [esi], 0x25ff
mov dword [esi + 2], ecx
mov dword [ecx], edi
jmp 0x40230b
push 4
lea eax, [ebp - 8]
push eax
sub edi, esi
lea eax, [esi + 1]
sub edi, 5
push eax
mov byte [esi], 0xe9
mov dword [ebp - 8], edi
call dword [sym.imp.MSVCR100.dll_memcpy]
add esp, 0xc
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push esi
call ebx
xor eax, eax
inc eax
jmp 0x402323
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x40237c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
mov esi, eax
mov ebx, 0x403379
push edi
mov ecx, ebx
mov edx, esi
call fcn.00402282
mov edi, eax
test edi, edi
jne 0x402399
xor eax, eax
jmp 0x4023e9
mov eax, esi
mov ecx, 0x40fdcc
call fcn.00402327
test eax, eax
je 0x402395
push edi
mov eax, ebx
call fcn.004022a0
pop ecx
test eax, eax
je 0x402395
and dword [0x40fde8], 0
push 0x40fde8
push 0x40
push 0x1c
push 0x40fdcc
mov dword [0x40fdc0], esi
mov dword [0x40fdc4], ebx
mov dword [0x40fdc8], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
ret

Function at 0x4023ed
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [0x40fdc0]
push ebx
xor ebx, ebx
push esi
cmp ecx, ebx
je 0x4024a2
cmp dword [0x40fdc4], ebx
je 0x4024a2
mov eax, dword [0x40fdc8]
cmp eax, ebx
je 0x4024a2
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 4]
push edx
push 0x40
push eax
push ecx
mov dword [ebp - 4], ebx
call esi
test eax, eax
je 0x4024a2
push edi
push dword [0x40fdc8]
mov edi, 0x40fdcc
push edi
push dword [0x40fdc0]
call dword [sym.imp.MSVCR100.dll_memcpy]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
push dword [0x40fdc8]
push dword [0x40fdc0]
call esi
lea eax, [ebp - 8]
push eax
push dword [0x40fde8]
mov dword [0x40fdc4], ebx
push 0x1c
push edi
mov dword [0x40fdc0], ebx
call esi
push 0x1c
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_memset]
add esp, 0xc
xor eax, eax
mov dword [0x40fde8], ebx
mov dword [0x40fdc8], ebx
inc eax
pop edi
jmp 0x4024a4
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x4026a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x40e034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x50], eax
mov dword [eax], ebx
lea eax, [ebp - 0x48]
push eax
push 0x20019
push ebx
push str.SoftwareTencentQQProtect
push 0x80000001
mov dword [ebp - 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4026e5
xor eax, eax
jmp 0x4027c8
push esi
push edi
xor eax, eax
mov byte [ebp - 0x34], bl
lea edi, [ebp - 0x33]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
pop esi
stosb byte es:[edi], al
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push 0x40b3f0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x58], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4027b5
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push esi
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x9e39e3e
mov dword [ebp - 0x10], 0xcfc55112
mov dword [ebp - 0xc], 0xad8b4eba
mov dword [ebp - 8], 0x9cb9c28e
call fcn.00402101
add esp, 0x14
test eax, eax
jne 0x4027b5
mov esi, 0x40b2ec
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
lea eax, [ebp - 0x24]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x44]
push 0x10
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCR100.dll_memcpy_s]
mov eax, 0x3415
add esp, 0x10
cmp ax, word [ebp - 0x40]
jne 0x4027b5
mov eax, 0x4e6a
cmp ax, word [ebp - 0x3e]
jne 0x4027b5
mov ecx, dword [ebp - 0x50]
xor eax, eax
cmp byte [ebp - 0x3c], bl
mov dword [ebp - 0x4c], 1
setne al
mov dword [ecx], eax
pop edi
pop esi
cmp dword [ebp - 0x48], ebx
je 0x4027c5
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004097e2
leave
ret
Function at 0x4027d5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x40e034]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x68], eax
mov dword [eax], ebx
lea eax, [ebp - 0x60]
push eax
push 0x20019
push ebx
push str.SoftwareTencentQQProtect
push 0x80000001
mov dword [ebp - 0x60], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40281a
xor eax, eax
jmp 0x4028ff
push 8
xor eax, eax
mov byte [ebp - 0x4c], bl
pop ecx
lea edi, [ebp - 0x4b]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x64], ebx
push eax
lea ebx, [ebp - 0x78]
call fcn.0040290e
pop ecx
test eax, eax
je 0x4028ed
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
pop ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x40b3f4
push dword [ebp - 0x60]
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4028ed
mov byte [ebp - 0x28], al
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x20
lea edx, [ebp - 0x4c]
call fcn.00402101
add esp, 0x14
test eax, eax
jne 0x4028ed
mov esi, 0x40b2ec
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x28]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x5c]
push ebx
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCR100.dll_memcpy_s]
mov eax, dword [ebp - 0x5c]
add esp, 0x10
cmp eax, dword [ebp - 0x74]
jne 0x4028ed
mov eax, dword [ebp - 0x78]
mov ecx, eax
shr ecx, 0x10
cmp word [ebp - 0x58], cx
jne 0x4028ed
cmp word [ebp - 0x56], ax
jne 0x4028ed
movzx eax, byte [ebp - 0x54]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
mov dword [ebp - 0x64], 1
cmp dword [ebp - 0x60], 0
je 0x4028fc
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004097e2
leave
ret
Function at 0x402ab6
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x40e034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov dword [ebp - 0x1c], eax
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x11
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.00402bb0
add esp, 0xc
test eax, eax
jne 0x402af6
or eax, 0xffffffff
jmp 0x402b45
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
cmp esi, ebx
je 0x402b36
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x402b2f
push dword [ebp - 0x1c]
push edi
push dword [ebp + 8]
call fcn.00402d21
add esp, 0xc
test eax, eax
jne 0x402b3b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x402b44
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004097e2
leave
ret

Function at 0x402c18
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40e034]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp + 0x10], 0x11
cmp dword [ebp + 0xc], 0
je 0x402bd9
loopne 0x402bfa
add byte [ebx], dh
lds ecx, [ecx + 0x45c7f445]
adc byte [ecx], dl
add byte [eax], al
add byte [ebx + 0x74000c7d], al
or al, 0x83
jge 0x402be0
cmp dword [ebp + 0x10], 0
je 0x402bd9
add byte [esi + eax - 0x7d], dh
jge 0x402be6
cmp dword [ebp + 0x10], 0x10
ja 0x402be0
adc byte [edi + 7], dh
xor eax, eax
jmp 0x402d15
movzx eax, word [ebp + 8]
and eax, 0xff
mov byte [ebp - 0x1d], al
movzx eax, word [ebp + 8]
shr eax, 8
and eax, 0xff
add byte [eax], al
add byte [eax - 0x48f01cbb], cl
inc ebp
or cl, al
call 0x13f50fe
add byte [eax], al
mov byte [ebp - 1], al
movzx eax, word [ebp + 8]
cdq
push 0xf
pop ecx
idiv ecx
dec dword [edi]
mov bh, 0x45
or byte [ecx - 0x8a6f096], bl
stc
mov dword [ebp - 0x24], edx
push ecx
call 0x402c18
js 0x18bfb423
jle 0x402c2c
mov dword [ecx + 0x7f047e59], ecx
add dl, byte [eax + 0x33]
add ecx, 4
je 0x402c28
jne 0x402c28
jbe 0x402bb8
push ecx
ret
pop ecx
mov byte [ebp - 0x1c], 0x2f
mov byte [ebp - 0x1b], 0xd1
mov byte [ebp - 0x1a], 0x65
mov byte [ebp - 0x19], 0x13
mov byte [ebp - 0x18], 0x92
mov byte [ebp - 0x17], 0x84
mov byte [ebp - 0x16], 0x46
mov byte [ebp - 0x15], 0x4b
mov byte [ebp - 0x14], 0x88
mov byte [ebp - 0x13], 0xb3
mov byte [ebp - 0x12], 0xf0
mov byte [ebp - 0x11], 0xc9
mov byte [ebp - 0x10], 0xc2
mov byte [ebp - 0xf], 0x71
mov byte [ebp - 0xe], 0xdd
mov byte [ebp - 0xd], 0x64
mov eax, dword [ebp - 0x24]
mov cl, byte [ebp - 0x1d]
mov byte [ebp + eax - 0x1c], cl
push ecx
call fcn.00402c87
jmp 0x7fcfb501
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004097e2
leave
ret
Function at 0x404938
Capabilities:
Get file size
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x40e034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x41c], eax
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 0x418], edi
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x20c]
add esp, 0xc
test eax, eax
je 0x404a8b
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push str._appdata_TencentQQQQProtect_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x404a8b
push str.QQProtectDksp.dat
lea eax, [ebp - 0x414]
push eax
push str._s_s
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf_s]
add esp, 0x18
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, 0xffffffff
je 0x404a8b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x404a77
cmp esi, 0xffffffff
je 0x404a77
cmp dword [ebp - 0x41c], edi
je 0x404a6b
cmp dword [ebp + 0xc], edi
je 0x404a6b
cmp dword [ebp + 0xc], esi
jb 0x404a77
push dword [ebp + 0xc]
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.MSVCR100.dll_memset]
add esp, 0xc
push edi
push ebx
push esi
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404a77
cmp dword [ebx], esi
jne 0x404a77
jmp 0x404a6d
mov dword [ebx], esi
mov dword [ebp - 0x418], 1
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x418], edi
jne 0x404a8d
mov dword [ebx], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
xor ecx, ebp
pop esi
call fcn.004097e2
leave
ret 8
Function at 0x40567f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x40e034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
cmp edi, esi
je 0x40577c
push 0x103
lea eax, [ebp - 0x107]
push esi
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x40577c
mov ebx, dword [sym.imp.MSVCR100.dll_strlen]
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], esi
call ebx
pop ecx
test eax, eax
jle 0x405773
cmp esi, 0x104
jge 0x405777
mov eax, dword [ebp - 0x110]
mov al, byte [ebp + eax - 0x108]
cmp al, 0x5c
je 0x40574d
cmp al, 0x2f
je 0x40574d
cmp al, 0x3f
je 0x40574d
mov ecx, dword [ebp - 0x10c]
sub ecx, dword [ebp - 0x114]
cmp ecx, 1
jle 0x40573d
cmp dword [ebp - 0x114], 0
je 0x40573d
mov byte [edi + esi], 0x5c
inc esi
mov byte [edi + esi], al
mov eax, dword [ebp - 0x10c]
inc esi
mov dword [ebp - 0x114], eax
inc dword [ebp - 0x10c]
inc dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
call ebx
pop ecx
cmp dword [ebp - 0x110], eax
jl 0x4056fd
cmp esi, 0x104
jge 0x405777
mov byte [edi + esi], 0
xor eax, eax
inc eax
jmp 0x40577e
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004097e2
leave
ret
Function at 0x406d57
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSet_servicesWinsockParameters_
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406db1
cmp dword [ebp - 4], ebx
je 0x406db1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
mov edi, str.Transports
push edi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call esi
cmp dword [ebp - 8], ebx
jne 0x406dba
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebp - 8]
call fcn.004097d1
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x406da8
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], 7
call esi
test eax, eax
je 0x406df1
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
pop ecx
jmp 0x406da8
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.MSVCR100.dll_wcslen]
mov dword [ebp - 0xc], ebx
push edi
call esi
pop ecx
mov ebx, eax
mov eax, dword [ebp + 8]
push edi
call fcn.004081c0
push edi
call esi
mov ecx, dword [ebp - 0xc]
lea edi, [edi + eax*2 + 2]
lea eax, [ecx + eax + 1]
mov ebx, 0x40bcfc
push ebx
mov dword [ebp - 0xc], eax
call esi
pop ecx
pop ecx
push ebx
mov ebx, eax
mov eax, dword [ebp + 8]
call fcn.004081c0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add eax, eax
add ecx, 0xfffffffe
cmp eax, ecx
jb 0x406dfd
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x406db3
Function at 0x40727f
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push 0x4b4
mov eax, 0x40a25b
call fcn.0040a1bb
push 0x103
xor edi, edi
lea eax, [ebp - 0x117]
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x4b0], ebx
mov byte [ebp - 0x118], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x118]
push eax
push str._SystemRoot_System32_rsvpsp.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x4072d6
xor eax, eax
jmp 0x407464
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4072cf
mov dword [ebp - 0x4c0], edi
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4b8], edi
lea eax, [ebp - 0x4c0]
push eax
mov edx, 0x40bd00
mov ecx, str._SystemRoot_System32wshtcpip.dll
mov dword [ebp - 4], edi
call fcn.0040746a
mov dword [ebp - 0x4ac], eax
mov eax, 0x337a
mov word [ebp - 0x4a0], ax
mov eax, dword [ebp - 0x4bc]
sub eax, dword [ebp - 0x4c0]
mov esi, 0x274
cdq
mov ecx, esi
idiv ecx
mov dword [ebp - 0x4a4], 0x9d60a9e0
mov dword [ebp - 0x49e], 0x88bd11d0
mov dword [ebp - 0x49a], 0x82c00000
mov word [ebp - 0x496], 0x9ae6
cmp eax, edi
jbe 0x407453
mov ecx, dword [ebp - 0x4c0]
mov dword [ebp - 0x494], ecx
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp - 0x494]
cmp dword [eax + 0x58], 3
je 0x407441
push 0x378
lea eax, [ebp - 0x490]
push edi
push eax
call dword [sym.imp.MSVCR100.dll_memset]
push str._SystemRoot_System32_rsvpsp.dll
lea eax, [ebp - 0x490]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_strcpy_s]
push esi
push dword [ebp - 0x494]
lea eax, [ebp - 0x38c]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_memcpy_s]
or dword [ebp - 0x38c], 0x2000
add esp, 0x28
cmp dword [ebp - 0x334], 2
mov dword [ebp - 0x344], 6
mov eax, str.RSVP_UDP_Service_Provider
je 0x4073f4
mov eax, str.RSVP_TCP_Service_Provider
push eax
lea eax, [ebp - 0x318]
push 0x100
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
lea esi, [ebp - 0x4a4]
lea edi, [ebp - 0x378]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x368], eax
add ebx, 0x1c
lea eax, [ebp - 0x490]
call fcn.00407ef2
mov ebx, dword [ebp - 0x4b0]
mov esi, 0x274
xor edi, edi
add dword [ebp - 0x494], esi
dec dword [ebp - 0x4a8]
jne 0x40737b
lea esi, [ebp - 0x4c0]
call fcn.00407f8f
mov eax, dword [ebp - 0x4ac]
call fcn.0040a205
ret