joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e4f0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x48f509
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x1bc], eax
push ebp
push esi
push edi
mov eax, dword [0x4afa68]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1e0]
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1d8], esi
call fcn.004384a4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40e558
push 0x80004005
call fcn.00405cc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x1d8], 1
mov ecx, dword [esp + 0x1e4]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0040c310
mov byte [esp + 0x1d8], 2
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.004031c0
mov byte [esp + 0x1d8], 3
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 1
jge 0x40e5bb
lea edx, [esp + 0x1e4]
push edx
lea ecx, [esp + 0x18]
call fcn.0040c270
lea eax, [esp + 0x3c]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40e5ec
push esi
lea ecx, [esp + 0x18]
call fcn.00403000
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
jne 0x40e60b
mov ecx, dword [esp + 0x1e4]
push ecx
push str.Cant_resolve__s_r_n
lea edx, [esp + 0x20]
push edx
jmp 0x40e624
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x49c6f8
lea eax, [esp + 0x20]
push eax
call fcn.0040bc00
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, dword [esp + 0x18]
add edi, 0xfffffff0
push edi
call fcn.0040bac0
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x1dc], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e670
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x1c]
call fcn.0040c480
or edx, 0xffffffff
lea ecx, [edi + 0xc]
mov byte [esp + 0x1d8], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e69a
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x1d8], 0xffffffff
mov eax, dword [esp + 0x1e4]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1bc]
xor ecx, esp
call fcn.004512da
add esp, 0x1cc
ret
Function at 0x417800
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48da40
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4afa68]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0xf0000000
push 1
xor ebx, ebx
push 0x49cc88
push ebx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x417877
push ebx
push ebx
push 0x49cca4
call fcn.0043ec5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4a756c
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], eax
call fcn.004581eb
xor eax, eax
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x20]
push 8
push eax
mov byte [ebp - 0x1c], bl
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x4178cd
push ebx
push ebx
push 0x49ccd8
call fcn.0043ec5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4a756c
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x2c], eax
call fcn.004581eb
mov eax, 0x4178c8
ret
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4178dc
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004512da
mov esp, ebp
pop ebp
ret
Function at 0x418a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x48f130
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4afa68]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push 0x49c377
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004031c0
push 0x207
lea eax, [ebp + 1]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp], bl
call fcn.00457ee0
add esp, 0xc
push 5
push str.CLSID
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 0x208
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
call fcn.004030b0
call fcn.004384a4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x418b02
push 0x80004005
call fcn.00405cc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
push esi
lea ecx, [ebp - 0x20]
push str._sInprocServer32
push ecx
mov byte [ebp - 4], 2
call fcn.0040bc00
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00402b80
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x418b55
push ebx
lea ecx, [ebp - 0x14]
call fcn.00403000
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x418b83
push 0x4a74e4
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], eax
call fcn.004581eb
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x1c]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x38]
push ecx
push ebx
push 0x49c377
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
je 0x418bb9
push 0x4a74e4
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], esi
call fcn.004581eb
lea eax, [ebp]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x418bc0
sub eax, edx
cmp eax, 3
jb 0x418c07
cmp dword [ebp - 0x24], 1
jb 0x418c07
lea ecx, [ebp]
push ecx
call fcn.00421d10
mov ecx, 2
add esp, 4
cmp eax, ecx
je 0x418bfd
push 0x4a74e4
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], ecx
call fcn.004581eb
lea ecx, [ebp - 0x20]
call fcn.00405ca0
jmp 0x418c2b
mov eax, 0xd
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], eax
push 0x4a74e4
lea eax, [ebp - 0x30]
push eax
call fcn.004581eb
mov eax, 0x418c26
ret
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x418c39
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
call fcn.00405ca0
xor eax, eax
cmp esi, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004512da
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
Function at 0x4191f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48e068
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x4afa68]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x80], 0
call fcn.00457ee0
mov edx, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x44
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 0xc
or ecx, eax
jge 0x419272
push 0
lea ecx, [esp + 0x80]
call fcn.00403000
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0xc]
push ecx
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4192d2
mov dword [esp + 0x74], 0xffffffff
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4192bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x70
ret 4
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov dword [esp + 0x74], 0xffffffff
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41931b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x70
ret 4

Function at 0x419350
Capabilities:
Get token membership

Disassembly:
sub esp, 0x18
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x38], ebx
xor esi, esi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4193bd
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4193c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x4193d8
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [esp + 8], ebx
cmp esi, ebx
je 0x4193ef
push 0x4a756c
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], esi
call fcn.004581eb
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
xor ecx, esp
call fcn.004512da
add esp, 0x18
ret
Function at 0x419410
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x48dbf0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4afa68]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x20c]
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], 0
call fcn.00419350
push 0x38
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x4c]
push 0
push eax
mov dword [ebp - 0x50], 0x3c
call fcn.00457ee0
add esp, 0xc
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x3c], ebx
jne 0x419499
mov dword [ebp - 0x44], str.runas
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x4194d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1ff
lea edx, [ebp + 1]
push 0
push edx
mov esi, eax
mov byte [ebp], 0
call fcn.00457ee0
push esi
lea eax, [ebp]
push str.0x_08X
push eax
call fcn.00452347
add esp, 0x18
xor eax, eax
jmp 0x4194e4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.004512da
add ebp, 0x204
mov esp, ebp
pop ebp
ret

Function at 0x419950
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xd4]
sub esp, 0xc
push ebx
push esi
push edi
push ecx
lea ecx, [esp + 0x14]
call fcn.0043d24a
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x100
cmp dword [esi + 4], edi
jne 0x4199a9
push 0x74
call ebx
test ax, ax
jge 0x4199a9
cmp dword [esp + 0x14], 0
je 0x41999e
mov edx, dword [esp + 0x10]
push edx
push 0
call fcn.0043c95b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x419a21
cmp dword [esi + 4], edi
jne 0x419a21
push 0x4f
call ebx
test ax, ax
jl 0x41998b
cmp dword [esi + 4], edi
jne 0x419a21
push 0x50
call ebx
test ax, ax
jge 0x4199f5
cmp dword [esp + 0x14], 0
je 0x4199ea
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.0043c95b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 4], edi
jne 0x419a21
push 0x4e
call ebx
test ax, ax
jge 0x419a21
cmp dword [esp + 0x14], 0
je 0x419a16
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.0043c95b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 8], 8
je 0x41998b
cmp dword [esp + 0x14], 0
je 0x419a3e
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.0043c95b
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41a1f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push edi
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x41a208
pop edi
pop ebx
pop ecx
ret
push esi
push edi
call fcn.00431836
mov esi, eax
add esp, 4
test esi, esi
je 0x41a296
push edi
push 0
push esi
call fcn.00457ee0
add esp, 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a28d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41a28d
push edi
push eax
push esi
call fcn.0045a160
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x41a28d
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
test eax, eax
jne 0x41a29d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0043182b
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp edi, dword [esp + 0x10]
jne 0x41a28e
call fcn.0043182b
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x41a2c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x48f050
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4afa68]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push 0x49c377
lea ecx, [ebp - 0x14]
mov edi, edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
call fcn.004031c0
push 0x207
lea eax, [ebp + 1]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp], bl
call fcn.00457ee0
add esp, 0xc
push 5
push str.CLSID
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
call fcn.004030b0
call fcn.004384a4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a364
push 0x80004005
call fcn.00405cc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
push esi
lea ecx, [ebp - 0x1c]
push str._sInprocServer32
push ecx
mov byte [ebp - 4], 2
call fcn.0040bc00
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00402b80
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x41a3b7
push ebx
lea ecx, [ebp - 0x14]
call fcn.00403000
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x41a3e5
push 0x4a74e4
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], eax
call fcn.004581eb
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x18]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push 0x49c377
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x41a419
mov dword [ebp - 0x28], eax
push 0x4a74e4
lea eax, [ebp - 0x28]
push eax
call fcn.004581eb
mov ecx, 0x41
lea esi, [ebp]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a450
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41a450
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x41a45e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a487
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004512da
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
Function at 0x41bf40
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x30c]
sub esp, 0x30c
push 0xffffffffffffffff
push 0x48ef88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4afa68]
xor eax, ebp
mov dword [ebp + 0x308], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0xff
lea eax, [ebp + 0x209]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x208], bl
call fcn.00457ee0
push 0x207
lea ecx, [ebp + 1]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp], bl
call fcn.00457ee0
add esp, 0x18
push 0x208
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x41bfc4
mov ecx, dword [str.Driversetchosts]
mov edx, dword [0x49d880]
mov dword [eax], ecx
mov ecx, dword [0x49d884]
mov dword [eax + 4], edx
mov edx, dword [0x49d888]
mov dword [eax + 8], ecx
mov cx, word [0x49d88c]
mov dword [eax + 0xc], edx
mov dl, byte [0x49d88e]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], dl
lea eax, [ebp]
push 0x49d890
push eax
call fcn.0045300e
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
cmp esi, ebx
jne 0x41c037
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4a74e4
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
call fcn.004581eb
mov edi, 0xf
jmp 0x41c043
mov esi, dword [ebp - 0x18]
push esi
call fcn.00453078
add esp, 4
test eax, eax
jne 0x41c132
push esi
lea edx, [ebp + 0x208]
push 0x100
push edx
call fcn.004530e0
sub esp, 0x10
mov ecx, esp
lea eax, [ebp + 0x208]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
mov dword [ebp - 0x1c], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41c080
sub eax, esi
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.00416f50
call fcn.0041bb60
add esp, 0x1c
cmp eax, ebx
jne 0x41c040
sub esp, 0x1c
mov ecx, esp
mov eax, str.zj96596.com
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
mov dword [ebp - 0x1c], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
jmp 0x41c0c0
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41c0c0
sub eax, esi
push eax
mov eax, str.zj96596.com
push eax
call fcn.00416f50
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 1
lea eax, [ebp + 0x208]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
mov dword [ebp - 0x24], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41c0f3
sub eax, esi
push eax
lea edx, [ebp + 0x208]
push edx
call fcn.00416f50
mov byte [ebp - 4], bl
call fcn.0041bcc0
add esp, 0x38
cmp eax, ebx
jne 0x41c11f
mov eax, 3
jmp 0x41c142
mov dword [ebp - 0x14], ebx
jmp 0x41c040
cmp esi, ebx
je 0x41c13f
push esi
call fcn.0045329f
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x308]
xor ecx, ebp
call fcn.004512da
add ebp, 0x30c
mov esp, ebp
pop ebp
ret
Function at 0x41ca60
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x48e621
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4afa68]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x28]
xor edx, edx
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x44]
mov byte [esi + 0x3f], dl
lea ecx, [esi + 0x40]
mov dword [ecx], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], edx
lea ecx, [esi + 0x60]
mov byte [esp + 0x18], 1
call fcn.0041cba0
mov ecx, dword [esp + 0x30]
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x20], 2
call fcn.0047e910
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x18

Function at 0x41ced0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48e551
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4afa68]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x14], edi
mov edi, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x38]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x5c]
mov byte [esi + 0x57], cl
mov dword [esi + 0x58], eax
lea edx, [esi + 0x58]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1c], 1
call fcn.0041cba0
mov ecx, dword [esp + 0x3c]
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x24], 2
call fcn.0047fcd0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0x24