joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a5c
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCR71.dll__strdup]
mov esi, dword [sym.imp.MSVCR71.dll_strchr]
push 0x5b
push eax
mov dword [ebp - 8], eax
call esi
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x403b1d
inc ebx
push 0x5d
push ebx
call esi
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x403b1d
and byte [edi], 0
inc edi
push 0xa
push edi
call esi
xor esi, esi
pop ecx
cmp eax, esi
pop ecx
je 0x403aae
and byte [eax], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push esi
push ebx
push dword [0x40c010]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403ae1
push esi
push str.Could_not_open_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403b13
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, esi
je 0x403b0a
cmp eax, 2
je 0x403b0a
push esi
push str.Could_not_delete_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403b22
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCR71.dll__strdup]
mov esi, dword [sym.imp.MSVCR71.dll_strchr]
push 0x5b
push eax
mov dword [ebp - 8], eax
call esi
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x403be3
inc ebx
push 0x5d
push ebx
call esi
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x403be3
and byte [edi], 0
inc edi
push 0x3d
push edi
call esi
xor esi, esi
pop ecx
cmp eax, esi
pop ecx
je 0x403be3
and byte [eax], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push esi
push ebx
push dword [0x40c010]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403ba7
push esi
push str.Could_not_open_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403bd9
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, esi
je 0x403bd0
cmp eax, 2
je 0x403bd0
push esi
push str.Could_not_delete_value
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403be8
Capabilities:
Delete file

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x403bff
pop esi
ret
mov eax, dword [sym.imp.MSVCR71.dll___mb_cur_max]
inc esi
cmp dword [eax], 1
jle 0x403c1a
movsx eax, byte [esi]
push 8
push eax
call dword [sym.imp.MSVCR71.dll__isctype]
pop ecx
pop ecx
jmp 0x403c2b
mov ecx, dword [sym.imp.MSVCR71.dll__pctype]
movsx eax, byte [esi]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
jne 0x403bff
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x403c38
Capabilities:
Delete directory

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x403c4f
pop esi
ret
mov eax, dword [sym.imp.MSVCR71.dll___mb_cur_max]
inc esi
cmp dword [eax], 1
jle 0x403c6a
movsx eax, byte [esi]
push 8
push eax
call dword [sym.imp.MSVCR71.dll__isctype]
pop ecx
pop ecx
jmp 0x403c7b
mov ecx, dword [sym.imp.MSVCR71.dll__pctype]
movsx eax, byte [esi]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
jne 0x403c4f
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret
Function at 0x403c88
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x1014
call fcn.00406cb0
push ebx
push esi
mov esi, dword [sym.imp.MSVCR71.dll_strchr]
push edi
push 0x5b
push dword [esp + 0x1028]
call esi
xor edi, edi
pop ecx
cmp eax, edi
pop ecx
je 0x403cc0
inc eax
push 0x5d
push eax
mov dword [esp + 0x18], eax
call esi
mov ebx, eax
pop ecx
cmp ebx, edi
pop ecx
jne 0x403cc7
xor eax, eax
jmp 0x403e40
and byte [ebx], 0
inc ebx
push ebx
push 0x40d340
mov dword [esp + 0x14], ebx
call sub.MSVCR71.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x403e3d
push ebp
push edi
push edi
mov dword [esp + 0x24], str._remove
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.MSVCR71.dll__tempnam]
mov esi, dword [sym.imp.MSVCR71.dll_freopen]
mov ebp, eax
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov edi, 0x40c9d4
add eax, 0x40
push eax
push edi
push ebp
call esi
add esp, 0x14
test eax, eax
jne 0x403d32
push eax
push eax
push str.freopen_stderr
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
push edi
push ebp
call esi
add esp, 0xc
test eax, eax
jne 0x403d5a
push eax
push eax
push str.freopen_stdout
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x403d9f
lea eax, [esp + 0x18]
push eax
push 2
push ebx
push esi
call fcn.004031f4
add esp, 0x10
cmp eax, 0x80000000
jne 0x403d98
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push str._Could_not_load_Python_
add eax, 0x40
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov edi, dword [sym.imp.MSVCR71.dll_fflush]
add eax, 0x40
push eax
call edi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov esi, dword [sym.imp.MSVCR71.dll_fclose]
add eax, 0x40
push eax
call esi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
call edi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
call esi
push 0x40c970
push ebp
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
lea eax, [esp + 0x3c]
push edi
push 0x1000
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
push edi
mov ebx, eax
call esi
push ebp
call dword [sym.imp.MSVCR71.dll_remove]
and byte [esp + ebx + 0x54], 0
add esp, 0x30
cmp byte [esp + 0x24], 0
pop ebp
je 0x403e2d
push 0
lea eax, [esp + 0x24]
push str.uninstall_script
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 0xc]
push 0x40d340
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
add esp, 0x1014
ret
Function at 0x404328
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40437c
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 2
push esi
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call edi
cmp ebx, 0xffffffff
jne 0x404380
xor eax, eax
jmp 0x40439b
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov esi, eax
call edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4043a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea ecx, [edx + eax - 0x16]
push edi
mov edi, dword [ebp + 0x18]
sub eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sub eax, 0x22
lea esi, [eax + edx]
xor edx, edx
mov dword [edi], edx
mov edi, dword [ebp + 0x14]
mov dword [edi], edx
cmp dword [ecx], 0x6054b50
jne 0x4044cc
cmp dword [esi], 0x1234567b
je 0x4043f4
push str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
push edx
call fcn.00401a6f
pop ecx
pop ecx
jmp 0x4044ce
cmp eax, edx
jl 0x4044cc
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x404410
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x40ea50], edx
sub eax, dword [esi + 4]
mov ecx, dword [ebp + 0x10]
mov edi, esi
push 0x104
sub eax, dword [esi + 8]
mov dword [ecx], eax
sub edi, dword [esi + 4]
call dword [sym.imp.MSVCR71.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4044cc
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4044b9
push ebx
push 0
lea eax, [ebp - 0x104]
push 0x40d2dc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4044b9
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push ebx
push 2
call fcn.00401095
add esp, 0x1c
mov dword [ebp + 8], eax
test eax, eax
je 0x4044cc
push dword [esi + 4]
push edi
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
push dword [ebp + 8]
call sub.MSVCR71.dll_strlen
lea edi, [edi + eax + 1]
push edi
call dword [sym.imp.MSVCR71.dll__strdup]
mov ecx, dword [ebp + 0x18]
add esp, 0x14
push dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 1
pop eax
jmp 0x4044ce
push str.Could_not_create_temporary_file
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401a6f
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4021a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4021e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4021e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4021e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4021d0
cmp esi, eax
jb 0x4021ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403a20
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
cmp dword [esi + 0x30], 0
jne 0x403a3f
push str.load_oraylog.dll_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.oraylog.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x403b03
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WriteLogString
push eax
call edi
mov dword [esi], eax
mov eax, dword [esi + 0x30]
push str.InitInstance
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.ExitInstance
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi + 0x30]
push str.SetOutputInfo
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x30]
push str.SetOutputMode
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.SetAsynMode
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 0x30]
push str.SetLogPipeA
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x30]
push str.CloseLogPipe
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.GetLogFileNameA
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 0x30]
push str.SetLogPathA
push edx
mov dword [esi + 0x20], eax
call edi
cmp dword [esi], 0
mov dword [esi + 0x24], eax
pop edi
je 0x403b03
cmp dword [esi + 4], 0
je 0x403b03
cmp dword [esi + 8], 0
je 0x403b03
cmp dword [esi + 0xc], 0
je 0x403b03
cmp dword [esi + 0x10], 0
je 0x403b03
cmp dword [esi + 0x14], 0
je 0x403b03
mov eax, 1
ret
xor eax, eax
ret
Function at 0x404360
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c8920
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
call fcn.00406ea0
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [esp + 0x30], esi
call fcn.00491248
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4043c4
push 0x80004005
call fcn.00401ee0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [edi + 0x70]
mov byte [esp + 0x30], 1
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov ebx, eax
mov edi, ecx
test ebx, ebx
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
je 0x4043f4
cmp ebx, eax
je 0x4043f9
call fcn.004a79fe
cmp edi, dword [esp + 0x20]
je 0x40445c
push esi
lea edx, [esp + 0x14]
push str.DnsName_.2d
push edx
call fcn.00406c50
add esp, 0xc
test ebx, ebx
jne 0x40441b
call fcn.004a79fe
cmp edi, dword [ebx + 4]
jne 0x404425
call fcn.004a79fe
cmp dword [edi + 0x20], 8
jb 0x404430
mov eax, dword [edi + 0xc]
jmp 0x404433
lea eax, [edi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push eax
push edx
push str.NSLOOKUP
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp edi, dword [ebx + 4]
jne 0x404453
call fcn.004a79fe
mov edi, dword [edi]
add esi, 1
mov eax, ebx
jmp 0x4043e5
cmp esi, 0x14
jge 0x404496
push esi
lea eax, [esp + 0x14]
push str.DnsName_.2d
push eax
call fcn.00406c50
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push 0x4d97fc
push edx
push str.NSLOOKUP
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 1
cmp esi, 0x14
jl 0x404461
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404c90
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x928]
sub esp, 0x928
push 0xffffffffffffffff
push 0x4c7618
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x500770]
xor eax, ebp
mov dword [ebp + 0x924], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call dword [0x501c04]
mov edi, eax
mov eax, dword [esi + 8]
sub eax, 0x10
push eax
call fcn.00406ea0
lea ebx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x14], ebx
push ebx
push 0x618
lea eax, [ebp]
push eax
push 0x4d97fc
push str.szReadMsgID
push str.SETTINGS
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x404d29
xor eax, eax
jmp 0x404d41
lea esi, [eax + eax]
mov eax, esi
call fcn.004aedf0
mov eax, esp
push edi
push esi
lea edx, [ebp]
push edx
push eax
call fcn.00406c70
lea edx, [ebp + 0x618]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x404d47
mov edi, 0x4d97fe
lea esi, [ebp + 0x618]
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x404dc1
lea esi, [ebp + 0x618]
mov ecx, esi
push 0x2c
push ecx
call fcn.004a7a40
mov edi, eax
add esp, 8
test edi, edi
je 0x404dc1
mov edx, dword [ebp - 0x10]
add edx, 0x7c
mov dword [ebp - 0x18], edx
push esi
mov byte [edi], 0
call fcn.004a7b0f
mov esi, dword [ebp - 0x18]
movzx eax, ax
add esp, 4
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.00405450
lea esi, [edi + 1]
push 0x2c
push esi
call fcn.004a7a40
mov edi, eax
add esp, 8
test edi, edi
jne 0x404d8d
mov ebx, dword [ebp - 0x14]
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404de0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x924]
xor ecx, ebp
call fcn.004a74b2
add ebp, 0x928
mov esp, ebp
pop ebp
ret
Function at 0x407560
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x500770]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push esi
mov esi, dword [eax]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004a74b2
add esp, 0x210
ret 4
Function at 0x4097f0
Capabilities:
Capture screenshot

Disassembly:
mov ecx, dword [esi]
sub esp, 0x14
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x409833
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x40985c
mov ecx, dword [esp + 0xc]
sub ecx, dword [esp + 4]
mov edx, dword [esp + 8]
sub edx, dword [esp]
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x10], eax
cmp dword [esi + 0xc], 1
jne 0x40988e
mov edx, dword [esi + 4]
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 4]
mov ecx, dword [esp + 8]
sub ecx, dword [esp]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
add esp, 0x14
ret
Function at 0x40e2d4
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40e2fb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
xor eax, eax
pop esi
ret 8
mov eax, 1
pop esi
ret 8

Function at 0x40e310
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x40e326
mov dword [esi + 8], 0xf9000000
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 0xc]
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x40e34c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
push eax
push ecx
mov ecx, esi
call edx
test eax, eax
je 0x40e36c
mov eax, 1
pop esi
ret 0xc
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
xor eax, eax
pop esi
ret 0xc

Function at 0x40e680
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov byte [edi], 0
mov eax, dword [ebp]
mov edx, dword [eax + 0x44]
push 0x12c
mov ecx, ebp
xor esi, esi
call edx
test eax, eax
jle 0x40e6db
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp + 4]
push 0
push 1
lea eax, [esi + edi]
push eax
push ecx
call ebx
test eax, eax
jle 0x40e709
add esi, eax
cmp byte [esi + edi - 1], 0xa
je 0x40e6e3
cmp esi, 0x400
je 0x40e715
mov edx, dword [ebp]
mov eax, dword [edx + 0x44]
push 0x12c
mov ecx, ebp
call eax
test eax, eax
jg 0x40e6a5
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
cmp esi, 1
jle 0x40e6fc
cmp byte [esi + edi - 2], 0xd
jne 0x40e6fc
mov byte [esi + edi - 2], 0
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
mov byte [esi + edi - 1], 0
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
or esi, 0xffffffff
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40e930
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
sub esp, 0xc
push ebp
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0xb]
push ecx
mov dword [esp + 0x10], 1
xor ebp, ebp
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40ea47
mov edx, dword [esp + 8]
push ebx
push edx
call fcn.00488fd5
mov ebx, eax
add esp, 4
lea eax, [esp + 0xc]
push eax
push ebx
mov dword [esp + 0x18], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x40ea46
test ebx, ebx
je 0x40ea36
push esi
mov esi, dword [esp + 0x1c]
push edi
add esi, 0x114
lea eax, [ebx + 8]
mov ecx, esi
sub ecx, eax
lea edx, [ecx - 0x104]
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40e9a0
lea eax, [ebx + 0x10c]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40e9b6
lea eax, [ebx + 0x1b0]
mov edx, esi
sub edx, eax
add edx, 0x84
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40e9d2
lea edi, [ebx + 0x194]
push edi
lea eax, [esi + 0x94]
push eax
call fcn.0040e870
mov ecx, dword [edi]
mov dword [esi + 0xa6], ecx
mov edx, dword [edi + 4]
mov eax, ecx
mov dword [esi + 0xbc], ebp
mov ecx, edx
mov dword [esi + 0xaa], edx
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], ecx
mov ebx, dword [ebx]
add ebp, 1
add esi, 0x1c8
cmp ebp, 0x14
jge 0x40ea30
test ebx, ebx
jne 0x40e991
mov ebx, dword [esp + 0x18]
pop edi
pop esi
mov edx, dword [esp + 0x18]
push ebx
mov dword [edx + 8], ebp
call fcn.00488fd0
add esp, 4
pop ebx
pop ebp
add esp, 0xc
ret 4

Function at 0x40ebd0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x500770]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x40ec0d
mov ax, word [esp]
cmp al, 2
jne 0x40ec08
cmp ah, al
je 0x40ec0d
call sub.WS2_32.dll_WSACleanup
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004a74b2
mov esp, ebp
pop ebp
ret