joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4097a6
Capabilities:
Get file version info

Disassembly:
push 0xf0
mov eax, 0x440df0
call fcn.0042be7d
mov eax, dword [ebp + 8]
push eax
mov esi, ebx
mov dword [ebp - 0x54], ebx
call fcn.00401d74
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov byte [ebp - 4], 1
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x40], esi
jb 0x4097e2
mov eax, dword [ebx]
jmp 0x4097e4
mov eax, ebx
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
cmp eax, esi
jne 0x40989c
push str.System_error
mov dword [ebp - 0x4c], str.c:_ade_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u241_331_install_src_windows_common_FileUtils.cpp
mov dword [ebp - 0x48], str.VersionResource::VersionResource
mov dword [ebp - 0x44], 0x464
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x50], esp
push ebx
call fcn.00401d74
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 2
call fcn.00402148
lea eax, [ebp - 0xfc]
push str.GetFileVersionInfoSize_
push eax
mov byte [ebp - 4], 3
call fcn.00404dc5
pop ecx
pop ecx
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 4
call fcn.00403968
mov esi, eax
push 0x447bf0
push esi
call fcn.00404dc5
pop ecx
pop ecx
mov ecx, dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
push esi
lea edi, [ebp - 0x60]
call fcn.0041479b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
push ecx
lea esi, [ebp - 0x4c]
mov ecx, eax
call fcn.00405639
lea eax, [ebp - 0x3c]
mov dword [esp], 0x450798
push eax
call fcn.0042b9e4
mov esi, eax
lea eax, [ebx + 0x1c]
call fcn.004057d5
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
sub eax, ecx
cmp dword [ebx + 0x14], 0x10
jb 0x4098b8
mov edx, dword [ebx]
jmp 0x4098ba
mov edx, ebx
mov edi, dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
push ecx
push eax
push dword [ebp - 0x40]
push edx
call edi
test eax, eax
jne 0x409958
push str.System_error
mov dword [ebp - 0x4c], str.c:_ade_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u241_331_install_src_windows_common_FileUtils.cpp
mov dword [ebp - 0x48], str.VersionResource::VersionResource
mov dword [ebp - 0x44], 0x46d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x50], esp
push ebx
call fcn.00401d74
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 6
call fcn.00402148
lea eax, [ebp - 0xfc]
push str.GetFileVersionInfo_
push eax
mov byte [ebp - 4], 7
call fcn.00404dc5
pop ecx
pop ecx
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 8
call fcn.00403968
mov esi, eax
push 0x447bf0
push esi
call fcn.00404dc5
pop ecx
pop ecx
mov ecx, edi
push esi
lea edi, [ebp - 0x60]
call fcn.0041479b
mov byte [ebp - 4], 9
jmp 0x40987e
mov eax, ebx
call fcn.0042bf00
ret 4
Function at 0x40ce19
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43fff9
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x459624]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x459624]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
cmp dword [0x45cc10], 1
mov ebx, ecx
jg 0x40cea3
lea eax, [esp + 0x1c]
push str.Executor.exec__:
lea edi, [ebx + 0x38]
push eax
call fcn.0040382b
pop ecx
pop ecx
and dword [esp + 0x48], 0
push str.Executor::startExecution
push 0x93
push str.c:_ade_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u241_331_install_src_windows_common_Executor.cpp
push 1
mov edx, eax
mov ecx, 0x45cc10
call fcn.0040b1b7
or dword [esp + 0x48], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x24]
call fcn.00402a69
push 0x44
pop esi
push esi
lea edi, [ebx + 0x7c]
push 0
push edi
call fcn.004274c0
add esp, 0xc
push 0x10
lea eax, [ebx + 0x6c]
push 0
push eax
mov dword [edi], esi
call fcn.004274c0
add esp, 0xc
cmp dword [ebx + 0xc0], 1
jne 0x40cee7
or dword [ebx + 0xa8], 1
xor eax, eax
mov word [ebx + 0xac], ax
mov dword [ebx + 0x60], 0x8000000
cmp byte [ebx + 0xcd], 0
je 0x40cef7
mov esi, ebx
call fcn.0040d46d
lea eax, [ebx + 0x38]
mov edx, dword [eax + 0x14]
cmp edx, 0x10
jb 0x40cf06
mov esi, dword [eax]
jmp 0x40cf08
mov esi, eax
mov ecx, dword [eax + 0x10]
add ecx, esi
cmp edx, 0x10
jb 0x40cf14
mov eax, dword [eax]
push dword [esp + 0x18]
xor edx, edx
push ecx
push eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
call fcn.0040ac2c
mov dword [esp + 0x48], 1
lea eax, [esp + 0x17]
lea esi, [esp + 0x1c]
mov byte [esp + 0x17], 0
call fcn.0040a17e
cmp dword [ebx + 0x14], 0x10
jb 0x40cf56
mov ecx, dword [ebx]
jmp 0x40cf58
mov ecx, ebx
lea eax, [ebx + 0x6c]
push eax
push edi
push dword [ebx + 0x68]
push dword [ebx + 0x64]
push dword [ebx + 0x60]
push dword [ebx + 0x5c]
push dword [ebx + 0x58]
push dword [ebx + 0x54]
push dword [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne bl
cmp dword [esp + 0x1c], 0
je 0x40cf90
push dword [esp + 0x1c]
call fcn.00425436
pop ecx
mov al, bl
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00425441
mov esp, ebp
pop ebp
ret
Function at 0x40d668
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f739
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x459624]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x459624]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x40d70c
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], str.Destination_buffer_cant_be_NULL
call fcn.0042588c
mov dword [esp + 0x20], vtable.std::invalid_argument.0
mov dword [esp + 0x80], ebx
lea eax, [esp + 0x48]
push eax
lea esi, [esp + 0x18]
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], str.c:_ade_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u241_331_install_src_common_share_tstrings.cpp
mov dword [esp + 0x1c], str.tstrings::unsafe_format
mov dword [esp + 0x20], 0x1b
call fcn.0040a6fc
lea eax, [esp + 0x4c]
mov dword [esp], 0x4508e4
push eax
call fcn.0042b9e4
push 0xf
pop esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov dword [esp + 0x80], 1
mov eax, dword [esp + 0x3c]
add eax, 0x100
lea ecx, [esp + 0x2c]
call fcn.00405786
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x40d747
lea eax, [esp + 0x2c]
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
push 0xffffffffffffffff
push dword [esp + 0x48]
push eax
call fcn.004299fd
add esp, 0x14
cmp eax, 0xffffffff
je 0x40d726
lea ecx, [esp + 0x2c]
call fcn.00405786
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
lea esi, [esp + 0x2c]
mov byte [edi], bl
call fcn.00402870
push ebx
push 1
mov ecx, esi
call fcn.00402a69
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00425441
mov esp, ebp
pop ebp
ret
Function at 0x414e1f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x120
mov eax, 0x4411f9
call fcn.0042be7d
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x78], eax
mov eax, esi
call fcn.00414e01
mov edi, eax
test edi, edi
jne 0x414ed7
push str.cannot_find_resource
lea ecx, [ebp - 0x30]
call fcn.00401d95
and dword [ebp - 4], edi
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x30]
mov ecx, esi
call fcn.00414d4c
mov edi, eax
lea esi, [ebp - 0x12c]
mov byte [ebp - 4], 1
call fcn.00407ad3
push str.System_error
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov eax, esi
push eax
lea edi, [ebp - 0x90]
call fcn.0041479b
mov byte [ebp - 4], 3
mov dword [ebp - 0x84], str.c:_ade_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u241_331_install_src_windows_common_Resources.cpp
mov dword [ebp - 0x80], str.Resource::getPtr
mov dword [ebp - 0x7c], 0x41
lea ecx, [ebp - 0x58]
push ecx
lea esi, [ebp - 0x84]
mov ecx, eax
call fcn.00405639
lea eax, [ebp - 0x58]
mov dword [esp], 0x450798
push eax
call fcn.0042b9e4
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push dword [esi + 0x40]
call ebx
test eax, eax
jne 0x414f5b
push str.cannot_load_resource
lea ecx, [ebp - 0x30]
call fcn.00401d95
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x30]
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.00414d4c
mov edi, eax
lea esi, [ebp - 0x12c]
mov byte [ebp - 4], 5
call fcn.00407ad3
push str.System_error
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, esi
push eax
mov ecx, ebx
lea edi, [ebp - 0x90]
call fcn.0041479b
mov byte [ebp - 4], 7
mov dword [ebp - 0x84], str.c:_ade_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u241_331_install_src_windows_common_Resources.cpp
mov dword [ebp - 0x80], str.Resource::getPtr
mov dword [ebp - 0x7c], 0x46
jmp 0x414eb6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [esi + 0x3c], 6
mov ebx, eax
jne 0x414f8b
mov esi, dword [esi + 0x1c]
and esi, 0xf
jbe 0x414f7c
dec esi
movzx ecx, word [eax]
lea eax, [eax + ecx*2 + 2]
jne 0x414f72
movzx ecx, word [eax]
mov edx, dword [ebp - 0x78]
add ecx, ecx
mov dword [edx], ecx
lea ebx, [eax + 2]
jmp 0x414f9a
push edi
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, ebx
call fcn.0042bf00
ret 4
Function at 0x41bbe3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43dae1
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x459624]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x459624]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push ecx
lea esi, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
call fcn.00401d74
mov byte [esp + 0x3c], bl
mov dword [esp + 0x70], ebx
jmp 0x41bc90
lea edx, [esp + 0x20]
add edi, 0xfffffffc
mov ecx, dword [edi]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x20], edi
call dword [eax + 4]
mov esi, eax
lea edi, [esp + 0x20]
mov byte [esp + 0x70], 1
call fcn.00402870
mov al, byte [esi + 0x1c]
push ebx
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x44], al
mov byte [esp + 0x78], bl
call fcn.00402a69
cmp byte [esp + 0x3c], bl
jne 0x41bc96
mov edi, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jne 0x41bc47
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
call fcn.00401d74
push ebx
push 1
lea ecx, [esp + 0x28]
call fcn.00402a69
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00425441
mov esp, ebp
pop ebp
ret 8
Function at 0x41ef52
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f572
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x459624]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.0041b766
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [esp + 0x10], cl
mov dword [esp + 0x1c], edi
mov byte [eax + 4], bl
mov dword [esp + 0x2c], edi
mov byte [esp + 0x30], cl
mov dword [esp + 0x50], ebx
cmp byte [esp + 0x18], bl
je 0x41efbd
push dword [esp + 0x14]
mov byte [esp + 0x1c], bl
call fcn.004243b3
pop ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov esi, 0x100001
lea eax, [esp + 0x34]
mov byte [esp + 0x50], 1
call fcn.0040792f
push edi
mov edi, dword [esp + 0x38]
dec esi
push esi
push 1
push edi
call fcn.0042b15b
add esp, 0x10
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x41f011
push 0xc8
lea esi, [esp + 0x20]
call fcn.004162fc
push 0x4509f4
mov eax, esi
push eax
call fcn.0042b9e4
push dword [esp + 0x1c]
call fcn.0042aee9
pop ecx
test eax, eax
je 0x41f036
push 0x133
lea esi, [esp + 0x20]
call fcn.004162fc
push 0x4509f4
mov eax, esi
jmp 0x41f00b
push dword [esp + 0x1c]
call fcn.0042aec1
pop ecx
test eax, eax
jne 0x41f05b
push 0x13b
lea esi, [esp + 0x20]
call fcn.004162fc
push 0x4509f4
mov eax, esi
jmp 0x41f00b
mov esi, dword [esp + 0x14]
mov ecx, esi
mov eax, edi
call fcn.0041ef1e
lea eax, [edi + esi]
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp edi, eax
je 0x41f089
sub eax, edi
push eax
push edi
mov ecx, esi
call fcn.00402f4d
cmp edi, ebx
je 0x41f094
push edi
call fcn.00425436
pop ecx
cmp byte [esp + 0x10], bl
je 0x41f0a4
push dword [esp + 0x1c]
call fcn.004243b3
pop ecx
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420605
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, eax
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
jl 0x420685
jg 0x420631
cmp esi, ecx
jbe 0x420685
cmp dword [ebp + 0x14], ecx
jg 0x420631
jl 0x42062d
cmp esi, 0x7fffffff
jae 0x420631
mov eax, esi
jmp 0x420636
mov eax, 0x7fffffff
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 4], ecx
je 0x420676
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420660
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x420680
jmp 0x420676
mov eax, dword [ebp - 4]
test eax, eax
jle 0x420671
add ebx, eax
cdq
sub esi, eax
sbb dword [ebp + 0x14], edx
jmp 0x420611
cmp eax, 0xffffffff
jne 0x420680
call fcn.0042a08a
cmp dword [eax], 4
je 0x420611
or eax, 0xffffffff
jmp 0x420687
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x425441
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x459624]
jne 0x42544b
repz ret
jmp fcn.0042e072

Function at 0x43898b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x459624]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0042f808
and dword [ebp - 0x14], 0
cmp dword [0x45ca00], 0
mov dword [ebp - 0x18], eax
jne 0x438a3e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x438ae6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x438ae6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45ca00], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45ca04], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45ca08], eax
call edi
push eax
call esi
mov dword [0x45ca10], eax
test eax, eax
je 0x438a3e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45ca0c], eax
mov eax, dword [0x45ca0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x438a97
cmp dword [0x45ca10], ecx
je 0x438a97
push eax
call esi
push dword [0x45ca10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x438a97
test ebx, ebx
je 0x438a97
call edi
test eax, eax
je 0x438a8e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x438a8e
test byte [ebp - 8], 1
jne 0x438a97
or dword [ebp + 0x10], 0x200000
jmp 0x438aca
mov eax, dword [0x45ca04]
cmp eax, dword [ebp - 0x18]
je 0x438aca
push eax
call esi
test eax, eax
je 0x438aca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x438aca
mov eax, dword [0x45ca08]
cmp eax, dword [ebp - 0x18]
je 0x438aca
push eax
call esi
test eax, eax
je 0x438aca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45ca00]
call esi
test eax, eax
je 0x438ae6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x438ae8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425441
leave
ret
Function at 0x21001e80
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x21001ea3
jmp 0x21001e90
imul eax, eax, 0xf4243
movzx ecx, cl
xor eax, ecx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x21001e90
ret
Function at 0x21015e79
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x21015f69
mov eax, 0x94
call fcn.21017fc0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x21015fde
mov ecx, dword [esi + 0x10]
mov dword [0x21020a74], ecx
mov eax, dword [esi + 4]
mov dword [0x21020a80], eax
mov edx, dword [esi + 8]
mov dword [0x21020a84], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x21020a78], esi
je 0x21015ee4
or esi, 0x8000
mov dword [0x21020a78], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x21020a7c], eax
call fcn.2101612b
test eax, eax
pop ecx
je 0x21015fde
call fcn.21017724
test eax, eax
jne 0x21015f11
call fcn.2101617c
jmp 0x21015fde
call fcn.21017f2b
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x21021138], eax
call fcn.21017e09
mov dword [0x21020904], eax
call fcn.210178ea
test eax, eax
jl 0x21015f62
call fcn.21017d67
test eax, eax
jl 0x21015f5d
call fcn.21017b34
test eax, eax
jl 0x21015f5d
push 0
call fcn.210173b7
test eax, eax
pop ecx
jne 0x21015f5d
inc dword [0x21020900]
jmp 0x21015fef
call fcn.21017ae8
call fcn.2101750d
jmp 0x21015f07
test eax, eax
jne 0x21015f99
cmp dword [0x21020900], eax
jle 0x21015fde
dec dword [0x21020900]
cmp dword [0x21020ab0], eax
jne 0x21015f88
call fcn.210174f5
call fcn.21017ae8
call fcn.2101750d
call fcn.2101617c
jmp 0x21015fef
cmp eax, 2
jne 0x21015fe2
push 0x8c
push 1
call fcn.21017813
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x21015fde
push esi
push dword [0x21020160]
call dword [0x21020ac0]
test eax, eax
push esi
je 0x21015fd8
call fcn.2101752a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x21015fef
call fcn.21015b9d
pop ecx
xor eax, eax
jmp 0x21015ff2
cmp eax, 3
jne 0x21015fef
push 0
call fcn.210176f5
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x21017421
Capabilities:
Terminate process

Disassembly:
push 8
push 0x2101d578
call fcn.21016ea4
push 8
call fcn.2101634e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x21020ab4], esi
jne 0x21017455
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x21020ab0], esi
mov al, byte [ebp + 0x10]
mov byte [0x21020aac], al
cmp dword [ebp + 0xc], edi
jne 0x2101749f
cmp dword [0x21021108], edi
je 0x2101748f
mov eax, dword [0x21021104]
sub eax, 4
mov dword [0x21021104], eax
cmp eax, dword [0x21021108]
jb 0x2101748f
mov eax, dword [eax]
cmp eax, edi
je 0x21017470
call eax
jmp 0x21017470
push 0x21020020
mov eax, 0x2102001c
call fcn.2101739f
pop ecx
push 0x21020028
mov eax, 0x21020024
call fcn.2101739f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x210174d0
cmp dword [ebp + 0x10], edi
jne 0x210174de
mov dword [0x21020ab4], esi
push dword [ebp + 8]
call fcn.2101735d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x210174dd
push 8
call fcn.21016299
pop ecx
ret
call fcn.21016edf
ret
Function at 0x21018182
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x210206c0]
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 + 0x21020218]
je 0x210181b9
inc eax
cmp eax, 0x13
jb 0x210181aa
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x21020218]
jne 0x210182dc
mov eax, dword [0x2102090c]
cmp eax, 1
je 0x210182b7
cmp eax, edx
jne 0x210181e9
cmp dword [0x21020910], 1
je 0x210182b7
cmp ecx, 0xfc
je 0x210182dc
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 0x2101821f
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.21018f10
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.21019010
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x21018253
mov eax, edi
push eax
call fcn.21019010
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x2101d9f8
push edi
call fcn.210191a0
add esp, 0x10
push edi
call fcn.21019010
push dword [esi + 0x2102021c]
mov ebx, eax
call fcn.21019010
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.21017fc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.21018f10
push edi
push ebx
call fcn.21018f20
push 0x2101d9d8
push ebx
call fcn.21018f20
push dword [esi + 0x2102021c]
push ebx
call fcn.21018f20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.2101909b
add esp, 0x2c
jmp 0x210182dc
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x2102021c]
push dword [esi]
call fcn.21019010
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.210192f5
add ebp, 0x90
leave
ret