joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010d9
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x437a98
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 1
jne 0x40110f
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x40111c
lea eax, [esi + 0x78]
lea ecx, [esi + 0x74]
push eax
call fcn.0042f187
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
cmp eax, 2
jne 0x40118c
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
jne 0x401128
mov dword [esi + 0x6c], 0
jmp 0x4011ce
test eax, eax
jne 0x401138
mov dword [esi + 0x6c], 1
jmp 0x4011ce
lea edi, [esi + 0x74]
lea ecx, [esp + 0x14]
push edi
call fcn.0042ee0f
add esi, 0x78
mov ecx, edi
push esi
mov dword [esp + 0x2c], 0
call fcn.0042f187
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0042f187
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0042f09a
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x4011b6
push 0
call fcn.0041e301
push eax
call fcn.0041e2d2
add esp, 8
call fcn.0041e2df
cdq
idiv dword [esi + 4]
cmp edx, dword [esi + 0x6c]
je 0x4011a3
mov dword [esi + 0x6c], edx
jmp 0x4011ce
mov ebp, dword [esi + 0x6c]
xor edx, edx
inc ebp
mov ecx, ebp
mov dword [esi + 0x6c], ebp
cmp ecx, eax
setge dl
dec edx
and edx, ecx
mov eax, edx
mov dword [esi + 0x6c], eax
xor eax, eax
push ebx
mov ax, word [esi + 0x6c]
push 0x13ec
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, ebp
mov dword [esp + 0x14], 0
mov ebx, eax
mov dx, word [ecx]
mov word [esp + 0x14], dx
mov al, byte [ecx + 2]
mov ecx, dword [0x445a98]
mov byte [esp + 0x16], al
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], 1
push edx
call fcn.0040d3d0
add esp, 4
mov edx, dword [esi + 0x6c]
mov eax, dword [eax]
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
push ecx
push edx
push 0x449300
push eax
lea ecx, [esp + 0x20]
push str._s_s_d._s
push ecx
call fcn.0042dd95
add esp, 0x18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.0042f09a
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [esp + 0x20]
push 0
add ebx, 0xfffffffd
push eax
add ebp, 3
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x74]
call fcn.0042f187
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042f09a
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x18]
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x401306
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x437ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x401324
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea edi, [esi + 0x74]
lea ecx, [esi + 0xc]
push edi
call fcn.00403540
test eax, eax
jne 0x401345
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [0x445a98]
push ebx
mov dword [esp + 0xc], eax
lea ebx, [esi + 0x78]
lea ecx, [esp + 0xc]
push ebx
mov dword [esp + 0x1c], 0
call fcn.0042f187
push edi
mov ecx, ebx
call fcn.0042f187
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.0042f187
mov eax, dword [esi + 4]
pop ebx
cmp eax, 2
jle 0x401397
push edi
call fcn.0040d450
add esp, 4
test eax, eax
je 0x401397
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0042f09a
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4013e0
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x74]
push esi
call fcn.0040d450
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 4
test eax, eax
je 0x401400
mov eax, dword [esi]
push eax
call ebx
lea esi, [edi + 0x78]
push esi
call fcn.0040d450
add esp, 4
test eax, eax
je 0x401415
mov ecx, dword [esi]
push ecx
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x401fc0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x437c39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00430ee5
mov dword [esi], vtable.CStatic.0
lea edi, [esi + 0x68]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [edi + 4], ebx
mov dword [edi], vtable.CBrush.0
push fcn.004023b0
push 0x402380
lea ebp, [esi + 0x70]
push 2
push 8
push ebp
mov byte [esp + 0x30], 1
call fcn.0041e610
mov dword [esi + 0x80], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x3c], ebx
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0x12
mov byte [esp + 0x20], 2
mov dword [esi], method.CStatic.virtual_0
mov dword [esi + 0x84], 0x400
call ebx
push 0xf
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
call ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
call ebx
push eax
mov ecx, edi
call fcn.00434dec
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
mov ecx, ebp
call fcn.00434dec
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
lea ecx, [esi + 0x78]
call fcn.00434dec
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401fd8
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x437c39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00430ee5
mov dword [esi], vtable.CStatic.0
lea edi, [esi + 0x68]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [edi + 4], ebx
mov dword [edi], vtable.CBrush.0
push fcn.004023b0
push 0x402380
lea ebp, [esi + 0x70]
push 2
push 8
push ebp
mov byte [esp + 0x30], 1
call fcn.0041e610
mov dword [esi + 0x80], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x3c], ebx
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0x12
mov byte [esp + 0x20], 2
mov dword [esi], method.CStatic.virtual_0
mov dword [esi + 0x84], 0x400
call ebx
push 0xf
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
call ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
call ebx
push eax
mov ecx, edi
call fcn.00434dec
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
mov ecx, ebp
call fcn.00434dec
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
lea ecx, [esi + 0x78]
call fcn.00434dec
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402750
Capabilities:
Resume thread

Disassembly:
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x40275c
jmp fcn.0040ca20
ret

Function at 0x403000
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x437e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x4030aa
mov eax, dword [0x445a98]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0042f410
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0042f45f
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0042f3e9
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x403091
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x403091
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x6c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0042f09a
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4030c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x403122
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x403330
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x403419
lea eax, [esp + 0x10]
push eax
push str..htm
push 0x80000000
call fcn.004030c0
add esp, 0xc
test eax, eax
jne 0x403419
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call fcn.004030c0
add esp, 0xc
test eax, eax
jne 0x403419
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call fcn.0041e692
mov esi, eax
add esp, 8
test esi, esi
jne 0x4033f3
lea edx, [esp + 0x10]
push 0x4444ec
push edx
call fcn.0041e692
mov esi, eax
add esp, 8
test esi, esi
jne 0x4033f3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4033f6
mov byte [esi], 0
push 0x4444e8
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x403f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push edi
push eax
push 1
mov edi, ecx
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionScreen_Savers
push 0x80000001
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 3
mov dword [edi + 0x7c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40403f
lea ecx, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Password_Delay
push ecx
mov dword [esp + 0x20], 4
call esi
test eax, eax
jne 0x403fd3
mov edx, dword [esp + 0xc]
mov dword [edi + 0x74], edx
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.Mouse_Threshold
push eax
mov dword [esp + 0x20], 4
call esi
test eax, eax
jne 0x404003
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x78], ecx
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.Mute_Sound
push edx
mov dword [esp + 0x20], 4
call esi
test eax, eax
pop esi
jne 0x404034
mov eax, dword [esp + 8]
mov dword [edi + 0x7c], eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x10
ret

Function at 0x404391
Capabilities:
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4043e7
mov dword [esp + 4], 0xffffffff
jne 0x4043a9
xor eax, eax
jmp 0x4043ac
mov eax, dword [eax + 0x28]
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 4], 0x103
jne 0x4043d2
mov edx, dword [esi + 0x44]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4043e0
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x4c]
push 0
push 4
push 0
push 0xfffffffffffffff1
push eax
push 0x404360
call fcn.0042f825
mov dword [esi + 0x44], eax
mov dword [eax + 0x24], 0
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret

Function at 0x404460
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4044b9
mov dword [esp + 4], 0xffffffff
jne 0x404479
xor eax, eax
jmp 0x40447c
mov eax, dword [eax + 0x28]
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 4], 0x103
jne 0x4044a4
mov edx, dword [esi + 0x44]
push 0x103
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4044b2
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x44], 0
pop esi
pop ecx
ret
Function at 0x405ea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4381b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.00434bf8
xor ebp, ebp
push 0x190
mov dword [esp + 0x30], ebp
call fcn.0042f4c1
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebp
mov byte [esp + 0x2c], 1
je 0x405ef6
push ebp
mov ecx, eax
call fcn.0040edc0
mov esi, eax
jmp 0x405ef8
xor esi, esi
mov ecx, dword [ebx + 4]
push esi
mov byte [esp + 0x30], 0
call fcn.0040cc50
test eax, eax
jne 0x405f39
cmp esi, ebp
je 0x405f16
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00434c6a
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
push esi
call fcn.004056b0
cmp esi, ebp
je 0x405f52
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
push edi
call fcn.0041e2df
cdq
mov ecx, 3
idiv ecx
inc edx
lea edi, [edx + edx*4]
shl edi, 1
xor esi, esi
mov ecx, ebx
call fcn.00405020
test eax, eax
jne 0x405fc7
lea eax, [ebx + 0x54]
test eax, eax
je 0x405f7d
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x18]
push 0xcc0020
push esi
push ebp
push eax
push edi
push 1
push esi
push ebp
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebx + 0x30]
lea ecx, [ebx + 0x54]
add esi, edi
sub eax, ebp
test ecx, ecx
je 0x405fa6
mov ecx, dword [ecx + 4]
push 0xcc0020
push esi
push eax
push ecx
push edi
push 1
push esi
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebx + 0x34]
add esi, edi
cmp esi, eax
jbe 0x405f68
mov ecx, dword [ebx + 0x30]
inc ebp
inc ecx
push ecx
push ebp
mov ecx, ebx
call fcn.004058d0
cmp ebp, dword [ebx + 0x30]
jbe 0x405f66
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00434c6a
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x406000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4381d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.00434bf8
xor ebp, ebp
push 0x190
mov dword [esp + 0x30], ebp
call fcn.0042f4c1
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebp
mov byte [esp + 0x2c], 1
je 0x406056
push ebp
mov ecx, eax
call fcn.0040edc0
mov esi, eax
jmp 0x406058
xor esi, esi
mov ecx, dword [ebx + 4]
push esi
mov byte [esp + 0x30], 0
call fcn.0040cc50
test eax, eax
jne 0x406099
cmp esi, ebp
je 0x406076
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00434c6a
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
push esi
call fcn.004056b0
cmp esi, ebp
je 0x4060b2
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
push edi
call fcn.0041e2df
cdq
mov ecx, 3
idiv ecx
inc edx
lea edi, [edx + edx*4]
shl edi, 1
xor esi, esi
mov ecx, ebx
call fcn.00405020
test eax, eax
jne 0x406127
lea eax, [ebx + 0x54]
test eax, eax
je 0x4060dd
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x18]
push 0xcc0020
push ebp
push esi
push eax
push 1
push edi
push ebp
push esi
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebx + 0x34]
lea ecx, [ebx + 0x54]
add esi, edi
sub eax, ebp
test ecx, ecx
je 0x406106
mov ecx, dword [ecx + 4]
push 0xcc0020
push eax
push esi
push ecx
push 1
push edi
push eax
mov eax, dword [esp + 0x34]
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebx + 0x30]
add esi, edi
cmp esi, eax
jbe 0x4060c8
mov ecx, dword [ebx + 0x34]
inc ebp
inc ecx
push ecx
push ebp
mov ecx, ebx
call fcn.004058d0
cmp ebp, dword [ebx + 0x34]
jbe 0x4060c6
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00434c6a
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4074b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438313
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.00434bf8
xor edi, edi
push 0x190
mov dword [esp + 0x30], edi
call fcn.0042f4c1
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0x2c], 1
je 0x407506
push edi
mov ecx, eax
call fcn.0040edc0
mov esi, eax
jmp 0x407508
xor esi, esi
mov ecx, dword [ebp + 4]
push esi
mov byte [esp + 0x30], 0
call fcn.0040cc50
test eax, eax
jne 0x407549
cmp esi, edi
je 0x407526
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00434c6a
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push esi
call fcn.004056b0
cmp esi, edi
je 0x407562
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
push ebx
call fcn.0041e2df
mov esi, eax
and esi, 0x80000003
jns 0x407577
dec esi
or esi, 0xfffffffc
inc esi
mov eax, dword [ebp + 0x30]
inc esi
cmp eax, edi
jl 0x407631
mov dword [esp + 0x10], 1
mov ecx, ebp
call fcn.00405020
test eax, eax
jne 0x407631
mov ecx, dword [ebp + 0x34]
lea eax, [ebp + 0x54]
test eax, eax
je 0x4075a7
mov eax, dword [eax + 4]
push 0xcc0020
push 0
push edi
push eax
mov eax, dword [esp + 0x28]
push ecx
push esi
push 0
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [ebp + 0x30]
xor edx, edx
mov eax, ebx
mov ecx, dword [esp + 0x10]
div esi
add ecx, esi
mov eax, ebx
mov dword [esp + 0x10], ecx
mov ecx, ebx
add edi, esi
sub ecx, edx
xor edx, edx
div esi
sub ecx, edi
test al, 1
je 0x4075e7
add ecx, esi
mov edx, dword [ebp + 0x34]
lea eax, [ebp + 0x54]
test eax, eax
je 0x4075f4
mov eax, dword [eax + 4]
push 0xcc0020
push 0
push ecx
push eax
push edx
push esi
push 0
push ecx
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp + 0x30]
mov ebx, dword [esp + 0x10]
inc edx
mov ecx, ebp
push edx
push ebx
call fcn.004058d0
mov eax, dword [ebp + 0x30]
add edi, esi
add ebx, esi
cmp edi, eax
mov dword [esp + 0x10], ebx
jle 0x40758b
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00434c6a
mov ecx, dword [esp + 0x28]
pop ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x407660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438333
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.00434bf8
xor edi, edi
push 0x190
mov dword [esp + 0x30], edi
call fcn.0042f4c1
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0x2c], 1
je 0x4076b6
push edi
mov ecx, eax
call fcn.0040edc0
mov esi, eax
jmp 0x4076b8
xor esi, esi
mov ecx, dword [ebp + 4]
push esi
mov byte [esp + 0x30], 0
call fcn.0040cc50
test eax, eax
jne 0x4076f9
cmp esi, edi
je 0x4076d6
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00434c6a
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push esi
call fcn.004056b0
cmp esi, edi
je 0x407712
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
push ebx
call fcn.0041e2df
cdq
mov ecx, 3
idiv ecx
mov eax, dword [ebp + 0x34]
mov esi, edx
inc esi
cmp eax, edi
jl 0x4077dc
mov dword [esp + 0x10], 1
mov ecx, ebp
call fcn.00405020
test eax, eax
jne 0x4077dc
mov ecx, dword [ebp + 0x30]
lea eax, [ebp + 0x54]
test eax, eax
je 0x407752
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x18]
push 0xcc0020
push edi
push 0
push eax
push esi
push ecx
push edi
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [ebp + 0x34]
xor edx, edx
mov eax, ebx
mov ecx, dword [esp + 0x10]
div esi
add ecx, esi
mov eax, ebx
mov dword [esp + 0x10], ecx
mov ecx, ebx
add edi, esi
sub ecx, edx
xor edx, edx
div esi
sub ecx, edi
test al, 1
je 0x407792
add ecx, esi
mov edx, dword [ebp + 0x30]
lea eax, [ebp + 0x54]
test eax, eax
je 0x40779f
mov eax, dword [eax + 4]
push 0xcc0020
push ecx
push 0
push eax
mov eax, dword [esp + 0x28]
push esi
push edx
push ecx
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp + 0x34]
mov ebx, dword [esp + 0x10]
inc ecx
push ecx
push ebx
mov ecx, ebp
call fcn.004058d0
mov eax, dword [ebp + 0x34]
add edi, esi
add ebx, esi
cmp edi, eax
mov dword [esp + 0x10], ebx
jle 0x407736
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00434c6a
mov ecx, dword [esp + 0x28]
pop ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret