joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403770
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40c0a0
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x403924
or ebp, 0xffffffff
cmp eax, ebp
je 0x403924
mov edx, dword [esp + 0x30]
cmp edx, ebx
je 0x403924
mov edi, edx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jb 0x403924
push edx
lea ecx, [esi + 0x34]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x4037dc
mov eax, 0x410f00
push eax
lea ecx, [esi + 0x38]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x10]
mov dword [esi + 0x28], eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esp + 0x2c]
lea ecx, [esi + 0x44]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push edi
mov byte [esp + 0x38], 1
mov dword [esp + 0x28], ebx
call fcn.00405ea0
add esp, 0x14
test eax, eax
push edi
jne 0x403844
push str.Download_URL___s__invalid
push 3
call fcn.00407670
add esp, 0xc
jmp 0x40390a
lea ecx, [esi + 0x40]
call sub.MFC42.DLL_CString::operator_1
push 1
mov ecx, esi
call fcn.00403940
cmp eax, ebx
mov dword [esi + 0x4c], eax
jne 0x403897
push str.Create_download_object_failed
push 3
call fcn.00407670
add esp, 8
mov ecx, esi
push 1
call fcn.00404680
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x403926
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edx
push ecx
mov ecx, eax
call fcn.004056d0
mov edx, dword [esi + 0x4c]
push edi
mov dword [edx + 8], esi
mov ecx, dword [esi + 0x4c]
call fcn.00405970
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push ebx
push esi
push 0x403700
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x2c], eax
je 0x4038fb
cmp eax, ebp
je 0x4038fb
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x403926
push str.Create_download_thread_failed
push 2
call fcn.00407670
add esp, 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x18
Function at 0x403e70
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40c116
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push 0
push 2
push 0xffffffffffffffff
mov dword [esi + 0x30], eax
call fcn.00406490
mov ecx, dword [esi + 0x4c]
add esp, 0x10
call fcn.00405cf0
test eax, eax
je 0x40406f
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + 0x5c]
push eax
push 0x410408
call fcn.00409750
add esp, 8
mov ecx, esi
call fcn.00404e50
mov eax, dword [esi + 0x28]
test eax, eax
mov eax, dword [esi + 0x3c]
je 0x403f65
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00404090
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x403fde
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x403fde
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00404090
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x13c], 0
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x403fb9
mov eax, dword [esi + 0x4c]
mov ecx, esi
mov edi, dword [eax + 0x5c]
call fcn.00404d80
mov edx, dword [esp + 0x20]
add eax, edi
cmp edx, eax
sete al
test al, al
je 0x403fb9
mov bl, 1
jmp 0x403fbb
lea edx, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x403f04
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x18]
mov edi, edx
mov eax, dword [ecx + 0xd0]
sub edi, eax
cmp edi, 2
jg 0x403f04
sub eax, edx
cmp eax, 2
jg 0x403f04
mov ecx, dword [ecx + 0x5c]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jne 0x403f04
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x403fde
mov eax, 2
jmp 0x40406f
xor bl, bl
lea ecx, [esp + 0xc]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x403fde
mov ecx, esi
call fcn.00404340
test eax, eax
jne 0x404043
mov ecx, dword [esi + 0x4c]
mov ebx, dword [ecx + 0x5c]
mov ecx, esi
call fcn.00404d80
mov edi, eax
add edi, ebx
test ebx, ebx
jl 0x403ffd
mov edx, dword [esi + 0x4c]
mov eax, dword [edx + 0x54]
test eax, eax
jne 0x403fff
xor edi, edi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00404090
mov eax, dword [eax]
push edi
push eax
mov dword [esp + 0x13c], 1
call fcn.0040a080
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x404043
xor eax, eax
jmp 0x40406f
mov ecx, esi
call fcn.00404130
test eax, eax
jne 0x404061
push str.Assign_task_failed
push 2
call fcn.00407670
add esp, 8
xor eax, eax
jmp 0x40406f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x30], eax
mov eax, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x404090
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40c13f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 4]
push eax
push str._s.xhw
push ecx
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x10]
add esp, 0xc
push 2
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4064e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40c51f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov ebx, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esi + 0xf0]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push esi
mov byte [esp + 0x30], 3
call fcn.00409cd0
add esp, 0x10
test eax, eax
jne 0x40656a
mov esi, dword [esp + 0x28]
push 0x410f00
mov ecx, esi
call fcn.0040b29c
mov dword [esp + 0x14], ebx
jmp 0x4065b7
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x40657c
lea eax, [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4065a3
push 0x41078c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
call fcn.0040b266
mov esi, dword [esp + 0x28]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4070b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40c60b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x40d748
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x407140
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x407107
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x407131
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x407146
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x407146
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x40d71c
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x40d708
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040b4e2
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4089b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40c8c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::TrimRight
lea eax, [esp + 0x24]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::CString_1
push str.http:__
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.0040b29c
mov ecx, dword [esp + 0xc]
mov bl, 2
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x408a33
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 8]
add ecx, eax
push ecx
push 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Delete
push 0x2f
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 0x28]
push eax
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
push 0x2f
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
lea edx, [esp + 0x28]
lea ecx, [esi + 1]
push ecx
push edx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 0x2c]
push eax
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Right
mov ecx, dword [esp + 0x30]
push eax
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x409830
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40c9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [esp + 0x44]
mov dword [esp], 0x410d50
test eax, eax
mov dword [esp + 4], 0x410d4c
mov dword [esp + 8], 0x410d48
mov dword [esp + 0xc], 0x410d44
mov dword [esp + 0x10], 0x410d40
mov dword [esp + 0x14], 0x410d3c
mov dword [esp + 0x18], 0x410d38
mov dword [esp + 0x1c], 0x410d34
mov dword [esp + 0x20], 0x410d30
mov dword [esp + 0x24], 0x410d2c
mov dword [esp + 0x28], 0x410d28
mov dword [esp + 0x2c], 0x410d24
mov dword [esp + 0x30], 0x410f00
jne 0x4098bd
mov eax, 0x410f00
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x54]
call fcn.0040b29c
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
xor esi, esi
lea edi, [esp + 0xc]
mov eax, dword [edi]
push eax
mov eax, dword [esp + 0x54]
push eax
call ebx
add esp, 8
test eax, eax
je 0x409916
inc esi
add edi, 4
cmp esi, 0xd
jb 0x4098d6
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
lea ecx, [esp + 0x50]
inc esi
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x4099f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push esi
push edi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x409a4e
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x409a24
push 0
push eax
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x409a4e
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x18]
push esi
push ebx
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
cmp edi, ebx
pop ebx
jne 0x409a4e
mov eax, edi
pop edi
pop esi
ret
pop edi
or eax, 0xffffffff
pop esi
ret

Function at 0x409aa0
Capabilities:
Create directory

Disassembly:
sub esp, 0x100
push ebx
mov ebx, dword [esp + 0x108]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
push esi
push edi
mov edi, ebx
push 0x5c
push edi
call fcn.00409eb0
mov esi, eax
add esp, 8
test esi, esi
je 0x409b36
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, esi
sub eax, ebx
cmp eax, 0xff
jbe 0x409b1f
mov eax, 0xff
push eax
lea eax, [esp + 0x14]
push ebx
push eax
call ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x409b1a
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
test eax, eax
jne 0x409b29
lea edi, [esi + 1]
jmp 0x409ab9
cmp eax, 1
jge 0x409aea
lea edi, [esi + 1]
jmp 0x409ab9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
Function at 0x40a080
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ca88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
mov dword [ebp - 0x10], esp
jne 0x40a0bd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x2c]
call fcn.0040b2f6
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
push ebx
push 0x9001
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFile::Open
mov edi, eax
cmp edi, ebx
je 0x40a122
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jle 0x40a122
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::SetLength
jmp 0x40a122
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AfxTryCleanup
cmp edi, ebx
jne 0x40a160
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00409940
mov ecx, dword [eax]
mov byte [ebp - 4], 4
push ecx
push esi
push str.Create_file___s__failed.__s
push 2
call fcn.00407670
add esp, 0x18
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x40a174
cmp eax, 0xffffffff
je 0x40a174
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a1a0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, 1
test esi, esi
je 0x40a1d6
cmp esi, 0xffffffff
je 0x40a1d6
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40a1d1
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x404690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x404776
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x404765
jg 0x4046d0
test edx, edx
je 0x404765
nop dword [eax]
call fcn.00406010
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x404724
jg 0x4046e7
test esi, esi
je 0x404724
cmp ebx, eax
jg 0x4046f7
jl 0x4046f1
cmp edi, esi
jae 0x4046f7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0040c140
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x404749
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x40475f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x4046d0
jl 0x40475f
test edi, edi
jne 0x4046d0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x404798
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40479a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x404818
jg 0x4047ad
test esi, esi
je 0x404818
test eax, eax
jl 0x4047fc
jg 0x4047b7
test ebx, ebx
je 0x4047fc
cmp edi, eax
jg 0x4047c7
jl 0x4047c1
cmp esi, ebx
jae 0x4047c7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0040c140
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x404818
jg 0x4047ff
test esi, esi
je 0x404818
jmp 0x4047ff
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x404818
push eax
push esi
push 1
push edx
call fcn.00411be0
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x404862
jl 0x404855
test ecx, ecx
jne 0x404862
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404922
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00406030
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4048ce
jg 0x40488d
test esi, esi
je 0x4048ce
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4048a5
mov eax, dword [esp + 0x10]
jl 0x40489f
cmp eax, esi
jae 0x4048a5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040c140
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x4048ef
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40490b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x404874
jl 0x40490b
test ecx, ecx
jne 0x404874
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x404961
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x404961
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0040c140
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x4049d0
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x404987
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x4049b9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00412237
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x4049e4
cmp edi, eax
ja 0x404995
test ecx, ecx
je 0x4049d0
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00412237
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc