joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bd50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x40bd6b
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x40bd75
mov eax, 0x1000000
jmp 0x40be8b
mov edx, dword [ebp - 0x18]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0x244
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov ax, word [edx]
mov word [ebp - 0x22], ax
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x22], 0
jne 0x40bd9e
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
sar ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov cx, word [eax + edx*2 + 0x242]
mov word [ebp - 8], cx
movzx edx, word [ebp - 8]
cmp edx, 0x5c
je 0x40be0f
movzx eax, word [ebp - 8]
cmp eax, 0x2f
je 0x40be0f
mov ecx, dword [ebp - 0x18]
add ecx, 0x242
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov ax, word [edx + 2]
mov word [ebp - 0x2e], ax
add dword [ebp - 0x2c], 2
cmp word [ebp - 0x2e], 0
jne 0x40bdee
mov edi, dword [ebp - 0x2c]
mov ecx, dword [0x423918]
mov dword [edi], ecx
cmp dword [ebp + 0x10], 1
jne 0x40be43
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 0x10], 0xffffffff
setne al
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x40be43
mov eax, 0x2000000
jmp 0x40be8b
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040a1b0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40be69
mov eax, dword [ebp - 0xc]
jmp 0x40be8b
mov eax, dword [ebp - 4]
push eax
call fcn.0040a880
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
jne 0x40be89
mov eax, 0x200
jmp 0x40be8b
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d4a5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426040]
jne 0x40d4af
repz ret
jmp fcn.0040f1d6

Function at 0x418520
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004116c7
and dword [ebp - 4], 0
cmp dword [0x427eec], 0
mov ebx, eax
jne 0x4185d1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x418682
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x418682
push eax
call fcn.00411655
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427eec], eax
call esi
push eax
call fcn.00411655
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427ef0], eax
call esi
push eax
call fcn.00411655
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x427ef4], eax
call esi
push eax
call fcn.00411655
pop ecx
mov dword [0x427efc], eax
test eax, eax
je 0x4185d1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411655
pop ecx
mov dword [0x427ef8], eax
mov eax, dword [0x427ef8]
cmp eax, ebx
je 0x418629
cmp dword [0x427efc], ebx
je 0x418629
push eax
call fcn.004116d0
push dword [0x427efc]
mov esi, eax
call fcn.004116d0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418629
test edi, edi
je 0x418629
call esi
test eax, eax
je 0x418620
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418620
test byte [ebp - 0xc], 1
jne 0x418629
or dword [ebp + 0x10], 0x200000
jmp 0x418662
mov eax, dword [0x427ef0]
cmp eax, ebx
je 0x418662
push eax
call fcn.004116d0
pop ecx
test eax, eax
je 0x418662
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x418662
mov eax, dword [0x427ef4]
cmp eax, ebx
je 0x418662
push eax
call fcn.004116d0
pop ecx
test eax, eax
je 0x418662
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427eec]
call fcn.004116d0
pop ecx
test eax, eax
je 0x418682
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418684
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x104a0108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x104a0258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x104a012e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a011a
add dl, dl
jne 0x104a0139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a018c
xor eax, eax
add dl, dl
jne 0x104a0146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a022d
add dl, dl
jne 0x104a0155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a0160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a016b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a0176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104a0182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104a0125
mov eax, 1
add dl, dl
jne 0x104a019a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a01a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a0191
sub eax, ebx
mov ebx, 1
jne 0x104a01d8
mov ecx, 1
add dl, dl
jne 0x104a01be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104a01c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a01b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a0125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104a01ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104a01fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a01e6
cmp eax, 0x7d00
jae 0x104a021d
cmp eax, 0x500
jb 0x104a0218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a0125
cmp eax, 0x7f
ja 0x104a0220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a0125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104a024e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x104a0125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40b7e7
Capabilities:
Delete file

Disassembly:
sub esp, 0x18c
mov eax, dword [0x4b34c4]
xor eax, esp
mov dword [esp + 0x188], eax
cmp dword [esp + 0x194], 0
push esi
mov esi, dword [esp + 0x194]
push edi
mov ecx, dword [esi + 0x2478]
jne 0x40b850
mov edx, dword [esi + 0x2474]
test edx, edx
je 0x40b822
test ecx, ecx
je 0x40b850
mov eax, dword [esi]
push edx
push ecx
push esi
call dword [eax + 0x10]
mov edi, eax
test edi, edi
jne 0x40b846
push 1
call fcn.004109e6
pop ecx
test eax, eax
je 0x40b850
mov eax, 0x80070204
jmp 0x40ba0a
call fcn.00411bb9
jmp 0x40ba08
cmp dword [esi + 0x2478], 0
je 0x40b867
push 0x80
lea eax, [esi + 8]
push eax
call fcn.0040dd49
push 0x104
lea eax, [esp + 0x90]
mov ecx, esi
push eax
call fcn.0040bbaa
mov edi, eax
test edi, edi
js 0x40b9fd
push ebx
push ebp
push str.Download_Status:_Download_Complete
call fcn.00412911
pop ecx
push 1
call fcn.00425c61
mov ecx, eax
call fcn.00425e91
mov edi, str.CDownloadManager::DownloadExecInstaller
mov ebp, str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u381_237_install_src_windows_au_jucheck_DownloadManager.cpp
test al, al
je 0x40b8f5
lea eax, [esp + 0x40]
push 0
push eax
call fcn.004256c0
push eax
lea eax, [esp + 0x34]
push str.DownloadManager_MOS_MODE
push eax
call fcn.00407b42
add esp, 0x14
push eax
push edi
push 0xa0
push ebp
push 1
call fcn.00425c61
mov ecx, eax
call fcn.00425e9d
lea ecx, [esp + 0x28]
call fcn.004063d7
lea ecx, [esp + 0x40]
call fcn.004063d7
lea eax, [esp + 0x94]
mov bl, 1
push eax
lea ecx, [esp + 0x14]
call fcn.004038cc
push 0
push 0x48764c
lea ecx, [esp + 0x18]
call fcn.0040d2aa
cmp eax, 0xffffffff
je 0x40b94b
push 1
call fcn.00425c61
mov ecx, eax
call fcn.00425e91
test al, al
je 0x40b949
push str.MOS__cb_detected__do_not_run
push edi
push 0xa6
push ebp
push 1
call fcn.00425c61
mov ecx, eax
call fcn.0040714b
xor bl, bl
mov eax, dword [esi]
lea ecx, [esp + 0x94]
push ecx
push esi
call dword [eax + 0x1c]
mov edi, eax
test edi, edi
js 0x40b987
test bl, bl
je 0x40b987
push dword [esp + 0x1a4]
mov eax, dword [esi]
lea ecx, [esp + 0x98]
push 1
push ecx
push esi
call dword [eax + 0x18]
mov edi, eax
test edi, edi
jns 0x40b9f0
push str.Download_Status:_Verification_of_Downloaded_File_Signature_Failed
jmp 0x40b9ea
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x58]
call fcn.0043078e
lea ecx, [esp + 0x58]
call fcn.00430a04
call fcn.0042c575
push eax
push 0x74
call fcn.0042c575
push eax
push 0x72
lea ecx, [esp + 0x68]
call fcn.00430907
mov ecx, eax
call fcn.00430aeb
mov ecx, eax
call fcn.00430a71
lea ecx, [esp + 0x70]
call fcn.004063fd
lea ecx, [esp + 0x58]
call fcn.004063fd
call fcn.00411a99
push str.Download_Status:_Verification_of_Downloaded_File_Version_Failed
call fcn.00412911
pop ecx
lea ecx, [esp + 0x10]
call fcn.004063d7
pop ebp
pop ebx
jmp 0x40ba08
push str.Download_Status:_Download_Failed
call fcn.00412911
pop ecx
mov eax, edi
mov ecx, dword [esp + 0x190]
pop edi
pop esi
xor ecx, esp
call fcn.00450e68
add esp, 0x18c
ret 8
Function at 0x40bf53
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
xor edi, edi
lea eax, [ebp - 0x40]
push 0x3c
push edi
push eax
mov dword [ebp - 4], edi
call fcn.004541a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x140
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], eax
call fcn.0042c93f
cmp eax, 2
mov dword [ebp - 0x24], 1
mov edx, str.open
mov ecx, str.runas
push 6
cmovl ecx, edx
push edi
mov dword [ebp - 0x34], ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
test eax, eax
je 0x40bffe
cmp dword [ebp + 0x10], 0
je 0x40bff0
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp eax, 0x669
cmove eax, ecx
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x40c004
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 0xc
Function at 0x40d072
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x160
mov eax, dword [0x4b34c4]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x170]
push edi
call fcn.00411f2c
mov ecx, dword [esp + 0x178]
xor edx, edx
inc edx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esi + 0x54], edx
test ecx, ecx
mov ebp, edx
sete al
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x40d0bc
and dword [esi + 0x58], 0
push 0x12
push str.PreDownldStatus
push 0
call fcn.0041210d
add esp, 0xc
lea ebx, [esi + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x28]
test eax, eax
je 0x40d216
mov edi, dword [esp + 0x14]
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d216
mov eax, dword [ebx]
push ebp
push edi
push ebx
call dword [eax + 0x30]
mov edi, eax
cmp edi, 0x80070204
je 0x40d21b
test edi, edi
jne 0x40d203
cmp dword [esi + 0x2370], eax
je 0x40d203
and dword [esi + 0x50], eax
call fcn.0041bc0a
push eax
lea ecx, [esp + 0x94]
call fcn.0041b732
lea eax, [esi + 0x46c]
push eax
lea ecx, [esp + 0x7c]
call fcn.004038cc
lea eax, [esi + 0x18ec]
push eax
lea ecx, [esp + 0x64]
call fcn.004038cc
lea eax, [esi + 0x7ec]
push eax
lea ecx, [esp + 0x4c]
call fcn.004038cc
lea eax, [esi + 0x17ec]
push eax
lea ecx, [esp + 0x34]
call fcn.004038cc
lea eax, [esi + 0x19ec]
push eax
lea ecx, [esp + 0x1c]
call fcn.004038cc
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xa4]
call fcn.0041b9b0
lea ecx, [esp + 0x18]
call fcn.004063d7
lea ecx, [esp + 0x30]
call fcn.004063d7
lea ecx, [esp + 0x48]
call fcn.004063d7
lea ecx, [esp + 0x60]
call fcn.004063d7
lea ecx, [esp + 0x78]
call fcn.004063d7
lea ecx, [esp + 0x90]
call fcn.0041bebb
xor ecx, ecx
inc ecx
mov dword [esi + 0x50], ecx
cmp eax, 2
je 0x40d25a
lea ecx, [esp + 0x90]
cmp dword [esp + 0x17c], edi
jne 0x40d24f
call fcn.0041b7e8
mov eax, dword [ebx]
xor edi, edi
push ebx
inc edi
xor ebp, ebp
call dword [eax + 0x28]
test eax, eax
jne 0x40d0e2
mov edi, 0x80004005
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x247c], 0
je 0x40d232
and dword [esi + 0x54], 0
mov ecx, dword [esp + 0x16c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00450e68
add esp, 0x160
ret 0xc
and dword [esi + 0x247c], 0
xor edi, edi
jmp 0x40d267
mov dword [esi + 0x247c], ecx
lea ecx, [esp + 0x90]
call fcn.0041b7e8
jmp 0x40d21b
Function at 0x40d762
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4b34c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push ebx
push ebx
push 1
mov dword [edi + 0xc], 0xbc2
mov eax, dword [0x4b6c00]
push ebx
mov dword [edi + 0x18], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0x20], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x38], eax
call fcn.00411f2c
mov dword [edi + 0x3c], eax
call fcn.0040f6de
push dword [edi + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [edi + 0x40], eax
call esi
push dword [edi + 0x24]
call esi
push dword [edi + 0x38]
call esi
lea eax, [ebp - 0x10c]
push eax
push ebx
push edi
push 0x40d5a4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40d7f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x20]
call esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [edi + 0x54]
mov ebx, 0x104
push ebx
push eax
push 0x7b
push dword [edi + 0x18]
call esi
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x7c
push dword [edi + 0x18]
call esi
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.0040d888
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450e68
leave
ret 4

Function at 0x40e7d4
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
lea ecx, [eax - 1]
push esi
mov ebx, ecx
push edi
mov edi, dword [esp + 0x1c]
mov esi, edi
sar ebx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
cmp edi, ebx
jge 0x40e830
add esi, esi
lea eax, [esi + 2]
imul ecx, eax, 0x30
add ecx, ebp
lea eax, [ecx - 0x30]
push eax
call fcn.0040443e
movzx eax, al
xor eax, 1
imul ecx, edi, 0x30
inc eax
add esi, eax
imul eax, esi, 0x30
add ecx, ebp
add eax, ebp
push eax
call fcn.0040b65a
mov edi, esi
cmp esi, ebx
jl 0x40e7fa
mov eax, dword [esp + 0x20]
cmp esi, ebx
jne 0x40e84f
test al, 1
jne 0x40e84f
imul eax, eax, 0x30
imul ecx, edi, 0x30
add eax, 0xffffffd0
add eax, ebp
add ecx, ebp
push eax
call fcn.0040b65a
mov edi, dword [esp + 0x1c]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x18]
push edi
push ebp
call fcn.0040e8f5
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x410b1a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b34c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x410b71
cmp byte [esi + 0x3d], bl
je 0x410b71
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x410baa
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x410b82
sub eax, 1
je 0x410b85
dec eax
sub eax, 1
jne 0x410baa
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450e68
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x410ba2
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00460306
add esp, 0x10
cmp edi, eax
jne 0x410baa
cmp byte [esi + 0x3d], bl
sete al
jmp 0x410b73
xor al, al
jmp 0x410b73

Function at 0x4110b1
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4b34c4]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x4110d6
xor eax, eax
jmp 0x4111a6
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x411104
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x411104
lea ecx, [ebp - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x4111a5
cmp dword [esi + 0x4c], 0
je 0x4111a3
mov ecx, esi
call fcn.00410d55
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x411130
push dword [esi + 0x4c]
push eax
call fcn.0040e39b
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x4111a3
mov byte [esp + 0x10], al
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x411174
sub eax, 1
je 0x411174
dec eax
sub eax, 1
jne 0x4111a3
push dword [esi + 0x4c]
push dword [esp + 0x14]
jmp 0x411122
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x1c]
sub ebp, eax
je 0x411193
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.00460306
add esp, 0x10
cmp ebp, eax
jne 0x4111a3
lea eax, [esp + 0x10]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x18], eax
mov eax, ebx
jne 0x4111a5
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00450e68
add esp, 0x30
ret 4
Function at 0x41173e
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
test ebp, ebp
jg 0x411763
jl 0x41175a
test ebx, ebx
jne 0x411763
xor eax, eax
xor edx, edx
jmp 0x411828
cmp dword [esi + 0x38], 0
je 0x411779
push ebp
push ebx
push dword [esp + 0x1c]
call fcn.004078e9
jmp 0x411828
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x4117bf
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x4117bf
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x18]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.00406634
mov ecx, dword [esp + 0x1c]
add edi, esi
mov dword [esp + 0x24], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x4117c7
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x4c], 0
je 0x41181e
mov ecx, esi
call fcn.00410d55
mov ecx, dword [esp + 0x18]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x411809
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.0045fd00
mov ecx, dword [esp + 0x28]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x18], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x41181e
jmp 0x4117da
test edx, edx
je 0x41181e
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.0045fd00
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb ebp, 0
mov edx, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x41182f
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x411851
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.004079d6
jmp 0x411923
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x41187e
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x411884
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, ecx
cdq
mov dword [esp + 0x2c], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4118ec
jg 0x41189b
test esi, esi
je 0x4118ec
test ecx, ecx
jl 0x4118e6
jg 0x4118a5
test eax, eax
je 0x4118e6
cmp edi, ecx
jg 0x4118b9
jl 0x4118af
cmp esi, eax
jae 0x4118b9
mov eax, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x28]
push eax
push ebp
push dword [esp + 0x20]
call fcn.00406634
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
add ebp, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4118f0
mov ebp, dword [esp + 0x28]
jmp 0x4118fa
mov ebp, dword [esp + 0x28]
test edi, edi
jl 0x411914
jg 0x4118fa
test esi, esi
je 0x411914
cmp dword [ebx + 0x4c], 0
je 0x411914
push dword [ebx + 0x4c]
push esi
push 1
push ebp
call fcn.00460306
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc