joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ae64
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [0x1013d248], 0x1825
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
mov dword [0x1013d244], 0x262b
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
jmp 0x1003aed2
mov dword [0x1013d244], 0xb28
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1003af7a
jmp 0x1003afbc
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
je 0x1003af3d
jmp 0x1003af1c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1003aeb0
jmp 0x1003afbc
mov dword [0x1013d244], 0xffffe703
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1003af5b
jmp 0x1003afbc
mov dword [0x1013d248], 0x2454
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], eax
jl 0x1003aed2
mov eax, dword [ebp - 0x24]
mov dword [0x1013d244], 0xca2
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
je 0x1003aefe
jmp 0x1003afbc
mov dword [0x1013d244], 0xffffde32
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1003aeea
jmp 0x1003afbc
mov dword [0x1013d244], 0x35
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1003afbc
mov eax, 0x1438
mov ecx, 1
mov dword [0x1013d244], 0x166f
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
je 0x1003afcb
mov eax, 0x1f59
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
jmp 0x1003afcb
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [0x1013d244], ecx
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x1003b18a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1003a4e1
xor ecx, ecx
mov edx, eax
mov dword [0x1013d248], 0x11a4
mov esi, dword [eax + 0x3c]
mov dword [0x1013d244], 0x828
mov esi, dword [eax + esi + 0x78]
mov dword [0x1013d248], 0x1376
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x1013d244], 0x4d3
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x1003b2e3
jmp 0x1003b248
mov eax, dword [ebp - 0x28]
add eax, 1
mov cl, byte [ebp - 0x29]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x2a]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x30], eax
jne 0x1003b25c
mov al, byte [ebp - 0x2a]
test al, 1
jne 0x1003b2b4
jmp 0x1003b28a
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x30], edx
jmp 0x1003b25c
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jmp 0x1003b22c
mov eax, dword [ebp - 0x30]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x29], bh
mov byte [ebp - 0x2a], cl
je 0x1003b21f
jmp 0x1003b1f7
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 2
mov edx, dword [ebp - 0x3c]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x24], eax
jb 0x1003b22c
jmp 0x1003b2e3
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x1013d248], 0x14e4
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [0x1013d244], 0x674
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1003b3ae
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [0x1013d248]
mov dword [0x1013d24c], 0
mov dword [0x1013d250], 0
mov dword [0x1013d25c], 0
mov dword [ebp - 0x10], eax
mov eax, ebx
add eax, 0xfffff40b
mov dword [0x1013d244], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, edi
mov dword [ebp - 0x1c], eax
mov eax, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
jne 0x1003b449
mov eax, dword [ebp - 0x30]
add eax, 0xffffefe2
mov dword [0x1013d244], eax
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x1013d248]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
jmp 0x1003b424
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov edi, 0x100
add ecx, 1
mov dword [ebp - 0x3c], eax
mov eax, ecx
mov dword [ebp - 0x40], edx
cdq
idiv edi
mov dword [0x1013d24c], edx
mov ecx, dword [ebp - 0x2c]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x40]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x44], edx
cdq
idiv edi
mov dword [0x1013d250], edx
mov ecx, esi
add ecx, 0xffffff04
mov dword [0x1013d248], ecx
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x44]
mov cl, byte [ecx + edi]
mov byte [0x1013d254], cl
add esi, 0xffffe8d2
mov dword [0x1013d244], esi
mov esi, dword [ebp - 0x2c]
mov cl, byte [esi + edx]
mov byte [esi + edi], cl
mov cl, byte [0x1013d254]
mov edx, dword [0x1013d250]
mov byte [esi + edx], cl
mov dword [0x1013d244], 0xfea
mov edx, dword [0x1013d24c]
movzx edx, byte [esi + edx]
mov ebx, dword [0x1013d250]
movzx ebx, byte [esi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1013d25c], ebx
mov cl, byte [esi + ebx]
mov edx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x3c]
mov ch, byte [edx + ebx]
mov dword [0x1013d248], 0xd1
xor ch, cl
mov byte [0x1013d260], ch
mov dword [0x1013d244], 0x538
mov edx, dword [ebp - 0x28]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x48], ebx
je 0x1003b439
mov eax, dword [0x1013d24c]
mov ecx, dword [0x1013d250]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov eax, dword [0x1013d244]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x34], esi
jmp 0x1003b449
Function at 0x1003b56a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x1013d248], 0xa89
mov edx, dword [0x1013d244]
add edx, 0xbf9
mov dword [0x1013d244], edx
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1003aa76
lea ecx, [0x1003b7cf]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], 0x133a00
mov edx, dword [0x1013d230]
mov dword [esp + 0x68], edx
mov edx, dword [0x1013d234]
mov dword [esp + 0x6c], edx
mov edx, dword [0x1013d238]
mov dword [esp + 0x60], edx
mov edx, dword [0x1013d23c]
mov dword [esp + 0x84], edx
mov edx, dword [0x1013d240]
mov dword [esp + 0x50], edx
mov dword [0x1013d248], 0x2bd
mov dword [0x1013d244], 0xfffff059
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
jne 0x1003b640
mov eax, dword [esp + 0x18]
add eax, 0x3c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
cmp dword [edx + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x1003b65e
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x1013d248], 0xfde
mov dword [esp + 0x1c], eax
jmp 0x1003b60d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov dword [0x1013d244], 0x828
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x80], edx
mov dword [0x1013d248], 0x1419
call fcn.1003ae64
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x1003b6e3
lea eax, [esp + 0x38]
mov dword [0x1013d244], 0xa5a
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1003b830
mov dword [0x1013d244], 0x1f96
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x1013d248], 0x2262
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1003b830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x1003c267]
mov esi, 0xe
lea edi, [ebp - 0x2c]
mov ebx, dword [0x1013d244]
add ebx, 0xfffff1bd
mov dword [0x1013d244], ebx
mov dword [0x1013d248], 0x1ac5
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
call fcn.1003b6eb
call fcn.1003baed
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.1003a655
xor ecx, ecx
mov edx, dword [0x1013d248]
add edx, 0xffffe3d9
mov dword [0x1013d244], edx
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
je 0x1003b961
mov eax, dword [ebp - 0x40]
mov dword [0x1013d248], 0x1f5
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x1013d248]
add ecx, 0x121d
mov dword [0x1013d244], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
mov dword [ebp - 0x48], eax
call fcn.1003a81b
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x44], ecx
mov dword [0x1013d244], 0xb6b
mov ecx, dword [ebp - 0x48]
mov dword [edx + 0x3c], ecx
mov dword [0x1013d248], 0x1691
cmp ecx, 0
mov dword [ebp - 0x44], eax
jne 0x1003b96c
mov eax, dword [ebp - 0x44]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x1013d244], 0xffffedf9
mov eax, dword [ebp - 0x48]
add eax, 0x207b
mov dword [ebp - 0x44], eax
jmp 0x1003b961
Function at 0x40f4a7
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
push dword [esi + 0x10]
call fcn.0040f4e8
mov dword [esi + 0x10], eax
and eax, 0xff
add eax, dword [esi + 0x14]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x14], eax
shr eax, 0x18
mov byte [esp + 0x10], al
push dword [esp + 0x10]
push dword [esi + 0x18]
call fcn.0040f4e8
add esp, 0x10
mov dword [esi + 0x18], eax
pop esi
ret 4
Function at 0x41c1d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x485988
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x28
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x41c1fc
mov dword [eax], 0
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jne 0x41c21d
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x41c216
mov eax, dword [ecx]
push str.zero_size_buffer_passed_to_get_next_chunk.
call dword [eax + 0x10]
xor al, al
jmp 0x41c351
mov ebp, dword [esp + 0x48]
test ebp, ebp
jne 0x41c23e
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x41c237
mov edx, dword [ecx]
push str.NULL_buffer_passed_to_get_next_chunk.
call dword [edx + 0x10]
xor al, al
jmp 0x41c351
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x41c24d
mov al, 1
jmp 0x41c351
lea edx, [esp + 0x48]
push 0
push edx
push ecx
push ebp
push eax
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esp + 0x54]
mov edi, eax
test edi, edi
jne 0x41c2c0
test ebx, ebx
je 0x41c2c0
lea ecx, [esp + 0x10]
call fcn.00419150
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0
call fcn.0041a6e0
mov ebx, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.004220a0
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x50]
push str.fileReadError
mov ecx, ebx
call dword [eax + 0x28]
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.00419440
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x41c2e7
mov al, byte [esi + 0x20]
test al, al
je 0x41c2d9
mov ecx, dword [esi + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov dword [esi + 0x24], 0xffffffff
setne al
jmp 0x41c351
push eax
push ebp
lea ecx, [esi + 8]
call fcn.004509f0
mov ecx, dword [esi + 0x18]
mov byte [esp + 0x4c], 1
test ecx, ecx
je 0x41c32e
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x54]
push edx
push eax
mov byte [esp + 0x5c], 0
call fcn.00429660
mov al, byte [esp + 0x54]
test al, al
je 0x41c32e
test ebx, ebx
je 0x41c329
mov edx, dword [ebx]
push str.Aborted_by_application
mov ecx, ebx
call dword [edx + 0x14]
mov byte [esp + 0x4c], 0
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
test ecx, ecx
je 0x41c33c
mov dword [ecx], eax
mov ecx, dword [esi + 0x10]
add ecx, eax
mov dword [esi + 0x10], ecx
mov eax, dword [esi + 0x14]
adc eax, 0
mov dword [esi + 0x14], eax
mov al, byte [esp + 0x4c]
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 0x10
Function at 0x41dbd0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x485b9b
push eax
mov eax, 0x18a0
mov dword fs:[0], esp
call fcn.0046ff00
lea ecx, [esp]
call fcn.00453f70
lea ecx, [esp]
mov dword [esp + 0x18a8], 0
call fcn.00453fc0
test al, al
je 0x41dc39
lea eax, [esp + 0x98]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x18b4]
call fcn.0041c980
jmp 0x41dc8d
lea edx, [esp + 0x89c]
push edx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x41dc79
lea eax, [esp + 0x98]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x18b4]
call fcn.0041c980
jmp 0x41dc8d
mov ecx, dword [esp + 0x18b0]
lea edx, [esp + 0x89c]
push edx
call fcn.0041caa0
lea ecx, [esp]
mov dword [esp + 0x18a8], 0xffffffff
call fcn.00453fb0
mov ecx, dword [esp + 0x18a0]
mov dword fs:[0], ecx
add esp, 0x18ac
ret

Function at 0x41dcc0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x485bbb
push eax
mov eax, 0x18a0
mov dword fs:[0], esp
call fcn.0046ff00
lea ecx, [esp]
call fcn.00453f70
lea ecx, [esp]
mov dword [esp + 0x18a8], 0
call fcn.00453fc0
test al, al
je 0x41dd2b
lea eax, [esp + 0x98]
push eax
push 0x800
call fcn.00447c00
add esp, 8
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x18b4]
call fcn.0041c980
jmp 0x41dd8c
lea edx, [esp + 0x89c]
push edx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x41dd78
lea eax, [esp + 0x98]
push eax
push 0x800
call fcn.00447c00
add esp, 8
test eax, eax
jne 0x41dd62
mov byte [esp + 0x98], al
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x18b4]
call fcn.0041c980
jmp 0x41dd8c
mov ecx, dword [esp + 0x18b0]
lea edx, [esp + 0x89c]
push edx
call fcn.0041caa0
lea ecx, [esp]
mov dword [esp + 0x18a8], 0xffffffff
call fcn.00453fb0
mov ecx, dword [esp + 0x18a0]
mov dword fs:[0], ecx
add esp, 0x18ac
ret
Function at 0x41deb0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x485c32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e0
push esi
lea ecx, [esp + 0x2c]
call fcn.0041c6f0
lea ecx, [esp + 0xb4]
mov dword [esp + 0x2ec], 0
call fcn.0041c6f0
mov eax, dword [esp + 0x2f4]
lea ecx, [esp + 0x2c]
push eax
mov byte [esp + 0x2f0], 1
call fcn.0041d5b0
mov ecx, dword [esp + 0x2f8]
push ecx
lea ecx, [esp + 0xb8]
call fcn.0041d5b0
push 0x5c
push 0x2f
lea ecx, [esp + 0x34]
call fcn.0041d840
push 0x5c
push 0x2f
lea ecx, [esp + 0xbc]
call fcn.0041d840
lea ecx, [esp + 0x24c]
call fcn.00453f70
lea ecx, [esp + 0x24c]
mov byte [esp + 0x2ec], 2
call fcn.00453fc0
test al, al
je 0x41df8b
lea ecx, [esp + 0xb4]
call fcn.0041cff0
push eax
lea ecx, [esp + 0x30]
call fcn.0041cff0
push eax
call fcn.00447b00
add esp, 8
test eax, eax
setne dl
and edx, 0xff
mov esi, edx
jmp 0x41e07d
lea ecx, [esp + 0x2c]
call fcn.0041c830
test eax, eax
jg 0x41dfd6
lea ecx, [esp + 0xb4]
call fcn.0041c830
test eax, eax
jg 0x41dfd6
lea ecx, [esp + 0xb4]
call fcn.0041cb20
push eax
lea ecx, [esp + 0x30]
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
and eax, 0xff
mov esi, eax
jmp 0x41e07d
lea ecx, [esp + 0x1c4]
call fcn.0041c6f0
lea ecx, [esp + 0x13c]
mov byte [esp + 0x2ec], 3
call fcn.0041c6f0
lea ecx, [esp + 0x1c4]
lea edx, [esp + 0x2c]
push ecx
push edx
mov byte [esp + 0x2f4], 4
call fcn.0041e2e0
lea eax, [esp + 0x144]
lea ecx, [esp + 0xbc]
push eax
push ecx
call fcn.0041e2e0
add esp, 0x10
lea ecx, [esp + 0x13c]
call fcn.0041cb20
push eax
lea ecx, [esp + 0x1c8]
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dl
and edx, 0xff
lea ecx, [esp + 0x13c]
mov esi, edx
mov byte [esp + 0x2ec], 3
call fcn.0041c7c0
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x2ec], 2
call fcn.0041c7c0
test esi, esi
jne 0x41e127
mov esi, dword [esp + 0x2fc]
test esi, esi
je 0x41e0d3
push edi
lea ecx, [esp + 8]
call fcn.00419150
lea ecx, [esp + 8]
mov byte [esp + 0x2f0], 5
call fcn.0041a6e0
mov edi, dword [esi]
lea ecx, [esp + 8]
call fcn.004220a0
push eax
push str.errorMsg
mov ecx, esi
call dword [edi + 0x28]
lea ecx, [esp + 8]
mov byte [esp + 0x2f0], 2
call fcn.00419440
pop edi
lea ecx, [esp + 0x24c]
mov byte [esp + 0x2ec], 1
call fcn.00453fb0
lea ecx, [esp + 0xb4]
mov byte [esp + 0x2ec], 0
call fcn.0041c7c0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2ec], 0xffffffff
call fcn.0041c7c0
xor al, al
pop esi
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
add esp, 0x2ec
ret
lea ecx, [esp + 0x24c]
mov byte [esp + 0x2ec], 1
call fcn.00453fb0
lea ecx, [esp + 0xb4]
mov byte [esp + 0x2ec], 0
call fcn.0041c7c0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2ec], 0xffffffff
call fcn.0041c7c0
mov ecx, dword [esp + 0x2e4]
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2ec
ret
Function at 0x41e180
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x485c61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push ebx
lea ecx, [esp + 4]
call fcn.0041c6f0
lea ecx, [esp + 0x8c]
mov dword [esp + 0x1b4], 0
call fcn.0041c6f0
mov eax, dword [esp + 0x1bc]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x1b8], 1
call fcn.0041d5b0
mov ecx, dword [esp + 0x1c0]
push ecx
lea ecx, [esp + 0x90]
call fcn.0041d5b0
push 0x5c
push 0x2f
lea ecx, [esp + 0xc]
call fcn.0041d840
push 0x5c
push 0x2f
lea ecx, [esp + 0x94]
call fcn.0041d840
lea ecx, [esp + 0x114]
call fcn.00453f70
lea ecx, [esp + 0x114]
mov byte [esp + 0x1b4], 2
call fcn.00453fc0
test al, al
je 0x41e25a
mov al, byte [esp + 0x1c4]
xor edx, edx
test al, al
setne dl
push edx
lea ecx, [esp + 0x90]
call fcn.0041cff0
push eax
lea ecx, [esp + 0xc]
call fcn.0041cff0
push eax
call fcn.00447ba0
add esp, 0xc
jmp 0x41e286
mov dl, byte [esp + 0x1c4]
xor eax, eax
test dl, dl
setne al
push eax
lea ecx, [esp + 0x90]
call fcn.0041cb20
push eax
lea ecx, [esp + 0xc]
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea ecx, [esp + 0x114]
mov byte [esp + 0x1b4], 1
setne bl
call fcn.00453fb0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1b4], 0
call fcn.0041c7c0
lea ecx, [esp + 4]
mov dword [esp + 0x1b4], 0xffffffff
call fcn.0041c7c0
mov ecx, dword [esp + 0x1ac]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b4
ret
Function at 0x41e3d0
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x485cbc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push esi
lea ecx, [esp + 8]
call fcn.0041c6f0
mov eax, dword [esp + 0x248]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x244], 0
call fcn.0041d5b0
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
call fcn.0041d840
lea ecx, [esp + 0x118]
call fcn.00453f70
lea ecx, [esp + 0x118]
mov byte [esp + 0x240], 1
call fcn.00453fc0
test al, al
lea ecx, [esp + 8]
je 0x41e45f
call fcn.0041cff0
push eax
call fcn.00447af0
add esp, 4
test eax, eax
setne bl
jmp 0x41e52c
call fcn.0041c830
cmp eax, 0x104
jle 0x41e56d
lea ecx, [esp + 0x1b0]
call fcn.0041c6f0
lea ecx, [esp + 0x1b0]
lea edx, [esp + 8]
push ecx
push edx
mov byte [esp + 0x248], 2
call fcn.0041dac0
add esp, 8
lea ecx, [esp + 0x90]
call fcn.0041c6f0
push 0x49e894
lea ecx, [esp + 0x94]
mov byte [esp + 0x244], 3
call fcn.0041d340
lea ecx, [esp + 0x1b0]
call fcn.0041d380
push eax
lea ecx, [esp + 0x94]
call fcn.0041d340
lea ecx, [esp + 0x90]
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x41e501
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41e4ff
mov esi, 1
test esi, esi
lea ecx, [esp + 0x90]
mov byte [esp + 0x240], 2
setne bl
call fcn.0041c7c0
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x240], 1
call fcn.0041c7c0
lea ecx, [esp + 0x118]
mov byte [esp + 0x240], 0
call fcn.00453fb0
lea ecx, [esp + 8]
mov dword [esp + 0x240], 0xffffffff
call fcn.0041c7c0
mov al, bl
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
add esp, 0x23c
ret
push edi
lea ecx, [esp + 0xc]
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x41e5c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x250]
mov ebx, eax
test esi, esi
je 0x41e5b7
mov eax, dword [esi]
push ebp
push ebx
mov ecx, esi
call dword [eax + 0x38]
mov ebp, dword [esi]
lea ecx, [esp + 0x10]
call fcn.0041d380
push eax
push str.failedToDeleteFilepath
mov ecx, esi
call dword [ebp + 0x28]
pop ebp
cmp ebx, 2
jne 0x41e5c1
mov edi, 1
test edi, edi
lea ecx, [esp + 0x11c]
mov byte [esp + 0x244], 0
setne bl
call fcn.00453fb0
lea ecx, [esp + 0xc]
mov dword [esp + 0x244], 0xffffffff
call fcn.0041c7c0
mov ecx, dword [esp + 0x23c]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x23c
ret