joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446860
Capabilities:
Terminate process

Disassembly:
mov al, byte [0x4692e8]
test al, al
je 0x44686e
call fcn.004639b0
push 0x40782c
call dword [sym.imp.MSVCRT.dll_puts]
add esp, 4
push 0x44c
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x449df0
Capabilities:
Resolve path using msvcrt

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
call fcn.0040ba40
call fcn.00410370
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0xc]
push eax
push 0x40818c
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0
call dword [sym.imp.MSVCRT.dll_fflush]
mov edx, dword [0x496470]
add esp, 0x10
lea eax, [edx*4 + 0xc]
push eax
call fcn.004516d0
mov ecx, dword [0x496470]
mov esi, eax
xor eax, eax
test ecx, ecx
jle 0x449e5a
mov ecx, dword [0x49646c]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov dword [esi + eax*4 - 4], edx
mov ecx, dword [0x496470]
cmp eax, ecx
jl 0x449e41
lea eax, [esp + 0xc]
mov dword [esi + ecx*4], eax
mov ecx, dword [0x496470]
mov dword [esi + ecx*4 + 4], 0x4017d4
mov edx, dword [0x496470]
mov dword [esi + edx*4 + 8], 0
call fcn.00449db0
mov ebx, dword [sym.imp.MSVCRT.dll___p__pgmptr]
push esi
call ebx
mov eax, dword [eax]
push eax
push 0
call dword [sym.imp.MSVCRT.dll__spawnv]
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x449eb4
call ebx
mov ecx, dword [eax]
push ecx
push 0x486
push 0
call fcn.00431420
add esp, 0xc
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x40
ret 4

Function at 0x449ed0
Capabilities:
Accept command line arguments
Resolve path using msvcrt

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
push 0x18
call fcn.004516d0
mov esi, eax
mov eax, dword [0x49646c]
or ecx, 0xffffffff
mov edi, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 2
push ecx
call fcn.004516d0
mov ecx, dword [0x49646c]
mov ebp, eax
mov edx, dword [ecx]
push edx
push 0x4081cc
push ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
mov bl, byte [esp + 0x20]
add esp, 0xc
test bl, bl
mov dword [esi], ebp
je 0x449f51
mov eax, dword [0x496464]
test eax, eax
je 0x449f51
mov dword [esi + 4], eax
mov al, byte [0x480ed4]
test al, al
je 0x449f79
mov eax, dword [0x496464]
push eax
push 0x178b
push 0
call fcn.004314d0
add esp, 0xc
jmp 0x449f79
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [eax]
mov cl, 0x20
cmp dl, 0x22
jne 0x449f63
mov cl, 0x22
inc eax
cmp byte [eax], cl
je 0x449f6f
mov dl, byte [eax + 1]
inc eax
cmp dl, cl
jne 0x449f67
cmp byte [eax], 0x22
jne 0x449f75
inc eax
inc eax
mov dword [esi + 4], eax
test bl, bl
je 0x449f86
mov dword [esi + 8], 0x4081b8
jmp 0x449f8d
mov dword [esi + 8], 0x4081a8
mov dword [esi + 0xc], 0x4017d4
mov dword [esi + 0x10], 0x40819c
mov dword [esi + 0x14], 0
call fcn.00449db0
mov ebx, dword [sym.imp.MSVCRT.dll___p__pgmptr]
push esi
call ebx
mov ecx, dword [eax]
push ecx
push 0
call dword [sym.imp.MSVCRT.dll__spawnv]
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x449fd9
call ebx
mov edx, dword [eax]
push edx
push 0x486
push 0
call fcn.00431420
add esp, 0xc
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push ebp
call esi
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x44a160
Capabilities:
Resolve path using msvcrt

Disassembly:
sub esp, 0x320
push ebx
push esi
push edi
push 0
call dword [sym.imp.MSVCRT.dll_fflush]
or ecx, 0xffffffff
mov edi, 0x4017e4
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x481170]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4017e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], 0x4081e0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
lea eax, [esp + 0x28]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x130]
mov dword [esp + 0x1c], 0x4017d4
push ecx
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.MSVCRT.dll___p__pgmptr]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
push 0x401758
lea ecx, [esp + 0x140]
push 0x4081e0
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x248]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x28
call fcn.00449db0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x228]
push ecx
push edx
push 0
call dword [sym.imp.MSVCRT.dll__spawnv]
add esp, 0xc
cmp eax, 0xffffffff
pop edi
pop esi
pop ebx
jne 0x44a297
lea eax, [esp + 4]
push eax
push 0x4081d4
push 0
call dword [sym.imp.MSVCRT.dll__spawnvp]
add esp, 0xc
add esp, 0x320
ret

Function at 0x44a9a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x208
mov dword [0x481114], 0
mov dword [0x481110], 0
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, dword [esp + 0x214]
push eax
push 0x481110
push esi
push edi
mov dword [0x481118], 0
call fcn.0044a910
lea ecx, [esp + 8]
push ecx
push esi
call fcn.0040e190
lea edx, [esp + 8]
push edx
push esi
push edi
call fcn.004469d0
mov al, byte [0x481160]
pop edi
test al, al
pop esi
je 0x44aa43
mov al, byte [0x49647a]
test al, al
je 0x44aa43
mov al, byte [0x496479]
test al, al
jne 0x44aa43
push 0x408000
lea eax, [esp + 4]
push 0x106a
push eax
call fcn.004314f0
add esp, 0xc
call fcn.0040ba40
push 0
call fcn.00449ed0
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
add esp, 0x208
ret 0xc
Function at 0x44f000
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov ebx, 1
cmp word [ebp + 0x32], bx
jb 0x44f0b0
push esi
push edi
mov edi, dword [esp + 0x24]
lea eax, [ebp + 0x1b8]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0040f7e0
lea ecx, [esp + 0x10]
push ecx
call fcn.0040f720
test al, al
je 0x44f06d
mov esi, ebx
and esi, 0xffff
mov eax, dword [esp + 0x1c]
mov edi, eax
movsx edx, word [eax + 0x2c]
cmp edx, esi
je 0x44f063
lea eax, [esp + 0x10]
push eax
call fcn.0040f720
test al, al
jne 0x44f045
jmp 0x44f06d
lea ecx, [esp + 0x10]
push ecx
call fcn.0040f760
mov ecx, dword [edi + 0x1c]
mov eax, 0x108
test ecx, 0x40000000
je 0x44f082
mov eax, 0x109
test ecx, 0x80000000
je 0x44f08c
or al, 2
test ecx, 0x20000000
je 0x44f096
or al, 4
mov edx, dword [edi + 0x10]
push edx
push 0
push eax
push ebx
call fcn.00415480
inc ebx
cmp bx, word [ebp + 0x32]
jbe 0x44f01e
pop edi
pop esi
push 0xffffffffffffffff
push 0
push 0x208
push 0
call fcn.00415480
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x4500d0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov cl, byte [esp + 0x1c]
sub esp, 0x200
mov eax, dword [edx + 0x1c]
push ebx
mov ebx, dword [edx + 0x18]
push esi
mov esi, dword [eax + 0x28]
test cl, cl
push edi
je 0x450100
mov eax, dword [edx + 4]
test ah, 0x10
je 0x450100
cmp byte [edx + 0x3c], 2
jne 0x450100
mov al, 1
jmp 0x450102
xor al, al
neg al
sbb al, al
mov edx, dword [edx]
and al, 0x49
mov edi, dword [esp + 0x224]
add al, 0x20
neg cl
sbb cl, cl
and cl, 0x46
movsx eax, al
add cl, 0x20
push eax
mov eax, dword [esp + 0x220]
movsx ecx, cl
push ecx
lea ecx, [edx + eax]
add ecx, edi
mov edi, dword [esi + 4]
push ecx
mov ecx, dword [esp + 0x21c]
sub edx, edi
push ecx
add edx, eax
mov eax, dword [0x481164]
push edx
movsx edx, word [esi + 0x2c]
mov esi, dword [sym.imp.MSVCRT.dll_fprintf]
push edx
push 0x40850c
push eax
call esi
mov al, byte [esp + 0x238]
add esp, 0x20
test al, al
je 0x450186
mov ecx, dword [0x481164]
push ecx
push 1
push 8
push 0x408500
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
jmp 0x450218
cmp ebx, dword [0x481000]
jne 0x4501a9
mov edx, dword [0x481164]
push edx
push 1
push 0x10
push 0x4084ec
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
jmp 0x450218
mov eax, dword [ebx + 0x64]
mov ecx, dword [esp + 0x22c]
mov edi, dword [sym.imp.MSVCRT.dll__splitpath]
cmp eax, ecx
je 0x4501e3
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0
push 0
push edx
call edi
mov ecx, dword [0x481164]
lea eax, [esp + 0x20]
push eax
push 0x4084e8
push ecx
call esi
add esp, 0x20
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x10c]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push ecx
call edi
mov ecx, dword [0x481164]
lea edx, [esp + 0x120]
lea eax, [esp + 0x20]
push edx
push eax
push 0x40142c
push ecx
call esi
add esp, 0x24
mov edx, dword [0x481164]
push edx
push 0xa
call dword [sym.imp.MSVCRT.dll_fputc]
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x200
ret 0x20
Function at 0x450e10
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
mov eax, dword [0x4964b4]
sub esp, 0x44
test eax, eax
jne 0x450e31
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x24]
mov dword [0x4964b4], ecx
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov dword [0x480f20], 0x4000000
mov eax, dword [esp + 8]
cmp eax, 0x4000000
jb 0x450e56
mov dword [0x480f20], eax
add esp, 0x44
ret

Function at 0x4510d0
Capabilities:
Get disk size

Disassembly:
mov ecx, dword [0x481154]
sub esp, 0x14
lea eax, [esp]
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
mov al, byte [esp + 0x14]
add esp, 0x14
test al, al
je 0x45112a
push ebx
push esi
push edi
mov edi, 0x4077fc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x45116c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x18]
imul ecx, dword [esp + 8]
xor edx, edx
div ecx
cmp eax, dword [esp + 0xc]
sbb eax, eax
neg eax
add esp, 0x14
ret 4
mov al, 1
add esp, 0x14
ret 4

Function at 0x451370
Capabilities:
Terminate process

Disassembly:
push 0x4964b0
mov dword [0x481198], 0xf
call fcn.004393d0
mov al, byte [0x480ed4]
test al, al
je 0x45139c
push 0x1787
push 0
call fcn.004314d0
add esp, 8
mov al, byte [0x4690c4]
test al, al
je 0x4513aa
call fcn.00415100
push 1
call fcn.00449ed0
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4513c0
Capabilities:
Terminate process

Disassembly:
mov al, byte [0x4690c4]
test al, al
je 0x4513ce
call fcn.00415100
mov al, byte [0x481161]
mov dword [0x481198], 0xf
test al, al
push 0x4964b0
je 0x451409
call fcn.004393d0
push 0x1771
push 0
call fcn.004314d0
add esp, 8
push 1
call fcn.00449ed0
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004393d0
push 0xff1
push 0
call fcn.004314f0
add esp, 8
push 0
call fcn.00449ed0
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x451430
Capabilities:
Terminate process

Disassembly:
mov al, byte [0x4690c4]
test al, al
je 0x45143e
call fcn.00415100
mov al, byte [0x481161]
test al, al
je 0x451469
push 0x4964b0
mov dword [0x481198], 0xe
call fcn.004393d0
push 1
call fcn.00449ed0
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x4ba
push 0
call fcn.00431420
add esp, 8
ret
Function at 0x45e400
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [0x496868]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, ebp
je 0x45e46a
cmp eax, ebp
jne 0x45e432
push 0x244
call fcn.004516d0
mov dword [0x496868], eax
mov eax, dword [0x496864]
cmp eax, ebp
je 0x45e444
push eax
call edi
mov dword [0x496864], ebp
mov eax, dword [0x496868]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [0x496864], eax
jne 0x45e490
pop edi
mov dword [0x496864], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
mov ecx, dword [0x496864]
push eax
push ecx
call ebx
test eax, eax
jne 0x45e490
mov edx, dword [0x496864]
push edx
call edi
pop edi
mov dword [0x496864], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
mov eax, dword [0x496868]
test byte [eax], 0x10
jne 0x45e46a
pop edi
pop esi
pop ebp
add eax, 0x2c
pop ebx
ret 4

Function at 0x45ed00
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_getenv]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_free]
push esi
test eax, eax
je 0x45ed35
push eax
call ebx
add esp, 4
test eax, eax
je 0x45ed35
push eax
call fcn.00451750
mov esi, eax
push esi
call fcn.0045eaa0
push esi
call ebp
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [0x481040], 0
cmp eax, 1
jle 0x45ed72
mov ecx, dword [esp + 0x14]
push edi
lea edi, [eax - 1]
lea esi, [ecx + 4]
mov eax, dword [esi]
cmp byte [eax], 0x40
jne 0x45ed63
inc eax
push eax
call fcn.0045eb60
jmp 0x45ed6b
push 0
push eax
call fcn.0045e7d0
add esi, 4
dec edi
jne 0x45ed53
pop edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45ed98
push eax
call ebx
add esp, 4
test eax, eax
je 0x45ed98
push eax
call fcn.00451750
mov esi, eax
push esi
call fcn.0045eaa0
push esi
call ebp
add esp, 4
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x6ad419a0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x2c
mov eax, dword [eax + 0x100]
test eax, eax
je 0x6ad41a50
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
xor ebx, ebx
mov edi, dword fs:[0x18]
mov dword [ebp - 0x1c], eax
lea esi, [esi]
mov eax, dword [esi + ebx*4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov eax, dword [esi + ebx*4 + 0x80]
add ebx, 1
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
sub esp, 0xc
cmp ebx, dword [esi + 0x100]
jb 0x6ad419d0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x1c], eax
jmp 0x6ad41a1f
Function at 0x401140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401159
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40116d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40118e
cmp esi, eax
jae 0x401167
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401180
cmp esi, eax
jae 0x401167
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404270
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x483528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
xor eax, eax
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], vtable.CPen.0
mov ecx, dword [esp + 0x3c]
push ecx
push 1
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0xc]
call fcn.0047aaa5
mov esi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0047ab81
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.0047a540
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.0047a257
push edi
mov ecx, esi
call fcn.0047ab81
lea ecx, [esp + 8]
call fcn.0047aafc
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 8], vtable.CGdiObject.0
call fcn.0047aafc
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x18
Function at 0x404880
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x483553
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0047a2c0
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], method.CDC.virtual_0
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov byte [esp + 0x24], 1
lea edi, [esi + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x30]
cmp eax, ecx
jne 0x4048ef
mov edx, dword [ebx]
push edi
mov ecx, ebx
call dword [edx + 0x50]
jmp 0x404907
mov edx, dword [eax]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40499c
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0047a7a8
mov ecx, dword [ebx + 8]
push 2
push edi
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, edx
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0047aaa5
test ebp, ebp
je 0x40495b
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.0047ab2e
mov dword [esi + 0x18], eax
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, esi
call fcn.0047a219
mov edx, dword [ebx + 8]
push 2
push edi
push edx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov eax, dword [esi + 0x24]
mov ecx, dword [edi]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.0047a410
jmp 0x4049ae
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
push 1
mov ecx, esi
call fcn.0047a1bc
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4049f7
mov ebx, dword [edi]
mov eax, dword [edi + 0xc]
mov ebp, dword [edi + 4]
mov ecx, dword [edi + 8]
mov edx, dword [esi + 0x1c]
mov edi, dword [edi]
sub ecx, ebx
mov ebx, dword [esi + 0x24]
sub eax, ebp
test edx, edx
je 0x4049dd
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x404a0a
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push edi
mov ecx, esi
call fcn.0047c7da
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x406338
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
push edi
xor edi, edi
test eax, eax
mov dword [esi + 0x8c], 1
je 0x406364
nop
cmp edi, 3
jge 0x406364
push 0x3e8
call ebx
mov eax, dword [esi + 0x70]
inc edi
test eax, eax
jne 0x406350
mov eax, dword [esi + 0x70]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
je 0x406380
push 0
push eax
call ebp
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x80]
xor edi, edi
test eax, eax
je 0x4063a7
lea esp, [esp]
cmp edi, 3
jge 0x4063a7
push 0x3e8
call ebx
mov eax, dword [esi + 0x80]
inc edi
test eax, eax
jne 0x406390
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4063c3
push 0
push eax
call ebp
mov ecx, dword [esi + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x84]
xor edi, edi
test eax, eax
je 0x4063e7
nop
cmp edi, 3
jge 0x4063e7
push 0x3e8
call ebx
mov eax, dword [esi + 0x84]
inc edi
test eax, eax
jne 0x4063d0
mov eax, dword [esi + 0x84]
test eax, eax
je 0x406403
push 0
push eax
call ebp
mov edx, dword [esi + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x88]
xor edi, edi
test eax, eax
je 0x406427
nop
cmp edi, 3
jge 0x406427
push 0x3e8
call ebx
mov eax, dword [esi + 0x88]
inc edi
test eax, eax
jne 0x406410
mov eax, dword [esi + 0x88]
test eax, eax
je 0x406443
push 0
push eax
call ebp
mov eax, dword [esi + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi]
pop edi
mov ecx, esi
pop esi
pop ebp
pop ebx
jmp dword [edx + 0x150]

Function at 0x406fc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x483758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00406d30
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401730
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x407052
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret