joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4be581
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 0
push 0
mov dword [esp + 0xc], 0
mov ecx, dword [ecx + 0x11c]
push 0x1023
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 8], eax
mov edx, dword [esp + 9]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.004213c0
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esp + 0x2c], 1
call fcn.0041d740
lea ecx, [esp + 0x10]
mov dword [esp + 4], 1
mov byte [esp + 0x28], 0
call fcn.00407300
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x45a600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4be678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
xor eax, eax
push esi
mov esi, ecx
mov ecx, dword [0x50fcb0]
mov dword [esp + 8], eax
mov dword [esp + 4], vtable.wxListItem.0
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x50]
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], eax
call fcn.004725c0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 0x14], ecx
jle 0x45a69e
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], 6
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0045a440
lea ecx, [esp + 4]
movzx esi, al
mov dword [esp + 0x40], 0xffffffff
call fcn.0045a070
mov ecx, dword [esp + 0x38]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 0x10

Function at 0x45a6e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4be678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov edx, dword [0x50fcb0]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], vtable.wxListItem.0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
lea eax, [esp]
push eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], edx
call fcn.00459730
test al, al
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
jne 0x45a77b
call fcn.0045a070
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
push esi
mov esi, dword [esp + 0x18]
call fcn.0045a070
mov ecx, dword [esp + 0x38]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 8
Function at 0x45a860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4be661
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov eax, dword [0x50fcb0]
mov dword [esp + 0x24], eax
mov eax, 2
push esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], vtable.wxListItem.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x4c], 1
mov dword [esp + 0x1c], edx
call fcn.00459730
test al, al
jne 0x45a900
mov eax, dword [0x50fcb0]
cmp eax, ebx
jne 0x45a8ea
mov eax, 0x4c8731
mov ecx, dword [0x4e4f74]
mov esi, dword [esp + 0x50]
push ecx
push ebx
push eax
mov ecx, esi
call fcn.00472c90
jmp 0x45a925
mov eax, dword [esp + 0x28]
cmp dword [eax - 8], ebx
mov esi, dword [esp + 0x50]
jne 0x45a917
mov edx, dword [0x50fcb0]
mov dword [esi], edx
jmp 0x45a925
mov dword [esi], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x45a925
inc ecx
mov dword [eax - 0xc], ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], bl
mov dword [esp + 8], 1
call fcn.0045a070
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8

Function at 0x45a950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4be678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov edx, dword [0x50fcb0]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], vtable.wxListItem.0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
lea edx, [esp]
push edx
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], eax
call fcn.00459730
test al, al
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
jne 0x45a9e7
call fcn.0045a070
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 4
push esi
mov esi, dword [esp + 0x28]
call fcn.0045a070
mov ecx, dword [esp + 0x38]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x45ab00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4be678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
xor eax, eax
push esi
mov esi, ecx
mov ecx, dword [0x50fcb0]
mov dword [esp + 8], eax
mov dword [esp + 4], vtable.wxListItem.0
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], edx
call fcn.004725c0
mov ecx, dword [esp + 0x48]
lea edx, [esp + 4]
mov dword [esp + 0x10], ecx
push edx
mov ecx, esi
mov dword [esp + 0x10], 6
call fcn.0045aa10
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x40], 0xffffffff
call fcn.0045a070
mov ecx, dword [esp + 0x38]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 0xc

Function at 0x45af30
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
lea ecx, [esp + 0x3c]
push ecx
push 0
mov esi, eax
mov eax, dword [ebx + 0x11c]
push 0x1005
push eax
mov dword [esp + 0x4c], 4
mov dword [esp + 0x50], esi
call ebp
test eax, eax
je 0x45afc0
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x45afc0
push edi
xor eax, eax
lea edx, [esp + 0xc]
push edx
push eax
mov ecx, 0xd
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x11c]
push 0x1006
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 4
call ebp
mov edi, dword [esp + 0x60]
mov esi, dword [edi]
test esi, esi
je 0x45afb6
mov ecx, esi
call fcn.00458f10
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x68
ret

Function at 0x45c900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4be8d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov byte [esp + 0xc], al
lea ecx, [esp + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 4], vtable.wxBitmap.0
call fcn.0041c5d0
mov ecx, dword [esp + 0x30]
lea eax, [esp + 4]
push eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 1
call fcn.0045c680
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x30], 2
call fcn.0045c890
mov esi, eax
lea ecx, [esp + 0x10]
add esi, 8
mov byte [esp + 0x28], 1
call fcn.0045c300
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call fcn.00407300
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x45fec8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bec98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, dword [0x5138e0]
mov eax, dword [esi + 0x28]
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.004744a0
mov dword [esp + 4], vtable.wxInitDialogEvent.0
mov ecx, dword [esi + 0x5c]
lea eax, [esp + 4]
mov dword [esp + 0xc], esi
mov edx, dword [ecx]
push eax
mov dword [esp + 0x34], 0
call dword [edx + 0x34]
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 4], vtable.wxObject.0
call fcn.00474100
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x46b170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bfce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
mov eax, dword [eax + 0x28]
mov ecx, dword [0x513748]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.00406790
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
lea eax, [esp + 4]
push eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], ecx
call fcn.0041dc20
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov dword [esp + 0x44], 0xffffffff
pop esi
je 0x46b1e9
dec ecx
mov dword [eax], ecx
jne 0x46b1e9
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
lea ecx, [esp]
mov dword [esp], vtable.wxObject.0
call fcn.00474100
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x470ec0
Capabilities:
Create thread

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esi + 0x10]
push eax
push 4
push ecx
push 0x470d50
push edx
push 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 4], eax
jne 0x470f24
call fcn.004758f0
test eax, eax
je 0x470f10
push 0
push str.Cant_create_thread
mov ecx, eax
call fcn.00475d60
push eax
call fcn.00476a00
add esp, 4
xor al, al
pop esi
ret 8
mov eax, str.Cant_create_thread
push eax
call fcn.00476a00
add esp, 4
xor al, al
pop esi
ret 8
mov eax, dword [esi + 0xc]
cmp eax, 0x32
je 0x470f34
push eax
mov ecx, esi
call fcn.00470e40
mov al, 1
pop esi
ret 8

Function at 0x470f40
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x470f8f
call fcn.004758f0
test eax, eax
je 0x470f7a
push 0
push str.Couldnt_terminate_thread
mov ecx, eax
call fcn.00475d60
push eax
call fcn.00476a00
add esp, 4
mov eax, 5
pop esi
ret
mov eax, str.Couldnt_terminate_thread
push eax
call fcn.00476a00
add esp, 4
mov eax, 5
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x470fa4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
xor eax, eax
pop esi
ret

Function at 0x470fb0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x471000
call fcn.004758f0
test eax, eax
je 0x470fea
push 0
push str.Can_not_resume_thread__x
mov ecx, eax
call fcn.00475d60
mov ecx, dword [esi + 4]
push ecx
push eax
call fcn.00476a00
add esp, 8
xor al, al
pop esi
ret
mov ecx, dword [esi + 4]
mov eax, str.Can_not_resume_thread__x
push ecx
push eax
call fcn.00476a00
add esp, 8
xor al, al
pop esi
ret
cmp dword [esi + 8], 4
mov eax, 1
je 0x47100e
mov dword [esi + 8], eax
pop esi
ret
Function at 0x4781b0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4c0650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4e4f74]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push eax
push 0
mov ecx, ebx
call fcn.00472f20
mov ebp, dword [sym.imp.MSVCR71.dll_getenv]
push str.HOME
call ebp
add esp, 4
test eax, eax
je 0x4781f9
push eax
mov ecx, ebx
call fcn.00472da0
jmp 0x478249
push str.HOMEDRIVE
call ebp
add esp, 4
test eax, eax
je 0x47820f
push eax
mov ecx, ebx
call fcn.0040ee70
push esi
push str.HOMEPATH
call ebp
mov esi, eax
add esp, 4
test esi, esi
je 0x478248
push edi
push esi
mov ecx, ebx
call fcn.0040ee70
mov edi, 0x4e53ec
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
jne 0x478248
mov eax, dword [0x4e4f74]
push eax
push edx
mov ecx, ebx
call fcn.00472f20
pop esi
mov ecx, dword [ebx]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x478268
push str.USERPROFILE
call ebp
add esp, 4
test eax, eax
je 0x478268
push eax
mov ecx, ebx
call fcn.00472da0
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x478295
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00481390
add esp, 8
push eax
mov ecx, ebx
mov dword [esp + 0x18], 0
call fcn.004725c0
mov eax, dword [esp + 0x1c]
jmp 0x4782bb
lea ecx, [esp + 8]
push ecx
call fcn.00475ca0
mov edx, dword [eax]
push 0
push 0
push ebx
push edx
mov dword [esp + 0x28], 1
call fcn.0047c860
mov eax, dword [esp + 0x1c]
add esp, 0x14
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x4782d5
dec ecx
mov dword [eax], ecx
jne 0x4782d5
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [ebx]
mov ecx, dword [esp + 0xc]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4782f0
Capabilities:
Query environment variable

Disassembly:
mov cl, byte [0x527684]
mov eax, 1
test al, cl
jne 0x478324
mov edx, dword [0x527684]
or edx, eax
mov eax, dword [0x50fcb0]
push 0x4c6e70
mov dword [0x527684], edx
mov dword [0x527680], eax
call fcn.0048dcaa
add esp, 4
mov dword [esp + 4], 0x527680
jmp fcn.004781b0
Function at 0x4784e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4c068c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x50fcb0]
push ebp
push esi
mov esi, ecx
lea ecx, [esi + 4]
push edi
mov dword [esp + 0xc], esi
mov dword [ecx], eax
mov edx, dword [0x50fcb0]
lea edi, [esi + 8]
mov dword [esp + 0x18], 0
mov dword [edi], edx
mov eax, dword [0x50fcb0]
lea ebp, [esi + 0xc]
mov dword [ebp], eax
mov edx, dword [0x50fcb0]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x24]
or eax, 0xffffffff
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x20]
push edx
mov byte [esp + 0x1c], 3
mov dword [esi], eax
call fcn.004725c0
mov eax, dword [esp + 0x28]
push eax
mov ecx, edi
call fcn.004725c0
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.004725c0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x14], eax
pop edi
mov dword [esi + 0x10], edx
mov byte [esi + 0x18], 0
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x47ad40
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x47ad69
lea esp, [esp]
movsx ecx, cl
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x47ad50
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret

Function at 0x47c6e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x47c6fc
test al, 0x10
jne 0x47c6fc
mov eax, 1
ret
xor eax, eax
ret

Function at 0x47c930
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi]
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
push eax
push ecx
call dword [sym.imp.MSVCR71.dll_rename]
add esp, 8
test eax, eax
je 0x47c9ab
mov eax, dword [edi]
mov ecx, dword [esi]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x47c99f
mov edi, dword [edi]
mov esi, dword [esi]
call fcn.004758f0
test eax, eax
je 0x47c98a
push 0
push str.Failed_to_copy_the_file__s_to__s
mov ecx, eax
call fcn.00475d60
push edi
push esi
push eax
call fcn.00476a00
add esp, 0xc
pop edi
xor al, al
pop esi
ret
push edi
mov eax, str.Failed_to_copy_the_file__s_to__s
push esi
push eax
call fcn.00476a00
add esp, 0xc
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR71.dll_remove]
add esp, 4
pop edi
mov al, 1
pop esi
ret

Function at 0x47e410
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x47e421
mov eax, dword [edi]
test eax, eax
jne 0x47e427
xor eax, eax
pop edi
ret 8
push ebx
push esi
mov esi, dword [esp + 0x14]
push eax
push esi
push 1
push ecx
call dword [sym.imp.MSVCR71.dll_fwrite]
mov ebx, eax
add esp, 0x10
cmp ebx, esi
jae 0x47e47c
mov edi, dword [edi + 4]
call fcn.004758f0
test eax, eax
je 0x47e46d
push 0
push str.Write_error_on_file__s
mov ecx, eax
call fcn.00475d60
push edi
push eax
call fcn.00476a00
add esp, 8
pop esi
mov eax, ebx
pop ebx
pop edi
ret 8
mov eax, str.Write_error_on_file__s
push edi
push eax
call fcn.00476a00
add esp, 8
pop esi
mov eax, ebx
pop ebx
pop edi
ret 8
Function at 0x47e6cf
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c0d70
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
push esi
mov esi, ecx
je 0x47e6e8
cmp dword [esi], 0
je 0x47e6e8
call fcn.0047e640
test edx, edx
jg 0x47e6fd
jl 0x47e6e8
test eax, eax
jae 0x47e6fd
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
push edi
mov ecx, esi
call fcn.0047e640
mov ecx, esi
mov edi, eax
mov dword [esp + 0x10], edx
call fcn.0047e640
xor ecx, ecx
cmp edi, eax
jne 0x47e77f
cmp ecx, edx
jne 0x47e77f
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR71.dll_clearerr]
add esp, 4
lea ecx, [edi + 1]
push ecx
lea ecx, [esp + 0x28]
call fcn.0043b020
mov edx, dword [esi]
push edx
push edi
mov edi, dword [esp + 0x2c]
push 1
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.MSVCR71.dll_fread]
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
shr edx, 5
add esp, 0x10
test dl, 1
je 0x47e795
mov esi, dword [esi + 4]
push esi
push str.Read_error_on_file__s
call fcn.00403100
add esp, 4
push eax
call fcn.00476a00
push edi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x28]
mov byte [edi + eax], 0
mov eax, dword [0x4e4f74]
push eax
push ecx
push edi
lea ecx, [esp + 0x34]
call fcn.0047e2f0
push eax
mov ecx, ebx
mov byte [esp + 0x20], 1
call fcn.00402190
lea ecx, [esp + 0x28]
call fcn.0041ef00
push edi
call dword [sym.imp.MSVCR71.dll_free]
mov ecx, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x480550
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4805b9
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4805b9
mov edx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.MSVCR71.dll__read]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4805bb
call fcn.004758f0
test eax, eax
je 0x4805a1
push 0
push str.cant_read_from_file_descriptor__d
mov ecx, eax
call fcn.00475d60
mov ecx, dword [esi]
push ecx
push eax
call fcn.00476a00
add esp, 8
or eax, 0xffffffff
pop esi
ret 8
mov ecx, dword [esi]
mov eax, str.cant_read_from_file_descriptor__d
push ecx
push eax
call fcn.00476a00
add esp, 8
or eax, 0xffffffff
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x4807a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0f60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebp
push esi
push 0
mov esi, ecx
push eax
lea ecx, [esp + 0x10]
call fcn.0046a2c0
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
call fcn.004832c0
test al, al
mov ebp, dword [sym.imp.MSVCR71.dll_free]
jne 0x480840
mov eax, dword [0x50fcb0]
test eax, eax
jne 0x4807f7
mov eax, 0x4c8731
mov ecx, dword [0x4e4f74]
push ecx
push 0
push eax
lea ecx, [esp + 0x44]
call fcn.00472c90
push 0
lea edx, [esp + 0x3c]
push edx
push 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.00484560
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x30], 0
je 0x480840
dec ecx
mov dword [eax], ecx
jne 0x480840
push eax
call ebp
add esp, 4
push 0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
call fcn.00483700
push eax
mov ecx, esi
mov byte [esp + 0x34], 2
call fcn.004725c0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x30], 0
je 0x48087c
dec ecx
mov dword [eax], ecx
jne 0x48087c
push eax
call ebp
add esp, 4
lea ecx, [esi + 8]
push ecx
lea edx, [esp + 0x3c]
push esi
push edx
call fcn.00484340
add esp, 0xc
add esi, 4
push eax
mov ecx, esi
mov byte [esp + 0x34], 3
call fcn.004725c0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x4808b8
dec ecx
mov dword [eax], ecx
jne 0x4808b8
push eax
call ebp
add esp, 4
mov eax, dword [esi]
mov ecx, dword [eax - 8]
pop esi
test ecx, ecx
pop ebp
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp]
jne 0x4808e6
call fcn.0046a030
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
call fcn.0046a030
mov ecx, dword [esp + 0x20]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x480900
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 8]
call fcn.004804f0
mov eax, dword [esi]
push eax
call fcn.00480470
add esp, 4
test al, al
je 0x480964
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR71.dll_remove]
add esp, 4
test eax, eax
je 0x480964
mov esi, dword [esi]
call fcn.004758f0
test eax, eax
je 0x480951
push 0
push str.cant_remove_file__s
mov ecx, eax
call fcn.00475d60
push esi
push eax
call fcn.00476a00
add esp, 8
xor al, al
pop esi
ret
mov eax, str.cant_remove_file__s
push esi
push eax
call fcn.00476a00
add esp, 8
xor al, al
pop esi
ret
lea eax, [esi + 4]
push esi
push eax
call fcn.0047c930
add esp, 8
test al, al
jne 0x4809af
mov esi, dword [esi]
call fcn.004758f0
test eax, eax
je 0x48099c
push 0
push str.cant_commit_changes_to_file__s
mov ecx, eax
call fcn.00475d60
push esi
push eax
call fcn.00476a00
add esp, 8
xor al, al
pop esi
ret
mov eax, str.cant_commit_changes_to_file__s
push esi
push eax
call fcn.00476a00
add esp, 8
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x4809c0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 8]
call fcn.004804f0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCR71.dll_remove]
add esp, 4
test eax, eax
je 0x480a11
mov esi, dword [esi + 4]
call fcn.004758f0
test eax, eax
je 0x480a02
push 0
push str.cant_remove_temporary_file__s
mov ecx, eax
call fcn.00475d60
push esi
push eax
call fcn.00476a00
add esp, 8
pop esi
ret
mov eax, str.cant_remove_temporary_file__s
push esi
push eax
call fcn.00476a00
add esp, 8
pop esi
ret