joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423d2d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x423d4f
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x423d4f
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x423d4f
ret
cmp word [ebx + 4], 0x14c
jne 0x423d4f
test word [ebx + 0x16], 2
je 0x423d4f
test word [ebx + 0x16], 0x100
je 0x423d4f
cmp word [ebx + 0x18], 0x10b
jne 0x423d4f
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x423d4f
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x423ddb
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x423d6f
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.0040acba
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x423d4f
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x423ddb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x423d4f
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x423d4f
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x423d4f
ret
cmp word [ebx + 4], 0x14c
jne 0x423d4f
test word [ebx + 0x16], 2
je 0x423d4f
test word [ebx + 0x16], 0x100
je 0x423d4f
cmp word [ebx + 0x18], 0x10b
jne 0x423d4f
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x423d4f
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x423ddb
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x423d6f
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.0040acba
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x423d4f
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x423e92
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x423eeb
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x423e92
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x423ea1
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x829b44
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x423ef2
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0040ad68
cmp eax, dword [ebp + 0xc]
pop eax
je 0x423f91
add edi, 4
add eax, 2
dec ecx
jne 0x423ed7
call 0x423f3e
loope 0x423f34
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x423f8e
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x423f9f
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x423f52
cmp eax, ecx
ja 0x423f52
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x423fdc
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x423fd2
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0040b247
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x423ea1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x423eeb
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x423e92
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x423ea1
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x829b44
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x423ef2
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0040ad68
cmp eax, dword [ebp + 0xc]
pop eax
je 0x423f91
add edi, 4
add eax, 2
dec ecx
jne 0x423ed7
call 0x423f3e
loope 0x423f34
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x423f8e
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x423f9f
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x423f52
cmp eax, ecx
ja 0x423f52
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x423fdc
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x423fd2
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0040b247
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x405eae
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0x190
mov eax, 0x631edd
call fcn.004d66c3
mov esi, ecx
push 7
xor edi, edi
xor eax, eax
pop ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call fcn.0040676a
mov ecx, eax
call fcn.004afc99
push 8
pop ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], ebx
push str.ZHMper.dll
cmovae eax, dword [ebp - 0x58]
push str.Qerqwe
push eax
lea eax, [ebp - 0x70]
push str._s_s_s
push eax
call fcn.004b0f77
add esp, 0x14
lea ecx, [ebp - 0x28]
push eax
call fcn.00403bf9
lea ecx, [ebp - 0x70]
call fcn.00401ce8
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004b21b3
pop ecx
cmp dword [esi + 0x14], ebx
jb 0x405f47
mov esi, dword [esi]
push str.ZHMper.dll
push esi
lea eax, [ebp - 0x70]
push str._s_s
push eax
call fcn.004b0f77
add esp, 0x10
lea ecx, [ebp - 0x40]
push eax
call fcn.00403bf9
lea ecx, [ebp - 0x70]
call fcn.00401ce8
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x4060a1
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x405fac
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004b2975
pop ecx
call fcn.004ad773
test al, al
je 0x406084
mov eax, dword [0x6d9390]
test eax, eax
je 0x406084
cmp dword [eax + 4], 4
jl 0x406084
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
push str.1098
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x198], eax
call fcn.004ad356
mov dword [ebp - 0x194], eax
mov dword [esp], str.1091
call fcn.004ad356
pop ecx
push edi
push edi
push 0x6b2730
push 0x20
push str.CDoRemainLogic::CopyDllServiceFileToInsPath
push 4
lea ecx, [ebp - 0x190]
mov esi, eax
call fcn.00405da5
mov dword [ebp - 0x19c], eax
mov edi, str._null_
mov byte [ebp - 4], 3
test esi, esi
lea ebx, [eax + 0x30]
mov ecx, edi
cmovne ecx, esi
push ecx
push ebx
call fcn.00403a1c
mov ecx, dword [ebp - 0x194]
mov eax, edi
test ecx, ecx
cmovne eax, ecx
push eax
push ebx
call fcn.00403a1c
mov eax, dword [ebp - 0x198]
test eax, eax
cmovne edi, eax
push edi
push ebx
call fcn.00403a1c
mov ecx, dword [0x6d9390]
add esp, 0x18
push dword [ebp - 0x19c]
call fcn.00405e8a
lea ecx, [ebp - 0x190]
call fcn.00403bae
push 8
pop ebx
xor edi, edi
cmp dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x28]
push edi
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], ebx
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x58]
call fcn.00401ce8
lea ecx, [ebp - 0x40]
call fcn.00401ce8
lea ecx, [ebp - 0x28]
call fcn.00401ce8
call fcn.004d666d
ret
Function at 0x407c3e
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x632324
call fcn.004d66c3
mov esi, ecx
mov dword [ebp - 0x30], esi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x407c5e
xor eax, eax
jmp 0x407dbe
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x407c8c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x407c8c
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x407dbe
cmp dword [esi + 0x4c], 0
je 0x407dbc
mov ecx, esi
call fcn.00407f16
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x407cc0
push dword [esi + 0x4c]
movsx eax, al
push eax
call fcn.004f6828
cmp eax, ebx
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x407dbc
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x29], al
mov dword [ebp - 0x14], 0xf
call fcn.00408865
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x407db4
cmp eax, 1
jg 0x407d97
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x407d68
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.004f6b64
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x407db4
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x29]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x407d92
test edx, edx
jne 0x407ce8
cmp dword [ebp - 0x18], 0x20
jae 0x407db4
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.004022f5
jmp 0x407ce5
mov ebx, dword [ebp + 8]
jmp 0x407db4
cmp eax, 3
jne 0x407db4
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
movsx eax, byte [ebp - 0x29]
push eax
call fcn.004f6828
cmp eax, ebx
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
lea ecx, [ebp - 0x28]
call fcn.00405aa5
mov eax, ebx
call fcn.004d666d
ret 4
Function at 0x407f39
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x63236c
call fcn.004d66c3
mov esi, ecx
mov dword [ebp - 0x30], esi
xor ebx, ebx
cmp dword [esi + 0x38], ebx
je 0x408041
cmp byte [esi + 0x3d], bl
je 0x408041
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x407f71
xor al, al
jmp 0x408043
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
call fcn.00408865
lea eax, [esi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov ecx, dword [ecx + 0x38]
add eax, edi
push eax
push esi
push dword [ebp - 0x34]
mov edx, dword [ecx]
call dword [edx + 0x20]
sub eax, ebx
je 0x407fce
sub eax, 1
jne 0x408026
mov esi, dword [ebp - 0x30]
jmp 0x407fd4
mov esi, dword [ebp - 0x30]
mov byte [esi + 0x3d], bl
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov edi, dword [ebp - 0x38]
cmovae eax, edx
sub edi, eax
je 0x40800c
push dword [esi + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push edi
cmovae eax, edx
push 1
push eax
call fcn.004f6b64
add esp, 0x10
cmp edi, eax
jne 0x408031
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [esi + 0x3d], 0
je 0x40802f
test edi, edi
jne 0x407f98
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.004022f5
jmp 0x407f92
dec eax
sub eax, 1
jne 0x408035
inc eax
jmp 0x408033
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x2c]
call fcn.00405aa5
mov al, bl
jmp 0x408043
mov al, 1
call fcn.004d666d
ret
Function at 0x4094bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push ecx
call fcn.00419c90
push 4
call fcn.0041a0c0
pop ecx
pop ecx
push 0x6b2ac4
push 0x82
call fcn.00411f70
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40952b
push edi
push esi
call fcn.00411f70
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409523
push esi
call fcn.00411f70
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x409523
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0041a0d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
ret

Function at 0x40986e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6c9614]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4098e5
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4098e5
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5d93
mov esp, ebp
pop ebp
ret
Function at 0x4125b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x4125d1
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x4125e9
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x412601
mov edx, dword [ebp - 4]
or edx, 2
mov dword [ebp - 4], edx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x412617
mov ecx, dword [ebp - 4]
or ecx, 4
mov dword [ebp - 4], ecx
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x41262f
mov eax, dword [ebp - 4]
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4198f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xa8]
je 0x41992e
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x108]
je 0x41992e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x108]
jne 0x419941
jmp 0x419a9d
mov edx, dword [ebp - 4]
cmp dword [edx + 0x108], 0
je 0x4199c7
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], 0x17
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x108]
mov edx, dword [eax + 0x148]
call edx
push 0
push 0
push 0
push str.killfocus
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00419350
mov edx, dword [ebp - 4]
mov dword [edx + 0x108], 0
cmp dword [ebp + 8], 0
jne 0x4199d2
jmp 0x419a9d
cmp dword [ebp + 8], 0
je 0x419a9d
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
call eax
cmp eax, dword [ebp - 4]
jne 0x419a9d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x108]
call eax
movzx ecx, al
test ecx, ecx
je 0x419a9d
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x114]
call edx
movzx eax, al
test eax, eax
je 0x419a9d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x108], edx
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], 0x18
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x108]
mov edx, dword [eax + 0x148]
call edx
push 0
push 0
push 0
push str.setfocus
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00419350
mov esp, ebp
pop ebp
ret 4
Function at 0x41d1f0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63302b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6c9614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040dc70
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], vtable.DuiLib::CNotifyPump.0
push 0x53
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.0041b280
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0x20
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [eax], vtable.DuiLib::INotifyUI.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [edx], vtable.DuiLib::IMessageFilterUI.0
mov eax, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx], vtable.DuiLib::IDialogBuilderCallback.0
mov edx, dword [ebp - 0x10]
add edx, 0x2c
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [eax], vtable.DuiLib::IQueryControlText.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], vtable.DuiLib::WindowImplBase.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], vtable.DuiLib::WindowImplBase.1.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], vtable.DuiLib::WindowImplBase.2.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], vtable.DuiLib::WindowImplBase.3.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], vtable.DuiLib::WindowImplBase.4.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], vtable.DuiLib::WindowImplBase.5.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0040ed70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4200f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x6c9614]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x420124
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x420124
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x420133
jmp 0x42029c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
movzx ecx, word [eax]
test ecx, ecx
je 0x42018e
mov edx, dword [ebp - 0x418]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x420171
mov ecx, dword [ebp - 0x418]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x42017d
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
jmp 0x420148
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0xc]
je 0x42021e
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.004edf90
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0x208
jae 0x4201e7
jmp 0x4201ec
call fcn.004d6a14
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [ebp + eax - 0x414], dx
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004200f0
add esp, 8
mov eax, dword [ebp - 0x424]
add eax, 2
mov dword [ebp - 0x424], eax
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0x428], edx
cmp dword [ebp - 0x428], 0x208
jae 0x42023a
jmp 0x42023f
call fcn.004d6a14
xor eax, eax
mov ecx, dword [ebp - 0x428]
mov word [ebp + ecx - 0x20c], ax
cmp dword [ebp + 8], 0
je 0x420268
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.004ffe3d
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.004ffe0c
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42029c
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5d93
mov esp, ebp
pop ebp
ret