joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472de0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x472e05
mov dword [ebx], 0
test esi, esi
je 0x472e0f
mov dword [esi], 0
mov eax, dword [0x58f684]
mov dword [ebp - 8], eax
test eax, eax
jne 0x472e2f
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 8]
push eax
push 0
call fcn.0049e5c0
add esp, 0x20
call fcn.004726e0
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x472e4e
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push edi
push 8
xor edi, edi
mov dword [ebp - 0x1c], 0xffffffff
call fcn.004731a0
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x472f58
lea ecx, [ebp - 0x10]
push ecx
push edi
push edi
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x472f4f
push dword [ebp - 0x10]
call fcn.004e6b5b
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
je 0x472f4f
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push 2
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x472f4f
cmp dword [ebp - 8], 5
jl 0x472efe
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x14
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x472f4f
test ebx, ebx
je 0x472eed
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
test esi, esi
je 0x472efe
push dword [ebp - 0x20]
call fcn.004728b0
add esp, 4
mov dword [esi], eax
xor esi, esi
mov dword [ebp - 0x1c], 0
cmp dword [edi], esi
jbe 0x472f4c
add edi, 4
nop
push dword [ebp - 0x24]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x472f2c
mov eax, dword [ebp - 0x18]
inc esi
add edi, 8
cmp esi, dword [eax]
jb 0x472f10
jmp 0x472f49
cmp dword [ebp - 8], 5
mov eax, 1
mov dword [ebp - 0x1c], eax
jl 0x472f49
test ebx, ebx
jne 0x472f49
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
cmove eax, ecx
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push 0xc
push edi
call fcn.00507268
mov eax, dword [ebp - 0x1c]
add esp, 8
cmp dword [ebp - 8], 4
pop edi
jg 0x472f8e
test eax, eax
je 0x472f8e
test ebx, ebx
je 0x472f84
mov dword [ebx], 1
test esi, esi
je 0x472f8e
mov dword [esi], 0x3000
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret

Function at 0x473210
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.00472600
add esp, 8
test eax, eax
jne 0x473224
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
ret
Function at 0x4746c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a239
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x58cfe0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [esi], 0x548020
call fcn.0040a420
mov dword [ebp - 4], 0
lea edi, [esi + 0x24]
mov dword [ebp - 0x14], edi
call fcn.004e817d
mov ecx, eax
test ecx, ecx
jne 0x47471c
push 0x80004005
call fcn.00403650
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
lea ecx, [esi + 0x30]
push 0
mov dword [ecx], 0x547130
call fcn.00406060
mov byte [ebp - 4], 3
mov ecx, esi
push dword [ebp + 8]
call fcn.004735b0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x47ab50
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
mov esi, ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0xffffffffffffffff
push 0
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x47aba2
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [edx]
mov dword [esi], ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00507257
mov esp, ebp
pop ebp
ret

Function at 0x47acc0
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
test esi, esi
je 0x47ad30
mov word [esi], ax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xa
push dword [ebp + 8]
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x47ad09
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 8], 2
jbe 0x47ad20
push 0
push dword [ebp - 0xc]
push dword [ebp + 0x10]
push esi
call fcn.004823d0
add esp, 0x10
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x47ad2d
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
movzx eax, word [esi]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00507257
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47aeb0
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
or esi, 0xffffffff
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10
push dword [ebp + 8]
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x47aeef
or eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 8], 2
mov ecx, dword [ebp - 0xc]
jne 0x47aefb
movzx esi, word [ecx]
test ecx, ecx
je 0x47af05
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00507257
mov esp, ebp
pop ebp
ret 4

Function at 0x47af20
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
test esi, esi
je 0x47af90
mov word [esi], ax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 5
push dword [ebp + 8]
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x47af69
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 8], 2
jbe 0x47af80
push 0
push dword [ebp - 0xc]
push dword [ebp + 0x10]
push esi
call fcn.004823d0
add esp, 0x10
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x47af8d
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
movzx eax, word [esi]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00507257
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47b920
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
call fcn.0047b6d0
test eax, eax
je 0x47b939
mov eax, 1
pop edi
pop ebp
ret 8
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x47b945
pop edi
pop ebp
ret 8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call esi
push dword [edi + 0x34]
call esi
mov eax, dword [ebp + 8]
lea ecx, [edi + 8]
mov dword [edi + 0x78], eax
call fcn.0040b9f0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x47b971
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push 0
push 4
push 0
push dword [ebp + 0xc]
mov dword [edi + 4], 0
push edi
push 0x47bdc0
call fcn.004f3adc
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
je 0x47ba08
mov eax, dword [ebp + 8]
mov dword [esi + 0x28], eax
cmp dword [edi + 0x78], 0
mov eax, dword [esi + 0x2c]
mov dword [ebp + 8], eax
je 0x47b9ce
mov ecx, 0x58eaf0
call fcn.0040b9f0
push dword [ebp + 8]
mov ecx, 0x58eadc
push dword [0x58eae4]
call fcn.004e8524
mov ecx, 0x58eaf0
call fcn.0040ba10
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x47ba19
cmp dword [edi + 0x78], 0
je 0x47ba08
mov ecx, 0x58eaf0
call fcn.0040b9f0
push 1
push dword [ebp + 8]
push 0x58eadc
call fcn.0049b150
add esp, 0xc
mov ecx, 0x58eaf0
call fcn.0040ba10
lea ecx, [edi + 8]
call fcn.0040ba10
pop esi
pop ebx
xor eax, eax
pop edi
pop ebp
ret 8
lea ecx, [edi + 8]
call fcn.0040ba10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop esi
mov dword [edi + 0x2c], eax
mov eax, 1
pop ebx
pop edi
pop ebp
ret 8

Function at 0x47be80
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
push 0xffffffffffffffff
push 0
call fcn.004e8c08
mov edi, dword [ebp + 8]
test edi, edi
jne 0x47beb9
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47bedd
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x20], xmm0
push ebx
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x47bf3f
cmp dword [ebp - 0x14], edi
jne 0x47bf17
push dword [ebp - 0x18]
mov ecx, esi
push dword [esi + 8]
call fcn.004e8bd5
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x20], xmm0
push ebx
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x20], 0x1c
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x47bf05
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0xffffffffffffffff
push esi
call fcn.004a55a0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
cmp dword [esi + 8], eax
pop ebx
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x47c050
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, eax
mov eax, dword [edi]
mov dword [ebp - 0x10], edx
test eax, eax
je 0x47c097
push 0x8000
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [edi], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 8], 0x17171717
cmp ebx, 4
jb 0x47c0bb
mov eax, dword [esi]
lea edx, [ebp - 8]
cmp eax, dword [edx]
mov edx, dword [ebp - 0x10]
je 0x47c0e2
dec ecx
inc esi
cmp ecx, 4
jae 0x47c0a8
push str.CThisThunk::Create
push 0x2f56
call fcn.00489f40
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret 0xc
push 0x40
push 0x1000
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [edi], eax
test eax, eax
jne 0x47c108
push 0x54e948
call fcn.0048a190
add esp, 4
jmp 0x47c0cd
push 0
push ebx
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x47c12b
push 0x54e968
call fcn.0048a190
add esp, 4
jmp 0x47c0cd
push 0
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edi]
sub eax, dword [ebp - 0x14]
add eax, esi
mov esi, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x47c11c
push ebx
push dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47c680
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00509680
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x100
push eax
push 0x1004
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.004ab410
mov ecx, dword [ebp - 4]
add esp, 0x10
neg eax
sbb eax, eax
xor ecx, ebp
and eax, dword [ebp - 0x208]
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x47daa0
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x47dab5
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x47daae
cmp byte [eax], 0
je 0x47daae
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x47daae
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x47daae
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea esi, [eax + ebx]
push 4
push esi
call edi
test eax, eax
jne 0x47dbdf
cmp dword [esi], 0x4550
jne 0x47dbdf
movzx eax, word [esi + 0x18]
cmp eax, 0x10b
je 0x47db24
cmp eax, 0x20b
jne 0x47dbdf
push 0x108
push esi
call edi
test eax, eax
jne 0x47dbdf
lea eax, [esi + 0x88]
jmp 0x47db37
push 0xf8
push esi
call edi
test eax, eax
jne 0x47dbdf
lea eax, [esi + 0x78]
push 8
push eax
mov dword [ebp + 8], eax
call edi
test eax, eax
jne 0x47dbdf
mov edi, dword [ebp + 8]
mov edi, dword [edi]
test edi, edi
je 0x47dbdf
movzx eax, word [esi + 0x14]
lea ecx, [esi + 0x18]
add ecx, eax
mov dword [ebp - 4], 0
movzx eax, word [esi + 6]
xor edx, edx
mov dword [ebp - 8], eax
test eax, eax
je 0x47db8c
mov esi, dword [ecx + 0xc]
cmp edi, esi
jb 0x47db84
mov eax, dword [ecx + 8]
add eax, esi
cmp edi, eax
jb 0x47dbe8
mov eax, dword [ebp - 8]
inc edx
add ecx, 0x28
cmp edx, eax
jb 0x47db71
xor edx, edx
lea eax, [edi + edx]
xor esi, esi
mov edi, dword [eax + ebx + 0x20]
add eax, ebx
add edi, edx
add edi, ebx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x1c]
add ecx, edx
add ecx, ebx
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x24]
add eax, edx
mov dword [ebp - 8], ecx
add eax, ebx
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x47dbdf
mov eax, dword [edi + esi*4]
push dword [ebp + 0x10]
add eax, edx
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x47dbf8
mov edx, dword [ebp - 4]
inc esi
cmp esi, dword [ebp - 8]
jb 0x47dbc1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
jne 0x47db8c
mov edx, dword [ecx + 0x14]
sub edx, esi
mov dword [ebp - 4], edx
jmp 0x47db8e
cmp esi, dword [ebp - 0xc]
jae 0x47dbdf
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
jne 0x47dc22
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp ecx, edx
jb 0x47dc22
mov eax, dword [eax + 4]
add eax, edx
cmp ecx, eax
jb 0x47dbdf
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47e950
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x47e98e
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
add esi, 0x20
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e6b5b
mov edi, eax
add esp, 4
test edi, edi
jne 0x47e9d3
push str.MyExpandEnvironmentStrings
call fcn.0048a0f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push esi
push edi
xor eax, eax
push ebx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret

Function at 0x47eac0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x40]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x3c
push 0
push eax
call fcn.00509680
mov eax, dword [ebp + 0x14]
add esp, 0xc
or dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x47eb2e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x47eb3f
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret

Function at 0x47eea0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x47eeac
pop ebp
ret
push edi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x47eec1
pop edi
pop ebp
ret
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x481ec0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x481ef4
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0x481ef4
mov ecx, dword [ebp + 8]
xor eax, eax
test esi, esi
jle 0x481eee
nop
cmp ecx, dword [edi + eax*4]
je 0x481fa9
inc eax
cmp eax, esi
jl 0x481ee0
cmp dword [ebp + 0x14], 0
jne 0x481efd
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x481ef4
cmp ecx, 0xffffff
je 0x481ef4
mov eax, ecx
mov dword [ebp + 0xc], 0xffff
shr eax, 0x10
mov edx, ecx
push ebx
mov dword [ebp - 8], eax
or ebx, 0xffffffff
xor eax, eax
shr edx, 8
mov dword [ebp - 4], eax
test esi, esi
jle 0x481fa5
mov ecx, dword [ebp - 8]
movzx ecx, cl
mov dword [ebp - 0x10], ecx
movzx ecx, dl
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
movzx ecx, cl
mov dword [ebp - 8], ecx
mov edx, dword [edi + eax*4]
mov eax, edx
shr eax, 8
mov ecx, edx
shr ecx, 0x10
movzx eax, al
movzx ecx, cl
add eax, ecx
movzx ecx, dl
sub eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
add eax, ecx
mov ecx, dword [ebp - 4]
cdq
xor eax, edx
sub eax, edx
movzx eax, ax
cmp ax, word [ebp + 0xc]
mov edx, eax
cmovb ebx, ecx
inc ecx
cmp ax, word [ebp + 0xc]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
movzx ecx, cx
cmovae edx, ecx
movzx ecx, dx
mov dword [ebp + 0xc], ecx
cmp eax, esi
jl 0x481f42
cmp ecx, 0x30
ja 0x481fa5
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4828f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x14], 0
test esi, esi
je 0x48291e
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
lea eax, [ebp - 0x14]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x482940
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
xor edi, edi
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x482971
lea edi, [eax + 1]
test esi, esi
je 0x482971
mov ecx, dword [ebp - 0xc]
mov dword [esi], ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x482a60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x482c4b
push 0x34c
push 0
push esi
call fcn.00509680
add esp, 0xc
test edi, edi
je 0x482ac3
cmp word [edi], 0
je 0x482ac3
push edi
call fcn.004a5f80
add esp, 4
test eax, eax
je 0x482ab5
push edi
call fcn.004a6040
add esp, 4
mov edi, eax
push 0
push edi
push 0x20
push esi
call fcn.004823d0
add esp, 0x10
mov edi, 1
mov dword [esi + 0x40], 0x6250401
mov dword [esi + 0x44], 0x27000dc
mov dword [esi + 0x48], 0x66e03
mov word [esi + 0x4c], di
mov ax, word [0x58c104]
push ebx
push esi
mov word [esi + 0x4e], ax
call fcn.00488940
mov dword [esi + 0x56], 0x10001
call fcn.004a4ed0
mov ebx, 2
mov word [esi + 0x5a], ax
mov word [esi + 0x5c], bx
call fcn.004a4ed0
mov word [esi + 0x60], ax
mov word [esi + 0x62], bx
call fcn.004a4ed0
mov word [esi + 0xa6], ax
mov eax, 0x64
mov word [esi + 0x54], ax
lea eax, [ebp - 0x24c]
push eax
mov dword [esi + 0xa8], 0x18
mov word [esi + 0x5e], di
push 0
mov dword [esi + 0xdc], 0x85046
call fcn.004a8a20
lea eax, [ebp - 0x24c]
push eax
call fcn.004881e0
add esp, 0x10
test eax, eax
jne 0x482b80
push eax
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [esi + 0xe0]
push 0x20
push eax
call fcn.004822c0
add esp, 0x14
mov eax, 0x8000
mov dword [esi + 0x136], 0x10000
push 0x20
mov word [esi + 0x242], ax
lea eax, [ebp - 0x44]
push eax
push 0x100a
push 0x800
mov dword [esi + 0x100], 0x176ff
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xa
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0051726f
add eax, 0xfffffff8
add esp, 0xc
cmp eax, 1
ja 0x482bda
mov word [esi + 0x138], bx
call fcn.004a4ed0
push 0x54f0ec
lea ecx, [esi + 0x106]
mov word [esi + 0x104], ax
call fcn.00496fb0
or dword [esi + 0x100], 0x800
mov eax, 0xf1
push 0
mov word [esi + 0x112], ax
mov eax, 0x12c
push 0
push str.Courier_New
mov word [esi + 0x348], ax
lea eax, [esi + 0x114]
push 0x20
push eax
mov word [esi + 0x10e], di
mov dword [esi + 0x23e], 0x4b0060
mov word [esi + 0x134], di
call fcn.004822c0
add esp, 0x14
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00507257
mov esp, ebp
pop ebp
ret