joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40704c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2590
call fcn.00407f60
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jne 0x407080
push dword [ebp + 8]
call fcn.00404825
test eax, eax
pop ecx
jne 0x4071be
mov edi, 0x410d74
push ebx
push edi
call fcn.004034ae
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x4070a4
push ebx
call fcn.004047b6
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov esi, str.nC7C
push ebx
push esi
call fcn.004034ae
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x4070c9
push ebx
call fcn.004047b6
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00403e97
lea eax, [ebp - 0x314]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4071be
lea eax, [ebp - 0x10c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x227a
lea eax, [ebp - 0x2590]
push 0x40f0c0
push eax
call fcn.00407c00
lea eax, [ebp - 0x2590]
mov byte [ebp - 0x157c], bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00405705
push ebx
call fcn.004047b6
xor edx, edx
mov ecx, 0x2800
div ecx
lea eax, [ebp - 0x10c]
add edx, 0x15200
push edx
push eax
call fcn.0040406e
push dword [ebp - 4]
push edi
call fcn.0040347e
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407750
push dword [ebp - 8]
push esi
call fcn.0040347e
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407760
add esp, 0x40
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.00405226
lea eax, [ebp - 0x10c]
push eax
call fcn.00403f05
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4072f2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push edi
push 0x4015ff
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406608
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406dde
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406066
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x4071cd
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406fd5
push edi
push edi
call esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x406f88
push edi
push edi
call esi
inc ebx
cmp ebx, 0x1a
jl 0x40735d
call fcn.004071c3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004be0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102399e6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x102cd06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x18]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xf
mov byte [edi + 0x38], 0
mov byte [ebp - 4], 1
push 0
push 0x102b5c3c
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x30], 0
call fcn.100211b0
push 0
push 0x102b5c3c
lea ecx, [edi + 0x38]
mov dword [edi + 0x34], 0
call fcn.100211b0
mov dword [edi + 0x50], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ce30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000ce5b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001a490
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1000ce7d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1000ce7f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1000cf03
jg 0x1000ce94
test esi, esi
je 0x1000cf03
test ecx, ecx
jl 0x1000cedd
jg 0x1000ce9e
test eax, eax
je 0x1000cedd
cmp edi, ecx
jg 0x1000ceb2
jl 0x1000cea8
cmp esi, eax
jae 0x1000ceb2
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.100a57b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x1000cee0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x1000cf03
jg 0x1000ceea
test esi, esi
je 0x1000cf03
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000cf03
push eax
push esi
push 1
push edx
call fcn.100bc1d3
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000cf20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x1000cf4b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001a340
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x1000cf6d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1000cf6f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x1000d00e
jg 0x1000cf8c
test esi, esi
je 0x1000d00e
test ecx, ecx
jl 0x1000cfd9
jg 0x1000cf96
test eax, eax
je 0x1000cfd9
cmp ebx, ecx
jg 0x1000cfaa
jl 0x1000cfa0
cmp esi, eax
jae 0x1000cfaa
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.100a57b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x1000cfe0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x1000d00e
jg 0x1000cfea
test esi, esi
je 0x1000d00e
cmp dword [edi + 0x4c], 0
je 0x1000d00e
mov ecx, edi
call fcn.1000e1b0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.100bc414
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000d420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000d450
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100451cc
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000d48c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000d48c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100451cc
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1000d554
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1000d4b4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov edx, dword [esi + 0x38]
test edx, edx
jne 0x1000d4e7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100bc85b
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100451cc
mov esp, ebp
pop ebp
ret 4
mov cl, bl
mov byte [ebp - 0x25], cl
mov edi, dword [edx]
cmp edi, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x1000d56a
lea eax, [ebp - 0x25]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov edx, dword [esi + 0x4c]
call fcn.10016040
or ecx, 0xffffffff
test al, al
pop edi
cmovne ecx, ebx
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100451cc
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000d544
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100bc1d3
add esp, 0x10
cmp edi, eax
jne 0x1000d554
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x1000d477
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100451cc
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov ecx, edx
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edi + 0x1c]
test eax, eax
js 0x1000d554
cmp eax, 1
jle 0x1000d527
cmp eax, 3
jne 0x1000d554
mov cl, byte [ebp - 0x25]
jmp 0x1000d502
Function at 0x1000e220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x1000e2b7
cmp byte [esi + 0x3d], 0
je 0x1000e2b7
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000e270
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x1000e2c9
lea edi, [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x28], edi
sub eax, 0
je 0x1000e282
sub eax, 1
je 0x1000e286
sub eax, 2
je 0x1000e2b7
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100451cc
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000e2a0
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100bc1d3
add esp, 0x10
cmp edi, eax
jne 0x1000e270
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100451cc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.100451cc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
mov edi, dword [ebp - 0x28]
jmp 0x1000e261

Function at 0x10019b50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023a250
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x102cd06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100451eb
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1002e744
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001fbd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023a250
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x102cd06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.100451eb
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1002e744
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002b2a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023c5f3
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000ade0
mov ecx, eax
call fcn.1004e7aa
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 9
jb 0x1002b31e
cmp edx, 8
lea esi, [ebp - 0x28]
push 0x12
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 9]
push str.About.exe
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.100a5060
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x1002b33c
push 9
push str.About.exe
mov byte [ebp - 0x14c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x14c]
push 9
call fcn.1001c7e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002b3e6
call fcn.1004c44f
test al, al
je 0x1002b3c7
mov eax, dword [0x102dc9b8]
test eax, eax
je 0x1002b3c7
cmp dword [eax + 4], 4
jl 0x1002b3c7
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
sub esp, 0xc
push 0x2f
push str.CSoftTaskControl::RunDaemon
push ecx
lea ecx, [ebp - 0x148]
call fcn.100216e0
mov esi, eax
test edi, edi
mov byte [ebp - 4], 1
mov ecx, 0x102b5be0
cmovne ecx, edi
push ecx
lea ecx, [esi + 0x30]
push ecx
call fcn.1001cf70
mov ecx, dword [0x102dc9b8]
add esp, 8
push esi
call fcn.100218a0
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0
call fcn.1001d4e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push 0
push eax
push str._4322201651
call fcn.10052c02
add esp, 0x14
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1002b41c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002b412
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b439
push edx
push ecx
call fcn.100451dd
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100451cc
mov esp, ebp
pop ebp
ret 4
call fcn.100b277d
int3
Function at 0x1004c492
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x1023e301
call fcn.10045b3f
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.1004bf37
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1004c4c4
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x10246c1c
call fcn.1001c9c0
push 0x10246c20
mov ecx, esi
call fcn.1001c9c0
push 0x102b5bd8
mov ecx, esi
call fcn.1001c9c0
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.1001c950
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004c519
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004c5b1
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100a55e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1004be0b
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 0x1004c570
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.1001c9c0
push 0x102b5bd8
mov ecx, esi
call fcn.1001c9c0
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.1001c950
cmp dword [esi + 0x14], 8
jb 0x1004c5b9
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 0x1004c5d1
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x10246c1c
call fcn.1001c9c0
push 0x10246c20
mov ecx, esi
call fcn.1001c9c0
push 0x102b5bd8
mov ecx, esi
call fcn.1001c9c0
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.1004bf96
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.1000b000
lea ecx, [ebp - 0x248]
call fcn.10021eb0
lea ecx, [ebp - 0x230]
call fcn.10021eb0
call fcn.10045ae9
ret
Function at 0x1004dbc7
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x1023e4cf
call fcn.10045b3f
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x1004dbe8
push dword [esi + 0x1c]
call fcn.100d2a35
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.1004cffa
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.100c9357
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x1004dc6c
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.1004cffa
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1004cffa
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.10021eb0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10021eb0
sub edi, 1
jns 0x1004dc16
mov ecx, esi
call fcn.1004daa6
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.10021eb0
call fcn.10045ae9
ret

Function at 0x1004dc85
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x1023e4cf
call fcn.10045b3f
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x1004dca6
push dword [esi + 0x1c]
call fcn.100d2a35
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.1004cffa
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.100c9357
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x1004dd2a
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.1004cffa
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1004cffa
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.10021eb0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10021eb0
sub edi, 1
jns 0x1004dcd4
mov ecx, esi
call fcn.1004db3d
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.10021eb0
call fcn.10045ae9
ret
Function at 0x10050aef
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x10050b01
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x10050b46
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret

Function at 0x10050bba
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x10050bc3
pop esi
ret

Function at 0x10050bfb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x10050c12
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x1005119a
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x1023ec60
call fcn.10045b0b
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.10060f45
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10060f5a
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0xc
call fcn.1001f8e0
push dword [ebp + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
lea ecx, [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
call fcn.10060f55
call fcn.10045ad4
ret 4