joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468b60
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea ecx, [ebp - 4]
push ecx
lea esi, [eax + 0x48]
mov eax, dword [eax + 0x3c]
lea edx, [ebp - 8]
push edx
push esi
push 0x20000013
push eax
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0
mov dword [esi], 0x194
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, dword [esi]
cmp esi, 0xc8
je 0x468baf
cmp esi, 0x130
je 0x468baf
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x468bc0
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48efe8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c31d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x468c10
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.0040e390
mov dword [ebp - 4], ebx
mov ebx, edi
mov ecx, esi
call fcn.00468270
test al, al
sete bl
cmp dword [ebp - 0x18], 8
jb 0x468c4b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0046ca7a
add esp, 4
test bl, bl
jne 0x468c96
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x30]
push ecx
mov dword [edi + 0x40], eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov edx, dword [ebp - 0x30]
and dl, 4
sub dl, 4
movzx eax, dl
push 0
neg eax
push 0
sbb eax, eax
push 0
and eax, 4
push eax
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.2__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [edi + 0x38], eax
test eax, eax
jne 0x468c9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x4c], eax
xor al, al
jmp 0x468ca1
call fcn.00468cc0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ca85
mov esp, ebp
pop ebp
ret 8
Function at 0x468d60
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
xor esi, esi
push 0x20000013
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 8
mov dword [ebp - 4], esi
call ebx
test eax, eax
je 0x468dea
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
cmp ecx, 0xc8
jne 0x468daa
cmp eax, esi
je 0x468db6
cmp ecx, 0x12e
jne 0x468dea
cmp eax, esi
jne 0x468dea
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x20000005
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 8
mov dword [ebp - 4], esi
call ebx
test eax, eax
je 0x468dea
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46b320
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4c31d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [edx]
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 0x206
mov dword [ebp - 0x214], eax
push edx
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x210], ecx
mov word [ebp - 0x20c], dx
call fcn.00470590
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
mov ebx, dword [ebx]
mov edi, dword [edi]
add esp, 0xc
push esi
push 0x104
lea edx, [ebp - 0x20c]
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
lea eax, [ebp - 0x20c]
lea ecx, [eax + 2]
jmp 0x46b3a0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46b3a0
sub eax, ecx
mov ecx, dword [ebp - 0x210]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00401b40
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ca85
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46b480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4948e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c31d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
lea ebx, [esi + 4]
push ecx
mov dword [esp + 0x30], 0
call fcn.00407760
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00404ef0
xor bl, bl
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b50c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004015d0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 2
call fcn.00403ef0
add esp, 4
push eax
mov byte [esp + 0x30], bl
call fcn.004040a0
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b564
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46be50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4ca4f0], 0
push esi
push edi
jne 0x46bdc6
call fcn.0046bd32
test eax, eax
je 0x46be0b
mov eax, dword [0x4ca4f0]
cmp eax, 1
jne 0x46bde7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x46be0b
jmp 0x46be4d
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x46be4d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x46be0f
xor eax, eax
jmp 0x46be4d
mov eax, dword [esi]
push dword [0x4ca4f0]
call edi
mov edi, eax
test edi, edi
je 0x46be31
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x46be4d
lea edi, [esi + 0xff0]
push esi
push dword [0x4ca4f0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x46be37
mov eax, esi
pop edi
pop esi
ret
jmp 0x46bdb2

Function at 0x46ca85
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c31d0]
jne 0x46ca8f
repz ret
jmp fcn.00474a71
Function at 0x47f988
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c31d0]
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.00476aa0
and dword [ebp - 0x14], 0
cmp dword [0x4cb578], 0
mov dword [ebp - 0x18], eax
jne 0x47fa3b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x47fae3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a0fb4
push ebx
call edi
test eax, eax
je 0x47fae3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4cb578], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4cb57c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4cb580], eax
call edi
push eax
call esi
mov dword [0x4cb588], eax
test eax, eax
je 0x47fa3b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4cb584], eax
mov eax, dword [0x4cb584]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x47fa94
cmp dword [0x4cb588], ecx
je 0x47fa94
push eax
call esi
push dword [0x4cb588]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x47fa94
test ebx, ebx
je 0x47fa94
call edi
test eax, eax
je 0x47fa8b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x47fa8b
test byte [ebp - 8], 1
jne 0x47fa94
or dword [ebp + 0x10], 0x200000
jmp 0x47fac7
mov eax, dword [0x4cb57c]
cmp eax, dword [ebp - 0x18]
je 0x47fac7
push eax
call esi
test eax, eax
je 0x47fac7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47fac7
mov eax, dword [0x4cb580]
cmp eax, dword [ebp - 0x18]
je 0x47fac7
push eax
call esi
test eax, eax
je 0x47fac7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4cb578]
call esi
test eax, eax
je 0x47fae3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x47fae5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ca85
leave
ret
Function at 0x487240
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x48b980
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4c31d0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c31d0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [0x4c46bc]
cmp eax, 0xffffffff
jne 0x487280
xor esi, esi
jmp 0x487289
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x18], esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x58], 0
test esi, esi
je 0x4872dd
nop
cmp dword [esi + 0x14], 0
jne 0x48732a
cmp dword [esi + 0x10], 0
jne 0x487330
push 0x4868b0
push 0x4cb5a4
call fcn.00486b30
mov eax, dword [0x4c46bc]
add esp, 8
cmp eax, 0xffffffff
je 0x4873e1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x58], 0xffffffff
test esi, esi
je 0x48730b
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x48730b
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0046ca85
add esp, 0x48
ret
cmp dword [esi + 0x10], 0
je 0x487372
mov ebp, dword [esi + 0x10]
mov eax, dword [ebp + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp]
test ecx, ecx
je 0x487360
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x10], 0
jne 0x487330
cmp dword [esi + 0x14], 0
je 0x4872aa
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x487397
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebp, dword [edi + 8]
test ebp, ebp
je 0x4873ca
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4873ca
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
lea ecx, [ebp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4873ca
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x14], 0
jne 0x48737c
jmp 0x4872a0
call fcn.004881e0
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov edi, 0xb
mov dword [esp + 0x18], str.boost::thread_resource_error
call fcn.0046d085
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0x1c], vtable.boost::thread_resource_error.0
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x5c], 1
call fcn.00405ad0
int3
Function at 0x487530
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x48b9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4c31d0]
xor eax, esp
mov dword [esp + 0x34], eax
push ebp
push esi
push edi
mov eax, dword [0x4c31d0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x487440
push 0
push 0
call fcn.0046d762
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x4875d2
call fcn.004881e0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
mov esi, eax
lea edi, [ebp + 0xb]
mov dword [esp + 0x14], str.boost::thread_resource_error
call fcn.0046d085
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
mov dword [esp + 0x14], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x54], ebp
call fcn.00405ad0
mov ecx, dword [esi]
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x4875f5
cmp eax, 0xffffffff
je 0x4875f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebp
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046ca85
add esp, 0x44
ret
Function at 0x401e80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov esi, ecx
push eax
lea ecx, [esi + 0x9c]
call dword [0x4598bc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov dword [esi + 8], edx
mov dword [esi + 0x68], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x64], edi
cmp eax, 3
ja case.0x401eba.1
jmp dword [eax*4 + 0x402074]
push 0x45f664
lea ecx, [esi + 0x9c]
mov dword [esi + 0x64], edi
call dword [0x4598bc]
jmp 0x401ef8
mov eax, dword [ebp + 0x20]
or eax, 0x10000000
mov dword [esi + 0x64], eax
jmp 0x401ef8
mov ecx, dword [ebp + 0x20]
or ecx, 0x30000000
mov dword [esi + 0x64], ecx
jmp 0x401ef8
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x64], edx
cmp dword [esi + 0x64], edi
je 0x401fbd
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x401f47
push edi
push esi
call fcn.004020a0
push edi
lea ecx, [esi + 0x9c]
test eax, eax
jne 0x401f22
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
jmp 0x401f28
call dword [0x4598bc]
test byte [esi + 0x64], 1
je 0x401fbd
push esi
call fcn.00402150
mov eax, dword [esi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x401fbd
push 0x200
call dword [sym.imp.mfc100u.dll_new__]
mov edi, eax
add esp, 4
test edi, edi
jne 0x401f65
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 0x20
push 0x200
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [ebp + 0x24], 0
je 0x401f82
push str.AVSCAN
jmp 0x401f87
push str.BACKUP
push pe_nt_image_headers32
push edi
call fcn.0044188d
add esp, 0xc
push edi
lea ecx, [esi + 0x9c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push str..LOG
lea ecx, [esi + 0x9c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push edi
call dword [sym.imp.mfc100u.dll_delete__]
add esp, 4
mov ecx, dword [esi + 0xc]
push 0xa0
call fcn.004410cb
push eax
lea ecx, [esi + 0xa0]
call dword [0x4598bc]
mov ecx, dword [esi + 0xc]
push 0xa1
call fcn.004410cb
push eax
lea ecx, [esi + 0xa4]
call dword [0x4598bc]
mov ecx, dword [esi + 0xc]
push 0xa3
call fcn.004410cb
push eax
lea ecx, [esi + 0xa8]
call dword [0x4598bc]
mov ecx, dword [esi + 0xc]
push 0xa2
call fcn.004410cb
push eax
lea ecx, [esi + 0xac]
call dword [0x4598bc]
mov ecx, dword [esi + 0xc]
push 0xf4
call fcn.004410cb
push eax
lea ecx, [esi + 0xb4]
call dword [0x4598bc]
push str._DEBUG_
lea ecx, [esi + 0xb0]
call dword [0x4598bc]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x6c]
xor edx, edx
and ecx, 0x20000000
cmp ecx, 0x20000000
sete dl
pop edi
mov dword [esi + 0x94], edx
pop esi
pop ebx
pop ebp
ret 0x20
Function at 0x4024a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 0x64], 0
je 0x40254d
cmp dword [edi + 0x90], 0
jne 0x40254d
mov eax, edi
call fcn.00402330
test eax, eax
jne 0x40253b
push ebx
push esi
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
test edx, edx
je 0x402513
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4024e6
sub eax, esi
sar eax, 1
je 0x402513
mov ecx, dword [edi]
push ecx
lea esi, [eax + eax]
push esi
push 1
push edx
call ebx
add esp, 0x10
cmp eax, esi
jae 0x402513
mov dword [edi + 0x6c], 0x6d63
jmp 0x402534
mov edx, dword [edi]
push edx
push 4
push 1
push 0x45f7dc
call ebx
add esp, 0x10
cmp eax, 4
jb 0x40250a
mov esi, edi
call fcn.004023e0
test eax, eax
je 0x402539
call fcn.00402420
pop esi
pop ebx
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x6c]
pop edi
pop ebp
ret 4
xor eax, eax
pop edi
pop ebp
ret 4

Function at 0x4025d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004024a0

Function at 0x403fd0
Capabilities:
Write file on windows

Disassembly:
test ebx, ebx
jne 0x403fd8
or eax, 0xffffffff
ret
mov ecx, 0x45f7dc
mov eax, edi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404006
test dx, dx
je 0x404002
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404006
add eax, 4
add ecx, 4
test dx, dx
jne 0x403fe0
xor eax, eax
jmp 0x40400b
sbb eax, eax
sbb eax, 0xffffffff
push esi
mov esi, dword [sym.imp.MSVCR100.dll_fwrite]
test eax, eax
je 0x404025
push ebx
push 4
push 1
push 0x45f7dc
call esi
add esp, 0x10
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404030
sub eax, edx
sar eax, 1
push ebx
add eax, eax
push eax
push 1
push edi
call esi
add esp, 0x10
xor eax, eax
pop esi
ret

Function at 0x404200
Capabilities:
Delete file

Disassembly:
push esi
mov esi, eax
test esi, esi
jne 0x40420c
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 0x9b4]
mov dword [edi], eax
mov dword [edi + 8], esi
mov eax, dword [esi + 0xac0]
push 0
push eax
call dword [sym.imp.MSVCR100.dll__waccess]
add esp, 8
test eax, eax
jne 0x40423a
mov ecx, dword [esi + 0xac0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esi + 0xac0]
push 0x45f7d4
push esi
call dword [sym.imp.MSVCR100.dll__wfopen]
add esp, 8
mov dword [edi + 4], eax
test eax, eax
jne 0x40425d
mov eax, 0x6d61
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x40a6c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x1c
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
xor eax, eax
test esi, esi
je 0x40a73a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
mov dword [esi + 4], eax
push eax
mov dword [esi + 8], eax
push eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push 1
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x14], eax
call edi
push 0
push 0
push 1
push 0
mov dword [esi], eax
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 4], eax
call edi
push 0x46d020
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x40a410
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b010
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp edi, esi
je 0x40b1f8
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x40b1f8
cmp dword [eax + 0x3c], esi
jne 0x40b03b
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x1024]
cmp dword [eax], esi
je 0x40b034
push ebx
mov ebx, dword [edi]
mov dword [ebp - 0xc], ebx
cmp ebx, esi
jne 0x40b05a
pop ebx
mov eax, 0x5603
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 8]
lea eax, [ebx + 0x980]
push eax
mov dword [ebp - 0x10], ecx
call fcn.00444405
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x40b080
mov esi, 0x5602
jmp 0x40b1cf
add ebx, 0x98c
push ebx
call fcn.004446d6
push eax
mov dword [ebp - 4], eax
call fcn.00444552
mov ebx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc8]
add ebx, 4
push ebx
push eax
call fcn.00449af4
add esp, 0x10
test eax, eax
jne 0x40b1b5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x40b0d3
push ebx
call fcn.0044cda5
add esp, 4
push ebx
call fcn.0044d468
push 1
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0044b1ad
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x40b1b5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc8]
push eax
push edx
call dword [sym.imp.MSVCR100.dll__waccess]
add esp, 8
test eax, eax
je 0x40b112
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x40b178
mov edx, dword [ebp - 4]
push edx
call fcn.00444552
push ebx
call fcn.0044d468
push 1
push 0
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0044b14d
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x3c], 1
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
push 0
push ecx
mov dword [edx + 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push edx
push 3
push 1
push 0x460f70
push eax
push edi
call fcn.0040bc80
add esp, 0x38
jmp 0x40b1b3
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
mov dword [ecx + 0x3c], 1
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xcc]
call fcn.00402b30
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
push edx
push eax
lea ecx, [ebp - 4]
push ecx
push edi
call fcn.0040b590
add esp, 0x14
mov esi, eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push 0
push edx
add eax, 0x980
push eax
call fcn.0044436a
mov ebx, dword [ebp - 0xc]
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b1ea
push 1
push 0
push eax
add ebx, 0x98c
push ebx
call fcn.00444612
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [eax + 8], esi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5604
pop esi
mov esp, ebp
pop ebp
ret