joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4576b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584dc9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5f01b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.0046b8a8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4576fd
push 0x80004005
call fcn.004020e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov edi, dword [ebx + 4]
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x201
or eax, ecx
jge 0x457734
push 0x201
mov ecx, esi
call fcn.00401e80
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov ebx, dword [ebx]
push edi
push 0x200
push eax
push 0x5bda14
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi]
mov ecx, 0x201
cmp dword [eax - 8], ecx
jl 0x457790
mov dword [eax - 0xc], ecx
mov edx, dword [esi]
push 0x5bfb88
push 0x5c4678
mov ecx, esi
mov byte [edx + 0x201], 0
call fcn.00433db0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.004020e0
int3
Function at 0x457980
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58543d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1f54
call fcn.00561ec0
mov eax, dword [0x5f01b4]
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
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov esi, ecx
mov dword [ebp - 0x1f5c], esi
mov edi, edx
mov dword [ebp - 0x1f64], eax
call fcn.0046b8a8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4579e8
push 0x80004005
call fcn.004020e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x1f3f
mov eax, 1
lea ecx, [ebp - 0x1f53]
push 0
mov dword [ebp - 4], eax
push ecx
mov dword [ebp - 0x1f64], eax
mov byte [ebp - 0x1f54], 0
call fcn.005610a0
mov eax, dword [edi]
mov ecx, dword [ebx]
add esp, 0xc
push eax
push 0x1f40
lea edx, [ebp - 0x1f54]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp eax, 0x1f3e
jne 0x457a58
push 0x5df2b8
lea eax, [ebp - 0x1f56]
push eax
mov byte [ebp - 0x1f56], 0
call fcn.005612f8
push eax
lea ecx, [ebp - 0x1f60]
push ecx
lea ecx, [ebp - 0x1f54]
call fcn.00457b00
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00402070
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1f60]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x457a9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
sete al
cmp al, 1
jne 0x457ade
push 0x5df2b8
lea edx, [ebp - 0x1f55]
push edx
mov byte [ebp - 0x1f55], 0
call fcn.005612f8
mov ecx, dword [ebp - 0x1f5c]
push 0x5bda14
call fcn.00401c60
mov eax, 0x457ad8
ret
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.0055db96
mov esp, ebp
pop ebp
ret 4
Function at 0x457bf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584dc9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5f01b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.0046b8a8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x457c3b
push 0x80004005
call fcn.004020e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov edi, dword [edx]
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x201
or eax, ecx
jge 0x457c74
push 0x201
mov ecx, esi
call fcn.00401e80
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
push edi
push 0x200
push eax
push 0x5bda14
push ecx
push str.Parameter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi]
mov ecx, 0x201
cmp dword [eax - 8], ecx
jl 0x457cc0
mov dword [eax - 0xc], ecx
mov edx, dword [esi]
mov byte [edx + 0x201], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.004020e0
int3

Function at 0x457eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareBrotherBrother_MFL_Pro
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x457f15
mov eax, 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.LangID
push ecx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x457f0b
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x458c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5f01b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
mov esi, ecx
mov byte [esi], 0
push str.SOFTWAREBrotherBrother_MFL_Pro
mov byte [edi], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x110], 0x104
mov byte [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x458d43
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x108]
push edx
push eax
push eax
mov eax, dword [ebp - 0x10c]
push str.DebugEx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x458ce2
mov byte [esi], 1
mov eax, dword [ebp - 0x10c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push str.DebugRcvXml
push eax
call esi
test eax, eax
jne 0x458d0f
mov byte [edi], 1
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push str.DebugServer
push eax
call esi
test eax, eax
jne 0x458d36
mov byte [ebx], 1
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055db96
mov esp, ebp
pop ebp
ret
Function at 0x45d1a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea esi, [ebp - 8]
xor edi, edi
call fcn.00456da0
mov eax, dword [eax]
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
je 0x45d1e8
cmp byte [eax], 0
je 0x45d1e8
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45d1e5
mov dword [ebp - 4], esi
jmp 0x45d1e8
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d207
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x45d22d
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push str.Firm_Update_Last_Data
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
mov edx, dword [ebp + 8]
push edx
push str.__SetCurrentDateToReg_____d__n
push 0x40000
push 0x5f2054
call fcn.00433010
add esp, 0x10
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x466c60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5844e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5f01b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [esi]
push eax
mov byte [ebp - 0x11], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [esi]
test eax, eax
setne bl
movzx eax, bl
push eax
push ecx
push str.__file::IsExist___s_____d_n
push 0x40000
push 0x5f2054
call fcn.00433010
add esp, 0x14
test bl, bl
jne 0x466ce7
call fcn.00443e70
test al, al
jne 0x466ce7
push 0x5df394
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], str.file.CreateFolder__false
call fcn.005612f8
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
call fcn.00444040
test al, al
jne 0x466d56
push 0x5df394
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], str.file.Copy_____false
call fcn.005612f8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ecx
push eax
push str.__Error____:_CopyTool___s____s____s____n
push 0x20000
push 0x5f2054
call fcn.00433010
mov ecx, dword [ebp - 0x20]
push ecx
push 0x5c26dc
push 0x20000
push 0x5f2054
call fcn.00433010
add esp, 0x28
mov byte [ebp - 0x11], 0
mov eax, 0x466d56
ret
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x469de0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585028
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f01b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0046f6c9
push 0x84
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.00479f5c
push 1
push 0x5bda68
lea ecx, [esi + 0x98]
call fcn.00430a90
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0046a050
mov dword [ebp - 4], 0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esi + 0x98]
call fcn.00430a90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469e7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esi + 0x98]
mov eax, dword [esi + 0x94]
push 5
push 0
push edi
push eax
push 0x5c2afc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
cmp eax, 0x20
jl 0x469ec7
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0x4e20
push 2
push ecx
call edi
mov edx, dword [esi + 0x20]
push 0
push 0x1f4
push 3
push edx
call edi
jmp 0x469ece
mov ecx, esi
call fcn.0046f29a
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46aabd
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5f01b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46ab92
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46ab81
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x46ab6b
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x46ab81
push eax
push edi
push dword [ebp - 0x110]
call fcn.004504b0
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x46ab94
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055db96
leave
ret 4
Function at 0x46fbd6
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.0046f0ea
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46fc0f
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.0046f818
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 0x46fc6d
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 0x46fc91
cmp dword [edi + 0x74], 0
jne 0x46fc91
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0046f0ea
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
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.0046fc2e
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 0x479c07
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 0x479c4e
call fcn.0046f0ea
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x479c4e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x479c6a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0047970c
mov esi, eax
test edi, edi
je 0x479c68
test ebx, ebx
je 0x479c68
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47a049
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5812b4
call fcn.00560f8f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x47a06e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x47a0c0
call fcn.0046b8a8
push eax
lea ecx, [ebp - 0x10]
call fcn.00405070
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.00561278
push eax
call fcn.004054c0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402100
mov eax, esi
call fcn.00561067
ret 8
Function at 0x47a4b4
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.0047a0c8
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x47a4fe
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0046ca76
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004055f0
jmp 0x47a509
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0048092c
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x47a50f
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.00479d13
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x47a54c
call fcn.0047a0c8
mov dword [esi + 0xc], 1
jmp 0x47a551
call fcn.0047a0c8
cmp dword [esi], 0
je 0x47a59a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x47a572
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0046ca76
jmp 0x47a584
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401ee0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004055f0
jmp 0x47a5be
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x47a5be
push dword [esi]
push dword [ebp + 8]
call fcn.0048092c
pop esi
pop ebp
ret 0xc

Function at 0x47b7a5
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 0x47b7bd
mov edi, dword [esi + 0xc]
jmp 0x47b7fd
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x47b7d6
call fcn.0047041f
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x47b7eb
call fcn.0047041f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x47b7fd
call fcn.0047041f
call fcn.0046f0ea
cmp dword [eax + 0x3c], 0
je 0x47b812
push edi
mov ecx, ebx
call fcn.0047a684
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0047b6bf
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x47b830
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x47b83c
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 0x4efa16
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 0x4efa30
call fcn.0046f0ea
mov esi, dword [eax + 0xc]
push dword [0x5f6084]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4efa4e
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 0x4efa46
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4efa7b
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4efa48
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004ef944
mov esi, eax
jmp 0x4efa6d

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00478087
call fcn.0046b006
cmp eax, esi
pop esi
jne 0x53ee22
mov ecx, 0x5f3fa0
jmp fcn.00483c19
ret

Function at 0x55db96
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5f01b4]
jne 0x55dba0
repz ret
jmp fcn.00566754
Function at 0x574c11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f01b4]
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.0056750f
and dword [ebp - 0x14], 0
cmp dword [0x5f85b0], 0
mov dword [ebp - 0x18], eax
jne 0x574cc4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x574d6c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x574d6c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5bd718
push ebx
mov dword [0x5f85b0], eax
call edi
push eax
call esi
push 0x5bd704
push ebx
mov dword [0x5f85b4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5f85b8], eax
call edi
push eax
call esi
mov dword [0x5f85c0], eax
test eax, eax
je 0x574cc4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5f85bc], eax
mov eax, dword [0x5f85bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x574d1d
cmp dword [0x5f85c0], ecx
je 0x574d1d
push eax
call esi
push dword [0x5f85c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x574d1d
test ebx, ebx
je 0x574d1d
call edi
test eax, eax
je 0x574d14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x574d14
test byte [ebp - 8], 1
jne 0x574d1d
or dword [ebp + 0x10], 0x200000
jmp 0x574d50
mov eax, dword [0x5f85b4]
cmp eax, dword [ebp - 0x18]
je 0x574d50
push eax
call esi
test eax, eax
je 0x574d50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x574d50
mov eax, dword [0x5f85b8]
cmp eax, dword [ebp - 0x18]
je 0x574d50
push eax
call esi
test eax, eax
je 0x574d50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5f85b0]
call esi
test eax, eax
je 0x574d6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x574d6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055db96
leave
ret