joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40176e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x47f034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x400
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.0041d840
add esp, 0xc
cmp dword [esi + 0xc], ebx
je 0x4018dd
mov dword [esi + 0xc], ebx
cmp dword [esi + 8], ebx
jne 0x4018dd
push edi
push str..GlobalPipe_s
lea eax, [ebp - 0x404]
push 0x3ff
push eax
call fcn.00401249
add esp, 0x10
lea eax, [ebp - 0x404]
push ebx
push 0x40000000
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
test eax, eax
je 0x4018f1
cmp eax, 0xffffffff
je 0x4018f1
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebx
push ebx
call edi
mov dword [esi + 0xc4], eax
test eax, eax
jne 0x401823
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
xor eax, eax
jmp 0x4018e0
push ebx
push ebx
push ebx
push ebx
call edi
mov dword [esi + 0xec], eax
test eax, eax
je 0x401815
push ebx
push ebx
push ebx
push ebx
call edi
mov dword [esi + 0x114], eax
test eax, eax
je 0x401815
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push esi
push 0x402327
push ebx
push ebx
call edi
mov dword [esi + 0xc0], eax
test eax, eax
je 0x401815
push ebx
push ebx
push esi
push 0x4023f6
push ebx
push ebx
call edi
mov dword [esi + 0xe8], eax
test eax, eax
je 0x401815
push ebx
push ebx
push esi
push 0x4024c5
push ebx
push ebx
call edi
mov dword [esi + 0x110], eax
test eax, eax
je 0x401815
push ebx
push ebx
push esi
push 0x4021e7
push ebx
push ebx
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x401815
push ebx
push ebx
lea ecx, [esi + 0x10]
mov dword [ebp - 0x408], ebx
call fcn.0040349a
push eax
push str.MethodSupport
lea ecx, [ebp - 0x408]
call fcn.00402fcc
lea eax, [ebp - 0x408]
mov ecx, esi
push eax
call fcn.00401b35
push dword [ebp - 0x408]
call fcn.0045eef0
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041afcb
leave
ret 4
mov dword [esi + 8], ebx
jmp 0x401815
Function at 0x406390
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041aff0
mov eax, dword [0x47f034]
xor eax, ebp
mov dword [ebp - 4], eax
push str.c:xstest.txt
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406414
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.0041d840
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0xfff
push eax
call fcn.00401215
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00439924
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
mov byte [ebp + eax - 0x1004], 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041afcb
mov esp, ebp
pop ebp
ret

Function at 0x406430
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0041aff0
mov eax, dword [0x47f034]
xor eax, ebp
mov dword [ebp - 4], eax
push str.c:xstest.txt
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4064a4
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.0041d840
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push 0xfff
push eax
call fcn.00401215
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00439990
add esp, 0x1c
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041afcb
mov esp, ebp
pop ebp
ret
Function at 0x4078d0
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1218
call fcn.0041aff0
mov eax, dword [0x47f034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1000
mov dword [ebp - 0x1218], eax
lea eax, [ebp - 0x1210]
push 0
push eax
call fcn.0041d840
add esp, 0xc
mov dword [ebp - 0x1214], 0
xor eax, eax
mov word [ebp - 8], ax
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1214]
push eax
push 0x1000
lea eax, [ebp - 0x1210]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x407a0e
push ebx
mov ebx, dword [ebp - 0x1214]
push esi
shr ebx, 2
xor esi, esi
test ebx, ebx
je 0x4079fc
push edi
nop dword [eax]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0041d840
add esp, 0xc
push dword [ebp + esi*4 - 0x1210]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x210]
push 0x104
push eax
push edi
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test edi, edi
je 0x4079a9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
push eax
call fcn.0043ab99
push dword [ebp - 0x1218]
lea eax, [ebp - 0x210]
push eax
call fcn.0041dfe5
add esp, 0xc
test eax, eax
jne 0x4079e4
inc esi
cmp esi, ebx
jb 0x407960
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041afcb
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + esi*4 - 0x1210]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041afcb
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041afcb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0041afcb
mov esp, ebp
pop ebp
ret

Function at 0x407a20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x47f034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x22c]
push 0x228
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.0041d840
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x407a7a
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041afcb
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x230]
xor ebx, ebx
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x407abd
nop
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004069b0
add esp, 8
test al, al
jne 0x407ab7
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407a90
jmp 0x407abd
mov ebx, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0041afcb
mov esp, ebp
pop ebp
ret
Function at 0x408840
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x47f034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
push str.RtlGetVersion
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0xc]
push str.ntdll.dll
mov dword [ebp - 0x12c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x118
mov esi, eax
mov dword [ebp - 0x130], 0
xorps xmm0, xmm0
lea eax, [ebp - 0x11c]
push 0
push eax
movups xmmword [ebp - 0x150], xmm0
movups xmmword [ebp - 0x140], xmm0
call fcn.0041d840
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test esi, esi
je 0x4088d3
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jns 0x4088f5
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4088f5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041afcb
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x408906
mov ecx, 0x47
lea esi, [ebp - 0x120]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 0x110]
xor edx, edx
cmp dword [ebp - 0x138], 0x21d8
movzx esi, word [ebp - 0xc]
sete dl
xor eax, eax
mov dword [ebp - 0x124], edx
cmp ecx, 2
jne 0x408a3a
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xa
jne 0x408963
cmp dword [ebp - 0x118], eax
jne 0x408a6c
cmp byte [ebp - 6], 1
setne al
add eax, 0x11
jmp 0x408a6c
cmp ecx, 6
jne 0x4089c8
mov ecx, dword [ebp - 0x118]
cmp ecx, 3
jne 0x408984
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0xf
jmp 0x408a6c
cmp ecx, 2
jne 0x40899a
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0xd
jmp 0x408a6c
cmp ecx, 1
jne 0x4089af
xor eax, eax
cmp byte [ebp - 6], cl
setne al
add eax, 0xb
jmp 0x408a6c
test ecx, ecx
jne 0x408a6c
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 9
jmp 0x408a6c
cmp ecx, 5
jne 0x408a2e
mov ecx, dword [ebp - 0x118]
cmp ecx, 2
jne 0x408a1b
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4089f1
mov edx, dword [ebp - 0x124]
mov eax, 8
jmp 0x408a6c
cmp byte [ebp - 6], 1
jne 0x408a0e
cmp word [ebp - 0x150], 9
jne 0x408a0e
mov edx, dword [ebp - 0x124]
mov eax, 6
jmp 0x408a6c
mov edx, dword [ebp - 0x124]
mov eax, 7
jmp 0x408a6c
cmp ecx, 1
jne 0x408a25
lea eax, [ecx + 5]
jmp 0x408a6c
test ecx, ecx
jne 0x408a6c
lea eax, [ecx + 5]
jmp 0x408a6c
cmp ecx, 4
ja 0x408a6c
mov eax, 4
jmp 0x408a6c
cmp ecx, 1
jne 0x408a6c
cmp dword [ebp - 0x11c], 4
jne 0x408a6c
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x408a57
lea eax, [ecx + 1]
jmp 0x408a6c
cmp ecx, 0xa
jne 0x408a61
lea eax, [ecx - 8]
jmp 0x408a6c
cmp ecx, 0x5a
mov edi, 3
cmove eax, edi
mov ecx, dword [ebp - 0x128]
test ecx, ecx
je 0x408a78
mov dword [ecx], eax
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x408a84
mov dword [eax], esi
test ebx, ebx
je 0x408a8a
mov dword [ebx], edx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041afcb
mov esp, ebp
pop ebp
ret
Function at 0x40a2d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a329
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a329
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40a31a
cmp esi, edx
jae 0x40a329
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40a308
cmp esi, edx
jae 0x40a329
cmp word [esi], 0
je 0x40a329
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40ae7a
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x468c92
call fcn.0041ba5b
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00407d30
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40af10
push eax
jmp 0x40aeff
call fcn.00408730
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a90f
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040ba19
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040aab2
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040c5cf
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40aef2
push esi
call fcn.0043c046
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.0040c5cf
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0040b395
mov edi, eax
cmp edi, 0xffffffff
jne 0x40aea5
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040c5cf
call fcn.0041ba24
ret
Function at 0x40b254
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x468d61
call fcn.0041ba5b
mov edi, ecx
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 8]
call dword [eax + 8]
test eax, eax
je 0x40b358
call fcn.00408730
push eax
lea ecx, [ebp + 0x10]
call fcn.0040a90f
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebp - 4], 1
call fcn.0040c73b
pop ecx
push eax
push ebx
lea ecx, [ebp + 0x10]
call fcn.0040a1e0
push 0x5c
push dword [ebp + 0x10]
call fcn.0041df43
pop ecx
pop ecx
test eax, eax
jne 0x40b2bb
or eax, 0xffffffff
jmp 0x40b2c0
sub eax, dword [ebp + 0x10]
sar eax, 1
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040ba19
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0040aab2
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.0040c5cf
mov esi, dword [ebp + 0x10]
push esi
call fcn.0040ae7a
pop ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b306
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x14]
push eax
push eax
push 0x80
push 2
push eax
push 0xc0000000
push ebx
call fcn.0040adc4
test eax, eax
js 0x40b33d
push 0
push dword [edi + 8]
lea ecx, [ebp - 0x14]
push dword [edi + 4]
call fcn.0040c766
test eax, eax
js 0x40b33d
xor ebx, ebx
inc ebx
jmp 0x40b33f
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x40b34e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.0040c5cf
mov eax, ebx
call fcn.0041ba24
ret 0xc

Function at 0x40dca2
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x469426
call fcn.0041ba5b
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00407d30
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dd38
push eax
jmp 0x40dd27
call fcn.00408730
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a90f
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040ba19
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040aab2
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040c5cf
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dd1a
push esi
call fcn.0043c046
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.0040c5cf
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0040b395
mov edi, eax
cmp edi, 0xffffffff
jne 0x40dccd
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040c5cf
call fcn.0041ba24
ret
Function at 0x41190f
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x46a18b
call fcn.0041ba5b
call fcn.00408730
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a90f
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.0040c3a8
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c5e7
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x411974
mov ecx, dword [ebp + 8]
push 0x476d90
call fcn.00407d30
lea ecx, [esi - 0x10]
call fcn.0040c5cf
mov eax, dword [ebp + 8]
jmp 0x4119cd
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.0040b5cc
cmp ax, 0x5c
je 0x411993
push 1
push 0x46ca2c
lea ecx, [ebp - 0x10]
call fcn.004080f0
push 0x10
push str.HaoKanWallPaper_
lea ecx, [ebp - 0x10]
call fcn.004080f0
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x4119b2
push esi
call fcn.0040dca2
pop ecx
lea edi, [esi - 0x10]
push edi
call fcn.00408390
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, edi
mov dword [esi], eax
call fcn.0040c5cf
mov eax, esi
call fcn.0041ba24
ret

Function at 0x411c8a
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x46a229
call fcn.0041ba5b
call fcn.00408730
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a90f
xor ebx, ebx
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040de28
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.004080f0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.0040c5cf
inc ebx
lea ecx, [ebp - 0x10]
push ebx
push str.ApTest
call fcn.004080f0
push ebx
mov esi, 0x46cf78
lea ecx, [ebp - 0x10]
push esi
call fcn.004080f0
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.004080f0
push ebx
push 0x46cf7c
lea ecx, [ebp - 0x10]
call fcn.004080f0
push ebx
push 0x46cf80
lea ecx, [ebp - 0x10]
call fcn.004080f0
push ebx
push 0x46cf84
lea ecx, [ebp - 0x10]
call fcn.004080f0
push ebx
push 0x46cf88
lea ecx, [ebp - 0x10]
call fcn.004080f0
push 2
push 0x46cf8c
lea ecx, [ebp - 0x10]
call fcn.004080f0
push 2
push 0x46cf94
lea ecx, [ebp - 0x10]
call fcn.004080f0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.0040c5cf
mov eax, edi
call fcn.0041ba24
ret
Function at 0x414d28
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x47f034]
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 0x414da5
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.0043ad8a
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x414da5
mov dword [esi + 0x10], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041afcb
leave
ret

Function at 0x414eaf
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x47f034]
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.0041d840
add esp, 0xc
test esi, esi
je 0x414f48
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x414f48
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
jmp 0x414f2a
movsx eax, word [esi + 0xa]
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.0041cd40
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x68]
push 0x46dcd0
push eax
call fcn.00414d0d
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
mov ecx, dword [eax + edi*4]
test ecx, ecx
jne 0x414ef6
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.00414f5b
jmp 0x414f4a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041afcb
leave
ret 0xc
Function at 0x414f5b
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 [0x47f034]
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 0x415112
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.00414e22
mov cx, word [0x480744]
inc cx
mov dword [ebp - 0x14c], eax
push 0x2c
mov word [0x480744], cx
push 0
push dword [edi + 0xc]
movzx eax, cx
mov dword [ebp - 0x148], eax
call fcn.0041d840
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.00414dd4
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 0x415112
test ebx, ebx
jne 0x415034
xor eax, eax
inc eax
jmp 0x415114
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0041d840
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 0x4150fc
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 0x4150fc
mov ecx, edi
call fcn.00414e22
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 0x4150f9
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 0x4150f9
cmp byte [ebp + ecx - 0x104], 0
jne 0x4150f9
mov eax, dword [ebp - 0x148]
cmp word [ebp + ecx - 0xfe], ax
je 0x415125
lea esi, [edi + 4]
mov ecx, edi
call fcn.00414e22
sub eax, dword [ebp - 0x14c]
cmp eax, dword [ebp + 0x10]
jb 0x41504d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041afcb
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 0x41502c
Function at 0x419a82
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef0
call fcn.0041aff0
mov eax, dword [0x47f034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
lea eax, [ebp - 0x7d4]
xor esi, esi
push 0x7d0
push eax
inc esi
call fcn.00401249
add esp, 0x10
lea eax, [ebp - 0x2ee8]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x7d4]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x419ae3
push 2
pop eax
jmp 0x419b43
lea eax, [ebp - 0x2eec]
mov dword [ebp - 0x2eec], 0x2710
push eax
lea eax, [ebp - 0x2ee4]
push eax
lea eax, [ebp - 0x2ef0]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x2ee8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x419b35
push 4
lea eax, [ebp - 0x2ee4]
push str.pci_
push eax
call fcn.0043a878
add esp, 0xc
neg eax
sbb eax, eax
and esi, eax
push dword [ebp - 0x2ee8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041afcb
leave
ret