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

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4acc48]
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 0x425841
xor eax, eax
jmp 0x4259ca
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 + 0x4b0b40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x42587d
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0042c6f9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x425958
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x425996
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 0x4258e1
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4258d2
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 0x4258b2
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 0x425921
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x42592a
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4258a3
jmp 0x42592c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4259c5
cmp dword [ebp - 0x6c], edi
je 0x425996
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x42598b
call fcn.0041ff74
mov dword [eax], 9
call fcn.0041ff7d
mov dword [eax], esi
jmp 0x4259c0
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 0x425980
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x42592c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x42592c
push dword [ebp - 0x6c]
call fcn.0041ff86
pop ecx
jmp 0x4259c0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4259ae
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4259ae
xor eax, eax
jmp 0x4259c8
call fcn.0041ff74
mov dword [eax], 0x1c
call fcn.0041ff7d
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4259c8
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00420f0a
add ebp, 0x3a0
leave
ret
Function at 0x427c68
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 0x427c96
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 0x427c9d
cmp ebx, dword [eax + 4]
jae 0x427c9d
xor eax, eax
jmp 0x427e8d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x427cae
xor eax, eax
inc eax
jmp 0x427e8c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x427cc4
cmp ecx, edx
jae 0x427e09
cmp dword [eax + 4], 0
je 0x427ccd
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x427cb5
cmp dword [ebp + 8], 0
je 0x427cef
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x427e09
cmp eax, esi
jae 0x427e09
mov eax, dword [0x4b0770]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x427d14
cmp dword [esi*4 + 0x4b0778], edi
je 0x427e0d
inc esi
cmp esi, eax
jl 0x427d02
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x427e89
cmp dword [ebp - 8], 0x1000000
jne 0x427e89
test byte [ebp - 0xc], 0xcc
je 0x427d92
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x427e89
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x427e89
cmp word [eax + 0x18], 0x10b
jne 0x427e89
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x427e89
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x427d92
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x427d92
test byte [ecx + 0x27], 0x80
jne 0x427e09
push 1
push 0x4b07b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x427ca6
mov ecx, dword [0x4b0770]
test ecx, ecx
mov edx, ecx
jle 0x427dc6
lea eax, [ecx*4 + 0x4b0774]
cmp dword [eax], edi
je 0x427dc6
dec edx
sub eax, 4
test edx, edx
jg 0x427dba
test edx, edx
jne 0x427df7
push 0xf
pop ebx
cmp ecx, ebx
jg 0x427dd3
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x427deb
lea eax, [edx*4 + 0x4b0778]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x427dd9
cmp ecx, 0x10
jge 0x427df7
inc ecx
mov dword [0x4b0770], ecx
push 0
push 0x4b07b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x427ca6
xor eax, eax
jmp 0x427e8c
test esi, esi
jle 0x427ca6
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4b07b8
call ebx
test eax, eax
jne 0x427ca6
cmp dword [esi*4 + 0x4b0778], edi
je 0x427e63
mov eax, dword [0x4b0770]
lea esi, [eax - 1]
test esi, esi
jl 0x427e51
cmp dword [esi*4 + 0x4b0778], edi
je 0x427e4d
dec esi
jns 0x427e41
test esi, esi
jge 0x427e61
cmp eax, 0x10
jge 0x427e5c
inc eax
mov dword [0x4b0770], eax
lea esi, [eax - 1]
jmp 0x427e63
je 0x427e7b
xor ecx, ecx
test esi, esi
jl 0x427e7b
lea eax, [ecx*4 + 0x4b0778]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x427e69
push 0
push 0x4b07b8
call ebx
jmp 0x427ca6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42819b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4acc48]
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 + 0x4ad3d0]
je 0x4281d0
inc eax
cmp eax, 0x13
jb 0x4281c1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4ad3d0]
jne 0x4282f6
mov eax, dword [0x4b0588]
cmp eax, 1
je 0x4282ce
cmp eax, edx
jne 0x428200
cmp dword [0x4acc44], 1
je 0x4282ce
cmp ecx, 0xfc
je 0x4282f6
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 0x428236
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00425a90
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00421280
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42826a
mov eax, edi
push eax
call fcn.00421280
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x496340
push edi
call fcn.0042e1a0
add esp, 0x10
push edi
call fcn.00421280
push dword [esi + 0x4ad3d4]
mov ebx, eax
call fcn.00421280
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00420900
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00425a90
push edi
push ebx
call fcn.00425aa0
push 0x496320
push ebx
call fcn.00425aa0
push dword [esi + 0x4ad3d4]
push ebx
call fcn.00425aa0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042edc4
add esp, 0x2c
jmp 0x4282f6
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4ad3d4]
push dword [esi]
call fcn.00421280
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.00420f0a
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x42a0a2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x42a0d0
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x42a0d5
cmp eax, 1
je 0x42a0d5
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42a0d9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4acc48]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x42a151
push ebx
call fcn.0042a0a2
test eax, eax
pop ecx
jne 0x42a120
call fcn.0041ff7d
mov dword [eax], 0xf
call fcn.0041ff74
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00420f0a
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x42a163
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x42a113
inc eax
cmp eax, 0x104
ja 0x42a113
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x42a19b
cmp eax, dword [ebp + 0x10]
jg 0x42a17e
mov eax, dword [ebp + 0x10]
push eax
call fcn.0042068b
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x42a1b0
call fcn.0041ff74
mov dword [eax], 0xc
jmp 0x42a113
cmp eax, dword [ebp + 0x10]
jle 0x42a1b0
call fcn.0041ff74
mov dword [eax], 0x22
jmp 0x42a113
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00425a90
pop ecx
pop ecx
jmp 0x42a115
Function at 0x42edc4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4b0a38], ebx
push esi
push edi
jne 0x42ee44
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42ee7f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4b0a38], eax
je 0x42ee7f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4b0a3c], eax
call esi
cmp dword [0x4b0594], 2
mov dword [0x4b0a40], eax
jne 0x42ee44
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4b0a48], eax
je 0x42ee44
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4b0a44], eax
mov eax, dword [0x4b0a44]
test eax, eax
je 0x42ee89
call eax
test eax, eax
je 0x42ee70
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4b0a48]
test eax, eax
je 0x42ee70
test byte [ebp - 8], 1
jne 0x42ee89
cmp dword [0x4b05a0], 4
jb 0x42ee83
or byte [ebp + 0x12], 0x20
jmp 0x42eea8
xor eax, eax
jmp 0x42eeb8
or byte [ebp + 0x12], 4
jmp 0x42eea8
mov eax, dword [0x4b0a3c]
test eax, eax
je 0x42eea8
call eax
mov ebx, eax
test ebx, ebx
je 0x42eea8
mov eax, dword [0x4b0a40]
test eax, eax
je 0x42eea8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4b0a38]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43001e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00420900
mov eax, dword [0x4acc48]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0042bbbc
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x430151
push 2
push esi
push dword [ebp + 8]
call fcn.0042bbbc
add esp, 0xc
cmp eax, ebx
je 0x430151
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4300f1
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00421310
push 0x8000
push dword [ebp + 8]
call fcn.00430f29
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4300a7
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00425810
add esp, 0xc
cmp eax, 0xffffffff
je 0x4300c7
sub edi, eax
test edi, edi
jg 0x43009f
jmp 0x4300df
call fcn.0041ff7d
cmp dword [eax], 5
jne 0x4300dc
call fcn.0041ff74
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00430f29
pop ecx
pop ecx
jmp 0x430139
jge 0x430139
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042bbbc
push dword [ebp + 8]
call fcn.0042becb
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x430139
call fcn.0041ff74
mov dword [eax], 0xd
call fcn.0041ff7d
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0042bbbc
add esp, 0xc
mov eax, esi
pop edi
jmp 0x430153
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00420f0a
leave
ret
Function at 0x43102c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x497c80
call fcn.004221b4
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4b0a6c], edi
jne 0x431070
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43105b
mov dword [0x4b0a6c], ebx
jmp 0x431070
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x431070
mov dword [0x4b0a6c], 2
mov eax, dword [0x4b0a6c]
cmp eax, ebx
jne 0x431090
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x431153
cmp eax, 2
je 0x431099
cmp eax, edi
jne 0x4310c1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4310ac
mov eax, dword [0x4b09d0]
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 0x4310c8
xor eax, eax
jmp 0x431153
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00420900
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4310fb
cmp esi, edi
jne 0x431111
push dword [ebp - 0x20]
call fcn.0042068b
pop ecx
mov esi, eax
cmp esi, edi
je 0x4310c1
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 0x431144
cmp dword [ebp + 0x14], edi
jne 0x43112e
push edi
push edi
jmp 0x431134
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 0x431150
push esi
call fcn.0042069d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004221ef
ret
Function at 0x43115c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x497c90
call fcn.004221b4
xor esi, esi
cmp dword [0x4b0a70], esi
jne 0x4311a0
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43118b
mov dword [0x4b0a70], edi
jmp 0x4311a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4311a0
mov dword [0x4b0a70], 2
mov eax, dword [0x4b0a70]
cmp eax, 2
je 0x431281
cmp eax, esi
je 0x431281
cmp eax, 1
jne 0x4311e5
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4311ce
mov eax, dword [0x4b09d0]
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 0x4311ec
xor eax, eax
jmp 0x431293
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00420900
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x431222
cmp edi, esi
jne 0x43123d
lea eax, [ebx + ebx]
push eax
call fcn.0042068b
pop ecx
mov edi, eax
cmp edi, esi
je 0x4311e5
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 0x431270
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x43125a
push esi
push esi
jmp 0x431260
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 0x43127c
push edi
call fcn.0042069d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x431293
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.004221ef
ret
Function at 0x43174f
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 0x431768
or eax, 0xffffffff
jmp 0x4317c9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4317c5
push 0x3d
push esi
call fcn.00420e5e
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4317c5
cmp esi, eax
je 0x4317c5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4b05b4]
sete cl
cmp eax, dword [0x4b05b8]
mov dword [ebp - 8], ecx
jne 0x4317ab
mov edi, eax
call fcn.004316ee
mov dword [0x4b05b4], eax
cmp eax, ebx
jne 0x431804
cmp dword [ebp + 0xc], ebx
je 0x4317cd
cmp dword [0x4b05bc], ebx
je 0x4317cd
call fcn.004305d3
test eax, eax
je 0x431804
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4317d6
xor eax, eax
jmp 0x4317c8
push 4
call fcn.0042068b
cmp eax, ebx
pop ecx
mov dword [0x4b05b4], eax
je 0x4317c5
mov dword [eax], ebx
cmp dword [0x4b05bc], ebx
jne 0x431804
push 4
call fcn.0042068b
cmp eax, ebx
pop ecx
mov dword [0x4b05bc], eax
je 0x4317c5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4b05b4]
call fcn.004316a1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x431865
cmp dword [esi], ebx
je 0x431865
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0042069d
cmp dword [ebp - 8], ebx
pop ecx
jne 0x431848
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4318a6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x43183f
mov eax, edi
shl eax, 2
push eax
push dword [0x4b05b4]
call fcn.00421503
cmp eax, ebx
pop ecx
pop ecx
je 0x4318a6
jmp 0x4318a1
cmp dword [ebp - 8], ebx
jne 0x431911
cmp edi, ebx
jge 0x431874
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4b05b4]
call fcn.00421503
cmp eax, ebx
pop ecx
pop ecx
je 0x4317c5
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 [0x4b05b4], eax
cmp dword [ebp + 0xc], ebx
je 0x4318fb
push dword [ebp - 4]
call fcn.00421280
inc eax
inc eax
push eax
call fcn.0042068b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4318fb
push dword [ebp - 4]
push esi
call fcn.00425a90
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 0x4318f4
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0042069d
pop ecx
cmp dword [ebp - 8], ebx
je 0x431909
push dword [ebp - 4]
call fcn.0042069d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4317c8
push dword [ebp - 4]
call fcn.0042069d
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4317d2
Function at 0x43dbaf
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x488076
call fcn.00420f18
sub esp, 0x9c
mov eax, dword [0x4acc48]
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.0044e137
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.004011b3
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x43dc40
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00421310
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 0x43dc39
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x43dc40
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.0042068b
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x43dc55
call fcn.0043d0fc
push dword [ebp + 0x20]
push ebx
push eax
call fcn.00421310
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 0x43dcd2
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.00470da2
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], 0x43d6b3
je 0x43dcfe
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x43dd34
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.004013d9
push ebx
mov ecx, edi
call fcn.004013e8
jmp 0x43dd1d
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.00420e5e
cmp eax, ebx
pop ecx
pop ecx
jne 0x43dd1a
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.00420f0a
leave
ret 0x1c

Function at 0x44a778
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x44a7b1
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.0041038f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040f55a
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]