joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406550
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00519270
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x500
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], 0x598240
mov dword [ebp - 0x28], 0x5705c8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4065e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x590578]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
movzx ebx, word [0x59b138]
push esi
push edi
mov edi, dword [ebp + 8]
push str..dll
push ebx
push 0x570e30
push edi
push str._s_s_04X_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x210], ecx
call fcn.00405a40
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x1c
test eax, eax
js 0x40667e
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40667e
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
mov edx, 0x104
call fcn.00401710
test eax, eax
jns 0x4066d8
push str..dll
and ebx, 0x3ff
push ebx
push 0x570e30
push edi
push str._s_s_04X_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405a40
add esp, 0x1c
test eax, eax
js 0x4066ee
lea eax, [ebp - 0x20c]
push eax
call esi
mov ebx, dword [ebp - 0x210]
cmp eax, 0xffffffff
je 0x4066f4
lea eax, [ebp - 0x20c]
push eax
mov edx, 0x104
mov ecx, ebx
call fcn.00401710
test eax, eax
js 0x4066f4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005175f7
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x210]
push str..dll
push 0x409
push 0x570e30
push edi
push str._s_s_04X_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405a40
add esp, 0x1c
test eax, eax
js 0x406746
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
je 0x406746
lea eax, [ebp - 0x20c]
push eax
mov edx, 0x104
mov ecx, ebx
call fcn.00401710
test eax, eax
jns 0x4066d8
push str..dll
push 9
push 0x570e30
push edi
push str._s_s_04X_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405a40
add esp, 0x1c
test eax, eax
js 0x406799
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
je 0x406799
lea eax, [ebp - 0x20c]
push eax
mov edx, 0x104
mov ecx, ebx
call fcn.00401710
test eax, eax
jns 0x4066d8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005175f7
mov esp, ebp
pop ebp
ret
Function at 0x406850
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], 0
mov dword [0x5998b8], 1
mov dword [0x59823c], 0
mov dword [0x5998b0], 0
mov dword [0x5998ac], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
cmp eax, 1
jne 0x4068a9
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x406909
mov eax, dword [ebx + 4]
mov ecx, str._SMEX
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4068dc
test dx, dx
je 0x4068d8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4068dc
add eax, 4
add ecx, 4
test dx, dx
jne 0x4068b6
xor eax, eax
jmp 0x4068e1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x406a1f
push ebx
mov dword [0x5998b0], 1
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x406a1f
mov eax, dword [ebx + 4]
mov ecx, str._NOURALMSG
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406946
test dx, dx
je 0x406942
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406946
add eax, 4
add ecx, 4
test dx, dx
jne 0x406920
xor eax, eax
jmp 0x40694b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x406a1f
push esi
mov esi, dword [ebx + 8]
push edi
mov edi, dword [ebx + 0xc]
mov dword [0x5998b8], eax
mov dword [0x59823c], 1
cmp word [esi], ax
je 0x406a02
mov ecx, 0x59ad20
xor ebx, ebx
mov edx, 0x202
sub esi, ecx
lea eax, [edx + 0x7ffffdfc]
test eax, eax
je 0x40699f
movzx eax, word [esi + ecx]
test ax, ax
je 0x40699f
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x406981
jmp 0x4069a3
test edx, edx
jne 0x4069ab
sub ecx, 2
mov ebx, 0x8007007a
xor eax, eax
mov word [ecx], ax
test ebx, ebx
js 0x406a1a
mov ecx, 0x599288
xor esi, esi
mov edx, 0x101
sub edi, ecx
lea eax, [edx + 0x7ffffefd]
test eax, eax
je 0x4069e0
movzx eax, word [edi + ecx]
test ax, ax
je 0x4069e0
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x4069c2
jmp 0x4069e4
test edx, edx
jne 0x4069ec
sub ecx, 2
mov esi, 0x8007007a
mov ebx, dword [ebp - 8]
xor eax, eax
mov word [ecx], ax
test esi, esi
js 0x406a1d
mov dword [0x5998ac], 1
pop edi
pop esi
push ebx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
pop edi
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407070
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
push str.User_Registration_IJEREG.EXE
push 1
push 0
mov dword [0x5998b4], 0
mov dword [0x59b124], eax
mov dword [0x599ac8], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x4070b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4070c3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop ebp
ret 0x10
call fcn.00406850
test eax, eax
jne 0x4070d1
pop edi
pop ebp
ret 0x10
push esi
call fcn.00405fa0
test eax, eax
jne 0x4070df
xor esi, esi
jmp 0x40712b
call fcn.00406a30
test eax, eax
jne 0x4070ec
xor esi, esi
jmp 0x40712b
cmp dword [0x5998b8], 0
je 0x407102
call fcn.004067b0
test eax, eax
jne 0x407102
xor esi, esi
jmp 0x40712b
call fcn.00405e80
test eax, eax
jne 0x40710f
xor esi, esi
jmp 0x40712b
cmp dword [0x59823c], 0
je 0x40711f
call fcn.00406b60
jmp 0x407124
call fcn.00406cf0
mov esi, eax
call fcn.00405ab0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x5998b4]
test eax, eax
je 0x40714c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5998b4], 0
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x407410
Capabilities:
Acquire credentials from windows credential manager
Prompt user for credentials

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa28
mov eax, dword [0x590578]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x599ac8]
push ebx
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
push edi
mov edi, edx
mov dword [ebp - 0xa10], eax
mov dword [ebp - 0xa28], 0
movq qword [ebp - 0xa24], xmm0
movq qword [ebp - 0xa1c], xmm0
mov dword [ebp - 0xa08], 1
mov dword [ebp - 0xa14], 0
mov dword [ebp - 0xa0c], 0
test ecx, ecx
jne 0x407502
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa14]
push eax
push ecx
push str.jp.co.canon.SolutionMenuEX_Proxy
call dword [sym.imp.ADVAPI32.dll_CredEnumerateW]
test eax, eax
jne 0x4074ab
pop edi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005175f7
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xa0c]
call dword [sym.imp.ADVAPI32.dll_CredFree]
push 0x60040
lea eax, [ebp - 0xa08]
push eax
push 0x100
push ebx
push 0x201
push edi
push 0
push 0
push str.jp.co.canon.SolutionMenuEX_Proxy
push 0
call dword [sym.imp.credui.dll_CredUIPromptForCredentialsW]
cmp eax, 0x4c7
je 0x4075a9
neg eax
sbb eax, eax
pop edi
add eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005175f7
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x67
push dword [0x5998b4]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x400
lea eax, [ebp - 0xa04]
push eax
push 0x82
push dword [0x5998b4]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp - 0xa10]
mov dword [ebp - 0xa24], eax
push 0x600c0
lea eax, [ebp - 0x204]
mov dword [ebp - 0xa1c], eax
lea eax, [ebp - 0xa04]
mov dword [ebp - 0xa20], eax
lea eax, [ebp - 0xa08]
push eax
push 0x100
push ebx
push 0x201
push edi
push 0
push 0
push str.jp.co.canon.SolutionMenuEX_Proxy
lea eax, [ebp - 0xa28]
push eax
mov dword [ebp - 0xa28], 0x14
mov dword [ebp - 0xa18], 0
call dword [sym.imp.credui.dll_CredUIPromptForCredentialsW]
mov ecx, eax
cmp ecx, 0x4c7
jne 0x4075be
pop edi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005175f7
mov esp, ebp
pop ebp
ret
xor edx, edx
test ecx, ecx
mov ecx, dword [ebp - 4]
mov eax, 3
cmovne eax, edx
pop edi
xor ecx, ebp
pop ebx
call fcn.005175f7
mov esp, ebp
pop ebp
ret
Function at 0x40c96e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x590578]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x591e14]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x40c9ba
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c9d7
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x591e14], eax
jmp 0x40c9c3
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x40c9d7
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40ca44
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40c9f2
xor eax, eax
jmp 0x40ca44
lea eax, [ebp - 0x210]
push eax
call fcn.00518ff9
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x40ca23
push 0x5401c0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051b4f2
add esp, 0xc
test eax, eax
jne 0x40c9ee
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051b4f2
add esp, 0xc
test eax, eax
jne 0x40c9ee
lea eax, [ebp - 0x210]
push eax
call fcn.0040cfc0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005175f7
leave
ret

Function at 0x40f7d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x40f81e
call fcn.00408ee5
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f81e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40f83a
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00417b8c
mov ebx, eax
test edi, edi
je 0x40f838
test esi, esi
je 0x40f838
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x413e19
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x530ef4
call fcn.00518a17
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x413e3f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x413e93
call fcn.0040977f
push eax
lea ecx, [ebp - 0x10]
call fcn.00407863
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00518089
push eax
call fcn.00407678
add esp, 0x14
test edi, edi
je 0x413e86
push edi
call fcn.00518ff9
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004080f7
mov eax, esi
call fcn.005189e5
ret 8
Function at 0x414754
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.00413da8
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x414790
call fcn.0041496f
mov dword [esi + 0xc], 1
jmp 0x414795
call fcn.0041496f
cmp dword [esi], 0
je 0x4147de
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4147b8
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004093c2
jmp 0x4147c9
push 0xff
mov ecx, esi
call fcn.00408035
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004093e5
jmp 0x414802
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x414802
push dword [esi]
push dword [ebp - 4]
call fcn.0040d171
pop esi
leave
ret 0xc

Function at 0x4148c6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041496f
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41490e
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004093c2
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004093e5
jmp 0x414919
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0040d171
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41896e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebx + 0x78], edi
test edi, 0xffff0000
jne 0x418990
cmp dword [ebx + 0x74], 0
jne 0x418990
movzx eax, di
mov dword [ebx + 0x74], eax
call fcn.00408ee5
mov esi, dword [eax + 0xc]
push 5
push edi
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 edi, eax
push edi
mov ecx, ebx
call fcn.00418bfb
push edi
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 0x4189ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00408ee5
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x418a01
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00418a20
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 0x433bce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x433be6
call fcn.00408ee5
mov esi, dword [eax + 0xc]
push 0x546d70
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x433c3c
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x433c3b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x433c1c
xor esi, esi
jmp 0x433c32
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.00433c42
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4bec3c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.004bd7d5
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x4bec71
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x4becba
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x4bec64
call fcn.004bd864
shl byte [esi], 1
mov ch, 0x16
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
call dword [ecx - 0x3a]
test edi, ebx
clc
invalid
jmp [ebp - 0x3a]
test eax, esp
clc
invalid
dec dword [edi - 0x3a]
test ecx, esp
clc
invalid
call dword [edx - 0x3a]
test edx, esp
clc
invalid
dec dword [ecx - 0x3a]
test ebx, esp
clc
invalid
call [eax - 0x3a]
test esp, esp
clc
invalid
call [esi - 0x3a]
test ebp, esp
clc
invalid
dec dword [ecx - 0x3a]
test esi, esp
clc
invalid
invalid
cmp eax, 0xffeb17e8
inc esi
Function at 0x4fabf7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x4fac11
mov edi, dword [esi + 0xc]
jmp 0x4fac51
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4fac2a
call fcn.004161aa
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fac3f
call fcn.004161aa
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fac51
call fcn.004161aa
call fcn.00408ee5
cmp dword [eax + 0x3c], 0
je 0x4fac66
push edi
mov ecx, ebx
call fcn.004fa51b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004fae29
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x4fac89
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x4fac92
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x52a198
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x590578]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0051e909
mov dword [ebp - 0x14], eax
cmp dword [0x598050], edi
jne 0x52a289
push 0x800
push edi
push 0x56b3d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x52a216
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x52a369
push 0x56b3d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x52a369
push 0x56b3e8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52a369
push eax
call ebx
push 0x56b3f4
push esi
mov dword [0x598050], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x56b404
push esi
mov dword [0x598054], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x598058], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x598060], eax
test eax, eax
je 0x52a286
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x59805c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x52a2ae
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x52a2a1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x52a2c3
push 4
pop eax
jmp 0x52a36b
cmp dword [ebp - 0x14], edi
je 0x52a2c3
push dword [0x598050]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x52a2a8
mov eax, dword [0x59805c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x52a321
cmp dword [0x598060], esi
je 0x52a321
push eax
call ebx
push dword [0x598060]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x52a321
test eax, eax
je 0x52a321
call ecx
test eax, eax
je 0x52a316
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x52a316
test byte [ebp - 8], 1
jne 0x52a321
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x52a351
mov eax, dword [0x598054]
cmp eax, esi
je 0x52a34e
push eax
call ebx
test eax, eax
je 0x52a34e
call eax
mov edi, eax
test edi, edi
je 0x52a34e
mov eax, dword [0x598058]
cmp eax, esi
je 0x52a34e
push eax
call ebx
test eax, eax
je 0x52a34e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x598050]
call ebx
test eax, eax
je 0x52a369
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x52a36b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005175f7
leave
ret