joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c94a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5002eb
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x523890]
xor eax, esp
mov dword [esp + 0x168], eax
push ebp
push esi
push edi
mov eax, dword [0x523890]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x18c]
mov ecx, dword [esp + 0x19c]
mov edx, dword [esp + 0x1a0]
mov edi, dword [esp + 0x190]
mov ebp, dword [esp + 0x198]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x198]
push 0
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.00466ba0
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x184], 0
je 0x4c9593
lea esi, [eax - 1]
cmp esi, eax
jbe 0x4c9556
call fcn.004cd864
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 0x10
mov ecx, dword [esp + 0x20]
jae 0x4c9565
lea ecx, [esp + 0x20]
cmp byte [ecx + esi], 0x5c
je 0x4c958c
lea esi, [eax - 1]
cmp esi, eax
jbe 0x4c9577
call fcn.004cd864
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x4c9586
lea eax, [esp + 0x20]
cmp byte [eax + esi], 0x3a
jne 0x4c9593
mov edx, 0x5261e0
jmp 0x4c9598
mov edx, 0x526d6c
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4c95a0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.0047a3b0
mov eax, dword [esp + 0x20]
mov esi, 0x10
cmp dword [esp + 0x34], esi
jae 0x4c95c9
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x4c961c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0
call esi
cmp eax, 2
jne 0x4c95f3
xor eax, eax
jmp 0x4c95f5
call esi
cmp dword [esp + 0x34], 0x10
mov esi, dword [esp + 0x10]
mov edx, dword [0x53aaf0]
mov dword [esi], eax
mov dword [esi + 4], edx
jb 0x4c9618
mov eax, dword [esp + 0x20]
push eax
call fcn.004cd275
add esp, 4
mov eax, esi
jmp 0x4c9695
lea eax, [esp + 0x64]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4c9623
sub eax, edx
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebp
call fcn.00467600
test byte [esp + 0x38], 0x10
je 0x4c9658
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x4c966c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x34], esi
mov eax, dword [0x53aaf4]
mov edi, dword [esp + 0x10]
mov dword [edi], eax
mov ecx, dword [0x53aaf8]
mov dword [edi + 4], ecx
jb 0x4c9693
mov edx, dword [esp + 0x20]
push edx
call fcn.004cd275
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.004cce32
add esp, 0x178
ret
Function at 0x4c9ae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x50045c
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x523890]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], 0
mov eax, dword [esi + 0x14]
push eax
push esi
call fcn.004af520
mov edi, eax
mov eax, dword [esi + 0x14]
add esp, 8
test eax, eax
je 0x4c9b49
cmp edi, eax
jbe 0x4c9b30
call fcn.004cd864
cmp dword [esi + 0x18], 0x10
jb 0x4c9b3b
mov eax, dword [esi + 4]
jmp 0x4c9b3e
lea eax, [esi + 4]
cmp byte [eax + edi], 0x2f
mov byte [esp + 0x17], 1
je 0x4c9b4e
mov byte [esp + 0x17], 0
push edi
push esi
call fcn.004b6830
add esp, 8
test edi, edi
mov ebp, eax
jbe 0x4c9b8d
lea ebx, [edi - 1]
cmp ebx, ebp
je 0x4c9b8d
cmp ebx, dword [esi + 0x14]
jbe 0x4c9b6f
call fcn.004cd864
cmp dword [esi + 0x18], 0x10
jb 0x4c9b7a
mov eax, dword [esi + 4]
jmp 0x4c9b7d
lea eax, [esi + 4]
cmp byte [ebx + eax], 0x2f
jne 0x4c9b8d
sub edi, 1
sub ebx, 1
test edi, edi
ja 0x4c9b61
mov ebx, 1
cmp edi, ebx
jne 0x4c9bc2
test ebp, ebp
jne 0x4c9bc2
cmp byte [esp + 0x17], 0
je 0x4c9bc2
mov edi, 0xf
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebp
mov byte [esp + 0x58], 0
lea eax, [esp + 0x54]
mov dword [esp + 0x78], ebx
mov ebp, 0x10
jmp 0x4c9c24
push edi
push 0
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.004c8440
mov edi, 0xf
mov dword [esp + 0x18], 2
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
mov dword [esp + 0x78], 3
jb 0x4c9c06
mov eax, dword [eax + 4]
jmp 0x4c9c09
add eax, 4
push eax
lea ecx, [esp + 0x20]
call fcn.004ad820
lea eax, [esp + 0x1c]
mov dword [esp + 0x78], 4
mov ebx, 6
mov esi, dword [esp + 0x80]
push 0xffffffffffffffff
push 0
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], 0
push eax
mov ecx, esi
mov dword [esp + 0x24], ebx
mov byte [esi + 4], 0
call fcn.00466ba0
or ebx, 8
test bl, 4
je 0x4c9c78
and ebx, 0xfffffffb
cmp dword [esp + 0x34], ebp
jb 0x4c9c67
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004cd275
add esp, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
test bl, 2
je 0x4c9ca4
and ebx, 0xfffffffd
cmp dword [esp + 0x50], ebp
jb 0x4c9c93
mov edx, dword [esp + 0x3c]
push edx
call fcn.004cd275
add esp, 4
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
test bl, 1
je 0x4c9cbc
cmp dword [esp + 0x6c], ebp
jb 0x4c9cbc
mov eax, dword [esp + 0x58]
push eax
call fcn.004cd275
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4

Function at 0x4cce32
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x523890]
jne 0x4cce3c
repz ret
jmp fcn.004d858c
Function at 0x4d8bef
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x524200]
je 0x4d8c0a
inc edi
cmp edi, 0x17
jb 0x4d8bfb
cmp edi, 0x17
jae 0x4d8d8a
push ebp
push 3
call fcn.004e60ae
cmp eax, 1
pop ecx
je 0x4d8d56
push 3
call fcn.004e60ae
test eax, eax
pop ecx
jne 0x4d8c3e
cmp dword [0x523950], 1
je 0x4d8d56
cmp ebx, 0xfc
je 0x4d8d89
push 0x52809c
mov ebx, 0x314
push ebx
mov ebp, 0x53af80
push ebp
call fcn.004cbfda
add esp, 0xc
test eax, eax
je 0x4d8c74
push esi
push esi
push esi
push esi
push esi
call fcn.004cd70c
add esp, 0x14
push 0x104
mov esi, 0x53af99
push esi
push 0
mov byte [0x53b09d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4d8cb8
push 0x528084
push 0x2fb
push esi
call fcn.004cbfda
add esp, 0xc
test eax, eax
je 0x4d8cb8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004cd70c
add esp, 0x14
push esi
call fcn.004cc800
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4d8cfd
push esi
call fcn.004cc800
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x53b294
push 0x528080
sub ecx, eax
push ecx
push eax
call fcn.004cce41
add esp, 0x14
test eax, eax
je 0x4d8cfd
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004cd70c
add esp, 0x14
jmp 0x4d8cff
xor esi, esi
push 0x5268f8
push ebx
push ebp
call fcn.004cbf69
add esp, 0xc
test eax, eax
je 0x4d8d1f
push esi
push esi
push esi
push esi
push esi
call fcn.004cd70c
add esp, 0x14
push dword [edi*8 + 0x524204]
push ebx
push ebp
call fcn.004cbf69
add esp, 0xc
test eax, eax
je 0x4d8d41
push esi
push esi
push esi
push esi
push esi
call fcn.004cd70c
add esp, 0x14
push 0x12010
push 0x528058
push ebp
call fcn.004e5ef1
add esp, 0xc
jmp 0x4d8d89
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4d8d89
cmp ebp, 0xffffffff
je 0x4d8d89
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x524204]
push dword [esi]
call fcn.004cc800
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4e5ef1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004d7dc7
xor ebx, ebx
cmp dword [0x53b62c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4e5fc7
push 0x529888
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4e60a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x52987c
push edi
call esi
cmp eax, ebx
je 0x4e60a7
push eax
call fcn.004d7d59
mov dword [esp], 0x52986c
push edi
mov dword [0x53b62c], eax
call esi
push eax
call fcn.004d7d59
mov dword [esp], 0x529858
push edi
mov dword [0x53b630], eax
call esi
push eax
call fcn.004d7d59
mov dword [0x53b634], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004d154f
test eax, eax
pop ecx
pop ecx
je 0x4e5f95
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004cd70c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4e5fc7
push 0x52983c
push edi
call esi
push eax
call fcn.004d7d59
cmp eax, ebx
pop ecx
mov dword [0x53b63c], eax
je 0x4e5fc7
push 0x529824
push edi
call esi
push eax
call fcn.004d7d59
pop ecx
mov dword [0x53b638], eax
mov eax, dword [0x53b638]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4e604c
cmp dword [0x53b63c], ecx
je 0x4e604c
push eax
call fcn.004d7dd0
push dword [0x53b63c]
mov esi, eax
call fcn.004d7dd0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4e604c
cmp edi, ebx
je 0x4e604c
call esi
cmp eax, ebx
je 0x4e6019
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4e6019
test byte [ebp - 0x18], 1
jne 0x4e604c
lea eax, [ebp - 0x10]
push eax
call fcn.004d15fe
test eax, eax
pop ecx
je 0x4e6034
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004cd70c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4e6043
or dword [ebp + 0x10], 0x200000
jmp 0x4e6087
or dword [ebp + 0x10], 0x40000
jmp 0x4e6087
mov eax, dword [0x53b630]
cmp eax, dword [ebp - 8]
je 0x4e6087
push eax
call fcn.004d7dd0
cmp eax, ebx
pop ecx
je 0x4e6087
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4e6087
mov eax, dword [0x53b634]
cmp eax, dword [ebp - 8]
je 0x4e6087
push eax
call fcn.004d7dd0
cmp eax, ebx
pop ecx
je 0x4e6087
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x53b62c]
call fcn.004d7dd0
cmp eax, ebx
pop ecx
je 0x4e60a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4e60a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f2c7b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x4f2d00
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004cddc0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4f2cc3
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4f2ce5
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4f2d5b
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.004f29cb
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x4f2d47
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x4f2d5b
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4f2c84
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, edx
push esi
mov esi, dword [esp + 0x10]
cmp edx, 4
jl 0x401045
push edi
mov edi, edx
shr edi, 2
imul eax, edi, 0xfffffffc
add edx, eax
imul ecx, dword [esi], 0x5bd1e995
add esi, 4
imul ebx, ebx, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor ebx, ecx
sub edi, 1
jne 0x401021
pop edi
xor ecx, ecx
sub edx, 1
je 0x401066
sub edx, 1
je 0x40105d
sub edx, 1
jne 0x40106b
movzx ecx, byte [esi + 2]
shl ecx, 0x10
movzx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [esi]
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
imul edx, ebp, 0x5bd1e995
pop esi
pop ebp
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
imul eax, ebx, 0x5bd1e995
pop ebx
xor ecx, eax
mov eax, edx
shr eax, 0x18
xor eax, edx
imul ecx, ecx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor ecx, eax
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
ret
Function at 0x43a2b7
Capabilities:
Parse pe header

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

Function at 0x440614
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44e948
push 0x44e940
push str.FlsAlloc
push 0x1f
call fcn.004404d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x440648
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d120]
call esi
jmp 0x44064e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x440692
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44e958
push 0x44e950
push str.FlsGetValue
push 0x21
call fcn.004404d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4406c9
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4406d1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44e960
push 0x44e958
push str.FlsSetValue
push 0x22
call fcn.004404d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44070b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44d120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x443ae7
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 0x443b84
push ebx
push esi
call fcn.00443ab0
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.00443a44
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x443b31
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x443b83
push edi
push eax
call fcn.0043ffdc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x443b51
call fcn.0043ffa2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x443b82
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00443a44
add esp, 0x20
test eax, eax
jne 0x443b70
push edi
call fcn.0043ffa2
jmp 0x443b78
push ebx
call fcn.0043ffa2
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 0x44bd50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44bd7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44bd7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405680
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push 0xff
lea eax, [esp + 0x15]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x14], 0
mov byte [esp + 0x1c], 0
call fcn.0043abe0
push 0x104
lea ecx, [esp + 0x120]
push 0
push ecx
call fcn.0043abe0
add esp, 0x18
call fcn.00405a80
push 0x104
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x405702
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0043675a
add esp, 0x210
ret
push str.driversetchosts
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x49525c
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00437bbb
mov edi, dword [esp + 0x14]
add esp, 0xc
test edi, edi
je 0x4056e9
push 0x100
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0043abe0
push edi
lea ecx, [esp + 0x20]
push 0x100
push ecx
call fcn.00437c0e
add esp, 0x18
test eax, eax
je 0x4057b7
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + 0x10], 0x23
je 0x40579c
lea edx, [esp + 0x10]
push edx
call edi
cmp eax, 2
jb 0x40579c
cmp byte [esp + eax + 0xf], 0xa
lea eax, [esp + eax + 0xf]
jne 0x405786
mov byte [eax], 0
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.00401fa0
call fcn.00405ad0
mov ecx, dword [esp + 8]
push ecx
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.00437c0e
add esp, 0xc
test eax, eax
jne 0x405765
mov eax, dword [esp + 8]
push eax
call fcn.00437dcd
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043675a
add esp, 0x210
ret
Function at 0x405840
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
sub esp, 0x314
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x310], eax
push esi
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x118], 0
call fcn.0043abe0
push 0x103
lea ecx, [esp + 0x221]
push 0
push ecx
mov byte [esp + 0x228], 0
call fcn.0043abe0
push 0x104
lea edx, [esp + 0x24]
push 0
push edx
call fcn.0043abe0
add esp, 0x24
call fcn.00405a80
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4058d2
pop esi
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.0043675a
add esp, 0x314
ret
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.driversetchosts
lea eax, [esp + 0xc]
push eax
call esi
push str.driversetchosts_bak
lea ecx, [esp + 0x110]
push ecx
call esi
lea edx, [esp + 8]
push 0x495278
push edx
call fcn.00437ba4
mov esi, eax
add esp, 8
test esi, esi
jne 0x405949
lea eax, [esp + 8]
push eax
push str.Open_source_file:__s_failed_n
call fcn.00437e49
add esp, 8
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.0043675a
add esp, 0x314
ret
lea ecx, [esp + 0x10c]
push 0x49529c
push ecx
call fcn.00437ba4
add esp, 8
mov dword [esp + 4], eax
test eax, eax
jne 0x40599a
lea edx, [esp + 0x10c]
push edx
push str.Create_source_file:__s_failed_n
call fcn.00437e49
push esi
call fcn.00437dcd
add esp, 0xc
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.0043675a
add esp, 0x314
ret
push ebp
push esi
xor ebp, ebp
call fcn.00437f0e
add esp, 4
test eax, eax
jne 0x405a11
lea ebx, [ebx]
push 0x104
lea eax, [esp + 0x218]
push 0
push eax
call fcn.0043abe0
push esi
lea ecx, [esp + 0x224]
push 0x104
push ecx
call fcn.00437c0e
lea edx, [esp + 0x22c]
push edi
push edx
call fcn.00437350
add esp, 0x20
test eax, eax
jne 0x405a03
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x218]
push ecx
call fcn.00437f76
add esp, 8
jmp 0x405a04
inc ebp
push esi
call fcn.00437f0e
add esp, 4
test eax, eax
je 0x4059b0
push esi
call fcn.00437dcd
mov edx, dword [esp + 0xc]
push edx
call fcn.00437dcd
add esp, 8
test ebp, ebp
pop ebp
jle 0x405a4b
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x405a59
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x314]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043675a
add esp, 0x314
ret
Function at 0x406060
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4840cb
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ebp, 0xf
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea eax, [esp + 0x10]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
mov dword [esp + 0x158], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406115
push 6
push str.unknow
lea ecx, [esp + 0x24]
call fcn.00404f50
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x24]
push ecx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00405100
cmp dword [esp + 0x34], 0x10
jb 0x406208
mov edx, dword [esp + 0x20]
push edx
jmp 0x406200
push 0x103
lea eax, [esp + 0x3d]
push ebx
push eax
mov byte [esp + 0x44], bl
call fcn.0043abe0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.svcVersion
push ecx
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x2c], 1
call edi
test eax, eax
je 0x4061a2
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.Version
push edx
call edi
test eax, eax
je 0x4061a2
push 6
push str.unknow
lea ecx, [esp + 0x24]
call fcn.00404f50
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4060e8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
push 0x495408
lea ecx, [esp + 0x24]
call fcn.00404f50
lea eax, [esp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4061c4
sub eax, edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x24]
call fcn.00404bb0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x24]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00405100
cmp dword [esp + 0x34], 0x10
jb 0x406208
mov eax, dword [esp + 0x20]
push eax
call fcn.00418159
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0043675a
add esp, 0x13c
ret