joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468932
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4c6518], 0
push esi
push edi
mov esi, 0x4c6530
jne 0x468951
push 0
call fcn.0042537a
pop ecx
mov ecx, eax
call fcn.004688f5
mov dword [0x4c3190], 0x270
mov edi, 0xe3
mov dword [0x4c6ef0], esi
lea edx, [esi + 4]
mov al, byte [edx]
and al, 1
movzx ecx, al
mov eax, dword [esi]
neg ecx
sbb ecx, ecx
xor eax, dword [edx]
and eax, 0x7ffffffe
and ecx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi], eax
mov esi, edx
dec edi
jne 0x468966
mov edi, 0x18c
lea edx, [esi + 4]
mov al, byte [edx]
and al, 1
movzx ecx, al
mov eax, dword [esi]
neg ecx
sbb ecx, ecx
xor eax, dword [edx]
and eax, 0x7ffffffe
and ecx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi - 0x38c]
xor eax, ecx
mov dword [esi], eax
lea esi, [edx]
dec edi
jne 0x46899b
mov ecx, dword [0x4c6530]
mov al, cl
and al, 1
movzx edx, al
mov eax, dword [esi]
neg edx
pop edi
sbb edx, edx
xor eax, ecx
and eax, 0x7ffffffe
and edx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi - 0x38c]
xor eax, edx
mov dword [esi], eax
pop esi
ret

Function at 0x468e3a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x468e5f
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00420fc0
add esp, 0xc
jmp 0x468e72
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00425752
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
push str.EA06
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
call fcn.00425800
neg eax
pop ecx
pop ecx
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x468f48
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10000
mov eax, dword [esi + 0x460]
test eax, eax
je 0x468f5e
cmp eax, ecx
jne 0x468f79
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x458]
call fcn.00425752
add esp, 0x10
and dword [esi + 0x460], 0
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x460], ecx
pop esi
ret

Function at 0x468f91
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x45c]
mov esi, dword [edi + 0x454]
mov byte [esi + edx], al
mov eax, 0x10000
inc dword [edi + 0x45c]
cmp dword [edi + 0x45c], eax
jne 0x468fd8
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x454]
call fcn.004249d3
add esp, 0x10
and dword [edi + 0x45c], 0
pop edi
pop esi
pop ebp
ret 4
Function at 0x472404
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x30], 0
je 0x472413
pop ebp
jmp fcn.004724d4
pop ebp
jmp fcn.00472419

Function at 0x4727b2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0x4727ef
cmp byte [ebp + 8], 0
je 0x4727ef
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.00471850
push esi
push 0
push 0x472882
call fcn.00425e3c
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
jmp 0x4727f7
push dword [ebp + 8]
call fcn.00471a24
pop esi
pop ebp
ret 4

Function at 0x477392
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
or edx, 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov ebx, eax
imul ebx, dword [ebp + 0x14]
push edi
mov edi, esi
lea eax, [esi + eax*4]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
shl ebx, 2
shl eax, 2
mov dword [ebp + 0xc], eax
movzx eax, byte [esi + 2]
movzx ecx, dl
xor ecx, eax
shr edx, 8
movzx eax, byte [esi + 1]
xor edx, dword [ecx*4 + 0x4b55d0]
movzx ecx, dl
xor ecx, eax
shr edx, 8
movzx eax, byte [esi]
add esi, ebx
xor edx, dword [ecx*4 + 0x4b55d0]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4b55d0]
cmp esi, dword [ebp + 8]
jb 0x477409
add edi, dword [ebp + 0xc]
mov esi, edi
cmp edi, dword [ebp + 0x10]
jb 0x4773c5
not edx
mov dword [ebp + 8], edx
fild dword [ebp + 8]
test edx, edx
jns 0x477420
fadd qword [0x4b9e48]
pop edi
fstp qword [ebp - 8]
fld qword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x404b30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565b68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5b925c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 0x34], 0
push dword [ecx + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x59bedc
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 1
push eax
call fcn.0041ac80
mov ecx, eax
call fcn.0041af70
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00444450
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x404bba
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408640
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
Function at 0x40f9d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
push esi
mov esi, ecx
test ebx, ebx
je 0x40f9f6
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x40f9f1
mov eax, dword [ebx]
jmp 0x40f9f3
mov eax, ebx
mov byte [eax], 0
call fcn.00417380
test al, al
je 0x40fa07
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov ecx, esi
call fcn.00414c90
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40fa21
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10000
call fcn.004f66dd
push edi
push 0x10000
mov esi, eax
mov dword [ebp - 8], 0
push 1
push esi
call fcn.005054ee
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40fa96
mov eax, dword [ebp + 8]
nop
test ebx, ebx
je 0x40fa6c
mov ecx, eax
mov eax, edi
sub ecx, dword [ebp - 8]
cmp ecx, edi
cmovb eax, ecx
mov ecx, ebx
push eax
push esi
call fcn.00408350
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x40faac
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.005054ee
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
test edi, edi
jne 0x40fa50
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00504537
add esp, 4
test eax, eax
jne 0x40faaf
mov byte [ebp - 1], 1
jmp 0x40fab3
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.005047bf
add esp, 4
test esi, esi
je 0x40fac9
push esi
call fcn.004f66d8
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4109a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5b925c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x410afd
cmp byte [ebx + 0x3d], 0
je 0x410afd
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4109ed
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x14]
call fcn.00407bb0
push 0
push 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.004107b0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
lea eax, [esp + 0x10]
mov ecx, dword [ebx + 0x38]
lea edi, [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x18]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x410a7c
sub eax, 1
je 0x410a80
sub eax, 2
je 0x410ade
lea ecx, [esp + 0x14]
xor bl, bl
call fcn.00407830
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3d], 0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x14]
cmp ecx, 0x10
mov esi, dword [esp + 0x10]
cmovae eax, edx
sub esi, eax
je 0x410abf
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00504d83
add esp, 0x10
cmp esi, eax
jne 0x410a5d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp byte [ebx + 0x3d], 0
je 0x410ade
test esi, esi
jne 0x410a20
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.00410880
jmp 0x410a18
lea ecx, [esp + 0x14]
mov bl, 1
call fcn.00407830
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
Function at 0x414130
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x5b925c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
sub esp, 8
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], ebx
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.0041f020
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0041f140
cmp dword [ebp - 0x10], ebx
je 0x414292
nop
cmp byte [ebp - 0x2e4], 0
jne 0x4141ba
test bl, 1
je 0x4141a2
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.0041caa0
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.004fc9d0
add esp, 0xc
jmp 0x4141d3
mov ecx, 0x94
lea esi, [ebp - 0x2e0]
lea edi, [ebp - 0x5ec]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2ec]
mov ebx, dword [ebp - 0x5ec]
mov cl, byte [ebp + 8]
test bl, 1
je 0x414209
test cl, cl
jne 0x4141ee
mov eax, ebx
shr eax, 4
test al, 1
jne 0x414209
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, ebx
cmovae ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov cl, byte [ebp + 8]
shr ebx, 4
test bl, 1
je 0x414240
test cl, cl
je 0x41425a
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.00414130
add esp, 4
test al, al
je 0x4142ee
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x414252
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4142ee
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0041f140
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x41427a
push 0xffffffffffffffff
push 0
push eax
call fcn.00407db0
lea ecx, [ebp - 0x38]
call fcn.004076c0
cmp dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x2e8]
jne 0x414180
lea ecx, [ebp - 0x20]
call fcn.004076c0
mov bl, 1
mov eax, dword [ebp - 0x90]
cmp eax, 0xffffffff
je 0x4142ae
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x54]
call fcn.0041f520
push dword [ebp - 0x54]
call fcn.0056582e
add esp, 4
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x6c]
call fcn.004076c0
lea ecx, [ebp - 0x8c]
call fcn.004076c0
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f6456
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.004076c0
xor bl, bl
jmp 0x41429c
Function at 0x4143a0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5b925c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], 0
mov ebx, edx
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x4143e2
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x41454e
lea eax, [esp + 0x1c]
push eax
call fcn.00416c50
push 2
push 0
push 0x5a185c
mov ecx, eax
call fcn.004152e0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004076c0
cmp esi, 0xffffffff
je 0x414466
lea eax, [esp + 0x34]
mov ecx, edi
push eax
call fcn.00416c50
mov esi, eax
mov ecx, edi
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.00416b10
mov edx, esi
mov ecx, eax
call fcn.00414130
add esp, 4
lea ecx, [esp + 0x1c]
mov bl, al
call fcn.004076c0
lea ecx, [esp + 0x34]
call fcn.004076c0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x414470
mov eax, dword [edi]
jmp 0x414472
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4143ce
test bl, 1
je 0x4144aa
cmp dword [edi + 0x14], 8
jb 0x414493
mov ecx, dword [edi]
jmp 0x414495
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41454e
test bl, 0x10
jne 0x4144d6
cmp dword [edi + 0x14], 8
jb 0x4144b7
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x14], 0
je 0x414509
push 0x5a1864
lea ecx, [esp + 0x20]
call fcn.00407700
mov ebx, 1
lea edx, [esp + 0x1c]
push ebx
mov ecx, edi
call fcn.00414130
add esp, 4
test al, al
jne 0x41450d
mov byte [esp + 0x13], al
jmp 0x414512
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x13], 1
test bl, 1
je 0x414520
lea ecx, [esp + 0x1c]
call fcn.004076c0
cmp byte [esp + 0x13], 0
je 0x41454e
cmp dword [edi + 0x14], 8
jb 0x41452f
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x4c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
Function at 0x414910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41491e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x414938
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41494b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x414950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x5b925c]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x414a32
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x4149a2
xor ecx, ecx
jmp 0x4149bf
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4149b0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.00416510
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x4149da
mov ecx, dword [eax]
jmp 0x4149dc
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00416510
lea ecx, [esp + 8]
call fcn.00417430
lea eax, [esp + 8]
cmp esi, eax
je 0x414a0a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407db0
lea ecx, [esp + 8]
call fcn.004076c0
lea ecx, [esp + 0x20]
call fcn.004076c0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
Function at 0x414a50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x5b925c]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push edi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x414aff
cmp word [esp + 0x20], 0
je 0x414aff
sub esp, 8
lea eax, [esp + 0x28]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x28], 0
jne 0x414ac3
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00416510
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414ad0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00416510
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
call fcn.00407760
lea eax, [esp + 8]
push eax
call fcn.00414950
add esp, 4
mov ecx, esi
test al, al
je 0x414b27
lea eax, [esp + 8]
push eax
call fcn.00407780
jmp 0x414b3e
sub esp, 8
mov eax, esp
mov dword [eax], 0x5a1868
mov dword [eax + 4], 3
call fcn.00416510
lea ecx, [esp + 8]
call fcn.004076c0
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
Function at 0x414b60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5b925c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x414b8d
mov ebx, dword [edi]
jmp 0x414b8f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414bd1
test al, 0x10
je 0x414bb3
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x414bbd
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00416b10
cmp dword [edi + 0x14], 8
jb 0x414be7
mov ecx, dword [edi]
jmp 0x414be9
mov ecx, edi
push dword [edi + 0x10]
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
push ecx
cmovae eax, dword [esp + 0x1c]
push dword [esp + 0x2c]
push eax
call fcn.00415280
add esp, 0x10
test eax, eax
jne 0x414c1a
test esi, esi
je 0x414c5e
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x414c64
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.00414b60
test al, al
je 0x414c5e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x414c62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x414c51
mov ecx, edi
call fcn.00414930
test al, al
jne 0x414c62
test esi, esi
je 0x414c5e
mov ecx, ebx
call fcn.0041ed00
mov dword [esi], eax
xor bl, bl
jmp 0x414c64
mov bl, 1
lea ecx, [esp + 0x14]
call fcn.004076c0
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret

Function at 0x414d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov dword [esp + 8], 0
mov esi, edx
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 8]
jb 0x414d50
mov ecx, dword [ecx]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.00411d80
mov eax, dword [esp + 8]
test eax, eax
je 0x414da1
cmp eax, 0xffffffff
je 0x414da1
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414da1
mov esi, dword [esp + 0xc]
cmp esi, edi
je 0x414da4
or esi, 0xffffffff
lea ecx, [esp + 8]
call fcn.00411d10
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414dc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x5b925c]
xor eax, esp
mov dword [esp + 0x258], eax
xor eax, eax
push esi
mov word [esp + 0x50], ax
mov esi, ecx
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x414ea9
cmp eax, 0x104
ja 0x414ea9
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xc]
call fcn.00407700
sub esp, 8
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
mov ecx, esp
cmovae eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
lea ecx, [esp + 0x40]
call fcn.00416510
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x414e49
mov ecx, dword [eax]
jmp 0x414e4b
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x28]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00416510
lea ecx, [esp + 0x20]
call fcn.00417430
lea eax, [esp + 0x20]
cmp esi, eax
je 0x414e79
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407db0
lea ecx, [esp + 0x20]
call fcn.004076c0
lea ecx, [esp + 0x38]
call fcn.004076c0
lea ecx, [esp + 8]
call fcn.004076c0
mov al, 1
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor al, al
pop esi
xor ecx, esp
call fcn.004f6456
mov esp, ebp
pop ebp
ret

Function at 0x414ec0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00417380
test al, al
jne 0x414f2c
mov ecx, esi
call fcn.00417380
test al, al
jne 0x414f2c
cmp dword [edi + 0x10], 0x104
jae 0x414f2c
cmp dword [esi + 0x10], 0x104
jae 0x414f2c
cmp dword [esi + 0x14], 8
jb 0x414ef5
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x414efd
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x414f2c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414f2c
test al, 1
je 0x414f26
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x414f40
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x10], 0x104
jae 0x414fd2
cmp dword [edi + 0x10], 0x104
jae 0x414fd2
cmp dword [edi + 0x14], 8
jb 0x414f66
mov eax, dword [edi]
jmp 0x414f68
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x414f70
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x414f86
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x414f9c
mov eax, dword [esi]
jmp 0x414f9e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414fc0
shr eax, 4
and al, 1
je 0x414fc0
mov edx, edi
mov ecx, esi
call fcn.00414fe0
mov bl, al
test bl, bl
jne 0x414fc9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret