joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
jmp 0x409f3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409f41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409f30
mov eax, 1
add ebx, ebx
jne 0x409f53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409f48
jne 0x409f64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409f48
xor ecx, ecx
sub eax, 3
jb 0x409f78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409fea
mov ebp, eax
add ebx, ebx
jne 0x409f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409f90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x409fb4
inc ecx
add ebx, ebx
jne 0x409fa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x409f95
jne 0x409fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409f95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409fd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409fc5
jmp 0x409f36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409fd4
add edi, ecx
jmp 0x409f36
pop esi
mov edi, esi
mov ecx, 0x207
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x409ff2
cmp byte [edi], 0
jne 0x409ff2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x409ff7
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x40a066
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40a024
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa054]
or eax, eax
je 0x40a060
mov dword [ebx], eax
add ebx, 4
jmp 0x40a041
call dword [esi + 0xa064]
mov ebp, dword [esi + 0xa058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40a09a
sub esp, 0xffffff80
jmp 0x40311f
Function at 0x4015c0
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 0x4015d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401614
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401610
lea ebx, [ebx]
cmp esi, eax
jae 0x401614
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401600
cmp esi, eax
jb 0x40161a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401ad0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
push 0x421590
push esi
mov dword [esp + 0x10], esi
call sub.KERNEL32.dll_GetModuleHandleExA
test eax, eax
je 0x401b2f
mov ecx, dword [esp + 4]
push edi
push str.VirtualAllocExNuma
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [esp + 0x14]
push esi
push 0x40
push 0x3000
push edi
push esi
mov dword [0x42c104], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x42c104]
mov edx, dword [esp + 0x10]
push edi
mov esi, eax
push edx
push esi
call fcn.0040f0c0
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x401c00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov cl, byte [eax]
mov dl, byte [eax + 1]
push ebp
xor ebp, ebp
cmp dword [esp + 0x10], ebp
jle 0x401c9c
push ebx
push esi
push edi
movzx esi, cl
movzx edi, dl
lea eax, [esi + 1]
cdq
mov ecx, 0x8d
idiv ecx
mov ebx, dword [0x42c10c]
movzx esi, dl
movzx eax, byte [esi + ebx]
lea ecx, [esi + ebx]
add eax, edi
mov byte [esp + 0x12], dl
cdq
mov edi, 0x8d
idiv edi
movzx edi, dl
lea eax, [edi + ebx]
mov byte [esp + 0x13], dl
call fcn.00401ac0
mov ecx, dword [0x42c10c]
movzx edx, byte [esi + ecx]
movzx eax, byte [edi + ecx]
add eax, edx
cdq
mov ebx, 0x8d
idiv ebx
inc ebp
movzx eax, dl
mov cl, byte [eax + ecx]
mov eax, dword [esp + 0x18]
xor byte [eax + ebp - 1], cl
cmp ebp, dword [esp + 0x1c]
jl 0x401c20
mov eax, dword [esp + 0x20]
mov dl, byte [esp + 0x12]
mov cl, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov byte [eax], dl
mov byte [eax + 1], cl
pop ebp
pop ecx
ret
mov byte [eax], cl
mov byte [eax + 1], dl
pop ebp
pop ecx
ret

Function at 0x40ead4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42abcc]
jne 0x40eade
repz ret
jmp fcn.0041553c
Function at 0x41c703
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00414f29
and dword [ebp - 4], 0
cmp dword [0x42ea3c], 0
mov ebx, eax
jne 0x41c7b4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41c865
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x425af4
push edi
call esi
test eax, eax
je 0x41c865
push eax
call fcn.00414eb7
mov dword [esp], 0x425ae4
push edi
mov dword [0x42ea3c], eax
call esi
push eax
call fcn.00414eb7
mov dword [esp], 0x425ad0
push edi
mov dword [0x42ea40], eax
call esi
push eax
call fcn.00414eb7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42ea44], eax
call esi
push eax
call fcn.00414eb7
pop ecx
mov dword [0x42ea4c], eax
test eax, eax
je 0x41c7b4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414eb7
pop ecx
mov dword [0x42ea48], eax
mov eax, dword [0x42ea48]
cmp eax, ebx
je 0x41c80c
cmp dword [0x42ea4c], ebx
je 0x41c80c
push eax
call fcn.00414f32
push dword [0x42ea4c]
mov esi, eax
call fcn.00414f32
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41c80c
test edi, edi
je 0x41c80c
call esi
test eax, eax
je 0x41c803
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41c803
test byte [ebp - 0xc], 1
jne 0x41c80c
or dword [ebp + 0x10], 0x200000
jmp 0x41c845
mov eax, dword [0x42ea40]
cmp eax, ebx
je 0x41c845
push eax
call fcn.00414f32
pop ecx
test eax, eax
je 0x41c845
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41c845
mov eax, dword [0x42ea44]
cmp eax, ebx
je 0x41c845
push eax
call fcn.00414f32
pop ecx
test eax, eax
je 0x41c845
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42ea3c]
call fcn.00414f32
pop ecx
test eax, eax
je 0x41c865
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41c867
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407af0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, ecx
push 0
push 0
push 0x1304
push dword [ebx + 0x100]
call esi
test eax, eax
je 0x407b59
push edi
push 0
push 0
push 0x130b
push dword [ebx + 0x100]
call esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, eax
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push dword [ebx + 0x24]
call esi
mov eax, edi
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
push eax
push dword [ebx + 0xd4]
call esi
test edi, edi
pop edi
je 0x407b59
mov byte [ebx + 0x104], 1
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x409c80
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xffffffffffffffff
push 0x6375d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6eed24]
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 0x10c]
mov eax, dword [ebx]
test eax, eax
jne 0x409ccd
mov eax, 0x649aa0
lea ecx, [ebp - 0x20]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x409d87
push edi
call fcn.004463f0
mov esi, eax
add esp, 4
mov eax, dword [ebx]
test eax, eax
jne 0x409cf7
mov eax, 0x649aa0
push esi
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test esi, esi
je 0x409d6d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test dword [ebp - 0x10], 0xc0000000
jne 0x409d6d
mov ecx, dword [ebp - 0x1c]
push 4
push dword [ebp - 0x14]
call fcn.00409b10
test al, al
je 0x409d6d
mov bl, 1
jmp 0x409d6f
xor bl, bl
mov dword [ebp - 4], 0
test esi, esi
je 0x409d83
push esi
call fcn.00446420
add esp, 4
mov al, bl
jmp 0x409d89
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.004b2558
lea esp, [ebp + 0x104]
pop ebp
ret 4

Function at 0x409db0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xor bl, bl
mov dword [edi], 1
mov eax, dword [eax]
test eax, eax
jne 0x409dcf
mov eax, 0x649aa0
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x409e0e
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x409e07
mov eax, dword [esp + 0xc]
mov bl, 1
mov dword [edi + 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0x40ad10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ad55
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ad79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._Cant_create_directory__s._Error_code:_0x_X.
push 1
push 0x2cd
push str.e:workprgpdf5_builds_rc.328_trackerupdateinstallmanager.cpp
call fcn.00431810
add esp, 0x18
xor eax, eax
pop esi
ret 4
test al, 0x10
jne 0x40ad79
push esi
push str._Cant_create_directory__s__because_file_is_exists_with_this_name
push 1
push 0x2d5
push str.e:workprgpdf5_builds_rc.328_trackerupdateinstallmanager.cpp
call fcn.00431810
add esp, 0x14
xor eax, eax
pop esi
ret 4
mov eax, 1
pop esi
ret 4
Function at 0x40bc20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6377d0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6eed24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [esi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x20], 0
jbe 0x40bcd1
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x18]
mov edi, dword [eax]
cmp ecx, edi
je 0x40bc95
mov dword [ebp - 4], 0
test edi, edi
je 0x40bc81
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x18], edi
mov dword [ebp - 4], 1
test ecx, ecx
je 0x40bc95
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x40caf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x40bcca
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x2c], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40cb90
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1008
call fcn.004b2660
mov eax, dword [0x6eed24]
xor eax, esp
mov dword [esp + 0x1004], eax
mov eax, dword [ecx]
push esi
mov esi, dword [esp + 0x1014]
test eax, eax
je 0x40cc1e
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push ecx
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x1028]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40cc1e
mov eax, dword [esp + 4]
add eax, eax
cmp eax, 0x1000
jae 0x40cc38
xor ecx, ecx
mov word [esp + eax + 8], cx
lea eax, [esp + 8]
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00403940
mov al, 1
pop esi
mov ecx, dword [esp + 0x1004]
xor ecx, esp
call fcn.004b2558
add esp, 0x1008
ret 8
mov ecx, dword [esp + 0x1008]
xor al, al
pop esi
xor ecx, esp
call fcn.004b2558
add esp, 0x1008
ret 8
call fcn.004b27ae
int3

Function at 0x40cc40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x40ccb4
lea ecx, [esp + 8]
mov dword [esp + 4], 4
push ecx
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
push ecx
push 0
push dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ccb4
cmp dword [esp + 4], 4
jne 0x40ccb4
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push dword [esp + 0x24]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ccb4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
pop esi
mov dword [ecx], eax
mov al, 1
add esp, 0xc
ret 8
xor al, al
pop esi
add esp, 0xc
ret 8
Function at 0x40ccc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637908
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6eed24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x40cdaa
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push ecx
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cdaa
mov ecx, dword [ebp - 0x10]
cmp ecx, 2
jbe 0x40cddc
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
shr ecx, 1
mov dword [ebp - 4], edx
lea esi, [ecx - 1]
test esi, esi
je 0x40cd6c
lea edi, [ecx + 0x1f]
and edi, 0xffffffe0
lea eax, [edi + edi]
push eax
push edx
call fcn.00446560
mov edx, eax
add esp, 8
xor eax, eax
test edx, edx
je 0x40cd79
mov word [edx], ax
lea eax, [edi - 1]
mov dword [ebp - 0x18], eax
mov eax, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
test eax, eax
je 0x40cd81
xor ecx, ecx
mov word [edx + esi*2], cx
test eax, eax
je 0x40cd81
mov esi, eax
jmp 0x40cd88
mov eax, 0x649aa0
xor esi, esi
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40cdc0
lea ecx, [ebp - 0x20]
call fcn.00403130
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test esi, esi
jne 0x40cdc9
mov esi, 0x649aa0
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push esi
call fcn.00403940
lea ecx, [ebp - 0x20]
call fcn.00403130
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40d310
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x40d335
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40d335
mov al, 1
ret 8
xor al, al
ret 8

Function at 0x40d380
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6379fb
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x6eed24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x184], ebx
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebx + 4], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], eax
mov dword [ebx], 0x64decc
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
push 0x11
mov byte [ebx + 0x6c], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, eax
lea eax, [ebp - 0x6c]
push eax
push 0x5c
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x64dedc
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x110
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x180], 0x114
push 0
push eax
call fcn.004b40a0
add esp, 0xc
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d4f1
mov eax, dword [ebp - 0x17c]
cmp eax, 5
jae 0x40d4ed
cmp eax, 4
jne 0x40d4f1
cmp dword [ebp - 0x178], 0x5a
jb 0x40d4f1
mov al, 5
jmp 0x40d4f3
mov al, 4
mov edi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov byte [ebp - 0x52], al
lea eax, [ebp - 0x6c]
push eax
call edi
mov dword [ebx + 0x24], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x57], 1
call edi
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x57], 0
mov dword [ebp - 0x5c], 0x2bc
call edi
mov dword [ebx + 0x28], eax
test esi, esi
je 0x40d531
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b2558
mov esp, ebp
pop ebp
ret
Function at 0x40d710
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637a80
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6eed24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi], 0x64decc
mov ebx, dword [edi + 0x74]
mov eax, dword [edi + 0x78]
lea eax, [ebx + eax*4]
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x40d7fa
mov esi, dword [ebx]
test esi, esi
je 0x40d7ef
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], 0
test eax, eax
je 0x40d773
push eax
call fcn.00446420
add esp, 4
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], 1
test eax, eax
je 0x40d79f
push eax
call fcn.00446420
add esp, 4
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov eax, dword [esi]
mov dword [ebp - 4], 2
test eax, eax
je 0x40d7ca
push eax
call fcn.00446420
add esp, 4
push 0x88
push esi
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
call fcn.004b22a2
mov eax, dword [ebp - 0x10]
add esp, 8
add ebx, 4
cmp ebx, eax
jne 0x40d752
mov eax, dword [edi + 0x74]
mov dword [ebp - 4], 3
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x74], 0
test eax, eax
je 0x40d826
push eax
call fcn.00446420
add esp, 4
mov eax, dword [edi + 0x60]
mov dword [ebp - 4], 4
test eax, eax
je 0x40d83d
push eax
call fcn.00446420
add esp, 4
mov dword [edi + 0x60], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x64], 0
mov eax, dword [edi + 0x54]
mov dword [ebp - 4], 5
test eax, eax
je 0x40d869
push eax
call fcn.00446420
add esp, 4
mov dword [edi + 0x54], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x58], 0
mov eax, dword [edi + 0x48]
mov dword [ebp - 4], 6
test eax, eax
je 0x40d895
push eax
call fcn.00446420
add esp, 4
mov dword [edi + 0x48], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x4c], 0
mov eax, dword [edi + 0x3c]
mov dword [ebp - 4], 7
test eax, eax
je 0x40d8c1
push eax
call fcn.00446420
add esp, 4
mov dword [edi + 0x3c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x40], 0
mov eax, dword [edi + 0x30]
mov dword [ebp - 4], 8
test eax, eax
je 0x40d8ed
push eax
call fcn.00446420
add esp, 4
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x40d91d
push eax
call esi
test eax, eax
je 0x40d91d
mov dword [edi + 0x2c], 0
mov eax, dword [edi + 0x28]
test eax, eax
je 0x40d932
push eax
call esi
test eax, eax
je 0x40d932
mov dword [edi + 0x28], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x40d947
push eax
call esi
test eax, eax
je 0x40d947
mov dword [edi + 0x24], 0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x40d954
push eax
call fcn.004b15f6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret