joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b6a9
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.004072bb
and dword [ebp - 4], 0
cmp dword [0x4129b8], 0
mov ebx, eax
jne 0x40b75a
push 0x401bd8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b80b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401bcc
push edi
call esi
test eax, eax
je 0x40b80b
push eax
call fcn.00407244
mov dword [esp], 0x401bbc
push edi
mov dword [0x4129b8], eax
call esi
push eax
call fcn.00407244
mov dword [esp], 0x401ba8
push edi
mov dword [0x4129bc], eax
call esi
push eax
call fcn.00407244
mov dword [esp], 0x401b8c
push edi
mov dword [0x4129c0], eax
call esi
push eax
call fcn.00407244
pop ecx
mov dword [0x4129c8], eax
test eax, eax
je 0x40b75a
push 0x401b74
push edi
call esi
push eax
call fcn.00407244
pop ecx
mov dword [0x4129c4], eax
mov eax, dword [0x4129c4]
cmp eax, ebx
je 0x40b7b2
cmp dword [0x4129c8], ebx
je 0x40b7b2
push eax
call fcn.004072c9
push dword [0x4129c8]
mov esi, eax
call fcn.004072c9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b7b2
test edi, edi
je 0x40b7b2
call esi
test eax, eax
je 0x40b7a9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b7a9
test byte [ebp - 0xc], 1
jne 0x40b7b2
or dword [ebp + 0x10], 0x200000
jmp 0x40b7eb
mov eax, dword [0x4129bc]
cmp eax, ebx
je 0x40b7eb
push eax
call fcn.004072c9
pop ecx
test eax, eax
je 0x40b7eb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b7eb
mov eax, dword [0x4129c0]
cmp eax, ebx
je 0x40b7eb
push eax
call fcn.004072c9
pop ecx
test eax, eax
je 0x40b7eb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4129b8]
call fcn.004072c9
pop ecx
test eax, eax
je 0x40b80b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b80d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1165864
Capabilities:
Encode data using xor

Disassembly:
jmp 0x116586e
pushal
call 0x1165874
pop ebp
sub ebp, 0x10
sub ebp, 0xd65864
jmp 0x116588a
mov eax, 0xd65864
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d3
mov edx, 0x3cb28b4f
xor byte [eax], dl
inc eax
dec ecx
jne 0x11658a1
jmp 0x11658b4
les eax, [edx + 0x4f73c6c4]
dec edi
dec edi
into
invalid

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0xd8b5b4d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x1b06387f
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x43eb65ba
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x67795127
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1000f783
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000f7c2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f7c2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f7c2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000f7c2
cmp dword [ecx + 0x74], 0xe
jbe 0x1000f7c2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001243f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100124dc
push ebx
push esi
call fcn.10012408
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001239c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012489
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100124db
push edi
push eax
call fcn.100133fa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100124a9
call fcn.10010ee4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100124da
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001239c
add esp, 0x20
test eax, eax
jne 0x100124c8
push edi
call fcn.10010ee4
jmp 0x100124d0
push ebx
call fcn.10010ee4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10012749
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a888
push 0x1001a880
push str.FlsAlloc
push 0x1f
call fcn.10012665
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001277d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
jmp 0x10012783
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100127c7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a898
push 0x1001a890
push str.FlsGetValue
push 0x21
call fcn.10012665
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100127fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012806
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a8a0
push 0x1001a898
push str.FlsSetValue
push 0x22
call fcn.10012665
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012840
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017ec0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10017eed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10017eed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40640d
Capabilities:
Check if file exists

Disassembly:
push 0x80
mov eax, 0x58ad68
call fcn.004321e7
lea eax, [ebp - 0x88]
push eax
call fcn.00402a67
mov ecx, eax
call fcn.00414ae0
sub esp, 0x18
lea eax, [ebp - 0x88]
mov ecx, esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00405f07
call fcn.004097f5
mov esi, eax
mov edi, edx
mov ecx, esi
add esp, 0x18
or ecx, edi
jne 0x4064a9
lea eax, [ebp - 0x70]
push eax
call fcn.00402a67
mov ecx, eax
call fcn.00414538
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
lea eax, [ebp - 0x70]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00405f07
call fcn.004097f5
push 3
push edx
push eax
call fcn.00414278
add esp, 0x24
lea ecx, [ebp - 0x70]
test eax, eax
jne 0x4065c0
mov byte [ebp - 4], bl
call fcn.00406253
cmp edi, ebx
jl 0x4064c7
jg 0x4064b3
cmp esi, ebx
jbe 0x4064c7
push 3
push edi
push esi
call fcn.004142ae
add esp, 0xc
test eax, eax
jne 0x4065c5
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x8c], esp
push ebx
call fcn.0044d46c
push edx
push eax
push esi
call fcn.004096ec
add esp, 0x10
mov byte [ebp - 4], 2
call fcn.00402a67
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.00414f58
lea eax, [ebp - 0x28]
push eax
call fcn.00402a67
mov ecx, eax
call fcn.0041442a
push str.update.exe
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00406a05
push 8
pop ebx
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4065bd
lea eax, [ebp - 0x58]
push str.CMD_UPDATE_SILENCE
push eax
call fcn.004155db
mov byte [ebp - 4], 4
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], ebx
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00416369
add esp, 0x10
mov byte [ebp - 4], 5
call fcn.004165c4
cmp eax, 5
jl 0x406590
cmp dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x40]
lea esi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x40]
cmp dword [ebp - 0x14], ebx
cmovae esi, dword [ebp - 0x28]
call fcn.0041693f
push eax
push edi
push esi
call fcn.0041679a
add esp, 0xc
jmp 0x4065ad
cmp dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], ebx
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00416698
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00406253
lea ecx, [ebp - 0x58]
call fcn.00406253
lea ecx, [ebp - 0x28]
call fcn.00406253
lea ecx, [ebp - 0x88]
call fcn.00406253
call fcn.00432191
ret 4
Function at 0x406a2c
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [0x60a1bc]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x406b8c
push 0x1388
sub esp, 0x18
mov ecx, esp
push str.SoftResColorsWifi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
mov byte [ecx], bl
call fcn.00406124
push esi
call fcn.00406ba4
mov ecx, eax
call fcn.00415916
sub esp, 0x18
mov ecx, esp
push 0x5fbe8c
call fcn.00404085
push ebx
push 1
push esi
call fcn.00406c20
mov ecx, eax
call fcn.00417316
push ebx
push ebx
call fcn.00406c9f
mov ecx, eax
call fcn.0040e99f
push 1
call fcn.00417c70
pop ecx
lea eax, [esp + 0x40]
push eax
call fcn.00402a67
mov ecx, eax
call fcn.0041442a
cmp dword [esp + 0x54], 8
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x10]
call fcn.00417f43
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
call fcn.00418440
lea eax, [esp + 0x28]
push str.CMD_SERVICE_START
push eax
call fcn.004155db
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
pop ecx
cmovae eax, dword [esp + 0x2c]
pop ecx
push eax
lea ecx, [esp + 0x14]
call fcn.004184cb
test al, al
je 0x406b6b
sub esp, 0x10
lea ecx, [esp + 0x68]
call fcn.0040744b
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], 0x40780e
mov dword [0x61831c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
lea ecx, [esp + 0x58]
call fcn.004074ee
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x28]
call fcn.00406253
lea ecx, [esp + 0x10]
call fcn.0040d4e4
lea ecx, [esp + 0x40]
call fcn.00406253
mov ecx, dword [esp + 0x8c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.004318a9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407b6e
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push dword [edi + 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x407bb2
mov ecx, dword [edi + 4]
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40ebdf
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x58be86
call fcn.004321e7
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.0040e24e
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40ec11
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x590b40
call fcn.00406a05
push 0x590b44
mov ecx, esi
call fcn.00406a05
push 0x59083c
mov ecx, esi
call fcn.00406a05
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004069a7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40ec66
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ecfe
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0044b1c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040e0b4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40ecbd
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00406a05
push 0x59083c
mov ecx, esi
call fcn.00406a05
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004069a7
cmp dword [esi + 0x14], 8
jb 0x40ed06
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40ed1e
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x590b40
call fcn.00406a05
push 0x590b44
mov ecx, esi
call fcn.00406a05
push 0x59083c
mov ecx, esi
call fcn.00406a05
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0040e2ad
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00409f55
lea ecx, [ebp - 0x248]
call fcn.00406253
lea ecx, [ebp - 0x230]
call fcn.00406253
call fcn.00432191
ret
Function at 0x40f1d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x60a1bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40f257
cmp byte [esi + 0x3d], 0
je 0x40f257
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40f229
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, 0
je 0x40f22d
sub eax, 1
je 0x40f231
dec eax
sub eax, 1
je 0x40f257
xor al, al
jmp 0x40f259
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40f24e
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045bf92
add esp, 0x10
cmp edi, eax
jne 0x40f229
cmp byte [esi + 0x3d], 0
sete al
jmp 0x40f259
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004318a9
leave
ret

Function at 0x412d3f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x60a1bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x412d65
xor eax, eax
jmp 0x412e27
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x412d8e
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x412d8e
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x412e27
cmp dword [esi + 0x4c], 0
je 0x412e25
mov ecx, esi
call fcn.00410929
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x412dba
push dword [esi + 0x4c]
push eax
call fcn.0040b183
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x412e25
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x412e25
cmp eax, 1
jle 0x412df4
cmp eax, 3
jne 0x412e25
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x412dac
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x412e17
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0045bf92
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x412e25
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x412e27
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004318a9
leave
ret 4
Function at 0x4130bc
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x58c425
call fcn.004321e7
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x4130dd
push dword [esi + 0x1c]
call fcn.0045c9ab
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00410a4d
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00455ace
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x413161
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00410a4d
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00410a4d
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00406253
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00406253
sub edi, 1
jns 0x41310b
mov ecx, esi
call fcn.00412c1e
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00406253
call fcn.00432191
ret

Function at 0x41317a
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x58c425
call fcn.004321e7
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x41319b
push dword [esi + 0x1c]
call fcn.0045c9ab
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00410a4d
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00455ace
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x41321f
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00410a4d
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00410a4d
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00406253
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00406253
sub edi, 1
jns 0x4131c9
mov ecx, esi
call fcn.00412cb5
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00406253
call fcn.00432191
ret
Function at 0x413e56
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x413e78
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00413f34
jmp 0x413f2f
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x413e99
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x413e9b
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x413f23
jg 0x413eae
test esi, esi
je 0x413f23
test ecx, ecx
jl 0x413ef0
jg 0x413eb8
test eax, eax
je 0x413ef0
cmp ebx, ecx
jg 0x413eca
jl 0x413ec2
cmp esi, eax
jae 0x413eca
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00448f10
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x413ef6
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x413f23
jg 0x413f00
test esi, esi
je 0x413f23
cmp dword [edi + 0x4c], 0
je 0x413f23
mov ecx, edi
call fcn.00410929
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0045b97f
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
leave
ret 0xc

Function at 0x414003
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x414025
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004140d7
jmp 0x4140d2
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x414046
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x414048
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x4140c6
jg 0x41405b
test esi, esi
je 0x4140c6
test ecx, ecx
jl 0x41409f
jg 0x414065
test eax, eax
je 0x41409f
cmp edi, ecx
jg 0x414077
jl 0x41406f
cmp esi, eax
jae 0x414077
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00448f10
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4140a2
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4140c6
jg 0x4140ac
test esi, esi
je 0x4140c6
cmp dword [ebx + 0x4c], 0
je 0x4140c6
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.0045bf92
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc