joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52d570
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x52d58a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x5a15c0
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x52d5d3
test ebp, ebp
je 0x52d5c4
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x52d5f9
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52d5f9
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x52d6af
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52d616
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x5b3018]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x52d6a5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x52d6a5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52d648
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52d660
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x52d670
test ebp, ebp
je 0x52d69c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x5b301c]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x5b301c]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret

Function at 0x52ec70
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x168]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x52ecbc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00511c10
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.0052e570
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x52eda0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0x1f
mov eax, dword [esp + 0x18]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x154]
jne 0x52eef9
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x52edd9
mov byte [ebp], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x52ede4
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x52edef
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov word [esp + 0x14], ax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov word [esp + 0x1c], ax
cmp ecx, edi
jae 0x52ee22
mov al, byte [esp + 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x52ee30
mov al, byte [esp + 0x15]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x52ee3e
mov al, byte [esp + 0x1c]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x52ee4c
mov al, byte [esp + 0x1d]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x52ee57
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x52ee62
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
mov dword [edi], ebp
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.0052e680
mov edi, dword [esp + 0x38]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x168]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x52eeb8
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00511c10
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.0052ece0
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x168]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x52eef6
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00511c10
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x536750
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x5b3094]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
lea eax, [esp + 0xc]
push edi
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
mov ebp, dword [esi + 0x16c]
or edi, 0xffffffff
mov ebx, dword [esi]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5367b2
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebp
push esi
call fcn.0051dcd0
add esp, 8
cmp edi, 0xffffffff
jne 0x5367d6
push str.Error_accept__ing_server_connect
push ebx
call fcn.00511c10
add esp, 8
mov eax, 0x1e
jmp 0x53682e
push str.Connection_accepted_from_server_n
push ebx
call fcn.00511ce0
push 1
mov byte [esi + 0x223], 0
push edi
mov dword [esi + 0x16c], edi
call fcn.0053e6d0
mov byte [esi + 0x179], 1
add esp, 0x10
mov eax, dword [ebx + 0x1d8]
test eax, eax
je 0x53682c
push 1
push edi
push dword [ebx + 0x1dc]
call eax
add esp, 0xc
test eax, eax
je 0x53682c
push esi
call fcn.00536cb0
add esp, 4
mov eax, 0x2a
jmp 0x53682e
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00547055
add esp, 0x88
ret
Function at 0x53c270
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5b3094]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x53c2d6
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x53c2d6
lea eax, [esp]
push eax
call dword [0x5b3024]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00547055
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.00547055
add esp, 0x108
ret
Function at 0x540810
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.00546ac0
mov eax, dword [0x5b3094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 1
push edi
push edi
push str.RANDFILE
mov dword [ebp - 8], str.RANDFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, dword [ebp + 8]
mov esi, eax
test esi, esi
jne 0x5408a1
push edi
push edi
push str.HOME
mov dword [ebp - 8], str.HOME
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x5408a1
push eax
push eax
push str.USERPROFILE
mov dword [ebp - 8], str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x5408a1
push eax
push eax
push str.SYSTEMROOT
mov dword [ebp - 8], str.SYSTEMROOT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x540919
lea eax, [esi + esi]
call fcn.00547410
mov eax, esp
push esi
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
jae 0x540907
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 8], eax
test eax, eax
je 0x540907
call fcn.00547410
mov esi, esp
push 0
push 0
push dword [ebp - 8]
push esi
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, esi
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x540922
test edi, edi
jne 0x540926
mov edi, 0x5a5108
jmp 0x54092b
mov edx, edi
mov edi, 0x5a5108
jmp 0x54092b
test edi, edi
je 0x540998
cmp byte [edi], 0
je 0x540998
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x540930
sub ecx, esi
mov esi, dword [ebp + 0xc]
test edx, edx
je 0x54096c
lea eax, [ecx + 1]
cmp eax, esi
jae 0x54096c
push esi
push edi
push ebx
call fcn.00477ba0
add esp, 0xc
cmp eax, esi
jb 0x54099b
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00547055
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 6]
cmp eax, esi
jae 0x54099b
push esi
push edi
push ebx
call fcn.00477ba0
push esi
push 0x54a3a4
push ebx
call fcn.00477b40
push esi
push str..rnd
push ebx
call fcn.00477b40
add esp, 0x24
jmp 0x54099b
mov byte [ebx], 0
xor eax, eax
cmp byte [ebx], al
cmovne eax, ebx
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00547055
mov esp, ebp
pop ebp
ret
Function at 0x5409c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.00546ac0
mov eax, dword [0x5b3094]
xor eax, esp
mov dword [esp + 0x470], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x44], edi
test eax, eax
jne 0x540a05
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00547055
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5409ee
push 0x54b9a4
push eax
call fcn.004c93a0
mov ebx, eax
add esp, 8
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x540b25
push 0x30
lea eax, [esp + 0x4c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x48]
push eax
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
add esp, 4
push eax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32
add esp, 8
test eax, eax
js 0x540b1c
mov eax, 8
call fcn.00546ac0
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.004813d0
add esp, 0x10
test dword [esp + 0x4e], 0x2000
je 0x540aa0
mov eax, 0x800
cmp esi, 0xffffffff
push 0
push ebx
cmove esi, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_setbuf
add esp, 8
nop dword [eax]
mov edi, 0x400
test esi, esi
jle 0x540aae
cmp esi, edi
cmovl edi, esi
push ebx
push edi
lea eax, [esp + 0x80]
push 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x540b02
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.00546ac0
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push ebx
push eax
call fcn.004813d0
add dword [esp + 0x54], ebx
add esp, 0x10
mov ebx, dword [esp + 0x40]
test esi, esi
jle 0x540aa0
sub esi, edi
test esi, esi
jg 0x540aa0
lea eax, [esp + 0x78]
push 0x400
push eax
call fcn.00481a60
mov ebx, dword [esp + 0x48]
add esp, 8
mov edi, dword [esp + 0x44]
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov ecx, dword [esp + 0x47c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00547055
mov esp, ebp
pop ebp
ret
Function at 0x54677a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x54677f
mov eax, dword [0x648480]
push ebx
push esi
xor ebx, ebx
push edi
test eax, eax
jne 0x54679b
call fcn.00546866
test eax, eax
je 0x5467d9
mov eax, dword [0x648480]
cmp eax, 1
jne 0x5467b6
push 0xd
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5467d9
jmp 0x546828
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x546828
push 0x40
mov eax, 0x1000
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x5467eb
push ebx
push ebx
push ebx
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esi]
push dword [0x648480]
call edi
mov edi, eax
test edi, edi
je 0x54680c
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x546828
lea edi, [esi + 0xff0]
push esi
push dword [0x648480]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x546812
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x401420
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402148
push 0x401df0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x20]
sub eax, esi
je 0x4014be
dec eax
je 0x4014df
dec eax
je 0x401492
dec eax
jne 0x401539
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401539
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40152e
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401539
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40152e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401539
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401539
mov edi, dword [ebp + 0x14]
cmp edi, esi
jbe 0x401539
cmp edi, 2
jbe 0x401512
cmp edi, 4
jne 0x401539
push edi
lea eax, [ebp + 0x1c]
push eax
push edi
jmp 0x401521
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push dword [ebp + 0x18]
push edi
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401539
mov dword [ebp - 0x1c], 1
or dword [ebp - 4], 0xffffffff
call fcn.00401554
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401565
Capabilities:
Start service

Disassembly:
push ebx
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x4015a9
push esi
push edi
push 0x10010
push dword [esp + 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4015a4
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call edi
push ebx
call edi
pop edi
pop esi
pop ebx
ret
Function at 0x4015ab
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402158
push 0x401df0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x38], eax
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x43c], esi
cmp dword [ebp - 0x38], edi
jne 0x40160f
cmp esi, edi
je 0x401683
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401683
cmp dword [ebp - 0x30], 1
je 0x401640
lea eax, [ebp - 0x34]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401683
push 0xbb8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x400
push edi
lea eax, [ebp - 0x438]
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x438]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
or dword [ebp - 4], 0xffffffff
call fcn.004016a3
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4016bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, 0x104
push edi
push 0x4032d4
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call sub.MSVCRT.dll_srand
pop ecx
mov esi, 0x4031d0
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
call sub.MSVCRT.dll_rand
cdq
mov ecx, 0x3e8
idiv ecx
push edx
call sub.MSVCRT.dll_rand
cdq
mov ecx, 0x3e8
idiv ecx
push edx
push str.wow_d__d.dll
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x104]
push 1
push 0x403074
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x104]
push eax
call sub.MSVCRT.dll_memcpy
push esi
call sub.MSVCRT.dll_strlen
add esp, 0x10
push eax
lea eax, [ebp - 0x104]
push esi
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x104]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x104]
push 0x403070
push eax
call sub.MSVCRT.dll_fopen
add esp, 0x14
test eax, eax
jne 0x4016eb
pop edi
pop esi
leave
ret
Function at 0x4017a5
Capabilities:
Get common file path
Get session user name
List groups for user account

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x37c
push ebx
push esi
push edi
push 0x32
pop eax
xor edi, edi
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x48]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call sub.MSVCRT.dll_memset
mov esi, 0x104
lea eax, [ebp - 0x1b0]
push esi
push edi
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x2b4]
push edi
push eax
call sub.MSVCRT.dll_memset
mov ebx, dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
add esp, 0x24
lea eax, [ebp - 0x2b4]
push esi
push eax
call ebx
lea eax, [ebp - 0x1b0]
push esi
push eax
call ebx
lea eax, [ebp - 0x1b0]
push str.Drivers
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, 0x10000000
lea eax, [ebp - 0x48]
push esi
push eax
lea eax, [ebp - 0x2b4]
push eax
call section..text
lea eax, [ebp - 0x48]
push esi
push eax
lea eax, [ebp - 0x1b0]
push eax
call section..text
add esp, 0x18
lea eax, [ebp - 0x37c]
push 0x64
push eax
lea eax, [ebp - 0x48]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push 0xffffffffffffffff
push eax
push 1
lea eax, [ebp - 0x37c]
push edi
push eax
push edi
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
jne 0x4018f2
mov ebx, dword [ebp - 4]
cmp ebx, edi
je 0x4018ff
cmp dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
jbe 0x4018f2
cmp ebx, edi
je 0x4018f2
push edi
push edi
lea eax, [ebp - 0xac]
push 0x64
push eax
push 0xffffffffffffffff
push dword [ebx]
push edi
push 1
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
lea eax, [ebp - 0xac]
push esi
push eax
lea eax, [ebp - 0x2b4]
push eax
call section..text
lea eax, [ebp - 0xac]
push esi
push eax
lea eax, [ebp - 0x1b0]
push eax
call section..text
add esp, 0x18
add ebx, 4
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jb 0x40189d
cmp dword [ebp - 4], edi
je 0x4018ff
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401904
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetInputState]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push ebx
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
push str.syscheck
lea eax, [ebp - 0xc]
push 0xa
push eax
push 0x403114
mov edi, str.wowgame
push 0x403108
push edi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov esi, 0x403104
lea eax, [ebp - 0xc]
push esi
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
test eax, eax
pop ecx
je 0x401a31
call fcn.004017a5
push 0x4030f0
call fcn.004015ab
call fcn.004016bd
mov dword [esp], str.syscheck
push esi
push 0x403108
push edi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
push str.NetWork_TCP_IP
push str.Remote_TCP_IP
call fcn.00401a36
pop ecx
cmp eax, ebx
pop ecx
je 0x401a31
push eax
call fcn.00401565
mov esi, 0x104
lea eax, [ebp - 0x190]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 0x190]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0xa
mov esi, str.SOFTWAREINSTALLSOFTICEwowsystemcode123
pop ecx
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x63]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x190]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x190]
push eax
push 1
lea eax, [ebp - 0x8c]
push 0x403094
push eax
push 0x80000002
call fcn.00401420
add esp, 0x1c
pop edi
pop esi
pop ebx
leave
ret