joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a94a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x5a961d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5a95fc
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x5a94f6
mov eax, 0x104
mov dword [esp + 0x1c], eax
lea edx, [eax + eax + 2]
push edx
call fcn.005ed45a
mov esi, eax
add esp, 4
test esi, esi
je 0x5a961d
mov eax, dword [esp + 0x1c]
mov edi, esi
lea ecx, [eax + eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x5a9614
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5a9614
mov edi, dword [esp + 0x20]
test edi, edi
je 0x5a9614
push ebp
push edi
call fcn.005a94a0
add esp, 8
test eax, eax
je 0x5a9609
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x6a5834]
test eax, eax
je 0x5a95a5
test ebp, ebp
je 0x5a95a5
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x5a9614
jmp 0x5a95b1
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x5a9614
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x5a95f3
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + edx + 2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x5a9614
mov eax, dword [esp + 0x14]
jmp 0x5a954e
push esi
call fcn.005ed483
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x5a9614
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.005ed483
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x5adc90
Capabilities:
Get disk information

Disassembly:
mov eax, 0x5ebc
call fcn.00466c20
mov eax, dword [ecx + 0x14]
push ebx
cmp eax, 2
mov dword [esp + 0xc], ecx
jne 0x5adcc4
cmp dword [ecx + 8], 4
jne 0x5adcc4
mov eax, dword [esp + 0x5ec4]
push eax
call fcn.005add80
pop ebx
add esp, 0x5ebc
ret 4
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
jne 0x5adcda
pop ebx
add esp, 0x5ebc
ret 4
mov ecx, dword [0x69d2f8]
mov edx, dword [0x69d2fc]
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebp, 1
xor edi, edi
mov esi, ebp
shl ebp, 1
test ebx, esi
je 0x5add26
lea ecx, [esp + 0x10]
lea eax, [edi + 0x41]
push ecx
mov word [esp + 0x14], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x5add26
cmp eax, 3
je 0x5add26
cmp eax, 5
je 0x5add26
not esi
and ebx, esi
inc edi
cmp edi, 0x1a
jl 0x5adcf8
xor esi, esi
mov ecx, 0x17ab
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], esi
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x5ed0]
push edx
push edi
push ebx
call fcn.005aadc0
add esp, 0xc
test eax, eax
je 0x5add6a
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.005ae440
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5ebc
ret 4
Function at 0x5b3360
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x108]
push edi
mov dword [esp + 0x14], ecx
xor edx, edx
xor eax, eax
mov al, byte [edx + str.80_]
mov ecx, eax
and eax, 7
sar ecx, 3
mov bl, byte [eax*2 + 0x6359e8]
mov cl, byte [ecx + esi]
test bl, cl
setne al
mov byte [esp + edx + 0x50], al
inc edx
cmp edx, 0x38
jl 0x5b3377
mov eax, 0x1e
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x110], 1
je 0x5b33b8
lea eax, [ebx + ebx]
lea edi, [esp + eax*4 + 0x8c]
lea ebp, [esp + eax*4 + 0x88]
xor eax, eax
xor ecx, ecx
mov cl, byte [ebx + 0x635a90]
mov dword [edi], 0
mov esi, ecx
mov dword [ebp], 0
mov edx, esi
cmp edx, 0x1c
jge 0x5b33ec
mov cl, byte [esp + edx + 0x50]
jmp 0x5b33f0
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x1c
jl 0x5b33e1
mov eax, 0x1c
lea edx, [esi + 0x1c]
cmp edx, 0x38
jge 0x5b340e
mov cl, byte [esp + edx + 0x50]
jmp 0x5b3412
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x38
jl 0x5b3403
xor edx, edx
mov eax, 0x6359f8
xor ecx, ecx
mov cl, byte [edx + 0x635aa0]
cmp byte [esp + ecx + 0x18], 0
je 0x5b343d
mov ecx, dword [eax]
mov esi, dword [ebp]
or esi, ecx
mov dword [ebp], esi
xor ecx, ecx
mov cl, byte [edx + 0x635ab8]
cmp byte [esp + ecx + 0x18], 0
je 0x5b3454
mov ecx, dword [eax]
mov esi, dword [edi]
or esi, ecx
mov dword [edi], esi
add eax, 4
inc edx
cmp eax, str.80_
jl 0x5b3424
mov eax, dword [esp + 0x10]
inc ebx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x5b33ab
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x88]
push edx
call fcn.005b34a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret 8
Function at 0x5b4ee0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61c110
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00487850
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00487850
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x6a6594]
test eax, eax
je 0x5b4f98
cmp ebp, eax
jne 0x5b4f98
mov eax, dword [0x6a6598]
test eax, eax
je 0x5b4f98
cmp ebx, eax
jb 0x5b4f98
add eax, 0x493e0
cmp eax, ebx
jb 0x5b4f98
mov ebp, dword [0x6a659c]
push 1
inc ebp
push 0x6a64b0
lea ecx, [esp + 0x18]
mov dword [0x6a659c], ebp
call fcn.004f6ed0
push 0x6a64e0
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.00487aa0
push 0x6a64d0
mov ecx, edi
call fcn.00487aa0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x5b500e
push edi
push esi
mov dword [0x6a659c], 0
call fcn.005b5310
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x6a64b0
call fcn.004f6ed0
push 0xffffffffffffffff
push 0
mov ecx, 0x6a64e0
mov dword [esp + 0x38], 1
mov dword [0x6a6594], ebp
mov dword [0x6a6598], ebx
call fcn.00487850
push esi
mov ecx, 0x6a64e0
call fcn.00487aa0
push 0xffffffffffffffff
push 0
mov ecx, 0x6a64d0
call fcn.00487850
push edi
mov ecx, 0x6a64d0
call fcn.00487aa0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004f6f30
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x5b5030
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x61c136
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.005e6691
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.005e6691
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x5b5169
mov edx, dword [0x680268]
mov cx, word [0x68026c]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.005ece05
mov eax, dword [esi + 8]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.005e68d3
mov edx, dword [0x682534]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.005ecf28
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.005e68d3
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.005ecd91
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.005ecd91
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x5b508b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x5b51a0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x61c156
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.00485b80
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00485b80
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
test ecx, edx
je 0x5b52da
mov cl, byte [0x6802f6]
mov dx, word [0x6802f4]
mov byte [esp + 0x12], cl
mov cl, dl
mov word [esp + 0x10], dx
add cl, al
lea edx, [esp + 0x10]
mov byte [esp + 0x10], cl
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], bl
call fcn.0047a930
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.00486200
mov edx, dword [0x629108]
mov dword [esp + 0x14], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push 0x104
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x140], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x12f], bl
call fcn.0047b5a0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00486200
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.0047b2e0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.0047b2e0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
jb 0x5b51fb
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x5b5310
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x61c176
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.00487850
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00487850
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x5b5449
mov edx, dword [0x680268]
mov cx, word [0x68026c]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.00480200
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.00487ee0
mov edx, dword [0x62910c]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.00480d50
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00487ee0
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.00480a70
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.00480a70
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x5b536b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x5b6d10
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x5b9120
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, ecx
push edi
push ebp
lea edi, [esi + 0xec]
mov ecx, edi
call fcn.005bef60
test al, al
jne 0x5b9141
pop edi
pop esi
pop ebp
ret 4
lea ecx, [esi + 0x78]
call fcn.005bd3d0
cmp eax, 1
jne 0x5b9156
pop edi
pop esi
xor al, al
pop ebp
ret 4
mov al, byte [esi + 0xe8]
test al, al
je 0x5b9168
pop edi
pop esi
xor al, al
pop ebp
ret 4
lea ecx, [esi + 0x20]
call fcn.005be480
push ebp
mov ecx, edi
call fcn.005bef80
mov ecx, dword [esi + 0x114]
call fcn.005bcef0
test al, al
je 0x5b921f
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x5b919a
pop edi
pop esi
xor al, al
pop ebp
ret 4
mov dword [esi + 0x14], 0x12345678
mov dword [esi + 0x18], 0x23456789
mov dword [esi + 0x1c], 0x34567890
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
jbe 0x5b920b
mov eax, dword [esi + 0xc]
mov cl, byte [edi + eax]
mov eax, dword [esi + 0x14]
mov byte [esp + 0x10], cl
mov ecx, esi
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.005bbdb0
mov edx, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edx
mov edx, dword [esi + 0x1c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 0x10], al
mov ecx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.005bbdb0
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
inc edi
cmp edi, eax
jb 0x5b91b8
mov ecx, esi
call fcn.005bbb00
test al, al
jne 0x5b921f
push 0xffffffffffffff94
mov ecx, esi
call fcn.005b8dc0
mov eax, dword [esi + 0x114]
mov di, word [eax + 0xe]
test di, di
je 0x5b923d
cmp di, 8
je 0x5b9243
push 0xffffffffffffff9b
mov ecx, esi
call fcn.005b8dc0
cmp di, 8
jne 0x5b927a
mov al, byte [esi + 4]
test al, al
je 0x5b9252
lea eax, [esi + 0xcc]
jmp 0x5b9254
xor eax, eax
push 0x38
push str.1.1.4
lea ecx, [esi + 0x28]
push 0xfffffffffffffff1
push ecx
mov dword [esi + 0x50], eax
call fcn.00541470
test eax, eax
je 0x5b927a
cmp eax, 2
je 0x5b927a
push eax
mov ecx, esi
call fcn.005b8dc0
mov ecx, dword [esi + 0x114]
mov edx, dword [ecx + 0x18]
mov dword [esi + 0x64], edx
call fcn.005bcef0
test al, al
je 0x5b9293
add dword [esi + 0x64], 0xfffffff4
mov eax, dword [esi + 0x114]
pop edi
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x68], 0
mov dword [esi + 0x60], ecx
mov dword [esi + 0x3c], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0xe8], 0xff
pop esi
mov al, 1
pop ebp
ret 4
Function at 0x5b97e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61c3ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
cmp byte [edi + 0xe8], 0xff
je 0x5b982b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp + 0xc]
mov esi, 1
test al, al
mov dword [ebp - 0x14], esi
jne 0x5b996a
mov eax, dword [edi + 0x60]
test eax, eax
jne 0x5b98da
mov eax, dword [edi + 0x114]
mov ecx, dword [edi + 0x68]
cmp ecx, dword [eax + 0x14]
je 0x5b98e1
lea ecx, [edi + 0x78]
call fcn.005bd680
cmp eax, 0xffffffff
jne 0x5b9883
push 0x69dc58
lea ecx, [ebp - 0x1c]
call fcn.005ece05
mov ebx, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
jmp 0x5b989d
mov ecx, dword [edi + 0x94]
lea eax, [ebp + 0xc]
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ebx, 2
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], esi
mov eax, dword [eax]
push eax
push 0xffffffffffffff9a
call fcn.005c04d0
add esp, 8
mov dword [ebp - 4], 0
test bl, 2
je 0x5b98c4
and ebx, 0xfffffffd
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x18], ebx
call fcn.005ecd91
test bl, 1
mov dword [ebp - 4], 0xffffffff
je 0x5b98e1
lea ecx, [ebp - 0x1c]
call fcn.005ecd91
jmp 0x5b98e1
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [edi + 0x114]
cmp word [eax + 0xe], 8
jne 0x5b98f7
lea ecx, [edi + 0x28]
push ecx
call fcn.00541420
mov esi, dword [ebp + 8]
test esi, esi
je 0x5b996a
lea edx, [ebp + 0xc]
mov dword [ebp - 4], 2
push edx
call fcn.005e31ba
mov eax, dword [eax]
mov ecx, dword [edi + 0x114]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x238], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 0x228], 0
push eax
call fcn.005bc8a0
mov ecx, dword [eax]
lea edx, [ebp - 0x238]
push edx
push esi
mov dword [ebp - 0x234], ecx
call fcn.005f043c
mov eax, dword [edi + 0x114]
mov eax, dword [eax + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x5b9963
mov dword [ebp - 0x14], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xec]
call fcn.005bf040
lea ecx, [edi + 0x6c]
mov byte [edi + 0xe8], 0
call fcn.005be5a0
mov eax, dword [edi + 0xd8]
test eax, eax
je 0x5b99b7
mov esi, dword [edi + 0xd0]
test esi, esi
je 0x5b99ac
mov eax, esi
mov esi, dword [esi]
mov ecx, dword [eax + 8]
push ecx
call fcn.005ed483
add esp, 4
test esi, esi
jne 0x5b9998
lea ecx, [edi + 0xcc]
call fcn.005e6be8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5ba270
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x61c57c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov eax, dword [esp + 0x23c]
push ebx
push edi
push eax
lea ecx, [esp + 0xc]
call fcn.005ece05
push 0x66af18
lea ecx, [esp + 0xc]
mov dword [esp + 0x240], 0
call fcn.005e21dc
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.005b9df0
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push edx
mov byte [esp + 0x24c], 1
call fcn.0046638c
add esp, 0x10
or edi, 0xffffffff
test eax, eax
je 0x5ba3a9
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
call fcn.0045db3e
push 0
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 2
call fcn.0045dc03
test eax, eax
jne 0x5ba369
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.00472910
add esp, 8
test eax, eax
je 0x5ba354
push esi
call fcn.005c2612
add esp, 4
test eax, eax
jne 0x5ba354
lea ecx, [esp + 0x30]
push ecx
call fcn.005c2612
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 1
call fcn.0045db7d
mov eax, edi
jmp 0x5ba39b
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 1
call fcn.0045db7d
xor eax, eax
jmp 0x5ba39b
lea ecx, [esp + 0x14]
call fcn.0045de29
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [edx + 0x38]
neg eax
sbb eax, eax
lea ecx, [esp + 0x14]
and al, 0xfe
mov byte [esp + 0x240], 1
inc eax
mov esi, eax
call fcn.0045db7d
mov eax, esi
cmp eax, edi
pop esi
sete al
test al, al
jne 0x5ba3a9
xor bl, bl
jmp 0x5ba3ab
mov bl, 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x23c], 0
call fcn.005ecd91
test bl, bl
jne 0x5ba436
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.005b9df0
mov eax, dword [eax]
mov byte [esp + 0x244], 3
push eax
call fcn.005ba270
add esp, 0xc
lea ecx, [esp + 0xc]
test al, al
sete bl
mov byte [esp + 0x23c], 0
call fcn.005ecd91
test bl, bl
jne 0x5ba40d
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5ba436
lea ecx, [esp + 8]
mov dword [esp + 0x23c], edi
call fcn.005ecd91
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
add esp, 0x238
ret
lea ecx, [esp + 8]
mov dword [esp + 0x23c], edi
call fcn.005ecd91
mov ecx, dword [esp + 0x234]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x238
ret
Function at 0x5bac00
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
cmp byte [ebx + 0xe8], 1
je 0x5bac12
xor al, al
pop ebx
ret 8
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
mov esi, dword [ebx + 0x114]
push ecx
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
push eax
mov eax, dword [esi + 0x14]
push eax
call fcn.005e11f0
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
jbe 0x5bad5c
push ebp
push edi
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x5bacba
mov ecx, dword [ebx + 0x114]
call fcn.005bcef0
test al, al
je 0x5bac95
mov eax, dword [ebx + 0x64]
xor ebp, ebp
test eax, eax
jbe 0x5bac95
mov esi, dword [ebx + 0x70]
mov edi, dword [ebx + 0x1c]
add esi, ebp
and edi, 0xfffd
or edi, 2
mov cl, byte [esi]
push ecx
mov ecx, ebx
call fcn.005bba90
mov edx, edi
mov al, byte [esi]
xor edx, 1
imul edx, edi
sar edx, 8
xor al, dl
inc ebp
mov byte [esi], al
mov eax, dword [ebx + 0x64]
cmp ebp, eax
jb 0x5bac61
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x70]
push 0
push eax
push ecx
lea ecx, [ebx + 0x78]
call fcn.005be0f0
mov dword [ebx + 0x64], 0
mov edx, dword [ebx + 0x74]
mov dword [ebx + 0x38], edx
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x34], eax
mov ecx, dword [ebx + 0x114]
cmp word [ecx + 0xe], 8
jne 0x5bacf5
mov esi, dword [ebx + 0x3c]
lea eax, [ebx + 0x28]
push 0
push eax
call fcn.00540170
test eax, eax
je 0x5bace6
cmp eax, 2
je 0x5bace6
push eax
mov ecx, ebx
call fcn.005b8dc0
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x64]
sub edx, esi
add eax, edx
mov dword [ebx + 0x64], eax
jmp 0x5bad4f
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x38]
cmp eax, ecx
jb 0x5bad01
mov eax, ecx
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x34]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x38]
mov ebp, dword [ebx + 0x28]
mov edi, dword [ebx + 0x34]
mov esi, dword [ebx + 0x30]
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x2c], edx
mov edx, dword [ebx + 0x3c]
mov dword [ebx + 0x38], ecx
mov ecx, dword [ebx + 0x64]
add ebp, eax
add edi, eax
add esi, eax
add edx, eax
add ecx, eax
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x64], ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
ja 0x5bac42
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
ret 8