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

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x465718]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x44ffcc
xor eax, eax
jmp 0x450136
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x480a60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x45000a
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00455b36
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4500a4
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x450107
jmp 0x45002e
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x450069
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x45005a
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x45003a
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4500c8
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4500d1
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x45002c
jmp 0x4500d1
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4500c8
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x4500d1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x450131
cmp dword [ebp - 0x68], eax
je 0x450104
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x4500f9
call fcn.0044ddb5
mov dword [eax], 9
call fcn.0044ddbe
mov dword [eax], esi
jmp 0x45012c
push dword [ebp - 0x68]
call fcn.0044ddc7
pop ecx
jmp 0x45012c
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x450119
cmp byte [edi], 0x1a
jne 0x450119
xor eax, eax
jmp 0x450134
call fcn.0044ddb5
mov dword [eax], 0x1c
call fcn.0044ddbe
and dword [eax], 0
or eax, 0xffffffff
jmp 0x450134
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0044ce09
add ebp, 0x3a4
leave
ret
Function at 0x450421
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 0x4505f7
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x480a60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4505f7
test cl, 0x48
je 0x45048c
cmp byte [eax + 5], 0xa
je 0x45048c
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 0x4504de
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4504c6
call fcn.0044ddb5
mov dword [eax], 9
call fcn.0044ddbe
mov dword [eax], esi
jmp 0x4504d6
cmp eax, 0x6d
je 0x4505f7
push eax
call fcn.0044ddc7
pop ecx
or eax, 0xffffffff
jmp 0x4505f9
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4505f2
test eax, eax
je 0x450505
cmp byte [ebx], 0xa
jne 0x450505
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x45050e
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 0x4505ec
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4505dc
cmp al, 0xd
je 0x450540
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4505ce
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x45055a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x450555
add dword [ebp + 0x10], 2
jmp 0x4505ae
mov dword [ebp + 0x10], eax
jmp 0x4505ca
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 0x450582
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4505ca
cmp dword [ebp - 0xc], 0
je 0x4505ca
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4505a3
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4505ae
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4505cd
cmp ebx, dword [ebp + 0xc]
jne 0x4505b3
cmp byte [ebp - 1], 0xa
jne 0x4505b3
mov byte [ebx], 0xa
jmp 0x4505cd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00455b36
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4505ce
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x450524
jmp 0x4505ec
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4505ec
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 0x4505f9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x453568
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x465718]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x465cd0]
je 0x45359f
inc eax
cmp eax, 0x13
jb 0x453590
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x465cd0]
jne 0x4536c2
mov eax, dword [0x46741c]
cmp eax, 1
je 0x45369d
cmp eax, edx
jne 0x4535cf
cmp dword [0x46545c], 1
je 0x45369d
cmp ecx, 0xfc
je 0x4536c2
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x453605
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0044a030
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00449fa0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x453639
mov eax, edi
push eax
call fcn.00449fa0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x45b900
push edi
call fcn.00453f50
add esp, 0x10
push edi
call fcn.00449fa0
push dword [esi + 0x465cd4]
mov ebx, eax
call fcn.00449fa0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044c510
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0044a030
push edi
push ebx
call fcn.0044a040
push 0x45b8e0
push ebx
call fcn.0044a040
push dword [esi + 0x465cd4]
push ebx
call fcn.0044a040
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0045637d
add esp, 0x2c
jmp 0x4536c2
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x465cd4]
push dword [esi]
call fcn.00449fa0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0044ce09
add ebp, 0x90
leave
ret
Function at 0x453a28
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x467894]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x453a71
call ebp
mov esi, eax
cmp esi, ebx
je 0x453a57
mov dword [0x467894], 1
jmp 0x453a76
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x453a6c
push 2
pop eax
mov dword [0x467894], eax
jmp 0x453a71
mov eax, dword [0x467894]
cmp eax, 1
jne 0x453ace
cmp esi, ebx
jne 0x453a89
call ebp
mov esi, eax
cmp esi, ebx
jne 0x453a89
xor eax, eax
jmp 0x453b75
cmp word [esi], bx
mov eax, esi
je 0x453a9e
inc eax
inc eax
cmp word [eax], bx
jne 0x453a90
inc eax
inc eax
cmp word [eax], bx
jne 0x453a90
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00449f7f
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x453ac1
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x453b75
push ebp
push esi
push edi
call fcn.0044a6b0
add esp, 0xc
jmp 0x453ab3
cmp eax, 2
je 0x453ad7
cmp eax, ebx
jne 0x453a82
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x453a82
cmp byte [ebp], bl
mov esi, ebp
je 0x453b0d
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, ebx
je 0x453a82
push esi
add edi, eax
call fcn.00449fa0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x453aea
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00449f7f
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x453b86
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x453b67
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x453b7c
push edi
call fcn.00449fa0
push esi
lea edi, [edi + eax + 1]
call fcn.0044985c
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x453b2d
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0044a128
pop ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
jmp 0x453a82
Function at 0x453b92
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x467898]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
jne 0x453bd2
call esi
test eax, eax
je 0x453bb7
mov dword [0x467898], 1
jmp 0x453bd7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x453bce
mov dword [0x467898], 2
jmp 0x453be0
xor eax, eax
jmp 0x453c2e
cmp eax, 1
jne 0x453bdb
call esi
jmp 0x453c2e
cmp eax, 2
jne 0x453bce
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x453c26
lea eax, [esi + esi]
push eax
call fcn.00449f7f
mov ebp, eax
test ebp, ebp
pop ecx
je 0x453c26
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x453c2a
push ebp
call fcn.0044a128
pop ecx
xor eax, eax
jmp 0x453c2c
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x454f24
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 0x454f52
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 0x454f59
cmp ebx, dword [eax + 4]
jae 0x454f59
xor eax, eax
jmp 0x455149
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x454f6a
xor eax, eax
inc eax
jmp 0x455148
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x454f80
cmp ecx, edx
jae 0x4550c5
cmp dword [eax + 4], 0
je 0x454f89
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x454f71
cmp dword [ebp + 8], 0
je 0x454fab
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4550c5
cmp eax, esi
jae 0x4550c5
mov eax, dword [0x467928]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x454fd0
cmp dword [esi*4 + 0x467930], edi
je 0x4550c9
inc esi
cmp esi, eax
jl 0x454fbe
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x455145
cmp dword [ebp - 8], 0x1000000
jne 0x455145
test byte [ebp - 0xc], 0xcc
je 0x45504e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x455145
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x455145
cmp word [eax + 0x18], 0x10b
jne 0x455145
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x455145
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45504e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45504e
test byte [ecx + 0x27], 0x80
jne 0x4550c5
push 1
push 0x467970
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x454f62
mov ecx, dword [0x467928]
test ecx, ecx
mov edx, ecx
jle 0x455082
lea eax, [ecx*4 + 0x46792c]
cmp dword [eax], edi
je 0x455082
dec edx
sub eax, 4
test edx, edx
jg 0x455076
test edx, edx
jne 0x4550b3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x45508f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4550a7
lea eax, [edx*4 + 0x467930]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x455095
cmp ecx, 0x10
jge 0x4550b3
inc ecx
mov dword [0x467928], ecx
push 0
push 0x467970
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x454f62
xor eax, eax
jmp 0x455148
test esi, esi
jle 0x454f62
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x467970
call ebx
test eax, eax
jne 0x454f62
cmp dword [esi*4 + 0x467930], edi
je 0x45511f
mov eax, dword [0x467928]
lea esi, [eax - 1]
test esi, esi
jl 0x45510d
cmp dword [esi*4 + 0x467930], edi
je 0x455109
dec esi
jns 0x4550fd
test esi, esi
jge 0x45511d
cmp eax, 0x10
jge 0x455118
inc eax
mov dword [0x467928], eax
lea esi, [eax - 1]
jmp 0x45511f
je 0x455137
xor ecx, ecx
test esi, esi
jl 0x455137
lea eax, [ecx*4 + 0x467930]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x455125
push 0
push 0x467970
call ebx
jmp 0x454f62
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45637d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x467978], ebx
push esi
push edi
jne 0x4563fd
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x456438
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x467978], eax
je 0x456438
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46797c], eax
call esi
cmp dword [0x4673cc], 2
mov dword [0x467980], eax
jne 0x4563fd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x467988], eax
je 0x4563fd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x467984], eax
mov eax, dword [0x467984]
test eax, eax
je 0x456442
call eax
test eax, eax
je 0x456429
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x467988]
test eax, eax
je 0x456429
test byte [ebp - 8], 1
jne 0x456442
cmp dword [0x4673d8], 4
jb 0x45643c
or byte [ebp + 0x12], 0x20
jmp 0x456461
xor eax, eax
jmp 0x456471
or byte [ebp + 0x12], 4
jmp 0x456461
mov eax, dword [0x46797c]
test eax, eax
je 0x456461
call eax
mov ebx, eax
test ebx, ebx
je 0x456461
mov eax, dword [0x467980]
test eax, eax
je 0x456461
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x467978]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4574ff
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0044c510
mov eax, dword [0x465718]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0044fc95
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x457634
push 2
push esi
push dword [ebp + 8]
call fcn.0044fc95
add esp, 0xc
cmp eax, ebx
je 0x457634
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4575d4
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00449b00
push 0x8000
push dword [ebp + 8]
call fcn.0044b6ac
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x45758a
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0044ff90
add esp, 0xc
cmp eax, 0xffffffff
je 0x4575aa
sub edi, eax
test edi, edi
jg 0x457582
jmp 0x4575c2
call fcn.0044ddbe
cmp dword [eax], 5
jne 0x4575bf
call fcn.0044ddb5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0044b6ac
pop ecx
pop ecx
jmp 0x45761c
jge 0x45761c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044fc95
push dword [ebp + 8]
call fcn.00450d3f
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 0x45761c
call fcn.0044ddb5
mov dword [eax], 0xd
call fcn.0044ddbe
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.0044fc95
add esp, 0xc
mov eax, esi
pop edi
jmp 0x457636
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ce09
leave
ret
Function at 0x458307
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 0x458320
or eax, 0xffffffff
jmp 0x458381
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x45837d
push 0x3d
push esi
call fcn.00458508
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x45837d
cmp esi, eax
je 0x45837d
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4673ec]
sete cl
cmp eax, dword [0x4673f0]
mov dword [ebp - 4], ecx
jne 0x458363
mov edi, eax
call fcn.004582a6
mov dword [0x4673ec], eax
cmp eax, ebx
jne 0x4583bc
cmp dword [ebp + 0xc], ebx
je 0x458385
cmp dword [0x4673f4], ebx
je 0x458385
call fcn.00457692
test eax, eax
je 0x4583bc
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x45838e
xor eax, eax
jmp 0x458380
push 4
call fcn.00449f7f
cmp eax, ebx
pop ecx
mov dword [0x4673ec], eax
je 0x45837d
mov dword [eax], ebx
cmp dword [0x4673f4], ebx
jne 0x4583bc
push 4
call fcn.00449f7f
cmp eax, ebx
pop ecx
mov dword [0x4673f4], eax
je 0x45837d
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4673ec]
sub edi, esi
push esi
call fcn.00458259
mov edi, eax
test edi, edi
pop ecx
jl 0x458423
cmp dword [ebx], 0
je 0x458423
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0044a128
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x458403
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x458464
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4583fa
mov eax, edi
shl eax, 2
push eax
push dword [0x4673ec]
call fcn.0044da00
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x458464
jmp 0x45845f
cmp dword [ebp - 4], 0
jne 0x4584cb
test edi, edi
jge 0x458433
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4673ec]
call fcn.0044da00
test eax, eax
pop ecx
pop ecx
je 0x45837d
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4673ec], eax
cmp dword [ebp + 0xc], 0
je 0x4584b6
push esi
call fcn.00449fa0
inc eax
inc eax
push eax
call fcn.00449f7f
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4584b6
push esi
push edi
call fcn.0044a030
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x4584af
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.0044a128
pop ecx
cmp dword [ebp - 4], 0
je 0x4584c3
push esi
call fcn.0044a128
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x458380
push esi
call fcn.0044a128
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x45838a
Function at 0x4013a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x45cc65
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1c]
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CMainWindow.1.0
mov dword [edi], vtable.CMainWindow.0
lea ecx, [esi + 0x17c]
mov dword [esp + 0x18], 3
call fcn.0041d5c0
lea ecx, [esi + 0x4c]
mov byte [esp + 0x18], 2
call fcn.0041d360
lea eax, [esi + 0x34]
push eax
mov dword [esi + 0x30], vtable.CGsCritical.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
mov byte [esp + 0x18], 0
call fcn.0041d320
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00438ef0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4013b8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x45cc65
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1c]
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CMainWindow.1.0
mov dword [edi], vtable.CMainWindow.0
lea ecx, [esi + 0x17c]
mov dword [esp + 0x18], 3
call fcn.0041d5c0
lea ecx, [esi + 0x4c]
mov byte [esp + 0x18], 2
call fcn.0041d360
lea eax, [esi + 0x34]
push eax
mov dword [esi + 0x30], vtable.CGsCritical.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
mov byte [esp + 0x18], 0
call fcn.0041d320
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00438ef0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x402057
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x45ccf9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00438ea0
lea ebx, [esi + 0x1c]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.0041d200
lea eax, [esi + 0x34]
mov dword [esi], vtable.CMainWindow.1.0
mov dword [ebx], vtable.CMainWindow.0
push eax
mov dword [esi + 0x30], vtable.CGsCritical.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x4c]
mov byte [esp + 0x18], 2
call fcn.0041d540
lea ecx, [esi + 0x17c]
mov byte [esp + 0x18], 3
call fcn.0041d5b0
push 0x104
lea ecx, [esi + 0x1cc]
push 0x4745bc
push ecx
mov dword [esi + 0x1ac], edi
mov dword [esi + 0x1b0], edi
mov dword [esi + 0x1b4], edi
mov dword [esi + 0x1c8], edi
mov dword [esi + 0x1b8], 1
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x1c0], edi
mov dword [esi + 0x1c4], edi
call fcn.0043bf40
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x2d4], edi
mov dword [esi + 0x2d8], edi
mov dword [esi + 0x2d0], edi
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret