joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b20d0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ebx
push edi
and esi, 0xfffffffc
mov edi, ebx
xor edi, dword [esp + 0x18]
add esi, eax
cmp eax, esi
je 0x4b2112
nop dword [eax]
imul edx, dword [eax], 0x5bd1e995
add eax, 4
imul edi, edi, 0x5bd1e995
mov ecx, edx
shr ecx, 0x18
xor ecx, edx
imul edx, ecx, 0x5bd1e995
xor edi, edx
cmp eax, esi
jne 0x4b20f0
and ebx, 3
je 0x4b2135
add esi, ebx
xor edx, edx
cmp eax, esi
je 0x4b212d
nop
movzx ecx, byte [eax]
inc eax
shl edx, 8
or edx, ecx
cmp eax, esi
jne 0x4b2120
xor edx, edi
imul edi, edx, 0x5bd1e995
mov eax, edi
shr eax, 0xd
xor eax, edi
imul ecx, eax, 0x5bd1e995
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
ret

Function at 0x4b2220
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
test edx, edx
je 0x4b2252
movzx ecx, word [esi]
lea esi, [esi + 2]
shl eax, 4
add ecx, eax
mov eax, ecx
shr eax, 0x17
and eax, 0x1e0
xor eax, ecx
and eax, 0xfffffff
sub edx, 1
jne 0x4b2231
pop esi
ret

Function at 0x4b2260
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
mov eax, ebp
and eax, 0xfffffffc
mov ecx, ebp
add eax, ebx
shl ebp, 0x18
push esi
mov esi, dword [esp + 0x20]
and ecx, 3
mov dword [esp + 0xc], eax
mov eax, edx
push edi
mov edi, esi
mov dword [esp + 0x20], ebp
xor eax, 0x74656462
xor edi, 0x6c796765
xor edx, 0x646f7261
xor esi, 0x736f6d65
cmp ebx, dword [esp + 0x10]
je 0x4b22e4
mov ebp, dword [esp + 0x10]
xor eax, dword [ebx]
add esi, edx
add edi, eax
rol edx, 7
xor edx, esi
rol eax, 8
xor eax, edi
rol esi, 0x10
add esi, eax
add edi, edx
rol eax, 0xb
xor eax, esi
rol edx, 9
xor esi, dword [ebx]
xor edx, edi
add ebx, 4
rol edi, 0x10
cmp ebx, ebp
jne 0x4b22b3
mov ebp, dword [esp + 0x20]
sub ecx, 1
je 0x4b2305
sub ecx, 1
je 0x4b22fc
sub ecx, 1
jne 0x4b230a
movzx ecx, byte [ebx + 2]
shl ecx, 0x10
or ebp, ecx
movzx ecx, byte [ebx + 1]
shl ecx, 8
or ebp, ecx
movzx ecx, byte [ebx]
or ebp, ecx
add esi, edx
xor eax, ebp
add edi, eax
rol edx, 7
xor edx, esi
rol eax, 8
xor eax, edi
rol esi, 0x10
add edi, edx
add esi, eax
rol eax, 0xb
xor eax, esi
rol edx, 9
xor edx, edi
xor esi, ebp
add esi, edx
rol edi, 0x10
xor edi, 0xff
rol edx, 7
add edi, eax
xor edx, esi
rol eax, 8
xor eax, edi
rol esi, 0x10
add edi, edx
add esi, eax
rol eax, 0xb
xor eax, esi
rol edx, 9
xor edx, edi
rol edi, 0x10
add edi, eax
add esi, edx
rol eax, 8
rol edx, 7
xor eax, edi
xor edx, esi
rol eax, 0xb
add edi, edx
rol edx, 9
mov ecx, edi
rol ecx, 0x10
xor eax, ecx
xor eax, edx
xor eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4b2390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8f1c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0
push 8
mov dword [ebp - 4], 0
call fcn.0058ea0c
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push dword [ebp + 8]
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004f42d0
mov edi, eax
mov byte [ebp - 4], 0
push 1
mov ecx, edi
call fcn.0047f190
mov ecx, dword [edi]
push dword [ebp + 0xc]
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x5c53f0]
mov ecx, edi
call esi
mov dword [ebx + 4], edi
mov eax, ebx
mov word [ebx + 8], 1
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0x14
mov dword [ebx + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4bf8b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
add ecx, 4
push edi
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov eax, dword fs:[0x2c]
mov dword [ecx], esi
mov ecx, dword [0x7205ec]
mov edi, dword [eax + ecx*4]
cmp byte [edi + 0x30], 0
jne 0x4bf8fd
call fcn.0058f754
lea ecx, [edi + 0x18]
mov dword [esi + 0xc], ecx
mov eax, dword [ecx]
mov dword [esi + 0x10], eax
mov eax, esi
pop edi
mov dword [ecx], 0
pop esi
ret 8
Function at 0x4c7cb0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba3f4
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
test eax, eax
jne 0x4c7dae
push 0x64
call fcn.0058ea0c
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], 0xffffffff
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
mov word [eax + 0x60], 0
mov dword [edi], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
cmp eax, 1
je 0x4c7df8
mov esi, dword [edi]
push 0x64
call fcn.0058ea0c
add esp, 4
mov dword [ebp - 0x10], eax
push dword [edi]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004c6cc0
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
cmp eax, 1
jne 0x4c7df8
test esi, esi
je 0x4c7df8
mov ecx, esi
call fcn.004c6e30
push 0x64
push esi
call fcn.0058e6fb
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4db2e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb9ae
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4000
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x4db3b1
push 0xffffffffffffffff
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.004ae6d0
mov ecx, dword [edi]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [edi], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4db3a8
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x4db3a8
push 4
push 2
push dword [ebp - 0x20]
call fcn.004597e0
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [edi + 8], 0
jne 0x4db406
mov ecx, esi
mov edx, 0x685d10
mov ebx, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4db3dd
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x4db3c3
push str.C:_tempqt_common
push 0x11
jmp 0x4db3ff
mov ecx, 0x685d30
mov edx, 0xc
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x4db406
add esi, 4
add ecx, 4
sub edx, 4
jae 0x4db3e7
push str.C:_tempqt_user
push 0xf
mov ecx, edi
call fcn.00487640
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f0090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x18], 0
push esi
mov esi, ecx
mov dword [esp + 4], esi
jbe 0x4f0256
push ebx
push ebp
push edi
xor edi, edi
mov dword [esp + 0x14], edi
nop
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x10]
add edx, edi
xor ebp, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebp
mov al, byte [edx + ebp]
cmp al, 0xff
je 0x4f022d
cmp byte [esp + 0x2c], 0
movzx eax, al
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x80]
lea ebx, [eax + ecx*4]
je 0x4f01a3
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edi, dword [esi + 8]
mov edx, dword [ebx + 8]
dec edi
shl eax, 4
add eax, ecx
add eax, edx
xor eax, dword [esi + 0xc]
and edi, eax
mov eax, edi
and edi, 0x7f
shr eax, 7
imul esi, eax, 0x88
mov eax, dword [esp + 0x10]
add esi, dword [eax + 0x10]
movzx eax, byte [edi + esi]
cmp eax, 0xff
je 0x4f01aa
mov ebp, ecx
nop word [eax + eax]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x80]
lea ecx, [eax + ecx*4]
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x4f0154
cmp edx, dword [ecx + 8]
jne 0x4f0154
cmp ebp, dword [ecx + 4]
jne 0x4f0154
mov eax, dword [ebx + 0xc]
cmp eax, dword [ecx + 0xc]
je 0x4f019d
inc edi
cmp edi, 0x80
jne 0x4f0192
mov eax, dword [esp + 0x10]
add esi, 0x88
mov ecx, esi
xor edi, edi
sub ecx, dword [eax + 0x10]
mov eax, 0x78787879
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
shr eax, 7
cmp ecx, eax
cmove esi, dword [edx + 0x10]
mov edx, dword [ebx + 8]
movzx eax, byte [edi + esi]
cmp eax, 0xff
jne 0x4f0130
mov ebp, dword [esp + 0x1c]
jmp 0x4f01aa
mov esi, dword [esi + 0x10]
add esi, edi
mov edi, ebp
mov dl, byte [esi + 0x85]
cmp dl, byte [esi + 0x84]
jne 0x4f01c5
mov ecx, esi
call fcn.004ef5c0
mov dl, byte [esi + 0x85]
movzx eax, dl
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x80]
mov al, byte [eax + ecx*4]
mov byte [esi + 0x85], al
mov byte [edi + esi], dl
lea edi, [ecx*4 + 0x10]
mov eax, dword [esi + 0x80]
add edi, eax
movups xmm0, xmmword [ebx]
movups xmmword [eax + ecx*4], xmm0
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x4f0221
nop word [eax + eax]
push 8
call fcn.0058ea0c
mov ecx, dword [esi]
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [edi], eax
lea edi, [eax + 4]
mov esi, dword [esi + 4]
test esi, esi
jne 0x4f0200
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x1c], ebp
cmp ebp, 0x80
jb 0x4f00c3
add edi, 0x88
sub dword [esp + 0x28], 1
mov dword [esp + 0x14], edi
jne 0x4f00b0
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 0xc
Function at 0x4f31f0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x4f3ad0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
mov ebp, ecx
xor bl, bl
push esi
push edi
mov esi, dword [ebp + 4]
lea edi, [esi + 0x40]
test edi, edi
je 0x4f3afa
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x4f3af8
mov ecx, edi
call fcn.004f0cc0
mov bl, 1
cmp byte [esi + 0x48], 0
je 0x4f3b22
cmp byte [esi + 0x68], 0
jne 0x4f3b0c
mov byte [esi + 0x69], 1
jmp 0x4f3b22
push 0
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push ebp
call fcn.004f3030
add esp, 8
test bl, bl
je 0x4f3b41
xor edx, edx
mov eax, 1
lock cmpxchg dword [edi], edx
cmp eax, 1
je 0x4f3b41
mov ecx, edi
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004f0e60
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4f3d30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 0x20
jb 0x4f3da5
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0xc], edx
sub dword [esp + 0xc], ecx
mov dword [esp + 8], 0x10
lea esi, [ecx + 0x10]
sub dword [esp + 8], ecx
nop
movups xmm1, xmmword [eax + edx]
mov ecx, dword [esp + 0xc]
add eax, 0x20
movaps xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
movups xmm2, xmmword [ecx + esi]
mov ecx, dword [esp + 8]
pxor xmm0, xmm1
movups xmmword [esi - 0x10], xmm0
movaps xmm0, xmm2
psrlw xmm2, 8
psllw xmm0, 8
pxor xmm0, xmm2
movups xmmword [esi], xmm0
add esi, 0x20
add ecx, esi
cmp ecx, edi
jbe 0x4f3d60
mov ecx, dword [esp + 0x14]
lea esi, [eax + 0x10]
mov edx, dword [esp + 0x1c]
cmp esi, edi
ja 0x4f3dcf
movups xmm1, xmmword [eax + ecx]
movaps xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
pxor xmm0, xmm1
movups xmmword [eax + edx], xmm0
mov eax, esi
xor esi, esi
cmp eax, edi
jae 0x4f3e01
add edx, eax
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
nop
cmp esi, 0x10
jae 0x4f3e01
mov cx, word [edx + ecx]
add eax, 2
rol cx, 8
add esi, 2
mov word [edx], cx
add edx, 2
mov ecx, dword [esp + 0x14]
cmp eax, edi
jb 0x4f3de0
mov eax, edi
pop edi
pop esi
add esp, 8
ret

Function at 0x4f9e30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd5db
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x24
call fcn.0058ea0c
mov esi, eax
mov dword [ebp - 0x14], esi
push 8
mov dword [ebp - 4], 0
call fcn.0058ea0c
add esp, 8
mov dword [ebp - 0x18], eax
push 0
push dword [ebp + 8]
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004f42d0
mov dword [esi], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
mov dword [esi + 8], esi
mov dword [esi + 0xc], 2
mov dword [esi + 0x10], 1
mov dword [ebx], esi
mov byte [esi + 0x20], 1
mov eax, dword [ebx]
push 0x22
mov dword [ebp - 4], 2
mov edi, dword [eax]
mov eax, dword [edi]
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x5c53f0]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ffb70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bde2b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x118
call fcn.0058ea0c
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
mov dword [esi], 0
call fcn.005021c0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x60], 0
push fcn.004019e0
push fcn.00402980
push 0xa
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 2
push eax
call fcn.0058f005
push fcn.004019e0
push fcn.00402980
push 2
push 0xc
lea eax, [esi + 0xdc]
mov byte [ebp - 4], 3
push eax
call fcn.0058f005
push fcn.004e6cb0
push fcn.004e6c30
push 4
push 4
lea eax, [esi + 0xf4]
mov byte [ebp - 4], 4
push eax
call fcn.0058f005
and dword [esi + 0x104], 0xc0000000
mov eax, 1
or byte [esi + 0x108], 3
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0
mov dword [edi], esi
lock xadd dword [esi], eax
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 0x504170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be565
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ecx + 0x14]
mov dword [ebp - 0x24], esi
test eax, eax
jl 0x504336
mov ebx, dword [ebp + 0xc]
jg 0x504336
test ebx, ebx
jb 0x504336
test eax, eax
jne 0x504336
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
cmp dword [ecx + 0x78], eax
je 0x50428b
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
nop dword [eax]
push dword [ecx + 0x78]
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push 1
push eax
call fcn.0059b095
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x78]
call fcn.0059adb3
mov edx, dword [ebp - 0x18]
add esp, 0x14
test eax, eax
setne al
mov byte [ebp - 0xd], al
test al, al
je 0x504219
test edx, edx
je 0x504259
xor ecx, ecx
mov eax, edx
add esi, eax
adc edi, ecx
cmp byte [ebp - 0xd], cl
jne 0x50431e
test edx, edx
jne 0x504241
call fcn.0059acca
cmp dword [eax], 4
jne 0x5042ec
mov ecx, dword [ebp - 0x14]
jmp 0x5041e0
cmp edi, dword [ebp + 0x10]
jg 0x5042ec
jl 0x504254
cmp esi, ebx
jae 0x5042ec
mov ecx, dword [ebp - 0x14]
jmp 0x5041e0
mov ebx, dword [ebp - 0x14]
push dword [ebx + 0x78]
call fcn.0059786a
push 0
push edx
push eax
push dword [ebx + 0x78]
call fcn.0059b4b9
add esp, 0x14
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ecx + 0x90], 0xffffffff
je 0x5042f2
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
nop word [eax + eax]
mov ecx, ebx
mov edx, 0x7fffffff
sub ecx, esi
sbb eax, edi
test eax, eax
ja 0x5042b7
jb 0x5042b5
cmp ecx, edx
jae 0x5042b7
mov edx, ecx
mov eax, dword [ebp + 8]
push edx
add eax, esi
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x90]
call fcn.0059bc03
mov ecx, eax
add esp, 0xc
test ecx, ecx
jle 0x5042e7
cdq
add esi, eax
mov eax, dword [ebp + 0x10]
adc edi, edx
cmp edi, eax
jl 0x5042a0
jg 0x5042e7
cmp esi, ebx
jb 0x5042a0
cmp ecx, 0xffffffff
jne 0x50431e
mov eax, esi
or eax, edi
jne 0x50431e
or esi, 0xffffffff
lea eax, [ebp - 0x30]
push esi
push eax
or edi, esi
call fcn.004f71a0
add esp, 8
mov ecx, dword [ebp - 0x24]
push eax
push 1
mov dword [ebp - 4], 1
call fcn.005020a0
lea ecx, [ebp - 0x30]
call fcn.004019e0
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x20]
push 0x16
push eax
call fcn.004f71a0
add esp, 8
push eax
push 1
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.005020a0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x504377
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x504377
push 4
push 2
push dword [ebp - 0x20]
call fcn.004597e0
add esp, 0xc
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x506d30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be925
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.005027b0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004906d0
mov ecx, dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.005027b0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004906d0
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x18]
test eax, eax
setne bl
or esi, 0xffffffff
test ecx, ecx
je 0x506dbd
mov eax, esi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x506dbd
push 4
push 2
push dword [ebp - 0x18]
call fcn.004597e0
add esp, 0xc
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x506ddc
lock xadd dword [eax], esi
cmp esi, 1
jne 0x506ddc
push 4
push 2
push dword [ebp - 0x24]
call fcn.004597e0
add esp, 0xc
test bl, bl
jne 0x506df2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], 2
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x507060
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be9bd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
push 1
push 0x652c84
push 2
call fcn.0048f820
mov ecx, 0x5c
test al, al
je 0x5070bd
mov word [ebp - 0x14], cx
mov ecx, esi
push 1
push dword [ebp - 0x14]
call fcn.0048a5d0
cmp eax, 3
jle 0x507233
cmp dword [esi + 8], 2
jne 0x5070d1
mov eax, dword [esi + 4]
cmp word [eax + 2], 0x3a
je 0x507233
mov ebx, dword [ebp + 0xc]
or edi, 0xffffffff
cmp byte [ebp + 0x10], 0
je 0x50714a
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.00529a60
add esp, 8
push ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.004906d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 4], edi
setne byte [ebp - 0xd]
test ecx, ecx
je 0x507130
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x507130
push 4
push 2
push dword [ebp - 0x20]
call fcn.004597e0
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x50714a
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x5c
mov word [ebp - 0x14], ax
push 1
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0048c420
mov dword [ebp - 4], 0xffffffff
cmp eax, 1
jl 0x507233
push eax
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.0048c4a0
push 1
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 2
push ebx
push eax
call fcn.00507060
add esp, 0xc
test al, al
jne 0x5071a2
xor bl, bl
jmp 0x507200
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00529a60
add esp, 8
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004906d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x2c]
test eax, eax
mov byte [ebp - 4], 2
setne bl
test ecx, ecx
je 0x5071ed
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x5071ed
push 4
push 2
push dword [ebp - 0x2c]
call fcn.004597e0
add esp, 0xc
test bl, bl
je 0x5071f5
mov bl, 1
jmp 0x507200
push esi
lea ecx, [ebp - 0xd]
call fcn.00506510
mov bl, al
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x50721f
lock xadd dword [eax], edi
cmp edi, 1
jne 0x50721f
push 4
push 2
push dword [ebp - 0x38]
call fcn.004597e0
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x507490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8f7d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.00487190
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0
test eax, eax
je 0x5074db
mov eax, dword [eax]
cmp eax, 1
jle 0x5074e8
push 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.0048d7d0
push dword [ebp - 0x18]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp esi, 0x104
jbe 0x507530
push esi
lea ecx, [ebp - 0x1c]
call fcn.0048ee80
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x507517
mov eax, dword [eax]
cmp eax, 1
jle 0x507524
push 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.0048d7d0
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp esi, 2
jb 0x50756b
mov eax, dword [ebp - 0x18]
cmp word [eax + 2], 0x3a
jne 0x50756b
movzx ecx, word [eax]
call fcn.0048ffe0
movzx edi, ax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x507558
mov eax, dword [eax]
cmp eax, 1
jle 0x507565
push 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.0048d7d0
mov eax, dword [ebp - 0x18]
mov word [eax], di
push esi
lea ecx, [ebp - 0x1c]
call fcn.0048ee80
push dword [ebp - 0x10]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00502170
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5075a7
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x5075a7
push 4
push 2
push dword [ebp - 0x1c]
call fcn.004597e0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret