joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4580b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f7580
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x540320]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x540320]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
xorps xmm0, xmm0
push ebx
movq qword [esp + 0x18], xmm0
push ebx
mov dword [esp + 0x20], ebx
call fcn.00458940
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x78], ebx
mov edi, dword [esi + 4]
mov esi, dword [edi]
cmp esi, edi
je 0x458204
lea ebx, [ebx]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [esp + 0x28], ax
lea eax, [esi + 0xc]
push eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
call fcn.00409bc0
mov eax, dword [esi + 0x24]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x48]
mov dword [esp + 0x5c], eax
mov al, byte [esi + 0x4c]
mov byte [esp + 0x60], al
mov byte [esp + 0x78], 1
mov ecx, 0x54be00
push dword [esp + 0x1c]
call fcn.00467840
test al, al
je 0x4581e1
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 4]
push eax
call fcn.00459440
mov ecx, 0x3333332
sub ecx, ebx
cmp ecx, 1
jb 0x45824f
mov ecx, dword [esp + 0x14]
inc ebx
mov dword [esp + 0x18], ebx
mov dword [ecx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [esp + 0x78], 0
cmp dword [esp + 0x34], 8
jb 0x4581fa
push dword [esp + 0x20]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [esi]
cmp esi, edi
jne 0x458120
lea eax, [esp + 0x14]
mov ecx, 0x54bdc0
push eax
mov eax, dword [esp + 0x14]
add eax, 0xc
push eax
call fcn.00438580
lea ecx, [esp + 0x14]
call fcn.00437ab0
push dword [esp + 0x14]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004edbca
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x45b630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f78fb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x540320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
push ecx
call fcn.00431740
push dword [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [edi + 0x30]
mov dword [edi], vtable.std::_Packaged_state_void____cdecl___void__.0
call fcn.0045b870
mov dword [ebp - 4], 1
lea ebx, [edi + 0x48]
mov dword [edi], vtable.std::_Task_async_state_void__0_.0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov byte [ebp - 4], 2
lea eax, [edi + 4]
mov ecx, 1
lock xadd dword [eax], ecx
sub esp, 0x2c
mov esi, esp
sub esp, 8
mov ecx, esp
call fcn.00431940
mov ecx, esi
call fcn.004318c0
lea ecx, [esi + 0xc]
call fcn.00431950
mov dword [esi + 0x1c], 0
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x14], 0
push edi
mov word [esi + 0x28], 0
call fcn.0045b7c0
add esp, 0x30
cmp ebx, eax
je 0x45b704
push eax
mov ecx, ebx
call fcn.004319a0
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x45b730
or ebx, 0xffffffff
lea ecx, [esi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x45b730
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x45b730
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, edi
mov byte [edi + 0x26], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4607e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7f4b
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x540320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
lea eax, [ebp - 0x828]
mov dword [ebp - 0x82c], 0
push eax
call fcn.0048edd0
add esp, 4
push 0xe
push str.pathconfig.ini
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0
call fcn.0041aff0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x828]
cmp dword [ebp - 0x814], 8
cmovae ecx, dword [ebp - 0x828]
cmp dword [esi + 0x14], 8
jb 0x46087f
mov eax, dword [esi]
jmp 0x460881
mov eax, esi
push ecx
push 0x400
lea ecx, [ebp - 0x810]
push ecx
push 0x509888
push eax
push str.setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [esi + 0x14], 8
jb 0x4608a7
mov esi, dword [esi]
lea eax, [ebp - 0x810]
push eax
push esi
push str.pathconfig:_s__s
push 0xa9
push str.readPathFromConfig
call fcn.00480870
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
add esp, 0x14
mov word [edi], ax
cmp word [ebp - 0x810], ax
jne 0x4608e6
xor ecx, ecx
jmp 0x4608ff
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4608f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
call fcn.00409fb0
cmp dword [ebp - 0x814], 8
jb 0x460926
push dword [ebp - 0x828]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret
Function at 0x460c90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x20
mov eax, dword [eax]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [eax]
push edi
cmp esi, eax
je 0x460e32
jmp 0x460cb0
push dword [esi + 8]
mov ecx, ebx
call fcn.00477cd0
test al, al
je 0x460cc7
mov dword [esi + 0x48], 3
jmp 0x460cdc
push dword [esi + 8]
mov ecx, ebx
call fcn.00477d60
test al, al
je 0x460cdc
mov dword [esi + 0x48], 4
cmp byte [ebp + 0xc], 0
mov eax, dword [esi + 8]
mov edi, eax
je 0x460cef
or edi, 0x1000000
jmp 0x460d0d
cmp byte [ebp + 0x10], 0
je 0x460cff
mov edi, eax
or edi, 0x5000000
jmp 0x460d0d
cmp byte [ebp + 0x14], 0
je 0x460d0d
mov edi, eax
or edi, 0x3000000
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.00477560
cmp dword [eax + 0x14], 8
jb 0x460d21
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp dword [ebp - 8], 8
jb 0x460d3e
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x460d64
mov dword [esi + 0x48], 1
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x460e22
lea eax, [esi + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push str.TheRender
push str.RenderWindow
push 0
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x460e22
push 0x519b28
push str.subWin
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
cmp dword [esi + 0x2c], 0
mov ecx, eax
mov dword [esi + 0x30], ecx
je 0x460e22
lea eax, [esi + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esi + 0x48], 1
je 0x460e22
push dword [esi + 8]
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.00477560
cmp dword [eax + 0x14], 8
jb 0x460ddf
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp dword [ebp - 8], 8
jb 0x460dfc
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 5
setne cl
inc ecx
mov dword [esi + 0x48], ecx
mov eax, dword [ebp + 8]
mov dword [esi + 8], edi
mov esi, dword [esi]
cmp esi, dword [eax]
jne 0x460cb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x46b8e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f8c88
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x540320]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x540320]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x46ba11
cmp byte [esi + 0x45], 0
je 0x46ba11
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x46b940
xor al, al
jmp 0x46ba13
sub esp, 8
lea ecx, [esp + 0x20]
call fcn.0046b790
mov dword [esp + 0x40], 0
lea edi, [esi + 0x48]
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmp ebx, 0x10
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
push edi
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x46b998
dec eax
je 0x46b99c
sub eax, 2
je 0x46b9f7
xor bl, bl
jmp 0x46b9f9
mov byte [esi + 0x45], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp ebx, 0x10
mov edi, dword [esp + 0x14]
cmovae eax, ecx
sub edi, eax
je 0x46b9d4
push dword [esi + 0x50]
cmp ebx, 0x10
lea eax, [esp + 0x1c]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x46b994
cmp byte [esi + 0x45], 0
je 0x46b9f7
test edi, edi
lea edi, [esi + 0x48]
jne 0x46b957
push 0
push 8
lea ecx, [esp + 0x20]
call fcn.0046b830
jmp 0x46b954
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x46ba0d
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x46ba13
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004edbca
mov esp, ebp
pop ebp
ret
Function at 0x46d5b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x302c
call fcn.004ee360
mov eax, dword [0x540320]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x300c], 0
lea eax, [ebp - 0x302c]
mov esi, edx
push eax
mov edi, ecx
movdqu xmmword [ebp - 0x302c], xmm0
movdqu xmmword [ebp - 0x301c], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3018]
mov dword [edi], eax
mov dword [esi], eax
mov eax, dword [0x55e8f0]
test al, 1
jne 0x46d633
push str.GetLogicalProcessorInformation
or eax, 1
push str.kernel32.dll
mov dword [0x55e8f0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x55e8f4], esi
jmp 0x46d639
mov esi, dword [0x55e8f4]
test esi, esi
je 0x46d6a7
push 0x3000
lea eax, [ebp - 0x3004]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x3008], 0x3000
lea eax, [ebp - 0x3008]
push eax
lea eax, [ebp - 0x3004]
push eax
call esi
test eax, eax
je 0x46d6a7
mov eax, 0xaaaaaaab
xor esi, esi
mul dword [ebp - 0x3008]
shr edx, 4
test edx, edx
je 0x46d6a7
lea ecx, [ebp - 0x3000]
jmp 0x46d690
mov eax, dword [ecx]
sub eax, 0
je 0x46d69a
dec eax
jmp 0x46d69b
inc esi
add ecx, 0x18
dec edx
jne 0x46d690
test esi, esi
je 0x46d6a7
mov dword [edi], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004edbca
mov esp, ebp
pop ebp
ret
Function at 0x472c50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9ba8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x540320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0xc], 0
push 0x400
push ecx
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
call fcn.00433580
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov eax, dword [edi + 0x10]
mov dword [edi + 0x30], eax
xor eax, eax
mov dword [edi + 0x48], 7
mov dword [edi + 0x44], 0
mov word [edi + 0x34], ax
mov byte [edi + 0x4c], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x473b30
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9d26
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x540320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x238], 0
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x21c]
push eax
call fcn.00424c20
push 0x50f5a0
lea edx, [ebp - 0x234]
mov dword [ebp - 4], 1
mov ecx, 0x55e9d0
call fcn.00424e10
add esp, 4
cmp dword [ebp - 0x220], 8
jb 0x473c01
push dword [ebp - 0x234]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 0x55e9d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret 4

Function at 0x473cd0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x540320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x224], 0
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x220], 0x55e9ec
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [0x55ea00], 7
mov dword [0x55e9fc], 0
mov word [0x55e9ec], ax
mov dword [ebp - 4], eax
mov ecx, 0x55e9ec
lea eax, [ebp - 0x21c]
push eax
call fcn.00424c20
mov eax, 0x55e9ec
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret 4
Function at 0x475920
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x47596e
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x47594a
mov esi, dword [esi]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push str.LDPlayer9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x476f50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa553
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x540320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0047c900
mov dword [edi], eax
push 0
mov dword [ebp - 4], 0
push 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.0043bde0
mov dword [edi + 8], eax
push 0
mov byte [ebp - 4], 1
push 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0043bde0
mov dword [edi + 0x10], eax
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x5c], 7
xor eax, eax
mov dword [edi + 0x58], 0
mov word [edi + 0x48], ax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], 7
mov word [edi + 0x60], ax
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], 7
mov word [edi + 0x78], ax
mov dword [edi + 0xa4], eax
mov dword [edi + 0xa8], 7
mov word [edi + 0x94], ax
mov dword [edi + 0xac], eax
mov dword [edi + 0xb0], 0xffffffff
mov dword [edi + 0xb4], eax
mov eax, edi
mov dword [edi + 0xb8], 2
mov dword [edi + 0xbc], 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x477360
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov eax, 0x4e67c6a7
push edi
movzx edi, word [esi]
test di, di
je 0x47738f
mov edx, eax
lea esi, [esi + 2]
mov ecx, eax
shl edx, 5
shr ecx, 2
add edx, ecx
movzx ecx, di
movzx edi, word [esi]
add edx, ecx
xor eax, edx
test di, di
jne 0x477371
pop edi
and eax, 0x7fff
pop esi
ret
Function at 0x47bc10
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x540320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.004774b0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004853d0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00485600
test al, al
jne 0x47bc68
xor esi, esi
jmp 0x47bc9b
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xffffffff
call fcn.00482490
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [ebp - 0x34]
push eax
push 0x47baf0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x18], 8
jb 0x47bcad
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret 4

Function at 0x47fc00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x540320]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x47fc23
mov eax, dword [edi]
jmp 0x47fc25
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x47fc2d
mov ecx, dword [esi]
push 1
push 0
push eax
push ecx
push str.shell_filename____s___param____s___runas___d__show___d
push 0x99
push str.common::shell
call fcn.00480870
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0x28
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x47fc8f
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [edi + 0x14], 8
jb 0x47fc97
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x47fc9f
mov esi, dword [esi]
push 5
push 0
push edi
push esi
push 0x5223e0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
cmp eax, 0x20
jg 0x47fce7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shellEx_failed____lastError___d
push 0xa6
push str.common::shell
call fcn.00480870
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret
Function at 0x47fd00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbae8
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x540320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x47fd3b
mov eax, dword [esi]
jmp 0x47fd3d
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x47fd45
mov ecx, dword [edi]
push eax
push ecx
push str.createProcess_filename____s___param____s_
push 0xb1
push str.common::create
call fcn.00480870
push edi
mov edx, 0x50f00c
lea ecx, [ebp - 0x40]
call fcn.0041c1e0
push 0x50f00c
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0041c2d0
add esp, 0x24
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x47fd9a
push dword [ebp - 0x40]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [esi + 0x10], eax
je 0x47fde7
push esi
mov edx, 0x522528
lea ecx, [ebp - 0x58]
call fcn.0041c1e0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.004246e0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 8
jb 0x47fde7
push dword [ebp - 0x58]
call edi
add esp, 4
push 0x40
lea eax, [ebp - 0xac]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0xb0], 0x44
lea ecx, [ebp - 0x68]
mov dword [ebp - 0xac], 0
xor eax, eax
mov dword [ebp - 0xa8], 0
cmp dword [ebp - 0x14], 8
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x80], eax
push ecx
push 0
push 0
push 0x10
push 0
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x84], 1
movdqu xmmword [ebp - 0x68], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x47fe8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.createProcess_failed____lastError___d
push 0xc4
push str.common::create
call fcn.00480870
add esp, 0x10
xor esi, esi
jmp 0x47fe99
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x68]
cmp dword [ebp - 0x14], 8
jb 0x47fea7
push dword [ebp - 0x28]
call edi
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004edbca
mov esp, ebp
pop ebp
ret
Function at 0x47fff0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x540320]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x264], 0
push 0x256
push eax
mov word [ebp - 0x25c], ax
mov esi, edx
lea eax, [ebp - 0x25a]
mov edi, ecx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x480080
lea eax, [ebp - 0x268]
push eax
push 4
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x480079
push 0x104
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x260]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x25c], ax
jne 0x4800a0
xor ecx, ecx
jmp 0x4800bf
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4800b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x25c]
mov ecx, edi
push eax
call fcn.00409fb0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004edbca
mov esp, ebp
pop ebp
ret