joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0630
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64aab9
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00490b40
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov al, byte [edx + 8]
mov byte [ecx + 8], al
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov al, byte [edx + 9]
mov byte [ecx + 9], al
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov al, byte [edx + 0xa]
mov byte [ecx + 0xa], al
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov al, byte [edx + 0xb]
mov byte [ecx + 0xb], al
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004995d0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004995d0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004995d0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
add ecx, 0x30
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004995d0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov eax, dword [eax + 0x44]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x48]
mov dword [ecx + 0x48], eax
mov edx, dword [edx + 0x4c]
mov dword [ecx + 0x4c], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b86b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x644ff0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004afcc0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00486e10
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00485d80
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00486560
mov ecx, dword [ebp - 0x10]
call fcn.004b85e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e3ab0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64ce1c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov edx, dword [edx + 0x14]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 0x18]
mov byte [eax + 0x18], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 0x19]
mov byte [eax + 0x19], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 0x1a]
mov byte [eax + 0x1a], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 8]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004995d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0x3c
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.004995d0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0x48
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.004995d0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.004995d0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov dword [ecx + 0x60], eax
mov edx, dword [edx + 0x64]
mov dword [ecx + 0x64], edx
mov esi, dword [ebp + 8]
add esi, 0x68
mov edi, dword [ebp - 0x10]
add edi, 0x68
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
add eax, 0x98
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x98
call fcn.004e3790
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4e8d40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64d2a7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004079a0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004079a0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004079a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.004079a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.004079a0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00483f40
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4eeac0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x4eead8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x4eeb2a
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x4eeaf9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x4eeb1b
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
xor edx, edx
sub edx, ecx
and edx, 0xedb88320
xor eax, edx
mov dword [ebp - 8], eax
jmp 0x4eeaf0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x6b0040], ecx
jmp 0x4eeacf
mov dword [ebp - 4], 0x100
jmp 0x4eeb3c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x800
jae 0x4eeb74
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x6afc40]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov eax, dword [ebp - 0x10]
shr eax, 8
xor eax, dword [edx*4 + 0x6b0040]
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x6b0040], eax
jmp 0x4eeb33
mov dword [0x6b003c], 0x5433d0
mov dword [0x6b0030], 0x5433d0
mov esp, ebp
pop ebp
ret
Function at 0x4f0690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, ecx
push esi
push edi
cmp dword [eax + 0x34], 0xa
jae 0x4f06f5
nop word [eax + eax]
mov esi, dword [eax]
cmp esi, 8
jae 0x4f06cd
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x4f07bd
mov dl, byte [ecx]
lea edi, [esi + 8]
inc ecx
movzx edx, dl
mov dword [eax + 8], ecx
mov ecx, 0x18
sub ecx, esi
shl edx, cl
or edx, dword [eax + 4]
jmp 0x4f06d2
mov edx, dword [eax + 4]
mov edi, esi
mov ecx, edx
shr edx, 0x18
shl ecx, 8
mov dword [eax + 4], ecx
lea ecx, [edi - 8]
mov dword [eax], ecx
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x70d6], dl
inc dword [eax + 0x34]
cmp dword [eax + 0x34], 0xa
jb 0x4f06a0
mov dword [eax + 0x70e0], 0
movzx ecx, byte [eax + 0x70dc]
shl ecx, 8
mov dword [eax + 0x70e0], ecx
movzx edx, byte [eax + 0x70dd]
or edx, ecx
shl edx, 8
mov dword [eax + 0x70e0], edx
movzx ecx, byte [eax + 0x70de]
or ecx, edx
shl ecx, 8
mov dword [eax + 0x70e0], ecx
movzx edx, byte [eax + 0x70df]
or edx, ecx
mov dword [eax + 0x70e0], edx
mov cl, byte [eax + 0x70d6]
cmp cl, 0x31
jne 0x4f07c2
cmp byte [eax + 0x70d7], 0x41
jne 0x4f07c2
cmp byte [eax + 0x70d8], 0x59
jne 0x4f07c2
cmp byte [eax + 0x70d9], 0x26
jne 0x4f07c2
cmp byte [eax + 0x70da], 0x53
jne 0x4f07c2
cmp byte [eax + 0x70db], 0x59
jne 0x4f07c2
cmp byte [eax + 0x70e8], 0
jne 0x4f0791
add dword [eax + 0x70f0], 1
adc dword [eax + 0x70f4], 0
add dword [eax + 0x70f8], 1
mov byte [eax + 0x70e8], 1
adc dword [eax + 0x70fc], 0
mov ecx, dword [eax + 0x70e4]
rol ecx, 1
xor ecx, edx
mov dword [eax + 0x70e4], ecx
mov dword [eax + 0x30], 2
pop edi
xor eax, eax
pop esi
ret
cmp cl, 0x17
jne 0x4f0858
cmp byte [eax + 0x70d7], 0x72
jne 0x4f0858
cmp byte [eax + 0x70d8], 0x45
jne 0x4f0858
cmp byte [eax + 0x70d9], 0x38
jne 0x4f0858
cmp byte [eax + 0x70da], 0x50
jne 0x4f0858
cmp byte [eax + 0x70db], 0x90
jne 0x4f0858
cmp byte [eax + 0x70e8], 0
jne 0x4f0813
add dword [eax + 0x70f0], 1
adc dword [eax + 0x70f4], 0
mov esi, dword [eax + 4]
mov byte [eax + 0x70e8], 1
test esi, esi
je 0x4f0828
mov byte [eax + 0x70ea], 1
mov edx, dword [eax]
mov ecx, edx
and ecx, 7
mov dword [eax + 0x30], 0xb
sub edx, ecx
shl esi, cl
mov ecx, dword [eax + 0x70e0]
mov dword [eax], edx
mov dword [eax + 4], esi
cmp ecx, dword [eax + 0x70e4]
je 0x4f07bd
mov byte [eax + 0x70e9], 1
pop edi
mov eax, 1
pop esi
ret
Function at 0x504360
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 8]
shr eax, 2
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
shr ecx, 1
add ecx, 3
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp - 8]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x5043b6
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jae 0x5043ce
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [edx + ecx*4], eax
jmp 0x5043a4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 4]
mov dword [ebp - 4], eax
imul ecx, dword [ebp + 8], 3
mov edx, dword [ebp - 8]
lea eax, [edx + ecx*4 + 0x70]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x50446d
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
xor edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + str.cw]
shl ecx, 8
or edx, ecx
mov eax, dword [ebp - 4]
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
shl ecx, 0x10
or edx, ecx
mov eax, dword [ebp - 4]
and eax, 0xff
movzx ecx, byte [eax + str.cw]
shl ecx, 0x18
or edx, ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0xc]
shl edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 0x100
je 0x504465
mov dword [ebp - 0xc], 0x1b
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
jmp 0x5044ce
cmp dword [ebp - 0x10], 4
jne 0x5044ce
cmp dword [ebp + 8], 6
jbe 0x5044ce
mov edx, dword [ebp - 4]
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
shl edx, 8
or eax, edx
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
shl edx, 0x10
or eax, edx
mov ecx, dword [ebp - 4]
shr ecx, 0x18
movzx edx, byte [ecx + str.cw]
shl edx, 0x18
or eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax + edx]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x1c]
jne 0x5043f0
mov esp, ebp
pop ebp
ret 4
Function at 0x50b220
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64dadb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0050d680
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
je 0x50b271
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x50b271
mov al, 1
jmp 0x50b429
cmp dword [ebp - 0x18], 1
je 0x50b288
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x50b3b0
cmp dword [ebp - 0x18], 0
je 0x50b3b0
lea ecx, [ebp - 0x24]
call fcn.00499a00
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 1
je 0x50b2ad
mov byte [ebp - 0xd], 1
jmp 0x50b2b1
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050cee0
movzx edx, al
test edx, edx
je 0x50b3a1
push 0
lea ecx, [ebp - 0x24]
call fcn.0040b0c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x50b2fe
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00485d80
mov al, byte [ebp - 0xe]
jmp 0x50b429
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x50b326
mov byte [ebp - 0xf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00485d80
mov al, byte [ebp - 0xf]
jmp 0x50b429
lea ecx, [ebp - 0x5c]
call fcn.0049d750
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x24]
call fcn.0040b0c0
push eax
lea ecx, [ebp - 0x5c]
call fcn.0050e5b0
movzx eax, al
test eax, eax
jne 0x50b373
mov byte [ebp - 0x10], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.0049dc90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00485d80
mov al, byte [ebp - 0x10]
jmp 0x50b429
lea ecx, [ebp - 0x5c]
call fcn.004a15f0
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.0049dc90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00485d80
mov al, byte [ebp - 0x11]
jmp 0x50b429
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00485d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x50b3c1
xor al, al
jmp 0x50b429
lea ecx, [ebp - 0x94]
call fcn.0049d750
mov dword [ebp - 4], 2
push 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x94]
call fcn.0050e5b0
movzx edx, al
test edx, edx
jne 0x50b406
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0049dc90
mov al, byte [ebp - 0x12]
jmp 0x50b429
lea ecx, [ebp - 0x94]
call fcn.004a15f0
mov byte [ebp - 0x13], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0049dc90
mov al, byte [ebp - 0x13]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x50b440
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x649ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0050d680
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x50b48e
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x50b48e
mov al, 1
jmp 0x50b51e
cmp dword [ebp - 0x14], 1
je 0x50b4a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x50b51c
cmp dword [ebp - 0x14], 0
je 0x50b51c
lea ecx, [ebp - 0x20]
call fcn.00499a00
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 1
je 0x50b4c2
mov byte [ebp - 0xd], 1
jmp 0x50b4c6
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050cee0
movzx edx, al
test edx, edx
je 0x50b50d
push 0
lea ecx, [ebp - 0x20]
call fcn.0040b0c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call fcn.0049cfb0
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00485d80
mov al, byte [ebp - 0xe]
jmp 0x50b51e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00485d80
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x50b8d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x649348
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0050f220
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x50b935
mov ecx, dword [ebp - 0x14]
and ecx, 0x10
jne 0x50b935
mov edx, dword [ebp - 0x14]
and edx, 1
je 0x50b935
mov eax, dword [ebp - 0x14]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050c5f0
movzx edx, al
test edx, edx
jne 0x50b935
xor al, al
jmp 0x50b9d4
mov eax, dword [ebp + 8]
push eax
call fcn.0050d680
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
je 0x50b959
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x50b959
mov al, 1
jmp 0x50b9d4
cmp dword [ebp - 0x18], 0
je 0x50b9d2
lea ecx, [ebp - 0x24]
call fcn.00499a00
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 1
je 0x50b97a
mov byte [ebp - 0xd], 1
jmp 0x50b97e
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050cee0
movzx edx, al
test edx, edx
je 0x50b9c3
lea ecx, [ebp - 0x24]
call fcn.0040b0c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call fcn.0049cfb0
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00485d80
mov al, byte [ebp - 0xe]
jmp 0x50b9d4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00485d80
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x50b9f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64db3b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x6a56e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], 0x114
mov ecx, dword [ebp + 8]
call fcn.00492280
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x24c], ecx
cmp dword [ebp - 0x24c], 0x22a
jae 0x50ba49
jmp 0x50ba4e
call fcn.00615a2d
xor edx, edx
mov eax, dword [ebp - 0x24c]
mov word [ebp + eax - 0x23c], dx
lea ecx, [ebp - 0x23c]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
jne 0x50ba86
xor al, al
jmp 0x50bbc6
cmp dword [ebp - 0x244], 0x114
jae 0x50badc
mov edx, 2
imul eax, edx, 0x114
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0x22a
jae 0x50bab1
jmp 0x50bab6
call fcn.00615a2d
xor ecx, ecx
mov edx, dword [ebp - 0x250]
mov word [ebp + edx - 0x23c], cx
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00499cf0
mov al, 1
jmp 0x50bbc6
lea ecx, [ebp - 0x25c]
call fcn.00499a00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.004a5c60
push eax
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x50bb41
mov byte [ebp - 0x23d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.00485d80
mov al, byte [ebp - 0x23d]
jmp 0x50bbc6
mov eax, dword [ebp - 0x244]
push eax
lea ecx, [ebp - 0x25c]
call fcn.0050c050
lea ecx, [ebp - 0x25c]
call fcn.00417590
cmp eax, dword [ebp - 0x248]
jne 0x50bb77
mov ecx, dword [ebp - 0x244]
sub ecx, 1
cmp ecx, dword [ebp - 0x248]
je 0x50bb98
mov byte [ebp - 0x23e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.00485d80
mov al, byte [ebp - 0x23e]
jmp 0x50bbc6
lea edx, [ebp - 0x25c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00499b70
mov byte [ebp - 0x23f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.00485d80
mov al, byte [ebp - 0x23f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006158c5
mov esp, ebp
pop ebp
ret 4
Function at 0x50be50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x6a56e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], 0x114
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x234], ecx
cmp dword [ebp - 0x234], 0x22a
jae 0x50be89
jmp 0x50be8e
call fcn.00615a2d
xor edx, edx
mov eax, dword [ebp - 0x234]
mov word [ebp + eax - 0x230], dx
lea ecx, [ebp - 0x230]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x238], eax
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp + 8]
call fcn.00499cf0
mov eax, dword [ebp + 8]
push eax
call fcn.0050de00
cmp dword [ebp - 0x238], 0
je 0x50beef
cmp dword [ebp - 0x238], 0x114
jae 0x50beef
mov dword [ebp - 0x23c], 1
jmp 0x50bef9
mov dword [ebp - 0x23c], 0
mov al, byte [ebp - 0x23c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006158c5
mov esp, ebp
pop ebp
ret 4

Function at 0x50bf10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64dbb0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0050d680
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0050d680
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 1
je 0x50bf72
cmp dword [ebp - 0x18], 1
je 0x50bf72
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x50bf72
mov al, 1
jmp 0x50c032
cmp dword [ebp - 0x14], 0
jne 0x50bf82
cmp dword [ebp - 0x18], 0
je 0x50c030
lea ecx, [ebp - 0x30]
call fcn.00499a00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00499a00
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 1
je 0x50bfaf
cmp dword [ebp - 0x18], 1
je 0x50bfaf
mov byte [ebp - 0xd], 1
jmp 0x50bfb3
mov byte [ebp - 0xd], 0
movzx ecx, byte [ebp - 0xd]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0050d5d0
movzx eax, al
test eax, eax
je 0x50c015
lea ecx, [ebp - 0x24]
call fcn.0040b0c0
push eax
lea ecx, [ebp - 0x30]
call fcn.0040b0c0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
call fcn.0049cfb0
mov byte [ebp - 0xe], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00485d80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00485d80
mov al, byte [ebp - 0xe]
jmp 0x50c032
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00485d80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00485d80
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8