joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101025f6
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10102572
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10102765
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10102765
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1010271a
jg 0x10102652
test eax, eax
je 0x10102710
push 1
push 0x1000
call fcn.100f00df
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10102675
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10102707
push 0x8000
push ebx
call fcn.101024a3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1010269e
jg 0x10102699
cmp ecx, 0x1000
jb 0x1010269e
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100f25ee
add esp, 0x10
cmp eax, 0xffffffff
je 0x101026e3
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10102699
jl 0x101026ca
test ecx, ecx
jne 0x1010268b
push dword [ebp - 0xc]
push ebx
call fcn.101024a3
push esi
call fcn.100f013c
add esp, 0xc
xor ebx, ebx
jmp 0x10102773
cmp byte [edi + 0x24], 0
je 0x101026fa
cmp dword [edi + 0x20], 5
jne 0x101026fa
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10102705
mov ebx, dword [edi + 0x18]
jmp 0x10102707
xor ebx, ebx
push esi
call fcn.100f013c
pop ecx
jmp 0x10102773
test ecx, ecx
jg 0x101026dc
jl 0x1010271a
test eax, eax
jae 0x101026dc
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100f352a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1010273a
cmp byte [edi + 0x1c], 0
je 0x101026dc
jmp 0x1010276b
push ebx
call fcn.100fe8f0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x101026dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10102773
cmp byte [edi + 0x1c], 0
je 0x10102770
mov ebx, dword [edi + 0x18]
jmp 0x10102773
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100f352a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10104800
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1010482d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1010482d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401038
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40106a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401066
cmp esi, eax
jae 0x40106a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401058
cmp esi, eax
jb 0x401070
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x401080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x425760
call fcn.0040827c
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x401134
test esi, esi
jne 0x401134
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x401118
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401112
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401112
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x401101
cmp esi, eax
jae 0x401105
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f3
cmp esi, eax
jb 0x401109
xor eax, eax
jmp 0x401112
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40113d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x425760
call fcn.0040827c
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x4010a5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4015e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x42465c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401635
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x401647
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004088c3
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, edi
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00408aaf
add esp, 8
test eax, eax
je 0x401694
lea edx, [ebp - 0x230]
push edx
push esi
call ebx
test eax, eax
jne 0x401650
mov edi, dword [ebp - 0x234]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop ebx
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004088c3
mov esp, ebp
pop ebp
ret
mov edi, 1
jmp 0x40167a

Function at 0x402030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42465c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
mov dword [ebp - 0x214], 0
push ecx
mov dword [ebp - 0x214], 1
mov word [ebp - 0x210], ax
call fcn.0040b2c0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0x41fb5c
push str.softwareooshipin
push 0x80000002
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push esi
lea ecx, [ebp - 0x210]
call fcn.004016a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004088c3
mov esp, ebp
pop ebp
ret

Function at 0x4020d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42465c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
mov dword [ebp - 0x214], 0
push ecx
mov dword [ebp - 0x214], 1
mov word [ebp - 0x210], ax
call fcn.0040b2c0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
push ecx
push str.guid
push str.softwareooshipin
push 0x80000002
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push esi
lea ecx, [ebp - 0x210]
call fcn.004016a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004088c3
mov esp, ebp
pop ebp
ret
Function at 0x402170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42465c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
mov dword [ebp - 0x214], 0
push ecx
mov dword [ebp - 0x214], 1
mov word [ebp - 0x210], ax
call fcn.0040b2c0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0x41fb94
push str.softwareooshipin
push 0x80000002
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push esi
lea ecx, [ebp - 0x210]
call fcn.004016a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004088c3
mov esp, ebp
pop ebp
ret
Function at 0x403ea0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4220d8
push 0x4102b0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x42465c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], esi
xor edi, edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 4], esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x5c], ebx
cmp ebx, esi
jne 0x403f16
push str.ooservice:Fail_to_open_sc_mgr
call fcn.00402b30
mov esi, eax
call fcn.00407660
mov dword [ebp - 0x58], 0x64
jmp 0x403fe4
push 0x10020
push 0x420230
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x60], edi
cmp edi, esi
jne 0x403f4d
push str.ooservice:Fail_to_open_ooservice
call fcn.00402b30
mov esi, eax
call fcn.00407660
mov dword [ebp - 0x58], 0x65
jmp 0x403fe4
lea eax, [ebp - 0x54]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x403f85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x403f85
push str.ooservice:Fail_to_control_ooservice
call fcn.00402b30
mov esi, eax
call fcn.00407660
mov dword [ebp - 0x58], 0x66
jmp 0x403fe4
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x38]
push ecx
push edi
call esi
test eax, eax
je 0x403fab
cmp dword [ebp - 0x34], 3
jne 0x403fab
push 0x1f4
call ebx
jmp 0x403f91
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x403fd0
push str.ooservice:Fail_to_delete_ooservice
call fcn.00402b30
mov esi, eax
call fcn.00407660
mov dword [ebp - 0x58], 0x67
jmp 0x403fe1
push str.ooservice:Succeed_to_delete_ooservice
call fcn.00402b30
mov esi, eax
call fcn.00407660
mov ebx, dword [ebp - 0x5c]
add esp, 4
mov dword [ebp - 4], 0xfffffffe
call fcn.00404018
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004088c3
mov esp, ebp
pop ebp
ret
Function at 0x404e30
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a408
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x42465c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [section..data]
mov esi, dword [eax]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx - 0xc]
lea eax, [ebx + 0xc]
test ecx, ecx
jne 0x404eff
lea edx, [ebp - 0x18]
lea edi, [ebx + 8]
push edx
call fcn.00405330
add ebx, 4
push ebx
lea ecx, [ebp - 0x14]
push ecx
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.00401990
add esp, 0xc
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401770
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404eda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x404f07
lea edi, [ebp - 0x10]
call fcn.00401770
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404f30
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
push edi
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405790
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a670
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42465c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jbe 0x4058fa
push eax
call fcn.00408524
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x10]
mov eax, dword [edi]
push esi
push edx
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4058ea
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
mov dword [ebp - 0x14], ebx
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 1
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40588a
mov ecx, 0x41fcac
mov edx, dword [ebp + 8]
push edx
call fcn.004016a0
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40586c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.004088b8
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
push edx
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04x_s
lea edi, [ebp - 0x18]
call fcn.00401f50
mov edi, dword [ebp - 0x18]
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push edi
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4058cb
mov ecx, dword [ebp - 0x1c]
jmp 0x405844
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004088b8
add esp, 4
mov esi, dword [ebp + 8]
push esi
mov ecx, 0x41fcac
call fcn.004016a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4064c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
je 0x4064e6
cmp ax, 6
je 0x4064e6
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4064f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42465c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0040b2c0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406559
cmp dword [ebp - 0x11c], 6
jne 0x406559
cmp dword [ebp - 0x118], 2
jne 0x406559
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004088c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004088c3
mov esp, ebp
pop ebp
ret

Function at 0x406b60
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, eax
mov edx, edi
mov dword [ebp - 4], 0
call fcn.00406120
test al, al
je 0x406bc1
push 0
lea eax, [ebp - 4]
push eax
mov dword [edi + 0x5c], 0x3a98
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov ecx, dword [ebp - 4]
and cl, 4
sub cl, 4
movzx eax, cl
push 0
neg eax
push 0
sbb eax, eax
push 0
and eax, 4
push eax
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.2__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [edi + 0x54], eax
test eax, eax
jne 0x406bc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x68], eax
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
call fcn.00406be0
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x406c80
Capabilities:
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a8c1
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x42465c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, section..data
mov dword [ebp - 0x41c], ebx
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x414], edi
push 0x3ff
lea eax, [ebp - 0x40f]
mov dword [ebp - 4], ebx
push ebx
push eax
mov dword [ebp - 0x420], ebx
mov byte [ebp - 0x410], bl
call fcn.0040b2c0
add esp, 0xc
push ebx
lea ecx, [ebp - 0x420]
push ecx
push 0x3ff
lea edx, [ebp - 0x410]
push edx
push 0x10000001
call dword [sym.imp.urlmon.dll_UrlMkGetSessionOption]
cmp eax, 0x8007000e
je 0x406d1f
cmp eax, ebx
jne 0x406e01
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x418], edi
lea eax, [ebp - 0x410]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x406d74
mov ecx, eax
movzx eax, cx
push eax
mov dword [ebp - 0x41c], eax
call fcn.00401080
add esp, 4
cmp eax, ebx
je 0x406d8b
push eax
mov eax, dword [ebp - 0x41c]
lea edi, [ebp - 0x418]
call fcn.00401aa0
jmp 0x406d85
lea ebx, [ebp - 0x410]
lea eax, [ebp - 0x418]
call fcn.00401820
mov edi, dword [ebp - 0x418]
push str.User_Agent:
lea edx, [ebp - 0x414]
push edx
mov ebx, 0xb
mov byte [ebp - 4], 2
call fcn.00401cd0
mov eax, dword [edi - 0xc]
push eax
push edi
lea ebx, [ebp - 0x414]
call fcn.00401e60
push 0xa
push str._Funshion_
call fcn.00401e60
push 7
push str.1.0.0.1
call fcn.00401e60
push 2
push 0x420d04
call fcn.00401e60
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406df9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x414]
xor ebx, ebx
xor ecx, ecx
mov eax, edi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406e15
sub eax, edx
sar eax, 1
push eax
mov eax, edi
mov ecx, esi
call fcn.004026b0
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x406e51
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004088c3
mov esp, ebp
pop ebp
ret
Function at 0x407150
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a592
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x42465c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11c
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x130], 0
call fcn.0040b2c0
add esp, 0xc
push edi
mov ecx, str.error
call fcn.004016a0
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0
mov ebx, 1
push ecx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4072a4
mov eax, dword [ebp - 0x128]
sub eax, 5
je 0x407264
sub eax, ebx
jne case.default.0x40720a
mov eax, dword [ebp - 0x124]
cmp eax, 3
ja case.default.0x40720a
jmp dword [eax*4 + 0x4072c4]
cmp byte [ebp - 0x12], bl
jne case.default.0x40720a
mov edx, str.Vista
jmp 0x40729f
cmp byte [ebp - 0x12], bl
jne case.default.0x40720a
call fcn.004064c0
mov edx, str.win7_64
test eax, eax
jne 0x407239
mov edx, str.win7_32
call fcn.004017e0
call fcn.00401770
jmp 0x4072a4
cmp byte [ebp - 0x12], bl
jne 0x407251
mov edx, str.Win8
jmp 0x40729f
mov edx, str.Other
jmp 0x40729f
cmp byte [ebp - 0x12], bl
jne 0x407251
mov edx, str.Win8.1
jmp 0x40729f
mov eax, dword [ebp - 0x124]
sub eax, 0
je case.default.0x40720a
sub eax, ebx
je 0x407293
sub eax, ebx
jne 0x4072a4
cmp byte [ebp - 0x12], bl
jne case.default.0x40720a
lea edx, [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x158], 9
jne case.default.0x40720a
mov edx, 0x41fa58
jmp 0x40729f
mov edx, str.other
call fcn.004017e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004088c3
mov esp, ebp
pop ebp
ret
Function at 0x408120
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a542
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x42465c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov edi, dword [edx]
push 0x258
mov dword [ebp - 0x270], eax
push eax
lea eax, [ebp - 0x26a]
xor edx, edx
push eax
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x274], ecx
mov word [ebp - 0x26c], dx
call fcn.0040b2c0
mov ecx, dword [ebp - 0x274]
mov eax, dword [ecx]
mov ebx, dword [ebx]
add esp, 0xc
push edi
push 0x12c
lea edx, [ebp - 0x26c]
push edx
push 0x41fcac
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea ecx, [ebp - 0x26c]
call fcn.004016a0
mov dword [ebp - 4], 0
mov eax, esi
mov dword [ebp - 0x270], 1
call fcn.004066a0
mov ebx, eax
call fcn.00406600
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004088c3
mov esp, ebp
pop ebp
ret 4

Function at 0x4088c3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42465c]
jne 0x4088cd
repz ret
jmp fcn.0040d1f5