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

Disassembly:
push 0xffffffffffffffff
push 0x5229d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x57373c]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x68]
xor edi, edi
mov ecx, 0x595c78
mov dword [esp + 0x58], edi
mov dword [esp + 0x38], 0x14
mov dword [esp + 0x3c], 0xb4
mov dword [esp + 0x40], 0x17c
mov dword [esp + 0x44], 0x1e0
mov dword [esp + 0x48], 0x244
mov dword [esp + 0x4c], 0x2a8
mov dword [esp + 0x14], ebp
call fcn.004b4020
mov esi, eax
neg esi
sbb esi, esi
and esi, 2
add esi, 3
test esi, esi
mov dword [esp + 0x68], esi
jle 0x4c72a2
jmp 0x4c715d
mov esi, dword [esp + 0x68]
lea ecx, [esp + 0x10]
call fcn.004f3349
push edi
push 0xd
lea ecx, [esp + 0x30]
push 2
push ecx
call fcn.0045c490
mov edx, eax
add esp, 0x10
mov eax, dword [edx]
push eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x24], ecx
mov ecx, 0x595e30
mov edx, dword [edx + 0xc]
mov dword [esp + 0x28], edx
call fcn.004044e0
push eax
lea ecx, [esp + 0x14]
call fcn.004f3547
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + edi*4 + 0x38]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push eax
mov eax, dword [esp + 0x78]
push eax
push ecx
mov ecx, ebx
call fcn.004cbf50
test edi, edi
mov ebp, eax
jne 0x4c71ee
mov edx, dword [esp + esi*4 + 0x38]
mov ecx, dword [esp + 0x64]
push 2
push edx
mov edx, dword [esp + 0x68]
lea eax, [ebp + 4]
push 0x14
push eax
push ecx
push edx
mov ecx, ebx
call fcn.004cbe20
xor esi, esi
lea ecx, [esp + 0x10]
call fcn.004f3349
test edi, edi
je 0x4c7257
push 1
push edi
push esi
call fcn.0045cdf0
add esp, 0xc
test eax, eax
je 0x4c721e
mov ecx, dword [ebx + 0x42]
push edi
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0045c810
jmp 0x4c7269
cmp edi, 1
jne 0x4c722a
push str.______________
jmp 0x4c722f
push 0x53b670
lea ecx, [esp + 0x14]
call fcn.004f3547
cmp esi, 2
jne 0x4c7269
mov ecx, 0x595c78
call fcn.00414b50
cmp eax, 1
jne 0x4c7269
lea ecx, [esp + 0x10]
call fcn.004f3349
jmp 0x4c7269
push esi
push 0xd
lea ecx, [esp + 0x18]
push 2
push ecx
mov ecx, dword [ebx + 0x42]
call fcn.0045c520
mov edx, dword [esp + 0x10]
mov eax, dword [esp + edi*4 + 0x38]
mov ecx, dword [esp + 0x60]
push 0
push 1
push edx
push ebp
push eax
mov eax, dword [esp + 0x78]
push eax
push ecx
mov ecx, ebx
call fcn.004cbf50
inc esi
mov ebp, eax
cmp esi, 3
jl 0x4c71f0
mov eax, dword [esp + 0x68]
inc edi
cmp edi, eax
jl 0x4c7159
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0xffffffff
call fcn.004f33be
mov ecx, dword [esp + 0x50]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 0xc
Function at 0x4cbb80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x522d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x57373c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x70]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x20], 0x14
mov dword [esp + 0x24], 0xa0
mov dword [esp + 0x28], 0x14a
mov dword [esp + 0x2c], 0x1f4
call fcn.004cbde0
mov edx, dword [esp + 0x78]
mov edi, eax
add edi, 6
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
jmp 0x4cbbf0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], eax
call fcn.004f3349
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push ebx
push ecx
mov ecx, dword [esi + 0x66]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00480ed0
mov ecx, eax
mov eax, dword [ecx]
push eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x34], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x38], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, 0x595e30
call fcn.004044e0
push eax
lea ecx, [esp + 0x14]
call fcn.004f3547
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x78]
mov ebp, dword [esp + ebx*4 + 0x1c]
mov ecx, dword [esp + 0x74]
push 0
push 0
push edx
mov edx, dword [esp + 0x7c]
push eax
push ebp
push ecx
push edx
mov ecx, esi
call fcn.004cbf50
lea eax, [esp + 0x78]
push edi
push eax
mov ecx, esi
call fcn.004cbdb0
test ebx, ebx
jne 0x4cbca1
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push 2
push 0x1f4
add ecx, 4
push 0x14
push ecx
push edx
push eax
mov ecx, esi
call fcn.004cbe20
xor edi, edi
lea ecx, [esp + 0x10]
call fcn.004f3349
test ebx, ebx
je 0x4cbd03
xor ecx, ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
lea eax, [ebx - 1]
mov dword [esp + 0x50], ecx
push edx
mov dword [esp + 0x58], ecx
push eax
mov dword [esp + 0x60], ecx
push edi
mov byte [esp + 0x68], cl
mov ecx, 0x595810
call fcn.004033c0
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004f3547
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x4cbd1e
push str.______________
lea ecx, [esp + 0x14]
call fcn.004f3547
jmp 0x4cbd1e
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push edi
push eax
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x66]
push edx
call fcn.00480f30
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push 0
push 1
push eax
mov eax, dword [esp + 0x7c]
push ecx
push ebp
push edx
push eax
mov ecx, esi
call fcn.004cbf50
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x78]
push ecx
push edx
mov ecx, esi
call fcn.004cbdb0
inc edi
cmp edi, 5
jl 0x4cbca3
inc ebx
cmp ebx, 3
jl 0x4cbbec
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], 0xffffffff
call fcn.004f33be
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0x14
Function at 0x4cfb50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5230a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x57373c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
push 0x556
mov ecx, 0x595e30
mov dword [esp + 0x40], 0
call fcn.004044e0
push eax
lea ecx, [esp + 0x14]
call fcn.004f3547
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
push 0x8c
push ecx
push edx
push 0
push ebx
push ebp
mov ecx, esi
call fcn.004c4a20
push ebp
mov ecx, esi
mov dword [esp + 0x54], eax
call fcn.004cbde0
mov eax, dword [0x57373c]
mov dword [esp + 0x18], eax
mov ecx, dword [0x57ce84]
mov byte [esp + 0x3c], 1
mov edi, dword [ecx + 0x28]
lea ecx, [esp + 0x18]
mov edx, dword [edi]
lea eax, [edi + 4]
push eax
mov dword [esp + 0x18], edx
call fcn.004f34f7
mov ecx, dword [edi + 8]
add edi, 0x10
mov dword [esp + 0x1c], ecx
mov edx, dword [edi - 4]
mov dword [esp + 0x20], edx
mov eax, dword [edi]
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov edx, dword [edi + 8]
push ecx
mov dword [esp + 0x30], edx
lea ecx, [esp + 0x14]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x34], eax
call fcn.004f34f7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
push 0x78
push edx
push eax
push 0x14
push ebx
push ebp
mov ecx, esi
call fcn.004c4a20
push ebp
mov ecx, esi
mov edi, eax
call fcn.004cbde0
mov ecx, dword [esp + 0x4c]
push 0
push edi
push ecx
push ebx
push ebp
mov ecx, esi
call fcn.004cfdf0
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x3c], 0
call fcn.004f33be
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004f33be
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0x10
Function at 0x4cfca0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5230c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x57373c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
push 0x556
mov ecx, 0x595e30
mov dword [esp + 0x40], 0
call fcn.004044e0
push eax
lea ecx, [esp + 0x14]
call fcn.004f3547
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
push 0x8c
push ecx
push edx
push 0
push ebx
push ebp
mov ecx, esi
call fcn.004c4a20
push ebp
mov ecx, esi
mov dword [esp + 0x54], eax
call fcn.004cbde0
mov eax, dword [0x57373c]
mov dword [esp + 0x18], eax
mov ecx, dword [0x57ce84]
mov byte [esp + 0x3c], 1
mov edi, dword [ecx + 0x28]
lea ecx, [esp + 0x18]
mov edx, dword [edi + 0x20]
lea eax, [edi + 0x24]
push eax
mov dword [esp + 0x18], edx
call fcn.004f34f7
mov ecx, dword [edi + 0x28]
add edi, 0x30
mov dword [esp + 0x1c], ecx
mov edx, dword [edi - 4]
mov dword [esp + 0x20], edx
mov eax, dword [edi]
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov edx, dword [edi + 8]
push ecx
mov dword [esp + 0x30], edx
lea ecx, [esp + 0x14]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x34], eax
call fcn.004f34f7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
push 0x78
push edx
push eax
push 0x14
push ebx
push ebp
mov ecx, esi
call fcn.004c4a20
push ebp
mov ecx, esi
mov edi, eax
call fcn.004cbde0
mov ecx, dword [esp + 0x4c]
push 1
push edi
push ecx
push ebx
push ebp
mov ecx, esi
call fcn.004cfdf0
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x3c], 0
call fcn.004f33be
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004f33be
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0x10
Function at 0x4d4e89
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d4ee1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x5780a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d4ed4
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4d4ee3
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4dfc70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004e0e2f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4dfc93
test byte [esp + 8], 2
je 0x4dfc93
call fcn.004e0ea2
mov dword [eax], 0xd
call fcn.004e0eab
mov dword [eax], 5
jmp 0x4dfc6c
xor eax, eax
ret

Function at 0x4e8d2f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x577848
cmp edx, dword [eax]
je 0x4e8d51
add eax, 8
inc ecx
cmp eax, 0x5778d8
jl 0x4e8d42
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x577848]
jne 0x4e8e7f
mov eax, dword [0x5c2684]
cmp eax, 1
je 0x4e8e59
test eax, eax
jne 0x4e8d82
cmp dword [0x57498c], 1
je 0x4e8e59
cmp edx, 0xfc
je 0x4e8e7f
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4e8db9
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004e3a80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004e0450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4e8dfc
lea eax, [ebp - 0x1a4]
push eax
call fcn.004e0450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x542564
push edi
call fcn.004de3c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004e3a80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004e3a90
lea eax, [ebp - 0xa0]
push 0x542544
push eax
call fcn.004e3a90
push dword [esi + 0x57784c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004e3a90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004eb6af
add esp, 0x2c
pop edi
jmp 0x4e8e7f
lea eax, [ebp + 8]
lea esi, [esi + 0x57784c]
push 0
push eax
push dword [esi]
call fcn.004e0450
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4efb70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004dede0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4efc3b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4efc3b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4efbee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4efbf9
or bh, 8
and edi, 0x8000000
je 0x4efc14
mov eax, dword [0x5c3e1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4efc3b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f0010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4f003b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4f005f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4f007a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4f48d2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4f490a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004f3865
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f383d
jmp 0x4f4916
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4f6557
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4f6599
call fcn.0050b59b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f6599
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f6590
xor eax, eax
jmp 0x4f65a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f65a7
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f93de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4f9400
cmp dword [edi + 0x3c], 0
jne 0x4f9400
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0050b59b
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
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004f942d
pop edi
pop esi
pop ebx
ret 8

Function at 0x4f947b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0050b59b
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f94ac
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004f94bf
pop edi
pop esi
pop ebx
ret 8
Function at 0x50cb5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0050b59b
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x50cb97
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x50cb97
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x50cb9b
xor eax, eax
jmp 0x50cc19
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004f30ff
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x50cbd3
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x50cbbd
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0050cd0a
push ebx
mov edi, eax
call fcn.004f3128
test edi, edi
pop ecx
je 0x50cc15
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0050cad3
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0050cc1e
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x62e0de
Capabilities:
Encode data using xor

Disassembly:
lea ecx, [ebx + 9]
push 0xffffffffffffffff
push dword [ecx + 0x33]
pop edx
add ecx, dword [edx + ebx + 0x78]
pop edx
mov edi, dword [ecx + 0x17]
inc edx
mov eax, dword [edi + ebx]
add edi, 4
mov esp, esp
inc esi
lea esi, [eax + ebx - 3]
xchg ah, al
cmp edx, dword [ecx + 0xf]
jae 0x634a81
push ebx
xor eax, eax
setbe bl
push ecx
jmp 0x62e114
imul eax, eax, 0xf
movzx ecx, byte [esi + 3]
sub esi, 0xffffffee
mov ebx, 0x89073379
xor bh, 0x7a
sub eax, ecx
dec ebx
lea esi, [esi - 0x11]
cmp byte [esi + 3], 0xa
xchg cl, bl
mov ch, 0xcf
jae 0x62e114
mov bh, al
xor esi, ebx
or bh, 0xd
mov bh, 0xc5
xchg esi, ebx
dec esi
xor eax, dword [esp + 0xc]
pop ecx
pop ebx
lea esi, [esi - 0x55885e13]
xor eax, 0x9f15ea0d
jne 0x62e0ef
adc al, 0x38
dec esi
inc edi
test ah, 0x2c
sub ecx, 0xffffffef
add esp, 8
xchg esi, esi
cmp ah, 0x9a
push dword [ecx + 2]
pop edi
add edx, edx
add edi, ebx
add edx, ebx
mov esi, dword [ecx + 0xa]
nop
mov ax, word [edx + esi]
shl eax, 0x10
shr eax, 0xe
push dword [eax + edi]
add dword [esp], ebx
not ecx
mov eax, dword [esp - 4]
dec ecx
inc edx
pop esi
jmp eax
ret
Function at 0x4010c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x40b028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.MSVCR100.dll_memset
push 0xff
lea edx, [ebp - 0x207]
xor ecx, ecx
push ebx
push edx
mov byte [ebp - 0x40c], bl
mov word [ebp - 0x40b], cx
mov byte [ebp - 0x208], bl
call sub.MSVCR100.dll_memset
push 0xff
lea eax, [ebp - 0x407]
push ebx
push eax
mov byte [ebp - 0x408], bl
call sub.MSVCR100.dll_memset
push 0xff
lea ecx, [ebp - 0x307]
push ebx
push ecx
mov byte [ebp - 0x308], bl
call sub.MSVCR100.dll_memset
add esp, 0x30
push 0x104
lea edx, [ebp - 0x108]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push pe_nt_image_headers32
lea eax, [ebp - 0x308]
push eax
push pe_nt_image_headers32
lea ecx, [ebp - 0x408]
push ecx
push pe_nt_image_headers32
lea edx, [ebp - 0x208]
push edx
push 3
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.MSVCR100.dll__splitpath_s]
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x40c]
push eax
push str._s_sTinnoMes.ini
push 0x200
push esi
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x38
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
pop ebx
call fcn.004066b8
mov esp, ebp
pop ebp
ret