joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433411
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4645d0
call fcn.00435960
mov edi, 0x94
mov eax, edi
call fcn.00432600
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x47dcfc], ecx
mov eax, dword [esi + 4]
mov dword [0x47dd08], eax
mov edx, dword [esi + 8]
mov dword [0x47dd0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x47dd00], esi
cmp ecx, 2
je 0x433471
or esi, 0x8000
mov dword [0x47dd00], esi
shl eax, 8
add eax, edx
mov dword [0x47dd04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4334ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4334ac
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4334c4
cmp eax, 0x20b
je 0x4334b1
mov dword [ebp - 0x1c], esi
jmp 0x4334d8
cmp dword [ecx + 0x84], 0xe
jbe 0x4334ac
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4334d2
cmp dword [ecx + 0x74], 0xe
jbe 0x4334ac
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00437fb4
pop ecx
test eax, eax
jne 0x4334ec
push 0x1c
call fcn.004333ed
pop ecx
call fcn.00435df7
test eax, eax
jne 0x4334fd
push 0x10
call fcn.004333ed
pop ecx
call fcn.0043b2b3
mov dword [ebp - 4], esi
call fcn.0043b0b5
test eax, eax
jge 0x433516
push 0x1b
call fcn.004333c8
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x47f590], eax
call fcn.0043af93
mov dword [0x47dcec], eax
call fcn.0043aef1
test eax, eax
jge 0x43353c
push 8
call fcn.004333c8
pop ecx
call fcn.0043acbe
test eax, eax
jge 0x43354d
push 9
call fcn.004333c8
pop ecx
call fcn.00433d2b
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x433560
push eax
call fcn.004333c8
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.0043ac55
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x433581
movzx eax, word [ebp - 0x34]
jmp 0x433584
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00441488
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4335a2
push edi
call fcn.00433e63
call fcn.00433e85
jmp 0x4335d4
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0043599b
ret
Function at 0x433d90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004378ea
xor esi, esi
inc esi
cmp dword [0x47dd3c], esi
pop ecx
jne 0x433db8
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x47dd38], esi
mov byte [0x47dd34], al
jne 0x433e1e
mov ecx, dword [0x47f588]
test ecx, ecx
je 0x433dff
mov eax, dword [0x47f584]
sub eax, 4
cmp eax, ecx
jmp 0x433df8
mov eax, dword [eax]
test eax, eax
je 0x433dea
call eax
mov eax, dword [0x47f584]
sub eax, 4
cmp eax, dword [0x47f588]
mov dword [0x47f584], eax
jae 0x433de2
mov eax, 0x47309c
mov esi, 0x4730a4
cmp eax, esi
mov edi, eax
jae 0x433e1e
mov eax, dword [edi]
test eax, eax
je 0x433e17
call eax
add edi, 4
cmp edi, esi
jb 0x433e0f
mov eax, 0x4730a8
mov esi, 0x4730b0
cmp eax, esi
mov edi, eax
jae 0x433e3d
mov eax, dword [edi]
test eax, eax
je 0x433e36
call eax
add edi, 4
cmp edi, esi
jb 0x433e2e
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x433e4e
push 8
call fcn.00437856
jmp 0x433e60
push dword [ebp + 8]
mov dword [0x47dd3c], 1
call fcn.00433ce9
pop ecx
pop ebp
ret

Function at 0x43aaa5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4797a0]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x47a210]
je 0x43aad2
inc eax
cmp eax, 0x12
jb 0x43aac3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x47a210]
jne 0x43ac06
mov eax, dword [0x47dcf4]
cmp eax, 1
je 0x43abe1
cmp eax, edx
jne 0x43aafe
cmp dword [0x479860], 1
je 0x43abe1
fild word [eax]
add byte [eax], al
cmp ecx, 0xfc
je 0x43ac06
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43ab3b
lea eax, [ebp - 0x10c]
push 0x464708
push eax
call fcn.004376c0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004339c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43ab7d
lea eax, [ebp - 0x10c]
push eax
call fcn.004339c0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x464704
push edi
call fcn.0043a230
add esp, 0x10
push edi
call fcn.004339c0
push dword [esi + 0x47a214]
mov ebx, eax
call fcn.004339c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00432600
mov ebx, esp
push 0x468910
push ebx
call fcn.004376c0
push edi
push ebx
call fcn.004376d0
push 0x464700
push ebx
call fcn.004376d0
push dword [esi + 0x47a214]
push ebx
call fcn.004376d0
push 0x12010
push 0x4646cc
push ebx
call fcn.0043c664
add esp, 0x2c
jmp 0x43ac06
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x47a214]
push dword [esi]
call fcn.004339c0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004311b5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b0b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.0043240c
test eax, eax
pop ecx
jne 0x43b0d1
or eax, 0xffffffff
jmp 0x43b2ae
mov dword [0x47e200], eax
mov dword [0x47e1e8], 0x20
lea ecx, [eax + 0x480]
jmp 0x43b106
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x47e200]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x43b0e8
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x43b20d
mov eax, dword [esp + 0x48]
test eax, eax
je 0x43b20d
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x43b147
mov edi, eax
cmp dword [0x47e1e8], edi
jge 0x43b19d
mov esi, 0x47e204
push ebx
call fcn.0043240c
test eax, eax
pop ecx
je 0x43b197
add dword [0x47e1e8], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x43b186
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x43b170
add esi, 4
cmp dword [0x47e1e8], edi
jl 0x43b154
jmp 0x43b19d
mov edi, dword [0x47e1e8]
xor ebx, ebx
test edi, edi
jle 0x43b20d
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x43b202
mov cl, byte [ebp]
test cl, 1
je 0x43b202
test cl, 8
jne 0x43b1c6
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x43b202
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x47e200]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0043d3b2
test eax, eax
pop ecx
pop ecx
je 0x43b22d
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x43b1a3
xor ebx, ebx
mov ecx, dword [0x47e200]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x43b28f
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x43b232
push 0xfffffffffffffff6
pop eax
jmp 0x43b23c
or eax, 0xffffffff
jmp 0x43b2ab
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x43b289
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x43b289
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x43b267
or byte [esi + 4], 0x40
jmp 0x43b270
cmp eax, 3
jne 0x43b270
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0043d3b2
test eax, eax
pop ecx
pop ecx
je 0x43b22d
inc dword [esi + 8]
jmp 0x43b293
or byte [esi + 4], 0x40
jmp 0x43b293
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x43b20f
push dword [0x47e1e8]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x43c31f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4797a0]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x43c348
xor eax, eax
jmp 0x43c4b6
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x47e200]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x43c37b
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0043f926
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x43c44d
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x43c488
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x43c3d6
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43c3c7
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x43c3aa
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x43c416
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x43c41f
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x43c39b
jmp 0x43c421
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x43c4b1
cmp dword [ebp - 8], edi
je 0x43c488
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x43c47a
call fcn.004348e5
mov dword [eax], 9
call fcn.004348ee
mov dword [eax], esi
jmp 0x43c483
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x43c46f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x43c421
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x43c421
push dword [ebp - 8]
call fcn.004348f7
pop ecx
or eax, 0xffffffff
jmp 0x43c4b4
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x43c49d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x43c49d
xor eax, eax
jmp 0x43c4b4
call fcn.004348e5
mov dword [eax], 0x1c
call fcn.004348ee
mov dword [eax], edi
jmp 0x43c483
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004311b5
leave
ret
Function at 0x43c664
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x47e100], ebx
push esi
push edi
jne 0x43c6e4
push 0x4635ec
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43c71f
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x468de4
push edi
call esi
test eax, eax
mov dword [0x47e100], eax
je 0x43c71f
push 0x468dd4
push edi
call esi
push 0x468dc0
push edi
mov dword [0x47e104], eax
call esi
cmp dword [0x47dcfc], 2
mov dword [0x47e108], eax
jne 0x43c6e4
push 0x468da4
push edi
call esi
test eax, eax
mov dword [0x47e110], eax
je 0x43c6e4
push 0x468d8c
push edi
call esi
mov dword [0x47e10c], eax
mov eax, dword [0x47e10c]
test eax, eax
je 0x43c729
call eax
test eax, eax
je 0x43c710
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x47e110]
test eax, eax
je 0x43c710
test byte [ebp - 8], 1
jne 0x43c729
cmp dword [0x47dd08], 4
jb 0x43c723
or byte [ebp + 0x12], 0x20
jmp 0x43c748
xor eax, eax
jmp 0x43c758
or byte [ebp + 0x12], 4
jmp 0x43c748
mov eax, dword [0x47e104]
test eax, eax
je 0x43c748
call eax
mov ebx, eax
test ebx, ebx
je 0x43c748
mov eax, dword [0x47e108]
test eax, eax
je 0x43c748
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x47e100]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43f5db
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00432600
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x43f670
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x47dcfc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x43f670
cmp eax, 1
je 0x43f688
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x43f670
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x43f645
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x43f66c
xor eax, eax
inc eax
jmp 0x43f6a4
cmp esi, ebx
jae 0x43f674
xor eax, eax
jmp 0x43f6a4
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x47dcfc]
jmp 0x43f68a
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43fc5e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00432600
mov eax, dword [0x4797a0]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0043c200
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x43fd88
push 2
push esi
push dword [ebp + 8]
call fcn.0043c200
add esp, 0xc
cmp eax, ebx
je 0x43fd88
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x43fd2b
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004335f0
push 0x8000
push dword [ebp + 8]
call fcn.00440f0a
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x43fce4
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0043c31f
add esp, 0xc
cmp eax, 0xffffffff
je 0x43fd04
sub edi, eax
test edi, edi
jg 0x43fcdc
jmp 0x43fd1c
call fcn.004348ee
cmp dword [eax], 5
jne 0x43fd19
call fcn.004348e5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00440f0a
pop ecx
pop ecx
jmp 0x43fd73
jge 0x43fd73
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043c200
push dword [ebp + 8]
call fcn.0043ccec
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 0x43fd73
call fcn.004348e5
mov dword [eax], 0xd
call fcn.004348ee
mov edi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0043c200
add esp, 0xc
mov eax, esi
pop edi
jmp 0x43fd8a
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004311b5
leave
ret
Function at 0x43fd99
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 0x43ff5f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x47e200]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x43ff5f
test cl, 0x48
je 0x43fdff
mov al, byte [eax + 5]
cmp al, 0xa
je 0x43fdff
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 0x43fe51
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x43fe39
call fcn.004348e5
mov dword [eax], 9
call fcn.004348ee
mov dword [eax], esi
jmp 0x43fe49
cmp eax, 0x6d
je 0x43ff5f
push eax
call fcn.004348f7
pop ecx
or eax, 0xffffffff
jmp 0x43ff61
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x43ff5a
test edx, edx
je 0x43fe74
cmp byte [ebx], 0xa
jne 0x43fe74
or al, 4
jmp 0x43fe76
and al, 0xfb
mov byte [ecx], al
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 0x43ff54
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x43ff44
cmp al, 0xd
je 0x43feaa
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x43ff36
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x43fec4
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x43febf
add dword [ebp + 0x10], 2
jmp 0x43ff18
mov dword [ebp + 0x10], eax
jmp 0x43ff32
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 0x43feec
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x43ff32
cmp dword [ebp - 0xc], 0
je 0x43ff32
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x43ff0d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x43ff18
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x43ff35
cmp ebx, dword [ebp + 0xc]
jne 0x43ff1d
cmp byte [ebp - 1], 0xa
jne 0x43ff1d
mov byte [ebx], 0xa
jmp 0x43ff35
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043c200
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x43ff36
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x43fe8e
jmp 0x43ff54
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x43ff54
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x43ff61
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x440d55
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x440dc0
push 0x3d
push dword [ebp + 8]
call fcn.004332ce
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x440dc0
cmp dword [ebp + 8], esi
je 0x440dc0
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x47dd1c]
cmp eax, dword [0x47dd20]
jne 0x440da6
mov edi, eax
call fcn.00440cf4
mov dword [0x47dd1c], eax
cmp eax, ebx
jne 0x440dff
cmp dword [ebp + 0xc], ebx
je 0x440dc8
cmp dword [0x47dd24], ebx
je 0x440dc8
call fcn.0043fbf3
test eax, eax
je 0x440dff
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x440f03
push 4
call fcn.0043240c
cmp eax, ebx
pop ecx
mov dword [0x47dd1c], eax
je 0x440dc0
mov dword [eax], ebx
cmp dword [0x47dd24], ebx
jne 0x440dff
push 4
call fcn.0043240c
cmp eax, ebx
pop ecx
mov dword [0x47dd24], eax
je 0x440dc0
mov dword [eax], ebx
mov ebx, dword [0x47dd1c]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00440ca7
mov edi, eax
test edi, edi
pop ecx
jl 0x440e58
cmp dword [ebx], 0
je 0x440e58
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00432775
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x440e40
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x440e8e
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x440e37
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00433b08
test eax, eax
pop ecx
pop ecx
je 0x440e8e
jmp 0x440e89
cmp dword [ebp - 4], 0
jne 0x440efc
test edi, edi
jge 0x440e68
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00433b08
test eax, eax
pop ecx
pop ecx
je 0x440dc0
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x47dd1c], eax
cmp dword [ebp + 0xc], 0
je 0x440ee5
push dword [ebp + 8]
call fcn.004339c0
inc eax
inc eax
push eax
call fcn.0043240c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x440ee5
push dword [ebp + 8]
push esi
call fcn.004376c0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
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 0x440ede
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00432775
pop ecx
cmp dword [ebp - 4], 0
je 0x440ef4
push dword [ebp + 8]
call fcn.00432775
pop ecx
mov eax, dword [ebp - 8]
jmp 0x440dc3
push esi
call fcn.00432775
pop ecx
xor eax, eax
jmp 0x440dc3
Function at 0x4417ae
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x459542
call fcn.00433650
sub esp, 0x9c
mov eax, dword [0x4797a0]
xor eax, dword [ebp + 4]
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 - 0x14], esi
call fcn.00443724
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.004022b0
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x44183f
mov edi, 0x94
push edi
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.004335f0
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], edi
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x98], 2
jne 0x441838
cmp dword [ebp - 0xa4], 5
mov dword [ebp + 0x20], 0x58
jae 0x44183f
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.0043240c
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x441854
call fcn.0044152a
push dword [ebp + 0x20]
push ebx
push dword [esi + 0x70]
call fcn.004335f0
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 0x4418d3
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.00452f9c
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], 0x441bb3
je 0x4418ff
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.kernel32.dll_lstrcpyn]
cmp dword [ebp + 0x18], ebx
je 0x441935
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.004083f0
push ebx
mov ecx, edi
call fcn.004022f0
jmp 0x44191e
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.004332ce
cmp eax, ebx
pop ecx
pop ecx
jne 0x44191b
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.004311b5
leave
ret 0x1c