joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411280
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x47f078]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x47f638]
je 0x4112b5
inc eax
cmp eax, 0x13
jb 0x4112a6
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x47f638]
jne 0x4113db
mov eax, dword [0x482748]
cmp eax, 1
je 0x4113b3
cmp eax, edx
jne 0x4112e5
cmp dword [0x47f074], 1
je 0x4113b3
cmp ecx, 0xfc
je 0x4113db
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41131b
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004137a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040bfe0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41134f
mov eax, edi
push eax
call fcn.0040bfe0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x46f6f0
push edi
call fcn.00415ad0
add esp, 0x10
push edi
call fcn.0040bfe0
push dword [esi + 0x47f63c]
mov ebx, eax
call fcn.0040bfe0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040b430
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004137a0
push edi
push ebx
call fcn.004137b0
push 0x46f6d0
push ebx
call fcn.004137b0
push dword [esi + 0x47f63c]
push ebx
call fcn.004137b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00418134
add esp, 0x2c
jmp 0x4113db
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x47f63c]
push dword [esi]
call fcn.0040bfe0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040bb04
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x418134
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x482be0], ebx
push esi
push edi
jne 0x4181b4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4181ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x482be0], eax
je 0x4181ef
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x482be4], eax
call esi
cmp dword [0x482754], 2
mov dword [0x482be8], eax
jne 0x4181b4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x482bf0], eax
je 0x4181b4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x482bec], eax
mov eax, dword [0x482bec]
test eax, eax
je 0x4181f9
call eax
test eax, eax
je 0x4181e0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x482bf0]
test eax, eax
je 0x4181e0
test byte [ebp - 8], 1
jne 0x4181f9
cmp dword [0x482760], 4
jb 0x4181f3
or byte [ebp + 0x12], 0x20
jmp 0x418218
xor eax, eax
jmp 0x418228
or byte [ebp + 0x12], 4
jmp 0x418218
mov eax, dword [0x482be4]
test eax, eax
je 0x418218
call eax
mov ebx, eax
test ebx, ebx
je 0x418218
mov eax, dword [0x482be8]
test eax, eax
je 0x418218
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x482be0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41845c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x47f078]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41848d
xor eax, eax
jmp 0x418616
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x484040]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4184c9
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041a310
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4185a4
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4185e2
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41852d
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41851e
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4184fe
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41856d
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x418576
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4184ef
jmp 0x418578
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x418611
cmp dword [ebp - 0x6c], edi
je 0x4185e2
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4185d7
call fcn.0040d9ca
mov dword [eax], 9
call fcn.0040d9d3
mov dword [eax], esi
jmp 0x41860c
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4185cc
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x418578
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x418578
push dword [ebp - 0x6c]
call fcn.0040d9dc
pop ecx
jmp 0x41860c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4185fa
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4185fa
xor eax, eax
jmp 0x418614
call fcn.0040d9ca
mov dword [eax], 0x1c
call fcn.0040d9d3
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x418614
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040bb04
add ebp, 0x3a0
leave
ret
Function at 0x41a6a5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41a879
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x484040]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41a879
test cl, 0x48
je 0x41a710
cmp byte [eax + 5], 0xa
je 0x41a710
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a762
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41a74a
call fcn.0040d9ca
mov dword [eax], 9
call fcn.0040d9d3
mov dword [eax], esi
jmp 0x41a75a
cmp eax, 0x6d
je 0x41a879
push eax
call fcn.0040d9dc
pop ecx
or eax, 0xffffffff
jmp 0x41a87b
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41a874
test eax, eax
je 0x41a789
cmp byte [ebx], 0xa
jne 0x41a789
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41a792
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41a86e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41a85e
cmp al, 0xd
je 0x41a7c4
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41a850
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41a7de
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41a7d9
add dword [ebp + 0x10], 2
jmp 0x41a832
mov dword [ebp + 0x10], eax
jmp 0x41a84c
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a806
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a84c
cmp dword [ebp - 0xc], 0
je 0x41a84c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41a827
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41a832
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41a84f
cmp ebx, dword [ebp + 0xc]
jne 0x41a837
cmp byte [ebp - 1], 0xa
jne 0x41a837
mov byte [ebx], 0xa
jmp 0x41a84f
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041833d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41a850
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41a7a8
jmp 0x41a86e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41a86e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41a87b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b3f7
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4710a8
call fcn.0040c518
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x482c14], edi
jne 0x41b43b
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41b426
mov dword [0x482c14], ebx
jmp 0x41b43b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41b43b
mov dword [0x482c14], 2
mov eax, dword [0x482c14]
cmp eax, ebx
jne 0x41b45b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41b51e
cmp eax, 2
je 0x41b464
cmp eax, edi
jne 0x41b48c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x41b477
mov eax, dword [0x482a9c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x41b493
xor eax, eax
jmp 0x41b51e
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040b430
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x41b4c6
cmp esi, edi
jne 0x41b4dc
push dword [ebp - 0x20]
call fcn.0040b514
pop ecx
mov esi, eax
cmp esi, edi
je 0x41b48c
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41b50f
cmp dword [ebp + 0x14], edi
jne 0x41b4f9
push edi
push edi
jmp 0x41b4ff
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x41b51b
push esi
call fcn.0040b526
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040c553
ret
Function at 0x41b527
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4710b8
call fcn.0040c518
xor esi, esi
cmp dword [0x482c18], esi
jne 0x41b56b
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41b556
mov dword [0x482c18], edi
jmp 0x41b56b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41b56b
mov dword [0x482c18], 2
mov eax, dword [0x482c18]
cmp eax, 2
je 0x41b64c
cmp eax, esi
je 0x41b64c
cmp eax, 1
jne 0x41b5b0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x41b599
mov eax, dword [0x482a9c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x41b5b7
xor eax, eax
jmp 0x41b65e
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0040b430
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x41b5ed
cmp edi, esi
jne 0x41b608
lea eax, [ebx + ebx]
push eax
call fcn.0040b514
pop ecx
mov edi, eax
cmp edi, esi
je 0x41b5b0
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41b63b
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x41b625
push esi
push esi
jmp 0x41b62b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x41b647
push edi
call fcn.0040b526
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x41b65e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0040c553
ret
Function at 0x41bf30
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41bf49
or eax, 0xffffffff
jmp 0x41bfaa
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41bfa6
push 0x3d
push esi
call fcn.0040cc72
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41bfa6
cmp esi, eax
je 0x41bfa6
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x482774]
sete cl
cmp eax, dword [0x482778]
mov dword [ebp - 8], ecx
jne 0x41bf8c
mov edi, eax
call fcn.0041becf
mov dword [0x482774], eax
cmp eax, ebx
jne 0x41bfe5
cmp dword [ebp + 0xc], ebx
je 0x41bfae
cmp dword [0x48277c], ebx
je 0x41bfae
call fcn.0041b367
test eax, eax
je 0x41bfe5
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41bfb7
xor eax, eax
jmp 0x41bfa9
push 4
call fcn.0040b514
cmp eax, ebx
pop ecx
mov dword [0x482774], eax
je 0x41bfa6
mov dword [eax], ebx
cmp dword [0x48277c], ebx
jne 0x41bfe5
push 4
call fcn.0040b514
cmp eax, ebx
pop ecx
mov dword [0x48277c], eax
je 0x41bfa6
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x482774]
call fcn.0041be82
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41c046
cmp dword [esi], ebx
je 0x41c046
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040b526
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41c029
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41c087
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41c020
mov eax, edi
shl eax, 2
push eax
push dword [0x482774]
call fcn.0040ce21
cmp eax, ebx
pop ecx
pop ecx
je 0x41c087
jmp 0x41c082
cmp dword [ebp - 8], ebx
jne 0x41c0f2
cmp edi, ebx
jge 0x41c055
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x482774]
call fcn.0040ce21
cmp eax, ebx
pop ecx
pop ecx
je 0x41bfa6
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x482774], eax
cmp dword [ebp + 0xc], ebx
je 0x41c0dc
push dword [ebp - 4]
call fcn.0040bfe0
inc eax
inc eax
push eax
call fcn.0040b514
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41c0dc
push dword [ebp - 4]
push esi
call fcn.004137a0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41c0d5
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040b526
pop ecx
cmp dword [ebp - 8], ebx
je 0x41c0ea
push dword [ebp - 4]
call fcn.0040b526
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41bfa9
push dword [ebp - 4]
call fcn.0040b526
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41bfb3
Function at 0x425077
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x463b44
call fcn.0040bbe0
sub esp, 0x9c
mov eax, dword [0x47f078]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa8], esi
call fcn.004359ed
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.0040504c
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x425108
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.0040bc40
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x425101
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x425108
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.0040b514
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x42511d
call fcn.00424cc8
push dword [ebp + 0x20]
push ebx
push eax
call fcn.0040bc40
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x42519a
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.00457f2c
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x425785
je 0x4251c6
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x4251fc
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00405261
push ebx
mov ecx, edi
call fcn.0040506a
jmp 0x4251e5
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.0040cc72
cmp eax, ebx
pop ecx
pop ecx
jne 0x4251e2
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040bb04
leave
ret 0x1c

Function at 0x43236d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4323a6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004051d9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00404efd
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x4337ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4337fd
call fcn.00457f2c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4337fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x433818
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043291f
test ebx, ebx
mov esi, eax
je 0x433816
test edi, edi
je 0x433816
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x434568
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x462eab
call fcn.0040bbe0
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x43458d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4345d9
call fcn.00436b61
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004040fd
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4356df
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.0040bc40
add esp, 0xc
call fcn.00457f01
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x4357af
cmp dword [ebp - 8], ebx
je 0x4357aa
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4355b1
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0040c9a0
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x4357b9
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x435782
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x43579c
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x4357b4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x4357bb
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x4357b9
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x435dd6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x435e0d
call fcn.00457f2c
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x435e1e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x435e57
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x435e3c
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x435e44
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x435e55
test ax, ax
jne 0x435e55
test si, si
je 0x435e57
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x435e66
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret