joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5604c0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov esi, dword [ebp + 8]
mov eax, dword [0x63a1e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, esi
cmp byte [esi + 0xb], 0
jns 0x5604e3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x560516
and eax, 0x410
cmp eax, 0x410
jne 0x560516
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005909f1
mov ecx, esi
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.005605f0
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x560520
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x5605d9
push 2
call fcn.004824f0
add esp, 4
test al, al
je 0x5605d7
call fcn.00482ea0
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x94
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.00482fd0
lea eax, [ebp - 0xb4]
push 0xb
push str.DeleteFile
push eax
call fcn.00401baa
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x560585
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc8]
push eax
push esi
push ebx
call fcn.0048a840
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5605aa
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.00401baa
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x5605cc
push dword [ebp - 0xc8]
call fcn.005909b6
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.00483090
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5605f0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov eax, dword [0x63a1e8]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, ecx
cmp byte [ecx + 0xb], 0
jns 0x560612
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov bl, 1
test eax, eax
jne 0x5606c8
push 2
call fcn.004824f0
add esp, 4
test al, al
je 0x5606c6
call fcn.00482ea0
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x2f
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.00482fd0
lea eax, [ebp - 0xb4]
push 0x10
push str.RemoveDirectory
push eax
call fcn.00401baa
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x560674
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc8]
push eax
push esi
push ebx
call fcn.0048a840
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x560699
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.00401baa
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x5606bb
push dword [ebp - 0xc8]
call fcn.005909b6
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.00483090
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x562d80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xd0
mov eax, dword [0x63a1e8]
lea esi, [ebp - 0x30]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esi + 0x14], 0x100
jb 0x562dec
push 1
call fcn.004824f0
add esp, 4
test al, al
je 0x562dec
lea esi, [ebp - 0xd8]
mov ecx, esi
push 1
push 0xb1
push str..._.._third_party_crashpad_crashpad_snapshot_win_system_snapshot_win.cc
call fcn.00482590
lea eax, [ebp - 0xd0]
push 0x2c
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, esi
call fcn.00482940
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov ebx, 0xff
cmp eax, 0x100
cmovb ebx, eax
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
add esp, 0xd0
pop esi
pop ebx
pop ebp
ret
Function at 0x5798ea
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xec
mov eax, dword [0x63a1e8]
lea edi, [ecx + 0x10]
mov esi, ecx
mov ecx, edi
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.0057a266
lea ebx, [ebp - 0x50]
mov ecx, esi
push ebx
push 0
push 0x40
push edx
push eax
call fcn.005849e2
test al, al
je 0x579988
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x5799c5
mov ecx, edi
call fcn.0057a266
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov ecx, esi
mov edi, eax
sar edi, 0x1f
add ebx, eax
adc edi, edx
push dword [ebp + 8]
push 0
push 0x108
push edi
push ebx
call fcn.005849e2
test al, al
je 0x5799ff
mov eax, dword [ebp + 8]
cmp dword [eax], 0x4550
jne 0x579a39
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov bl, 1
test eax, eax
je 0x579a97
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x579a97
push 1
call fcn.004824f0
add esp, 4
test al, al
je 0x579a95
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x154
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00482590
lea eax, [ebp - 0xf0]
push 0x1f
push str.could_not_read_dos_header_from
jmp 0x579a6d
push 1
call fcn.004824f0
add esp, 4
test al, al
je 0x579a95
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x15a
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00482590
lea eax, [ebp - 0xf0]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x579a6d
push 1
call fcn.004824f0
add esp, 4
test al, al
je 0x579a95
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x162
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00482590
lea eax, [ebp - 0xf0]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x579a6d
push 1
call fcn.004824f0
add esp, 4
test al, al
je 0x579a95
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x168
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00482590
lea eax, [ebp - 0xf0]
push 0x23
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.00401baa
add esp, 0xc
movzx ecx, byte [esi + 0xb]
test cl, cl
jns 0x579a83
mov ecx, dword [esi + 4]
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, edi
call fcn.00482940
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
add esp, 0xec
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x579ab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xec
mov eax, dword [0x63a1e8]
lea edi, [ecx + 0x10]
mov esi, ecx
mov ecx, edi
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.0057a266
lea ebx, [ebp - 0x50]
mov ecx, esi
push ebx
push 0
push 0x40
push edx
push eax
call fcn.005849e2
test al, al
je 0x579b4e
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x579b8b
mov ecx, edi
call fcn.0057a266
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov ecx, esi
mov edi, eax
sar edi, 0x1f
add ebx, eax
adc edi, edx
push dword [ebp + 8]
push 0
push 0xf8
push edi
push ebx
call fcn.005849e2
test al, al
je 0x579bc5
mov eax, dword [ebp + 8]
cmp dword [eax], 0x4550
jne 0x579bff
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov bl, 1
test eax, eax
je 0x579c5d
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x579c5d
push 1
call fcn.004824f0
add esp, 4
test al, al
je 0x579c5b
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x154
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00482590
lea eax, [ebp - 0xf0]
push 0x1f
push str.could_not_read_dos_header_from
jmp 0x579c33
push 1
call fcn.004824f0
add esp, 4
test al, al
je 0x579c5b
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x15a
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00482590
lea eax, [ebp - 0xf0]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x579c33
push 1
call fcn.004824f0
add esp, 4
test al, al
je 0x579c5b
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x162
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00482590
lea eax, [ebp - 0xf0]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x579c33
push 1
call fcn.004824f0
add esp, 4
test al, al
je 0x579c5b
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x168
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00482590
lea eax, [ebp - 0xf0]
push 0x23
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.00401baa
add esp, 0xc
movzx ecx, byte [esi + 0xb]
test cl, cl
jns 0x579c49
mov ecx, dword [esi + 4]
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, edi
call fcn.00482940
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
add esp, 0xec
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x58076c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
xor ebx, ebx
mov edi, edx
mov esi, ecx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
push ebx
push edx
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, esi
push eax
call fcn.00408a4a
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x5807af
push edi
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x58fa98
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [eax], 0
jg 0x58fb41
mov esi, dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005874c8
add esp, 4
push ebx
push 0x10000080
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x58fb11
xor ebx, ebx
mov edi, eax
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x58fb11
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 8]
test eax, eax
mov dword [ecx + 4], eax
je 0x58fb38
mov bl, 1
mov dword [ecx + 0x14], esi
jmp 0x58fb41
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x58fb3f
mov eax, dword [ebp + 0x10]
mov dword [eax], 7
jmp 0x58fb3f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5b4489
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b46d2

Function at 0x5b75c7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b75d2
Function at 0x10002580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100025d8
cmp byte [esi + ebx - 1], 0xa
je 0x100025ac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10004118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x401933
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov eax, 0x42683f
call fcn.004256c0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.004032ae
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.0040198c
lea ecx, [esi + 0x30]
call fcn.004032ae
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405386
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x405512
Capabilities:
Create directory

Disassembly:
mov eax, 0x426bd0
call fcn.004256c0
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x405535
mov al, 1
jmp 0x40557b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x405546
xor al, al
jmp 0x40557b
lea ecx, [ebp - 0x44]
call fcn.0040573f
lea ecx, [ebp - 0x1c]
call fcn.004032ae
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040598d
test al, al
je 0x405570
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00403a73
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40597e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40598c
or eax, eax
ret

Function at 0x406d48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x406d57
pop dword [ebp - 0x18]
mov eax, 0x4dd9904
add eax, 0xfb62d453
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x37202
push 0
mov eax, 0xb9662042
sub eax, 0xb9239016
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x8c39621e
add ecx, 0x73c6de50
xor esi, esi
add esi, eax
mov edx, 0x99aa9740
sub edx, 0x99672940
add edx, dword [ebp - 0x18]
mov ebx, 0xde016827
sub ebx, 0x1baecae9
sub dword [ebp - 0x10], 0x3b94fb24
mov edi, dword [edx]
xor edi, ebx
add dword [ebp - 0x10], edx
mov dword [esi], edi
add esi, 0xdc00a99a
sub esi, 0xdc00a996
add edx, 0xb568f391
sub edx, 0xb568f38d
loop 0x406db8
add eax, 0x27afee04
sub eax, 0x27aef979
mov ebx, eax
add eax, 0xbc908a9c
sub eax, 0xbc908a97
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x40355a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4c2498]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.004752c0
add esp, 0xc
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x4035bb
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x40366b
mov eax, dword [ebp - 0x110]
sub eax, 1
je 0x403656
sub eax, 1
jne 0x40366b
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
push 6
pop edx
cmp eax, edx
jne 0x40360b
cmp ecx, 1
jne 0x4035f8
xor ebx, ebx
cmp byte [ebp - 6], cl
setne bl
add ebx, 8
jmp 0x40366b
test ecx, ecx
jne 0x40363e
cmp byte [ebp - 6], 1
push 9
pop ebx
push 7
pop eax
cmove ebx, eax
jmp 0x40366b
cmp eax, 5
jne 0x403630
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x40361f
push 5
jmp 0x403637
cmp eax, 1
jne 0x403628
mov ebx, edx
jmp 0x40366b
test eax, eax
jne 0x40366b
push 3
jmp 0x403637
cmp eax, 4
ja 0x40363a
push 4
pop ebx
jmp 0x40366b
cmp eax, edx
jb 0x40366b
cmp ecx, 2
jae 0x403647
cmp eax, edx
jbe 0x40366b
cmp byte [ebp - 6], 1
jne 0x40366b
call fcn.00403799
mov ebx, eax
jmp 0x40366b
mov eax, dword [ebp - 0x114]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb ebx, ebx
add ebx, 2
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d75f
mov esp, ebp
pop ebp
ret

Function at 0x40370b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x403791
push edi
push ebx
call fcn.0045d8a6
pop ecx
mov edi, eax
push edi
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x403785
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x49a8b4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403785
cmp dword [ebp - 8], esi
je 0x403785
mov ecx, dword [ebp - 0xc]
inc esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test edi, edi
je 0x403790
push edi
call fcn.0045d8af
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40386b
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x49339a
call fcn.0045d7db
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.00401afb
push eax
mov ecx, esi
call fcn.004026a6
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x21c], 1
call fcn.004752c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401dff
push esi
call fcn.004038ec
pop ecx
mov eax, esi
call fcn.0045d785
ret

Function at 0x403ecb
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x14]
mov esi, ecx
call fcn.00403f7e
xor edi, edi
cmp dword [esi], edi
je 0x403ef3
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [esi + 8], eax
mov eax, esi
cmovne eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
push eax
push edi
push esi
push 0x403f60
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
pop edi
setne cl
mov eax, ecx
pop esi
pop ebp
ret 0x10

Function at 0x403f29
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.00403f7e
cmp dword [ebp + 0xc], 0
je 0x403f5b
cmp dword [esi], 0
je 0x403f5b
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
or dword [esi + 0xc], 0xffffffff
pop esi
pop ebp
ret 8

Function at 0x40ca8a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4c2498]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x214]
push esi
mov esi, dword [ebp + 8]
push 0x210
push 0
push eax
call fcn.004752c0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
call fcn.00401616
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045d75f
mov esp, ebp
pop ebp
ret 4
Function at 0x40cd03
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x493d0c
call fcn.0045d7a7
mov edi, ecx
call fcn.0040bc1f
push dword [edi]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0040c26f
mov eax, dword [ebp - 0x10]
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [eax - 0xc], esi
je 0x40cdfc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cdf9
lea ecx, [ebp - 0x24]
call fcn.00409427
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
push dword [ebp - 0x20]
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
test ebx, ebx
jle 0x40cdf1
xor ecx, ecx
mov eax, ebx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40cdbe
push 0x409caa
push 0x40941d
push ebx
lea esi, [eax + 4]
mov dword [eax], ebx
push 8
push esi
call fcn.0045df57
mov byte [ebp - 4], 1
mov dword [edi + 4], esi
test esi, esi
je 0x40cdf1
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
lea ecx, [ebp - 0x24]
call fcn.0040c0d2
test eax, eax
jne 0x40cdea
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x40cdea
mov dword [edi + 8], ebx
mov dword [edi + 0xc], eax
jmp 0x40cdf1
mov ecx, edi
call fcn.0040bc1f
lea ecx, [ebp - 0x24]
call fcn.00409cca
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
call fcn.00401dbc
call fcn.0045d770
ret

Function at 0x40e9c2
Capabilities:
Hide graphical window

Disassembly:
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x40e9e9
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40e9e9
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x418a32
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push esi
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x418ab3
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x418a6e
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x418a72
xor eax, eax
jmp 0x418ab2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x418ab1
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
call fcn.00402c2d
test eax, eax
je 0x418a9b
push edi
push ebx
push eax
call fcn.004747c0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
call fcn.00403a69
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
pop ebp
ret