joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022be
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4022fd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4022fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4022fd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4022fd
cmp dword [ecx + 0x74], 0xe
jbe 0x4022fd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4073a0]
test esi, esi
jle 0x401dc0
mov edi, dword [0x4073a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401ce4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401d65
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401cd0
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401de7
mov eax, dword [0x4073a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x4073a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401dc7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401d5e
sub eax, 4
and eax, 0xfffffffb
jne 0x401d70
add dword [0x4073a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4073a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
xor esi, esi
jmp 0x401cee
mov eax, dword [0x4073a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x402220
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4073b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4073b0]
sub esp, 4
test ebx, ebx
je 0x402275
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40226e
test esi, esi
je 0x40226e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402250
mov dword [esp], 0x4073b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402e08
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x40132c
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x278
mov eax, dword [0x4450e4]
xor eax, esp
mov dword [esp + 0x274], eax
push esi
push edi
push str.HaoKanWallPaper
push str.HaoKanMini
lea ecx, [esp + 0x1c]
call fcn.00403662
lea eax, [esp + 8]
mov dword [esp + 0x14], vtable.CCfgPopMgr.0
push eax
xorps xmm0, xmm0
lea ecx, [esp + 0x18]
mov edi, str.crashesTime
movlpd qword [esp + 0xc], xmm0
push edi
call fcn.0040234e
test eax, eax
jne 0x40138d
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00401095
pop ecx
xor esi, esi
pop ecx
test eax, eax
jne 0x4013d5
lea eax, [esp + 8]
push eax
push 0x440e9c
lea ecx, [esp + 0x1c]
call fcn.004023bd
neg eax
sbb eax, eax
and eax, dword [esp + 8]
cmp eax, 2
jb 0x4013ff
push esi
call fcn.0041caed
pop ecx
push edx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.0040238d
push 1
lea ecx, [esp + 0x18]
call fcn.00401020
lea ecx, [esp + 0x14]
call fcn.004023fc
mov ecx, dword [esp + 0x27c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00415247
mov esp, ebp
pop ebp
ret
xor esi, esi
lea ecx, [esp + 0x14]
push esi
call fcn.00401020
push 0x3c
pop edi
push edi
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00417900
add esp, 0xc
lea eax, [esp + 0x68]
push 0x20a
push esi
push eax
call fcn.00417900
add esp, 0xc
lea eax, [esp + 0x68]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x68]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0x40
mov dword [esp + 0x38], str.open
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x4c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
inc esi
jmp 0x4013e0

Function at 0x401918
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x436dbb
call fcn.00415c53
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.00402f7e
push eax
lea ecx, [ebp - 0x10]
call fcn.00402cd2
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.0040313c
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00402650
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x401979
push 0x440fac
mov ecx, edi
call fcn.00402300
lea ecx, [esi - 0x10]
jmp 0x4019c9
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.00401d15
cmp ax, 0x5c
je 0x40199f
mov esi, 0x4410cc
push esi
call fcn.004021c9
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00402c46
mov esi, str.HaoKanWallPaper_
push esi
call fcn.004021c9
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00402c46
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.0040329a
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.0040334e
mov eax, edi
call fcn.00415c2d
ret
Function at 0x401fd7
Capabilities:
Accept command line arguments

Disassembly:
push 0x14
mov eax, 0x436ee4
call fcn.00415c53
push 0x66
pop edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402300
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str._startby_d
call fcn.00402300
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401f6a
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x402048
cmp dword [eax - 0xc], 0
jl 0x402048
push ecx
push eax
call fcn.004169ab
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x10]
test ecx, ecx
jne 0x40204d
or ecx, 0xffffffff
jmp 0x402051
sub ecx, eax
sar ecx, 1
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401e62
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x10]
call fcn.00402b34
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040334e
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040334e
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00401fb2
mov esi, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
test eax, eax
cmove esi, edi
add ecx, 0xfffffff0
mov dword [ebp - 0x18], esi
call fcn.0040334e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040334e
mov eax, esi
call fcn.00415c2d
ret

Function at 0x402571
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4450e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
push edi
test esi, esi
je 0x40263d
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.00417900
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40263d
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x4025fd
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00419836
pop ecx
pop ecx
test eax, eax
je 0x402603
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4025dc
jmp 0x402632
push dword [ebp - 0x228]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x234]
mov esi, eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40263f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415247
leave
ret 8
Function at 0x4026a2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4026b4
push 0xd
pop eax
jmp 0x4026e6
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4026bd
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x4048c2
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x4372e5
call fcn.00415c53
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00402300
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404958
push eax
jmp 0x404947
call fcn.00402f7e
push eax
lea ecx, [ebp - 0x14]
call fcn.00402cd2
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f6a
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402b34
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040334e
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40493a
push esi
call fcn.004228c7
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.0040334e
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004018e4
mov edi, eax
cmp edi, 0xffffffff
jne 0x4048ed
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040334e
call fcn.00415c2d
ret
Function at 0x404fa4
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x4450e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0xc]
push str.RtlGetVersion
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x10]
push str.ntdll.dll
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x128], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 9
mov dword [ebp - 0x124], eax
lea edi, [ebp - 0x158]
pop eax
mov ecx, eax
xor ebx, ebx
xor eax, eax
push 0x118
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00417900
mov eax, dword [ebp - 0x124]
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test eax, eax
je 0x405042
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
jns 0x405057
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4051e4
test esi, esi
je 0x40506c
mov edi, dword [ebp - 0x128]
lea esi, [ebp - 0x120]
push 0x47
pop ecx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx esi, word [ebp - 0xc]
xor ecx, ecx
cmp dword [ebp - 0x140], 0x21d8
push 2
sete cl
pop edx
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x110], edx
jne 0x40518a
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jne 0x4050c9
cmp dword [ebp - 0x118], ebx
jne 0x4051bd
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0x11
jmp 0x4051bd
cmp eax, 6
jne 0x40512f
mov eax, dword [ebp - 0x118]
cmp eax, 3
jne 0x4050ea
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xf
jmp 0x4051bd
cmp eax, edx
jne 0x4050ff
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xd
jmp 0x4051bd
cmp eax, 1
jne 0x405114
xor ebx, ebx
cmp byte [ebp - 6], al
setne bl
add ebx, 0xb
jmp 0x4051bd
test eax, eax
jne 0x4051bd
xor ebx, ebx
cmp byte [ebp - 6], 1
push 9
setne bl
pop eax
add ebx, eax
jmp 0x4051bd
cmp eax, 5
jne 0x405180
mov eax, dword [ebp - 0x118]
cmp eax, edx
jne 0x40516f
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40514e
push 8
jmp 0x405166
cmp byte [ebp - 6], 1
jne 0x405164
push 9
pop eax
cmp word [ebp - 0x158], ax
jne 0x405164
push 6
jmp 0x405166
push 7
mov ecx, dword [ebp - 0x124]
pop ebx
jmp 0x4051bd
cmp eax, 1
jne 0x405178
push 6
jmp 0x405187
test eax, eax
jne 0x4051bd
push 5
jmp 0x405187
cmp eax, 4
ja 0x4051bd
push 4
pop ebx
jmp 0x4051bd
cmp dword [ebp - 0x110], 1
jne 0x4051bd
cmp dword [ebp - 0x11c], 4
jne 0x4051bd
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x4051ab
xor ebx, ebx
inc ebx
jmp 0x4051bd
cmp eax, 0xa
jne 0x4051b4
mov ebx, edx
jmp 0x4051bd
push 3
cmp eax, 0x5a
pop edx
cmove ebx, edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x4051c9
mov dword [eax], ebx
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x4051d5
mov dword [eax], esi
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4051e1
mov dword [eax], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415247
leave
ret
Function at 0x4052ce
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x4374ac
call fcn.00415c53
call fcn.00402f7e
push eax
lea ecx, [ebp - 0x10]
call fcn.00402cd2
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.0040313c
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00402650
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x405333
mov ecx, dword [ebp + 8]
push 0x440fac
call fcn.00402300
lea ecx, [esi - 0x10]
call fcn.0040334e
mov eax, dword [ebp + 8]
jmp 0x40538c
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.00401d15
cmp ax, 0x5c
je 0x405352
push 1
push 0x4410cc
lea ecx, [ebp - 0x10]
call fcn.00402c46
push 0x10
push str.HaoKanWallPaper_
lea ecx, [ebp - 0x10]
call fcn.00402c46
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x405371
push esi
call fcn.004048c2
pop ecx
lea edi, [esi - 0x10]
push edi
call fcn.0040329a
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, edi
mov dword [esi], eax
call fcn.0040334e
mov eax, esi
call fcn.00415c2d
ret

Function at 0x405539
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x4374e0
call fcn.00415c53
call fcn.00402f7e
push eax
lea ecx, [ebp - 0x10]
call fcn.00402cd2
xor ebx, ebx
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00404ae7
pop ecx
pop ecx
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
push dword [eax - 0xc]
push eax
call fcn.00402c46
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.0040334e
inc ebx
lea ecx, [ebp - 0x10]
push ebx
push str.ApTest
call fcn.00402c46
push ebx
mov esi, 0x440f70
lea ecx, [ebp - 0x10]
push esi
call fcn.00402c46
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.00402c46
push ebx
push 0x440f74
lea ecx, [ebp - 0x10]
call fcn.00402c46
push ebx
push 0x440f78
lea ecx, [ebp - 0x10]
call fcn.00402c46
push ebx
push 0x440f7c
lea ecx, [ebp - 0x10]
call fcn.00402c46
push ebx
push 0x440f80
lea ecx, [ebp - 0x10]
call fcn.00402c46
push 2
push 0x440f84
lea ecx, [ebp - 0x10]
call fcn.00402c46
push 2
push 0x440f8c
lea ecx, [ebp - 0x10]
call fcn.00402c46
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.0040334e
mov eax, edi
call fcn.00415c2d
ret
Function at 0x4081f0
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.00415dc0
mov eax, dword [0x4450e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.00417900
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00417900
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.00408555
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40827f
mov al, 1
jmp 0x408388
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.00417900
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.00417900
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.00417900
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x408301
mov bl, 2
jmp 0x40837f
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00408397
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00408397
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408342
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.00407dd5
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408365
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.00407dd5
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415247
leave
ret
Function at 0x40858b
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4450e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x194]
push eax
xor edi, edi
push 0x101
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push edi
xor ebx, ebx
mov word [esi + 8], ax
inc ebx
push ebx
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x408608
push ebx
push dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], ebx
call fcn.004197a8
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x408608
mov dword [esi + 0x10], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415247
leave
ret

Function at 0x408709
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4450e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x64
mov dword [ebp - 0x7c], eax
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.00417900
add esp, 0xc
test esi, esi
je 0x4087a2
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4087a2
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
jmp 0x408784
movsx eax, word [esi + 0xa]
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.00416e00
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x68]
push 0x4387e0
push eax
call fcn.00408570
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
mov ecx, dword [eax + edi*4]
test ecx, ecx
jne 0x408750
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push dword [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov ecx, ebx
call fcn.004087b5
jmp 0x4087a4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415247
leave
ret 0xc
Function at 0x4087b5
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4450e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x40896c
push 2
pop eax
mov word [ebp - 0x114], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x144], 0x10
call fcn.00408685
mov cx, word [0x446658]
inc cx
mov dword [ebp - 0x14c], eax
push 0x2c
mov word [0x446658], cx
push 0
push dword [edi + 0xc]
movzx eax, cx
mov dword [ebp - 0x148], eax
call fcn.00417900
mov esi, dword [edi + 0xc]
add esp, 0xc
mov ecx, edi
mov word [esi], 8
mov ax, word [edi + 8]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x148]
mov word [esi + 6], ax
mov eax, dword [ebp - 0x14c]
push 0x2c
mov dword [esi + 8], eax
push dword [edi + 0xc]
call fcn.00408637
mov word [esi + 2], ax
lea eax, [ebp - 0x114]
push dword [ebp - 0x144]
push eax
push 0
push 0x2c
push dword [edi + 0xc]
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x40896c
test ebx, ebx
jne 0x40888e
xor eax, eax
inc eax
jmp 0x40896e
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00417900
add esp, 0xc
lea esi, [edi + 4]
push 0
push 0x64
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x408956
lea eax, [ebp - 0x140]
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x140], 1
je 0x408956
mov ecx, edi
call fcn.00408685
mov esi, eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp edx, 0xffffffff
je 0x408953
mov cl, byte [ebp - 0x104]
and cl, 0xf
movzx ecx, cl
shl cx, 2
movzx eax, cx
movzx ecx, ax
mov dword [ebp - 0x150], eax
mov ax, word [ebp + ecx - 0x100]
cmp ax, word [edi + 8]
jne 0x408953
cmp byte [ebp + ecx - 0x104], 0
jne 0x408953
mov eax, dword [ebp - 0x148]
cmp word [ebp + ecx - 0xfe], ax
je 0x40897f
lea esi, [edi + 4]
mov ecx, edi
call fcn.00408685
sub eax, dword [ebp - 0x14c]
cmp eax, dword [ebp + 0x10]
jb 0x4088a7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415247
leave
ret 0xc
sub esi, dword [ebp + ecx - 0xfc]
mov ecx, dword [ebp - 0x150]
movzx ecx, cx
sub edx, ecx
mov word [ebx], ax
movzx ecx, byte [ebp - 0xfc]
sub edx, 0xc
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
jmp 0x408886