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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41daf8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41daff
cmp ebx, dword [eax + 4]
jae 0x41daff
xor eax, eax
jmp 0x41dcef
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41db10
xor eax, eax
inc eax
jmp 0x41dcee
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41db26
cmp ecx, edx
jae 0x41dc6b
cmp dword [eax + 4], 0
je 0x41db2f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41db17
cmp dword [ebp + 8], 0
je 0x41db51
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41dc6b
cmp eax, esi
jae 0x41dc6b
mov eax, dword [0x478e40]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41db76
cmp dword [esi*4 + 0x478e48], edi
je 0x41dc6f
inc esi
cmp esi, eax
jl 0x41db64
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41dceb
cmp dword [ebp - 8], 0x1000000
jne 0x41dceb
test byte [ebp - 0xc], 0xcc
je 0x41dbf4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41dceb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41dceb
cmp word [eax + 0x18], 0x10b
jne 0x41dceb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41dceb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41dbf4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41dbf4
test byte [ecx + 0x27], 0x80
jne 0x41dc6b
push 1
push 0x478e88
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41db08
mov ecx, dword [0x478e40]
test ecx, ecx
mov edx, ecx
jle 0x41dc28
lea eax, [ecx*4 + 0x478e44]
cmp dword [eax], edi
je 0x41dc28
dec edx
sub eax, 4
test edx, edx
jg 0x41dc1c
test edx, edx
jne 0x41dc59
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41dc35
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41dc4d
lea eax, [edx*4 + 0x478e48]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41dc3b
cmp ecx, 0x10
jge 0x41dc59
inc ecx
mov dword [0x478e40], ecx
push 0
push 0x478e88
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41db08
xor eax, eax
jmp 0x41dcee
test esi, esi
jle 0x41db08
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x478e88
call ebx
test eax, eax
jne 0x41db08
cmp dword [esi*4 + 0x478e48], edi
je 0x41dcc5
mov eax, dword [0x478e40]
lea esi, [eax - 1]
test esi, esi
jl 0x41dcb3
cmp dword [esi*4 + 0x478e48], edi
je 0x41dcaf
dec esi
jns 0x41dca3
test esi, esi
jge 0x41dcc3
cmp eax, 0x10
jge 0x41dcbe
inc eax
mov dword [0x478e40], eax
lea esi, [eax - 1]
jmp 0x41dcc5
je 0x41dcdd
xor ecx, ecx
test esi, esi
jl 0x41dcdd
lea eax, [ecx*4 + 0x478e48]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41dccb
push 0
push 0x478e88
call ebx
jmp 0x41db08
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421c9f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x475894]
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 0x421cd0
xor eax, eax
jmp 0x421e59
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 + 0x47a360]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x421d0c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0042386e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x421de7
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x421e25
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 0x421d70
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x421d61
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 0x421d41
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 0x421db0
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x421db9
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x421d32
jmp 0x421dbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x421e54
cmp dword [ebp - 0x6c], edi
je 0x421e25
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x421e1a
call fcn.0041744a
mov dword [eax], 9
call fcn.00417453
mov dword [eax], esi
jmp 0x421e4f
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 0x421e0f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x421dbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x421dbb
push dword [ebp - 0x6c]
call fcn.0041745c
pop ecx
jmp 0x421e4f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x421e3d
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x421e3d
xor eax, eax
jmp 0x421e57
call fcn.0041744a
mov dword [eax], 0x1c
call fcn.00417453
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x421e57
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00414b58
add ebp, 0x3a0
leave
ret
Function at 0x42220f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x478fec], ebx
push esi
push edi
jne 0x42228f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4222ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x464314
push edi
call esi
test eax, eax
mov dword [0x478fec], eax
je 0x4222ca
push 0x464304
push edi
call esi
push 0x4642f0
push edi
mov dword [0x478ff0], eax
call esi
cmp dword [0x478b54], 2
mov dword [0x478ff4], eax
jne 0x42228f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x478ffc], eax
je 0x42228f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x478ff8], eax
mov eax, dword [0x478ff8]
test eax, eax
je 0x4222d4
call eax
test eax, eax
je 0x4222bb
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x478ffc]
test eax, eax
je 0x4222bb
test byte [ebp - 8], 1
jne 0x4222d4
cmp dword [0x478b60], 4
jb 0x4222ce
or byte [ebp + 0x12], 0x20
jmp 0x4222f3
xor eax, eax
jmp 0x422303
or byte [ebp + 0x12], 4
jmp 0x4222f3
mov eax, dword [0x478ff0]
test eax, eax
je 0x4222f3
call eax
mov ebx, eax
test ebx, ebx
je 0x4222f3
mov eax, dword [0x478ff4]
test eax, eax
je 0x4222f3
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x478fec]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423fec
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 0x4241c0
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x47a360]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4241c0
test cl, 0x48
je 0x424057
cmp byte [eax + 5], 0xa
je 0x424057
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 0x4240a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x424091
call fcn.0041744a
mov dword [eax], 9
call fcn.00417453
mov dword [eax], esi
jmp 0x4240a1
cmp eax, 0x6d
je 0x4241c0
push eax
call fcn.0041745c
pop ecx
or eax, 0xffffffff
jmp 0x4241c2
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4241bb
test eax, eax
je 0x4240d0
cmp byte [ebx], 0xa
jne 0x4240d0
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4240d9
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 0x4241b5
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4241a5
cmp al, 0xd
je 0x42410b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x424197
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x424125
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x424120
add dword [ebp + 0x10], 2
jmp 0x424179
mov dword [ebp + 0x10], eax
jmp 0x424193
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 0x42414d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x424193
cmp dword [ebp - 0xc], 0
je 0x424193
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42416e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x424179
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x424196
cmp ebx, dword [ebp + 0xc]
jne 0x42417e
cmp byte [ebp - 1], 0xa
jne 0x42417e
mov byte [ebx], 0xa
jmp 0x424196
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421b80
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x424197
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4240ef
jmp 0x4241b5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4241b5
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 0x4241c2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424d3e
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x464430
call fcn.00416150
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x47901c], edi
jne 0x424d82
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x424d6d
mov dword [0x47901c], ebx
jmp 0x424d82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x424d82
mov dword [0x47901c], 2
mov eax, dword [0x47901c]
cmp eax, ebx
jne 0x424da2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x424e65
cmp eax, 2
je 0x424dab
cmp eax, edi
jne 0x424dd3
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x424dbe
mov eax, dword [0x478ea4]
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 0x424dda
xor eax, eax
jmp 0x424e65
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00416070
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x424e0d
cmp esi, edi
jne 0x424e23
push dword [ebp - 0x20]
call fcn.004146ac
pop ecx
mov esi, eax
cmp esi, edi
je 0x424dd3
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 0x424e56
cmp dword [ebp + 0x14], edi
jne 0x424e40
push edi
push edi
jmp 0x424e46
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 0x424e62
push esi
call fcn.00414594
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0041618b
ret
Function at 0x424e6e
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x464440
call fcn.00416150
xor esi, esi
cmp dword [0x479020], esi
jne 0x424eb2
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x424e9d
mov dword [0x479020], edi
jmp 0x424eb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x424eb2
mov dword [0x479020], 2
mov eax, dword [0x479020]
cmp eax, 2
je 0x424f93
cmp eax, esi
je 0x424f93
cmp eax, 1
jne 0x424ef7
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x424ee0
mov eax, dword [0x478ea4]
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 0x424efe
xor eax, eax
jmp 0x424fa5
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00416070
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x424f34
cmp edi, esi
jne 0x424f4f
lea eax, [ebx + ebx]
push eax
call fcn.004146ac
pop ecx
mov edi, eax
cmp edi, esi
je 0x424ef7
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 0x424f82
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x424f6c
push esi
push esi
jmp 0x424f72
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 0x424f8e
push edi
call fcn.00414594
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x424fa5
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.0041618b
ret
Function at 0x425870
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 0x425889
or eax, 0xffffffff
jmp 0x4258ea
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4258e6
push 0x3d
push esi
call fcn.00415fe7
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4258e6
cmp esi, eax
je 0x4258e6
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x478b74]
sete cl
cmp eax, dword [0x478b78]
mov dword [ebp - 8], ecx
jne 0x4258cc
mov edi, eax
call fcn.0042580f
mov dword [0x478b74], eax
cmp eax, ebx
jne 0x425925
cmp dword [ebp + 0xc], ebx
je 0x4258ee
cmp dword [0x478b7c], ebx
je 0x4258ee
call fcn.00424cae
test eax, eax
je 0x425925
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4258f7
xor eax, eax
jmp 0x4258e9
push 4
call fcn.004146ac
cmp eax, ebx
pop ecx
mov dword [0x478b74], eax
je 0x4258e6
mov dword [eax], ebx
cmp dword [0x478b7c], ebx
jne 0x425925
push 4
call fcn.004146ac
cmp eax, ebx
pop ecx
mov dword [0x478b7c], eax
je 0x4258e6
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x478b74]
call fcn.004257c2
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x425986
cmp dword [esi], ebx
je 0x425986
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00414594
cmp dword [ebp - 8], ebx
pop ecx
jne 0x425969
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4259c7
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x425960
mov eax, edi
shl eax, 2
push eax
push dword [0x478b74]
call fcn.00415e24
cmp eax, ebx
pop ecx
pop ecx
je 0x4259c7
jmp 0x4259c2
cmp dword [ebp - 8], ebx
jne 0x425a32
cmp edi, ebx
jge 0x425995
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x478b74]
call fcn.00415e24
cmp eax, ebx
pop ecx
pop ecx
je 0x4258e6
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 [0x478b74], eax
cmp dword [ebp + 0xc], ebx
je 0x425a1c
push dword [ebp - 4]
call fcn.004153c0
inc eax
inc eax
push eax
call fcn.004146ac
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x425a1c
push dword [ebp - 4]
push esi
call fcn.0041d030
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 0x425a15
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00414594
pop ecx
cmp dword [ebp - 8], ebx
je 0x425a2a
push dword [ebp - 4]
call fcn.00414594
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4258e9
push dword [ebp - 4]
call fcn.00414594
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4258f3
Function at 0x42ac46
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x458856
call fcn.0041505c
sub esp, 0x9c
mov eax, dword [0x475894]
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.00435425
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.00403d80
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x42acd7
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00415520
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 0x42acd0
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x42acd7
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.004146ac
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x42acec
call fcn.0042a897
push dword [ebp + 0x20]
push ebx
push eax
call fcn.00415520
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 0x42ad69
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.0044dc13
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], 0x42b354
je 0x42ad95
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x42adcb
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00405ae6
push ebx
mov ecx, edi
call fcn.00403700
jmp 0x42adb4
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.00415fe7
cmp eax, ebx
pop ecx
pop ecx
jne 0x42adb1
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.00414b58
leave
ret 0x1c

Function at 0x4329be
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4329f7
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.00404b52
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00404b2d
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x433e0b
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 0x433e4e
call fcn.0044dc13
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x433e4e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x433e69
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00432f70
test ebx, ebx
mov esi, eax
je 0x433e67
test edi, edi
je 0x433e67
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x434fbf
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x45799d
call fcn.0041505c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x434fe4
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x435030
call fcn.00436fb6
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.00403850
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x43580e
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 0x435845
call fcn.0044dc13
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 0x435856
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x43588f
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x435874
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x43587c
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x43588d
test ax, ax
jne 0x43588d
test si, si
je 0x43588f
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x43589e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret