joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432b24
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x432b58
call fcn.0041f0de
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x432bc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x432bee
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x432c89
cmp dword [esp + 0x14], ebx
je 0x432c89
jmp 0x432c2b
push 0x10
call fcn.004328d2
cmp eax, ebx
je 0x432c04
mov ecx, eax
call fcn.00432b1b
mov esi, eax
jmp 0x432c06
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
push ebx
mov dword [edi + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x432c42
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x432c52
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x432c5e
call fcn.0041f0de
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*4]
push ebx
push eax
call fcn.00414b30
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8
Function at 0x401670
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x410
push ebp
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push esi
push esi
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
cmp ebp, esi
mov dword [esp + 0x14], ebp
je 0x4017ce
push esi
lea ecx, [esp + 0x1c]
push 4
push ecx
push 0x3c
push ebp
mov dword [esp + 0x2c], esi
call dword [sym.imp.WININET.dll_InternetSetOptionExA]
test eax, eax
je 0x4017c7
mov edx, dword [edi + 4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push esi
dec ecx
push 0x84000100
push ecx
push edx
mov edx, dword [esp + 0x430]
push edx
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x4017c7
lea ecx, [esp + 0xc]
push ebx
push ecx
lea edx, [esp + 0x24]
push 0x400
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4017bb
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4017bb
test esi, esi
jne 0x40172f
push 0xc
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 4]
mov ecx, dword [esi]
mov ebp, eax
add eax, edi
cmp eax, ecx
mov dword [esi + 4], eax
jbe 0x401781
mov ecx, eax
and ecx, 0x3ff
neg ecx
sbb ecx, ecx
neg ecx
shr eax, 0xa
add ecx, eax
mov eax, dword [esi + 8]
shl ecx, 0xa
test eax, eax
mov dword [esi], ecx
mov eax, ecx
jne 0x40176e
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x40177e
mov ecx, dword [esi + 8]
push eax
push ecx
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x20]
push ebp
add eax, edi
push edx
push eax
jmp 0x4021a0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebx
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x410
ret 4

Function at 0x401880
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x5c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
add esp, 0x54
ret

Function at 0x401a10
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 8]
ret 8

Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
Function at 0x405640
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4849cc]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov edi, edx
mov dword [ebp - 0x10], eax
push SysReAllocString
xor bl, bl
push edi
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x4056aa
cmp dword [0x4849d0], 0
je 0x405837
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Unable_to_open_file__s.__Error_code___d_.
push dword [0x4849d0]
call fcn.00430310
add esp, 0x10
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4056e7
mov eax, dword [0x4849d0]
test eax, eax
je 0x40582e
push edi
push str.The_file__s_appears_to_be_an_empty_file_
push eax
call fcn.00430310
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00436c49
mov ebx, eax
add esp, 4
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x40571a
mov eax, dword [0x4849d0]
test eax, eax
je 0x405822
push edi
push str.Unable_to_allocate_memory_to_load_file__s.
push eax
call fcn.00430310
add esp, 0xc
jmp 0x405822
push 0
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40575b
cmp dword [0x4849d0], eax
je 0x405822
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Unable_to_read_file__s.__Error_code___d_.
push dword [0x4849d0]
call fcn.00430310
add esp, 0x10
jmp 0x405822
mov eax, ebx
cmp dword [eax], 0x4e494145
jne 0x40578d
lea ebx, [eax + 4]
add esi, 0xfffffffc
mov eax, dword [0x4849d0]
test eax, eax
je 0x405783
push edi
push str.Processing_EAIN_file__s.
push eax
call fcn.00430310
add esp, 0xc
push esi
push ebx
call fcn.00451460
add esp, 8
cmp esi, 3
jbe 0x4057c0
cmp byte [ebx], 0xef
jne 0x4057c0
cmp byte [ebx + 1], 0xbb
jne 0x4057c0
cmp byte [ebx + 2], 0xbf
jne 0x4057c0
mov eax, dword [0x4849d0]
add ebx, 3
sub esi, 3
test eax, eax
je 0x4057c0
push str.Processing_..._n
push eax
call fcn.00430310
add esp, 8
push str.InstData
push esi
mov esi, dword [ebp - 0x10]
mov edx, ebx
mov ecx, esi
call fcn.00412300
mov edx, eax
add esp, 8
test edx, edx
jne 0x405806
push eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.004108d0
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x4057f4
mov byte [ebp - 1], 1
jmp 0x40581f
mov eax, dword [0x4849d0]
test eax, eax
je 0x40581f
push ecx
push edi
push str.Failed_to_process_data_file__s.____d_
jmp 0x405816
mov eax, dword [0x4849d0]
test eax, eax
je 0x40581f
push edx
push edi
push str.Unable_to_initialize_from_data_file__s.____d_
push eax
call fcn.00430310
add esp, 0x10
mov ebx, dword [ebp - 8]
push ebx
call fcn.00436c52
mov bl, byte [ebp - 1]
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4125b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 0x78
push 0
push 0
mov ebx, dword [edi + 0x10]
push dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41268d
add dword [ebx + 0x44], 0x78
mov edx, edi
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x1c]
mov dword [esi], eax
movzx eax, byte [ecx + 0x14]
mov dword [ecx + 0x1c], esi
and al, 3
mov byte [esi + 5], al
mov ecx, esi
mov byte [esi + 4], 8
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x36], 0x1000000
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x30], 0
mov word [esi + 0x34], ax
mov byte [esi + 6], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x50], eax
call fcn.004123d0
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
movzx eax, byte [edi + 0x38]
mov byte [esi + 0x38], al
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov eax, esi
pop edi
mov dword [esi + 0x40], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 4
mov ecx, edi
call fcn.00418900
int3
Function at 0x418340
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4183b5
mov edi, dword [esi + 0x20]
add edi, eax
cmp dword [edi + 8], 6
je 0x418360
mov edx, 5
call fcn.00418900
mov ecx, dword [esi + 8]
mov eax, dword [ecx - 0x10]
mov dword [ecx], eax
mov eax, dword [ecx - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ecx - 8]
mov dword [ecx + 8], eax
mov ecx, dword [esi + 8]
mov eax, dword [edi]
mov dword [ecx - 0x10], eax
mov eax, dword [edi + 4]
mov dword [ecx - 0xc], eax
mov eax, dword [edi + 8]
mov dword [ecx - 8], eax
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 8]
cmp eax, 0x10
jg 0x41839f
mov edx, 1
mov ecx, esi
call fcn.00418b40
add dword [esi + 8], 0x10
mov ecx, esi
mov edx, dword [esi + 8]
push 1
add edx, 0xffffffe0
call fcn.00419380
add esp, 4
mov edx, 2
mov ecx, esi
pop edi
pop esi
jmp fcn.00418900

Function at 0x418900
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x418922
mov dword [eax + 0x44], edx
mov eax, dword [esi + 0x70]
push 1
add eax, 4
push eax
call fcn.00453e23
mov eax, dword [esi + 0x10]
mov byte [esi + 6], dl
cmp dword [eax + 0x58], 0
je 0x41893f
call fcn.00418880
mov eax, dword [esi + 0x10]
push esi
mov eax, dword [eax + 0x58]
call eax
add esp, 4
push 1
call fcn.0043fde2
int3
Function at 0x419ae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], edx
mov eax, ecx
mov edx, dword [ebp + 8]
mov ebx, edx
mov edi, edx
mov dword [esp + 0x14], eax
shr edi, 5
mov esi, edx
inc edi
cmp edx, edi
jb 0x419b32
mov edx, dword [esp + 0x10]
nop dword [eax + eax]
movzx ecx, byte [edx + esi - 1]
mov eax, ebx
shl eax, 5
sub esi, edi
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp esi, edi
jae 0x419b10
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, ebx
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x419ba4
cmp dword [edi + 0xc], edx
jne 0x419b9e
mov eax, dword [ebp + 8]
lea esi, [edi + 0x10]
mov edx, dword [esp + 0x10]
sub eax, 4
jb 0x419b69
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x419b6e
add edx, 4
add esi, 4
sub eax, 4
jae 0x419b58
cmp eax, 0xfffffffc
je 0x419bbd
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x419b9b
cmp eax, 0xfffffffd
je 0x419bbd
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x419b9b
cmp eax, 0xfffffffe
je 0x419bbd
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x419b9b
cmp eax, 0xffffffff
je 0x419bbd
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x419bbd
mov edx, dword [ebp + 8]
mov edi, dword [edi]
test edi, edi
jne 0x419b44
mov ecx, dword [esp + 0x14]
push ebx
push edx
mov edx, dword [esp + 0x18]
call fcn.00419a30
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
mov al, byte [edi + 5]
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x14]
not edx
movzx ecx, al
and edx, ecx
test dl, 3
je 0x419bdc
xor al, 3
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x483004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x20c], 0
push esi
mov dword [ebp - 0x214], eax
mov ebx, edx
mov dword [ebp - 0x208], eax
mov esi, 0x200
lea eax, [ebp - 0x204]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], eax
lea ecx, [ebp - 0x210]
call fcn.00411cf0
test eax, eax
je 0x42676e
lea ecx, [ebp - 0x210]
call fcn.00411d60
cmp esi, edi
lea eax, [ebp - 0x204]
push ebx
cmova esi, edi
push esi
push 1
push eax
call fcn.004546d7
add dword [ebp - 0x210], eax
add esp, 0x10
sub edi, eax
je 0x426794
cmp eax, esi
je 0x426754
lea ecx, [ebp - 0x210]
call fcn.00411cf0
mov edx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x208]
call fcn.00410b80
test edi, edi
mov dword [ebp - 0x20c], 1
pop edi
pop esi
pop ebx
je 0x4267e1
mov ecx, dword [ebp - 0x214]
or edx, 0xffffffff
call fcn.00410240
test eax, eax
jne 0x4267e1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004369c2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004369c2
mov esp, ebp
pop ebp
ret
Function at 0x426c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edx
mov esi, 1
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
sar eax, 4
sub eax, 1
je 0x426d1b
mov ebx, dword [ebp + 8]
nop dword [eax]
dec eax
mov edx, ebx
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.0040ff70
cmp eax, 0x471248
je 0x426d4b
cmp dword [eax + 8], 3
jne 0x426d4b
test esi, esi
je 0x426d0c
mov edx, ebx
mov ecx, edi
call fcn.0040ff70
mov ecx, dword [eax + 8]
cmp ecx, 3
je 0x426ceb
cmp ecx, 4
jne 0x426d46
mov ecx, dword [eax]
lea edx, [esp + 0x28]
add ecx, 0x10
call fcn.00416ed0
test eax, eax
je 0x426d46
movsd xmm0, qword [esp + 0x28]
lea eax, [esp + 0x30]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x38], 3
movsd xmm0, qword [eax]
sub esp, 8
movsd qword [esp], xmm0
push str._.14g
push dword [esp + 0x28]
call fcn.00410d80
add esp, 0x10
test eax, eax
jg 0x426d78
xor esi, esi
mov eax, dword [esp + 0x24]
inc ebx
test eax, eax
jne 0x426c80
call fcn.00441877
mov ebx, dword [eax]
mov eax, dword [edi + 8]
test esi, esi
je 0x426d7f
mov dword [eax], 1
mov dword [eax + 8], 1
mov eax, 1
add dword [edi + 8], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
jmp 0x426cef
lea eax, [esp + 0x20]
mov edx, ebx
push eax
mov ecx, edi
call fcn.004113d0
add esp, 4
test esi, esi
je 0x426d0c
push dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
push esi
push 1
push eax
call fcn.0045a28a
add esp, 0x10
cmp eax, esi
jne 0x426d0c
mov esi, 1
jmp 0x426d0e
mov dword [eax + 8], 0
add dword [edi + 8], 0x10
push ebx
call fcn.00454827
add esp, 4
push eax
push 0x4739b8
push edi
call fcn.004103d0
mov eax, dword [edi + 8]
add esp, 0xc
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mov dword [eax + 8], 3
movsd qword [eax], xmm0
mov eax, 3
add dword [edi + 8], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42f050
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x24c], 0
je 0x42f099
mov eax, dword [esi + 0x248]
test eax, eax
je 0x42f099
push edi
xor edi, edi
test eax, eax
je 0x42f08a
nop dword [eax]
mov eax, dword [esi + 0x24c]
push dword [eax + edi*4]
call fcn.00436c52
inc edi
add esp, 4
cmp edi, dword [esi + 0x248]
jb 0x42f070
push dword [esi + 0x24c]
call fcn.00436c52
add esp, 4
pop edi
cmp byte [esi + 0x1290], 0
je 0x42f0aa
mov ecx, esi
pop esi
jmp fcn.0042f0b0
pop esi
ret
Function at 0x42f0b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x483004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x149c], 0
je 0x42f215
lea eax, [ebp - 0x434]
push eax
call fcn.0043ddac
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0043dd22
push str._r_n_r_n
lea eax, [ebp - 0x404]
mov dword [ebp - 0x42c], 0
push 0x200
push eax
call fcn.00404760
lea ecx, [ebp - 0x404]
add esp, 0x18
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f120
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x42c]
sub ecx, edx
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi + 0x149c]
call edi
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push dword [ebp - 0x424]
push dword [ebp - 0x420]
push str._02d:_02d:_02d__Stopping_install_logging_r_n
push 0x200
push eax
call fcn.00404760
lea ecx, [ebp - 0x404]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f186
sub ecx, edx
lea eax, [ebp - 0x42c]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi + 0x149c]
call edi
push str._r_n_r_n_r_n
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.00404760
lea ecx, [ebp - 0x404]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f1d3
sub ecx, edx
lea eax, [ebp - 0x42c]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi + 0x149c]
call edi
push dword [esi + 0x149c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x149c], 0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004369c2
mov esp, ebp
pop ebp
ret
Function at 0x42f280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x483004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0x1290], 0
jne 0x42f2bc
mov eax, dword [esi + 0x149c]
test eax, eax
je 0x42f305
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x149c], 0
jmp 0x42f305
cmp dword [esi + 0x149c], 0
jne 0x42f312
cmp word [esi + 0x1292], 0
lea eax, [esi + 0x1292]
je 0x42f305
push 0
push 0x80000080
push 4
push 0
push 3
push 0xc0000004
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x149c], eax
test eax, eax
je 0x42f305
push 2
push 0
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0x149c], 0
je 0x42f4d6
lea eax, [ebp - 0x438]
push edi
push eax
call fcn.0043ddac
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0043dd22
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x430]
add esp, 0xc
mov dword [ebp - 0x430], 0
mov word [ebp - 0x42c], 0xfeff
push 0
push eax
push 2
lea eax, [ebp - 0x42c]
push eax
push dword [esi + 0x149c]
call edi
push str._r_n
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.00404760
lea ecx, [ebp - 0x404]
add esp, 0xc
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f390
sub ecx, edx
lea eax, [ebp - 0x430]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi + 0x149c]
call edi
mov eax, dword [ebp - 0x414]
add eax, 0x76c
push eax
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
inc eax
push eax
push str.Install_Date:__02d__02d__04d_r_n
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.00404760
lea ecx, [ebp - 0x404]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f3f7
sub ecx, edx
lea eax, [ebp - 0x430]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi + 0x149c]
call edi
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push dword [ebp - 0x424]
push dword [ebp - 0x420]
push str._02d:_02d:_02d__Started_logging_r_n
push 0x200
push eax
call fcn.00404760
lea ecx, [ebp - 0x404]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f456
sub ecx, edx
lea eax, [ebp - 0x430]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi + 0x149c]
call edi
push 0x468c80
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.00404760
lea ecx, [ebp - 0x404]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f4a3
sub ecx, edx
lea eax, [ebp - 0x430]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi + 0x149c]
call edi
cmp dword [esi + 0x149c], 0
pop edi
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.004369c2
mov esp, ebp
pop ebp
ret