joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d40d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4d4119
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4d4590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x516040
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d4140
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004d41c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004d41c0
lea ecx, [esi + 0xc]
call fcn.00504101
lea ecx, [esi + 0x10]
call fcn.00504101
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004d5750
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004d5750
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004d5750
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00504176
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00504176
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4d9390
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x600da4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4d93a3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4d93e4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x600e4c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4d9416
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4d941a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4d940b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4d9438
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4d943c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4d942d
xor ecx, ecx
mov eax, 0x600db4
xor ebx, ebx
mov bl, byte [ecx + 0x600e5c]
cmp byte [esp + ebx + 0x14], 0
je 0x4d9467
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x600e74]
cmp byte [esp + ebx + 0x14], 0
je 0x4d947e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4d944e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4d93d7
lea edx, [esp + 0x84]
push edx
call fcn.004d94c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4f1a38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4f1b59
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x4f1b3d
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x4f1a8f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x4f1a6d
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x4f25a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4f25f8
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4f25f8
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x4f25f8
xor eax, eax
inc eax
jmp 0x4f25fa
xor eax, eax
leave
ret 0x10
Function at 0x4f2623
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4f2691
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x5ddc64
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f2688
cmp dword [ebp - 0xc], 4
jne 0x4f2688
cmp dword [ebp - 0x10], edi
je 0x4f2688
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x6082e8], edi
xor eax, eax
jmp 0x4f26d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x6082e8], edi
jge 0x4f26cb
lea eax, [ebp - 0x34]
push eax
mov dword [0x6082e8], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x4f26cb
cmp word [ebp - 0x14], 5
jb 0x4f26cb
call fcn.004f25fe
test eax, eax
je 0x4f26cb
emms
mov dword [0x6082e8], 1
mov eax, dword [0x6082e8]
pop edi
leave
ret

Function at 0x506556
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50658e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005045d1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005045a9
jmp 0x50659a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x507d55
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x507d97
call fcn.0050e347
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x507d97
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x507d8e
xor eax, eax
jmp 0x507d9f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00507da5
pop edi
pop esi
pop ebx
ret 4

Function at 0x50e877
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x50e8a5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x50e8c3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0050e7dd
jmp 0x50e8c3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x50e8c3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0050e7dd
test edi, edi
mov eax, edi
jne 0x50e8ad
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40541a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
movzx esi, word [esp + 0x14]
push 2
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
push 2
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
jne 0x40544d
xor ebp, ebp
push 2
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x405471
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405471
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x405471
push eax
call fcn.004053e7
cmp ax, 0x10
pop ecx
je 0x405475
xor eax, eax
jmp 0x40547e
push 0
push edi
push ebp
call sub.MFC42.DLL_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405561
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push esi
xor esi, esi
cmp dword [0x424ea0], esi
je 0x40557f
mov eax, dword [0x424e9c]
jmp 0x405632
push ebx
push 1
pop ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftPlus_ThemesCurrent
push 0x80000001
mov dword [0x424ea0], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40562c
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
mov dword [ebp - 0xc], 0x104
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405622
push 5
mov esi, str.Windows_Classic.theme
pop ecx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x134]
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x24]
push eax
call esi
cmp edi, eax
jl 0x405622
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x24]
push eax
call esi
sub edi, eax
lea eax, [ebp + edi - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405622
mov dword [0x424e9c], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [0x424e9c]
pop ebx
pop esi
leave
ret
Function at 0x40917f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4091d8
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x4092f9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [ebp - 4], eax
ja 0x4093e8
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
mov edi, 0x80000000
push str..htm
push edi
call fcn.0040917f
test eax, eax
jne 0x4093e8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x210]
push str._shellopencommand
push eax
call esi
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.0040917f
test eax, eax
jne 0x4093e8
lea eax, [ebp - 0x210]
push str.__1_
push eax
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x4093c5
lea eax, [ebp - 0x210]
push 0x422f00
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x4093c5
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x211]
jmp 0x4093c7
mov byte [edi], bl
push 0x41d044
push edi
call esi
push dword [ebp + 8]
push edi
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40f8e1
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x414f1b
call fcn.00413720
push ecx
push ecx
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_3
push dword [0x424f84]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 0x1ff
push 0x200
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_4
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4101af
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x18], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00410bdc
cmp dword [ebp - 4], 4
pop ecx
pop ecx
jne 0x4101e4
mov ecx, edi
call fcn.00410582
jmp 0x41027b
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.LsaOpenPolicy
push ebx
call esi
test eax, eax
mov dword [edi + 0x10], eax
je 0x41027b
push str.LsaRetrievePrivateData
push ebx
call esi
test eax, eax
mov dword [edi + 0x14], eax
je 0x41027b
push str.LsaFreeMemory
push ebx
call esi
test eax, eax
mov dword [edi + 0xc], eax
je 0x41027b
push str.LsaClose
push ebx
call esi
test eax, eax
mov dword [edi + 8], eax
je 0x41027b
push str.ConvertSidToStringSidA
push ebx
call esi
test eax, eax
mov dword [edi + 0x1c], eax
je 0x41027b
push str.Netapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
push str.NetUserEnum
push ebx
call esi
test eax, eax
mov dword [edi + 0x20], eax
je 0x41027b
push str.NetApiBufferFree
push ebx
call esi
test eax, eax
mov dword [edi + 0x24], eax
je 0x41027b
mov ecx, edi
call fcn.0041039a
mov ecx, edi
call fcn.004104ed
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41039a
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14a4
call fcn.004136e0
push ebx
push edi
mov edi, ecx
xor eax, eax
lea ecx, [ebp - 0x20]
push eax
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov ebx, 0x400
lea ecx, [ebp - 0x10]
push ebx
push ecx
push 2
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], eax
call dword [edi + 0x20]
test eax, eax
jne 0x4104e9
push esi
mov esi, 0x80
push esi
mov dword [ebp - 0x14], esi
call sub.MFC42.DLL_operatornew
and dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
pop ecx
mov dword [ebp - 8], eax
jbe 0x4104b3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
push ebx
push dword [eax + ecx*4]
lea eax, [ebp - 0xca4]
push eax
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0xc
cmp dword [ebp - 8], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
je 0x4104a4
lea eax, [ebp - 0xa4]
test eax, eax
je 0x4104a4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xca4]
push dword [ebp - 8]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x4104b3
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call dword [edi + 0x1c]
test eax, eax
je 0x4104b3
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14a4]
push str.RasDialParams__s0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x8a4]
mov ecx, edi
push eax
lea eax, [ebp - 0x14a4]
push eax
call fcn.004102cc
test eax, eax
je 0x4104a4
push eax
lea eax, [ebp - 0x8a4]
push eax
mov ecx, edi
call fcn.004108df
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x4103f9
push dword [ebp - 8]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x10]
call dword [edi + 0x24]
lea eax, [ebp - 0x8a4]
mov ecx, edi
push eax
push str.L__RasDefaultCredentials0
call fcn.004102cc
test eax, eax
pop esi
je 0x4104e9
push eax
lea eax, [ebp - 0x8a4]
push eax
mov ecx, edi
call fcn.004108df
pop edi
pop ebx
leave
ret

Function at 0x4104ed
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004136e0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
lea eax, [ebp - 0x804]
push 0x800
push eax
mov dword [ebp - 4], ecx
push str.ALLUSERSPROFILE
call esi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x804]
push eax
mov ebx, str._sApplication_DataMicrosoftNetworkConnectionsPbk_rasphone.pbk
lea eax, [ebp - 0x1004]
push ebx
push eax
call edi
mov ecx, dword [ebp - 4]
add esp, 0xc
lea eax, [ebp - 0x1004]
push eax
call fcn.0041099c
lea eax, [ebp - 0x804]
push 0x800
push eax
push str.USERPROFILE
call esi
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x1004]
push ebx
push eax
call edi
mov ecx, dword [ebp - 4]
add esp, 0xc
lea eax, [ebp - 0x1004]
push eax
call fcn.0041099c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41099c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2808
call fcn.004136e0
mov dl, byte [0x424ea4]
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, 0x1ff
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x2807]
mov byte [ebp - 0x2808], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x1007]
mov byte [ebp - 0x1008], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x1807]
mov byte [ebp - 0x1808], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x2007]
mov byte [ebp - 0x2008], dl
rep stosd dword es:[edi], eax
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
stosw word es:[edi], ax
push 3
push 0x80000000
push dword [ebp + 8]
stosb byte es:[edi], al
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x410bd5
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [ebp - 8]
push ebx
lea eax, [ebp + edi - 0x808]
push ecx
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410b9e
cmp dword [ebp - 8], ebx
je 0x410b9e
cmp byte [ebp + edi - 0x808], 0xa
jne 0x410b98
mov byte [ebp + edi - 0x809], bl
cmp byte [ebp - 0x808], 0x5b
jne 0x410af8
cmp byte [ebp - 0x1008], bl
je 0x410ab2
lea eax, [ebp - 0x2008]
mov ecx, dword [ebp - 4]
push eax
lea eax, [ebp - 0x1808]
push eax
push ebx
lea eax, [ebp - 0x2808]
push ebx
push eax
lea eax, [ebp - 0x1008]
push eax
call fcn.00410738
lea eax, [ebp - 0x808]
mov byte [ebp - 0x2808], bl
push eax
mov byte [ebp - 0x1008], bl
mov byte [ebp - 0x1808], bl
mov byte [ebp - 0x2008], bl
call sub.MSVCRT.dll_strlen
mov byte [ebp + eax - 0x809], bl
lea eax, [ebp - 0x807]
push eax
lea eax, [ebp - 0x2808]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0xc
jmp 0x410b91
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x808]
push str.DialParamsUID
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x410b2d
lea eax, [ebp - 0x808]
push 0x3d
push eax
call esi
pop ecx
cmp eax, ebx
pop ecx
je 0x410b91
inc eax
push eax
lea eax, [ebp - 0x1008]
jmp 0x410b89
lea eax, [ebp - 0x808]
push str.PhoneNumber
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x410b5c
lea eax, [ebp - 0x808]
push 0x3d
push eax
call esi
pop ecx
cmp eax, ebx
pop ecx
je 0x410b91
inc eax
push eax
lea eax, [ebp - 0x1808]
jmp 0x410b89
lea eax, [ebp - 0x808]
push str.PreferredDevice
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x410b91
lea eax, [ebp - 0x808]
push 0x3d
push eax
call esi
pop ecx
cmp eax, ebx
pop ecx
je 0x410b91
inc eax
push eax
lea eax, [ebp - 0x2008]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
xor edi, edi
jmp 0x410a3d
inc edi
jmp 0x410a3d
cmp byte [ebp - 0x1008], bl
je 0x410bcc
lea eax, [ebp - 0x2008]
mov ecx, dword [ebp - 4]
push eax
lea eax, [ebp - 0x1808]
push eax
push ebx
lea eax, [ebp - 0x2808]
push ebx
push eax
lea eax, [ebp - 0x1008]
push eax
call fcn.00410738
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x412a18
Capabilities:
Create thread
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x424f6c]
push ebx
push esi
push edi
cmp dword [eax + 0x7a58], 1
mov ebx, ecx
je 0x412bb4
cmp dword [eax + 0x7a4c], 1
je 0x412bb4
cmp dword [0x424f98], 1
je 0x412bb4
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x114]
push str.hook.dll
push eax
call sub.MSVCRT.dll_strcat
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebx + 0x60], esi
pop ecx
pop ecx
jne 0x412b5a
push 0x21
push 0x424db8
push 0x424ce8
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 1
jne 0x412b91
push 0x424ce4
push 0x8a
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0x20
push 1
mov dword [ebp - 4], eax
push esi
push esi
lea eax, [ebp - 0x114]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [ebp - 0x10]
push esi
push ecx
mov dword [ebp - 8], eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call edi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [0x4251d0], eax
je 0x412b40
push 0x424cd8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push 0x424ccc
jmp 0x412b45
push 0x424cc0
push 0x463
mov ecx, ebx
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
mov dword [ebx + 0x60], 1
jmp 0x412b91
mov eax, dword [0x4251d0]
cmp eax, esi
je 0x412b8e
push 0x424cb0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push dword [0x4251d0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x424ca8
push 0x463
mov ecx, ebx
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
mov dword [ebx + 0x60], esi
cmp dword [ebx + 0x60], esi
jne 0x412bc4
push 0x4251d4
push esi
push ebx
push 0x40f76d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [0x424fa8], eax
call edi
jmp 0x412bc4
xor esi, esi
mov ecx, ebx
push esi
push esi
push 0x424c68
call sub.MFC42.DLL_CWnd::MessageBoxA
pop edi
pop esi
pop ebx
leave
ret