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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x66dd68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4056b5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059d9f6
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x10]
push ecx
push edx
push ebx
push 2
push eax
call edi
test eax, eax
jne 0x4056ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4056ee
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059d9f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x10]
push edx
push eax
push esi
push 2
push ecx
call edi
mov edx, dword [ebp - 0x14]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x40573f
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x405752
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059d9f6
mov esp, ebp
pop ebp
ret
xor edi, edi
mov dword [ebp - 0x1c], ebx
cmp dword [esi], ebx
jbe 0x405782
lea ebx, [esi + 4]
mov edi, edi
mov edx, dword [ebx]
mov eax, dword [ebp - 0x18]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40577b
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x405760
jmp 0x405782
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0059d9f6
mov esp, ebp
pop ebp
ret

Function at 0x4057b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret
Function at 0x40be56
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5ce2be
call fcn.0059f2e6
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402b60
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x40beb8
call fcn.0040a5fd
cmp eax, 1
jne 0x40beb8
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004061b0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00406a60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402c30
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402c30
mov eax, esi
call fcn.0059f3be
ret 0x10

Function at 0x40bee1
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x5ce2e9
call fcn.0059f2e6
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402b60
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x40bf43
call fcn.0040a5fd
cmp eax, 1
jne 0x40bf43
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004061b0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00406a60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402c30
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402c30
mov eax, esi
call fcn.0059f3be
ret 0x14

Function at 0x40bf6f
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x5ce314
call fcn.0059f2e6
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402b60
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x40bfd1
call fcn.0040a5fd
cmp eax, 1
jne 0x40bfd1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004061b0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00406a60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00402c30
inc esi
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
test ecx, ecx
je 0x40bfe3
call fcn.0040b463
jmp 0x40bfe9
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402c30
mov eax, esi
call fcn.0059f3be
ret 0xc

Function at 0x41400c
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x41404a
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x414058
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414058
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x41405a
cmp dword [esi + 4], 0
je 0x414058
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x417048
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00416426
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x417092
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040882a
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00402030
jmp 0x41709d
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00411d4f
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41719b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004173bb
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4171d8
call fcn.00416426
mov dword [esi + 0xc], 1
jmp 0x4171dd
call fcn.00416426
cmp dword [esi], 0
je 0x417226
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4171fe
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040882a
jmp 0x417210
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402830
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00402030
jmp 0x41724a
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x41724a
push dword [esi]
push dword [ebp + 8]
call fcn.00411d4f
pop esi
pop ebp
ret 0xc

Function at 0x417e92
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5cef23
call fcn.0059f2e6
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x417eb7
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x417f09
call fcn.00408985
push eax
lea ecx, [ebp - 0x10]
call fcn.00402140
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0059ed9c
push eax
call fcn.00402280
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402c30
mov eax, esi
call fcn.0059f3be
ret 8
Function at 0x41a814
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x66dd68]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x41a859
push 0x5f0ac8
push 4
push eax
call fcn.0059e3f7
push eax
call fcn.00402280
add esp, 0x10
jmp 0x41a86f
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a8ef
push edi
call fcn.0059f47e
mov edi, dword [eax]
call fcn.0059f47e
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0059e533
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0059f47e
cmp dword [eax], 0
je 0x41a8c3
call fcn.0059f47e
push dword [eax]
call fcn.00407755
pop ecx
jmp 0x41a8ca
call fcn.0059f47e
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x41a8ef
cmp dword [ebp - 0x234], esi
jae 0x41a8ef
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41a8f1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0059d9f6
leave
ret
Function at 0x41aeed
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x66dd68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0041406b
pop ecx
cmp eax, esi
je 0x41afd7
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x41afd7
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.005a28d0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x41afd7
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x41afd7
cmp esi, 0x14
jge 0x41afd7
push 0x10
push 0
push edi
call fcn.005a356d
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41afc6
call fcn.0059f47e
cmp dword [eax], 0x22
je 0x41afc6
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0059ed81
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x41af9c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x66f574], 0
jne 0x41b062
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x41b08b
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0041a814
pop ecx
pop ecx
test eax, eax
jne 0x41b08d
inc edi
cmp edi, esi
jl 0x41b068
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059d9f6
leave
ret 8

Function at 0x41c595
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x41c5cd
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41c5db
push str.SetFileAttributesTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c5db
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x41c5dd
cmp dword [esi + 4], 0
je 0x41c5db
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x425382
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4253c9
call fcn.0040b24c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4253c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4253e5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00424e82
mov esi, eax
test edi, edi
je 0x4253e3
test ebx, ebx
je 0x4253e3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x428fab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040b24c
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x428fe4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00428be8
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x429042
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x429066
cmp dword [edi + 0x74], 0
jne 0x429066
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040b24c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00429003
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x429782
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x66dd68]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4297b7
xor eax, eax
jmp 0x42980a
lea eax, [ebp - 0x210]
push eax
call fcn.0059ed81
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4297e8
push 0x63116c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005a35a1
add esp, 0xc
test eax, eax
jne 0x4297b3
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005a35a1
add esp, 0xc
test eax, eax
jne 0x4297b3
lea eax, [ebp - 0x210]
push eax
call fcn.0041406b
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0059d9f6
leave
ret
Function at 0x4987c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4987e2
call fcn.0040b24c
mov esi, dword [eax + 0xc]
push dword [0x672bfc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x498800
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4987f8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x49882d
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4987fa
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004986f6
mov esi, eax
jmp 0x49881f

Function at 0x5421a7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00423684
call fcn.0040c7ab
cmp eax, esi
pop esi
jne 0x5421c3
mov ecx, 0x6712b8
jmp fcn.0042a665
ret

Function at 0x5506aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x5506c2
mov edi, dword [esi + 0xc]
jmp 0x550702
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x5506db
call fcn.00425a73
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x5506f0
call fcn.00425a73
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x550702
call fcn.00425a73
call fcn.0040b24c
cmp dword [eax + 0x3c], 0
je 0x550717
push edi
mov ecx, ebx
call fcn.0054f20b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.005505c4
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x550735
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x550741
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5532da
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 1
mov ecx, esi
test al, 1
je 0x5532fe
mov eax, dword [esi]
push 0
call dword [eax + 0xe0]
test eax, eax
jne 0x55330c
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0xe0]
jmp 0x5532f8
xor eax, eax
inc eax
pop esi
ret
Function at 0x56671d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x56672f
xor eax, eax
jmp 0x5667a4
cmp dword [ebp + 0xc], 0
je 0x56672b
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x566748
call fcn.0040b24c
mov eax, dword [eax + 0xc]
test eax, eax
je 0x56672b
push edi
push dword [ebp + 0xc]
mov dword [esi + 8], eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x566770
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x566774
xor eax, eax
jmp 0x5667a3
push ebx
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x5667a2
push dword [ebp + 0xc]
mov edi, dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, esi
call dword [edi + 4]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x594de3
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.005a28d0
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret 0x14

Function at 0x59d9f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x66dd68]
jne 0x59da00
repz ret
jmp fcn.005a7da1
Function at 0x5b7ee8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x66dd68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005a77a3
and dword [ebp - 0x14], 0
cmp dword [0x6757c0], 0
mov dword [ebp - 0x18], eax
jne 0x5b7f9b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5b8043
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x626398
push ebx
call edi
test eax, eax
je 0x5b8043
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x626388
push ebx
mov dword [0x6757c0], eax
call edi
push eax
call esi
push 0x626374
push ebx
mov dword [0x6757c4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x6757c8], eax
call edi
push eax
call esi
mov dword [0x6757d0], eax
test eax, eax
je 0x5b7f9b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x6757cc], eax
mov eax, dword [0x6757cc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5b7ff4
cmp dword [0x6757d0], ecx
je 0x5b7ff4
push eax
call esi
push dword [0x6757d0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5b7ff4
test ebx, ebx
je 0x5b7ff4
call edi
test eax, eax
je 0x5b7feb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5b7feb
test byte [ebp - 8], 1
jne 0x5b7ff4
or dword [ebp + 0x10], 0x200000
jmp 0x5b8027
mov eax, dword [0x6757c4]
cmp eax, dword [ebp - 0x18]
je 0x5b8027
push eax
call esi
test eax, eax
je 0x5b8027
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5b8027
mov eax, dword [0x6757c8]
cmp eax, dword [ebp - 0x18]
je 0x5b8027
push eax
call esi
test eax, eax
je 0x5b8027
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6757c0]
call esi
test eax, eax
je 0x5b8043
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5b8045
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059d9f6
leave
ret