joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405630
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp eax, 0x15
push esi
push edi
jge 0x4056bb
lea ecx, [eax*8]
sub ecx, eax
lea eax, [ebx + ecx*8]
mov dword [ebp - 4], eax
add eax, 0x4e8
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 8], eax
jb 0x40565f
mov eax, dword [eax + 4]
jmp 0x405662
add eax, 4
mov edx, dword [ebx + 4]
push edx
mov edi, eax
mov esi, 0x7d5
call fcn.0040b160
mov eax, dword [ebp - 4]
add esp, 4
push 0xffffffffffffffff
push 0
add eax, 0x4cc
push eax
lea ecx, [ebx + 0x99c]
call fcn.00404420
mov ecx, dword [ebp - 8]
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [ebx + 0x9b8]
call fcn.00404420
push 0
push 0
push ebx
push 0x406090
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4065b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9f8
mov eax, dword [0x45e200]
xor eax, esp
mov dword [esp + 0x9f4], eax
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00409a20
mov al, 0x54
mov byte [esp + 0x9f6], al
mov byte [esp + 0x9f7], al
lea eax, [esp + 0x9f4]
push eax
push 1
push 0
mov byte [esp + 0xa00], 0x4d
mov byte [esp + 0xa01], 0x52
mov byte [esp + 0xa04], 0x4f
mov byte [esp + 0xa05], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406644
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x9f4]
xor ecx, esp
call fcn.0043270e
mov esp, ebp
pop ebp
ret 0x10
mov dword [0x4d1c98], esi
call fcn.004068d0
call fcn.0040c2b0
lea ecx, [esp + 0x18]
push ecx
call fcn.00404a10
push 8
push 0x454f84
lea ecx, [esp + 0x38]
mov dword [esp + 0x108], 0xffffff
call fcn.004048c0
push 0xc
push str.DisportFrame
lea ecx, [esp + 0x70]
call fcn.004048c0
push 0x1d1
push 0x2a8
push 0xa
push 0x64
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_SetRect]
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.004081e0
test al, al
je 0x4066fd
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [esp + 0x18]
push 1
push 0
push 0
mov esi, eax
mov eax, dword [edx + 0x74]
push 0x14
lea ecx, [esp + 0x28]
call eax
mov ecx, dword [esp + 0x2c]
sub esi, eax
sub esi, 0x1e
push esi
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [esp + 0x18]
call fcn.00408330
call fcn.0040b5d0
mov edx, dword [0x4d1ca0]
push edx
call sub.gdiplus.dll_GdiplusShutdown
lea ecx, [esp + 0x18]
call fcn.00404bb0
mov ecx, dword [esp + 0x9fc]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0043270e
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4068d0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
lea edi, [ebp - 0x20]
call fcn.00406930
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x4068ee
mov edx, dword [eax + 4]
jmp 0x4068f1
lea edx, [eax + 4]
test edx, edx
je 0x406913
mov eax, edx
push esi
lea esi, [eax + 1]
jmp 0x406900
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406900
sub eax, esi
pop esi
je 0x406913
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp - 8], edi
pop edi
jb 0x406925
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0043279a
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4076a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e298
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x45e200]
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, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push esi
call edi
and eax, 0x160a0000
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xffffffffffffffec
push esi
call edi
and eax, 0x10
push eax
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x27
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
push 0
push 0x80
push 0x40000
mov ecx, ebx
call edx
lea edi, [ebp - 0x40]
call fcn.00406930
mov dword [ebp - 4], 0
mov al, 0x6e
mov dl, 0x73
mov cl, 0x6f
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x15], al
lea eax, [ebp - 0x24]
mov byte [ebp - 0x24], 0x44
mov byte [ebp - 0x23], 0x69
mov byte [ebp - 0x22], dl
mov byte [ebp - 0x21], 0x70
mov byte [ebp - 0x20], cl
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x74
mov byte [ebp - 0x1d], 0x49
mov byte [ebp - 0x1b], 0x66
mov byte [ebp - 0x1a], cl
mov byte [ebp - 0x19], 0x2e
mov byte [ebp - 0x18], dl
mov byte [ebp - 0x17], 0x6b
mov byte [ebp - 0x16], 0x69
mov byte [ebp - 0x14], 0
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407780
sub eax, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403330
mov eax, dword [ebp - 0x3c]
mov esi, 0x10
cmp dword [ebp - 0x28], esi
jae 0x4077a6
lea eax, [ebp - 0x3c]
mov ecx, dword [ebx + 4]
push str.more.ini
push eax
call fcn.0040af70
add esp, 8
cmp dword [ebp - 0x28], esi
jb 0x4077c8
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0043279a
add esp, 4
xor eax, eax
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.0043270e
mov esp, ebp
pop ebp
ret
Function at 0x407cd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d1c8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45e200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [edi], vtable.CWindowWnd.0
xor ebx, ebx
mov edx, 0xf
mov dword [edi + 0x30], edx
mov dword [edi + 0x2c], ebx
mov byte [edi + 0x1c], bl
mov dword [ebp - 4], ebx
mov eax, 7
xor ecx, ecx
mov dword [edi + 0x4c], eax
mov dword [edi + 0x48], ebx
mov word [edi + 0x38], cx
mov dword [edi + 0x68], edx
mov dword [edi + 0x64], ebx
mov byte [edi + 0x54], bl
mov dword [edi + 0x84], eax
mov dword [edi + 0x80], ebx
mov word [edi + 0x70], cx
lea ecx, [edi + 0x88]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
lea esi, [edi + 0xa4]
xor edx, edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov word [esi + 4], dx
mov byte [ebp - 4], 5
push 4
push 0x455330
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0xf0], 0x40000000
call fcn.004048c0
push 2
mov eax, 0x455338
call fcn.004095d0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
push ebx
push 0x454a70
lea ecx, [edi + 0x18]
mov dword [edi + 0xcc], eax
call fcn.004048c0
push ebx
mov eax, 0x455340
lea esi, [edi + 0x34]
call fcn.004095d0
mov eax, 0x80000000
mov dword [edi + 0xd8], eax
mov dword [edi + 0xd0], eax
mov dword [edi + 0xdc], eax
mov dword [edi + 0xd4], eax
mov dword [edi + 0xe0], eax
mov dword [edi + 0xe4], eax
mov dword [edi + 0xe8], 0xffffff
mov dword [edi + 0xec], 1
mov dword [edi + 0xf4], 0xcf0000
mov dword [edi + 0xf0], ebx
mov eax, edi
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 0x4088c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
mov eax, dword [0x45e200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0xa27
lea eax, [ebp - 0xa2b]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0xa2c], 0
call fcn.00433c80
mov edx, dword [esi + 4]
add esp, 0xc
push 0xa28
lea ecx, [ebp - 0xa2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0xa2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408916
sub eax, edx
push eax
lea eax, [ebp - 0xa2c]
push eax
mov ecx, edi
call fcn.004048c0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043270e
mov esp, ebp
pop ebp
ret 4
Function at 0x409a90
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov ebx, eax
mov eax, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push 0xf003f
xor edi, edi
push edi
push str.SYSTEMCurrentControlSetServices
push 0x80000002
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409ad6
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
push esi
push edi
lea ecx, [ebp - 4]
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, edi
jne 0x409bd4
cmp ebx, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
je 0x409bfc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409b10
mov ecx, dword [ebp - 4]
sub eax, edx
inc eax
push eax
push ebx
push 1
push 0
push str.DisplayName
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x409bd4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 4]
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push str.ErrorControl
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x409bd4
mov edx, dword [ebp - 4]
push str.Group
push edx
call ebx
mov eax, dword [ebp - 4]
push str.DependOnService
push eax
call ebx
mov edx, dword [ebp + 0xc]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409b74
mov ecx, dword [ebp - 4]
sub eax, esi
inc eax
push eax
push edx
push 2
push 0
push str.ImagePath
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x409bd4
push 4
lea edx, [ebp - 0x10]
push edx
push 4
push eax
mov eax, dword [ebp - 4]
push str.Start
push eax
call edi
mov esi, eax
test esi, esi
jne 0x409bd4
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push eax
push str.Type
push edx
call edi
mov esi, eax
test esi, esi
jne 0x409bd4
mov eax, dword [ebp - 4]
push str.DeleteFlag
push eax
call ebx
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x409be4
push eax
call edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x409bee
push eax
call edi
xor eax, eax
test esi, esi
pop esi
pop edi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.DisplayName
push edx
call ebx
jmp 0x409b3b
Function at 0x409c20
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x409c36
lea eax, [edi + 0x57]
pop edi
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x409c51
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push 0
push 0
push 0
push edi
push 1
push 1
push 1
push 0xf01ff
push esi
push esi
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0x409cd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x431
je 0x409c96
cmp ebx, 0x430
jne 0x409d11
mov eax, dword [ebp + 8]
push eax
push esi
mov eax, esi
call fcn.00409a90
mov ecx, dword [ebp - 4]
add esp, 8
push 0xf01ff
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x409cd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 4]
push edx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x409d04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x420
je 0x409d04
cmp ebx, 0x430
je 0x409d04
cmp ebx, 0x422
jne 0x409d06
xor ebx, ebx
test edi, edi
je 0x409d11
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x409e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x45e200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
mov dword [ebp - 0x834], eax
mov eax, dword [ebp + 0xc]
push 0xc0000000
push eax
mov edi, ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x409eaa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043270e
mov esp, ebp
pop ebp
ret
push 0x82c
lea ecx, [ebp - 0x830]
push 0
push ecx
call fcn.00433c80
add esp, 0xc
lea edx, [ebp - 0x83c]
push edx
mov dword [ebp - 0x830], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x83c]
lea ecx, [eax*8]
sub ecx, eax
push ecx
call fcn.0044a07c
add esp, 4
call fcn.0044a08e
xor edx, edx
mov ecx, 0xf8
div ecx
mov dword [ebp - 0x828], 0x1388
mov eax, esi
add edx, 2
mov dword [ebp - 0x82c], edx
test edi, edi
jle 0x409f20
mov ecx, edi
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x409f18
mov eax, esi
cdq
mov dword [ebp - 0x420], eax
mov eax, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x424], edi
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409f40
lea edi, [ebp - 0x824]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x409f56
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0
lea edx, [ebp - 0x834]
push edx
mov edx, dword [ebp - 0x834]
push 0x82c
mov ecx, eax
lea eax, [ebp - 0x830]
push eax
and ecx, 3
push 0x82c
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
push 0x8000c004
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x409fab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043270e
mov esp, ebp
pop ebp
ret

Function at 0x409fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi + 1]
push ebx
push esi
mov ebx, edx
mov esi, eax
mov edx, eax
shl esi, 0x10
and edx, 0xff00
or esi, edx
shr eax, 8
and eax, 0xff00
shl esi, 8
or esi, eax
movzx eax, byte [edi + 4]
lea edx, [edi + 5]
mov dword [ebp - 4], ecx
mov cl, byte [edi]
or esi, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
mov eax, edx
jle 0x40a01b
mov ebx, esi
lea esp, [esp]
xor byte [eax], cl
inc eax
sub ebx, 1
jne 0x40a010
mov ebx, dword [ebp - 0xc]
cmp ebx, 0xffffffff
je 0x40a035
mov ecx, dword [ebp - 4]
push ecx
push ebx
mov ebx, dword [ebp - 8]
mov ecx, esi
call fcn.00409e50
mov edx, dword [ebp - 0x10]
add esp, 8
mov cl, byte [edi]
mov eax, edx
test esi, esi
jle 0x40a048
lea ecx, [ecx]
xor byte [eax], cl
inc eax
sub esi, 1
jne 0x40a040
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a4e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x45e200]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, 0x69
mov cl, 0x6e
mov byte [ebp - 0xe], cl
mov byte [ebp - 8], cl
mov ecx, dword [0x4d1c9c]
mov byte [ebp - 0xc], al
mov byte [ebp - 9], al
mov byte [ebp - 7], al
lea eax, [ebp - 0x10]
push eax
add ecx, 0x54
push ecx
mov byte [ebp - 0x10], 0x43
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xd], 0x66
mov byte [ebp - 0xb], 0x67
mov byte [ebp - 0xa], 0x2e
mov byte [ebp - 6], 0
call fcn.00424930
push 0
push 0
push 0
push 0x40a4c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043270e
mov esp, ebp
pop ebp
ret
Function at 0x40c810
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44dabb
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x45e200]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.UIlib::CGuiWnd.0
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ebx
mov byte [esi + 0x20], bl
mov dword [esp + 0x14], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0x54], vtable.UIlib::CMemImage.0
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x5c], bl
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0xc8], eax
mov dword [esi + 0xc4], ebx
mov byte [esi + 0xb4], bl
lea eax, [esi + 0x118]
push eax
mov byte [esp + 0x18], 3
call fcn.0040f870
lea ecx, [esi + 0x130]
push ecx
mov byte [esp + 0x18], 4
call fcn.0040f870
lea edx, [esi + 0x148]
push edx
mov byte [esp + 0x18], 5
call fcn.0040f870
push 0x40c7c0
push 0xfffffffffffffffc
push edi
mov dword [esi + 4], edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 4]
push ebx
push 0xc8
push 1
push ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x108], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0x160], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0xac], 0xb5b5b5
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40ed00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, ecx
call fcn.0040e070
mov ecx, ebx
pop ebx
jmp fcn.0040e530

Function at 0x410df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, eax
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x410e1b
pop edi
pop esi
pop ebx
add esp, 8
ret 4
push ebp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.00433ea0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebp, dword [esp + 0x14]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x410e7d
lea ecx, [esp + 0x10]
push ecx
push ebp
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x18], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov edx, dword [esp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x410e7f
xor esi, esi
mov eax, dword [esp + 0x1c]
push edi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 4
Function at 0x4123b0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x8000000
push 4
push ebx
push 1
push 0xc0000000
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x424], eax
cmp eax, 0xffffffff
je 0x412517
cmp eax, ebx
je 0x41250a
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [edi + 0x424]
push ebx
mov esi, eax
push esi
push ebx
push 4
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0x428], eax
cmp eax, ebx
je 0x4124e8
push esi
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x42c], eax
cmp eax, ebx
je 0x4124bb
mov eax, dword [edi + 0x424]
push ebx
push ebx
add esi, 0xfffffc00
push esi
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 0x424]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [edi + 0x34]
push edx
push eax
call esi
mov eax, dword [edi + 0x424]
push ebx
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [edi + 0x38]
push edx
push eax
call esi
mov eax, dword [edi + 0x424]
push ebx
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [edi + 0x3c]
push edx
push eax
call esi
mov eax, dword [edi + 0x424]
push ebx
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [edi + 0x40]
push edx
push eax
call esi
call fcn.00412520
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
add esp, 8
ret
mov ecx, dword [edi + 0x428]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [edi + 0x424]
push edx
call esi
mov dword [edi + 0x428], ebx
mov dword [edi + 0x424], ebx
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [edi + 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x428], ebx
mov dword [edi + 0x424], ebx
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x424], ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x412520
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [edi + 0x34]
push ebp
mov ebp, dword [edi + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
test eax, eax
jle 0x4126ca
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test ebp, ebp
je 0x4126c8
mov eax, dword [edi + 0x424]
push 0
push 0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x60
call fcn.004327c0
mov esi, eax
add esp, 4
test esi, esi
je 0x4126b5
xor eax, eax
push 0x60
lea ebp, [esi + 0x58]
push eax
mov dword [ebp], eax
push esi
mov dword [ebp + 4], eax
call fcn.00433c80
mov edx, dword [edi + 0x424]
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push esi
push edx
mov dword [esp + 0x20], 0
call ebx
mov edx, dword [edi + 0x424]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esi + 4]
push ecx
push edx
call ebx
mov edx, dword [edi + 0x424]
push 0
lea ecx, [esp + 0x10]
push ecx
lea eax, [esi + 8]
push 4
push eax
push edx
mov dword [esp + 0x30], eax
call ebx
mov edx, dword [edi + 0x424]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esi + 0x14]
push ecx
push edx
call ebx
mov edx, dword [edi + 0x424]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esi + 0xc]
push ecx
push edx
call ebx
mov edx, dword [edi + 0x424]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esi + 0x10]
push ecx
push edx
call ebx
lea eax, [esi + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x10
jmp 0x412630
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x424]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push edx
push eax
call ebx
add dword [esp + 0x10], 4
sub dword [esp + 0x14], 1
jne 0x412630
mov edx, dword [edi + 0x424]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push ebp
push edx
call ebx
mov eax, dword [ebp]
inc eax
push eax
call fcn.004288cc
mov ecx, dword [ebp]
inc ecx
push ecx
push 0
push eax
mov dword [esi + 0x5c], eax
call fcn.00433c80
mov eax, dword [ebp]
mov ecx, dword [esi + 0x5c]
add esp, 0x10
push 0
lea edx, [esp + 0x10]
push edx
mov edx, dword [edi + 0x424]
push eax
push ecx
push edx
call ebx
cmp dword [edi + 0x38], 0
jne 0x4126a6
mov dword [edi + 0x38], esi
jmp 0x4126ac
mov eax, dword [edi + 0x20]
mov dword [eax + 4], esi
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x20], esi
mov ebp, dword [ecx]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jl 0x412546
pop esi
pop ebx
pop ebp
add esp, 0x18
ret