joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa4c0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d868d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 0x10
jb 0x4aa4ff
mov eax, dword [edi]
mov byte [eax], 0
lea eax, [ebp - 0x1c]
push eax
push dword [0x610080]
push 0
push 0x420408
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4aa5fa
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4203f4
push esi
call ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
je 0x4aa55a
cmp ecx, 2
jne 0x4aa5e5
test eax, eax
jne 0x4aa5e5
push eax
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0045b700
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4aa577
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4203f4
push dword [ebp - 0x1c]
call ebx
test eax, eax
jne 0x4aa5e5
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 0x10
jb 0x4aa59c
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
lea ebx, [edx - 1]
add ebx, eax
mov eax, edi
cmp ecx, 0x10
jb 0x4aa5ad
mov eax, dword [edi]
sub ebx, eax
mov ecx, 1
mov eax, edx
sub eax, ebx
cmp eax, ecx
cmovb ecx, eax
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x20], ecx
mov eax, edi
jb 0x4aa5ca
mov eax, dword [edi]
lea ecx, [eax + ebx]
mov eax, dword [ebp - 0x20]
sub edx, eax
add eax, ecx
mov dword [edi + 0x10], edx
sub edx, ebx
inc edx
push edx
push eax
push ecx
call fcn.005be280
add esp, 0xc
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x10], 0
je 0x4aa62a
push 0x13
push 0x420254
mov ecx, edi
call fcn.004598e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bca10
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x24]
call fcn.004ab7c0
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.004ab8a0
push 0x5f5e4c
lea eax, [ebp - 0x50]
push eax
call fcn.005bde57
int3
Function at 0x4ad7a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
xor edx, edx
xor eax, eax
mov dword [esp + 4], 0x310030
mov dword [esp + 8], 0x330032
mov dword [esp + 0xc], 0x350034
mov dword [esp + 0x10], 0x370036
mov dword [esp + 0x14], 0x390038
mov dword [esp + 0x18], 0x420041
mov dword [esp + 0x1c], 0x440043
mov dword [esp + 0x20], 0x460045
test ebx, ebx
je 0x4ad82c
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x30]
nop word [eax + eax]
movzx ecx, byte [eax + edi]
lea edx, [edx + 2]
shr ecx, 4
movzx ecx, word [esp + ecx*2 + 0xc]
mov word [esi + edx*2 - 4], cx
movsx ecx, byte [eax + edi]
inc eax
and ecx, 0xf
movzx ecx, word [esp + ecx*2 + 0xc]
mov word [esi + edx*2 - 2], cx
cmp eax, ebx
jne 0x4ad800
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x4aeb40
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x616930]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [ecx]
lea eax, [esp + 0x30]
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4aec01
mov ecx, dword [esp + 0x40]
xor edx, edx
cmp edx, ecx
jl 0x4aebe3
mov eax, dword [esp + 0x3c]
jg 0x4aeb80
cmp esi, eax
jbe 0x4aebe3
push 0
push 0
push ecx
push eax
push ebx
call fcn.004ae940
add esp, 0x14
test al, al
je 0x4aec01
sub esi, dword [esp + 0x3c]
je 0x4aebce
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x200
cmp esi, 0x200
mov edi, esi
push 0
cmova edi, eax
lea eax, [esp + 0x48]
push eax
push edi
push 0x623e68
push ebx
call ebp
cmp dword [esp + 0x44], edi
jne 0x4aec01
mov eax, 0x200
sub esi, edi
jne 0x4aeba4
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005bca10
add esp, 0x3c
ret 8
push 0
push 0
push edx
push esi
push ebx
call fcn.004ae940
add esp, 0x14
test al, al
je 0x4aec01
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4aebce
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [esp + 0x40]
call fcn.004ab7c0
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
call fcn.004ab8a0
push 0x5f5e4c
lea eax, [esp + 0x14]
push eax
call fcn.005bde57
int3
Function at 0x4aec60
Capabilities:
Check for time delay via queryperformancecounter
Get system information on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x616930]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x4aeca2
mov eax, dword [0x624068]
test eax, eax
jne 0x4aec90
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x2c]
mov ecx, 1
cmp ecx, eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x20
mov dword [ebx + 0xc], eax
cmp eax, 8
jb 0x4aedb9
cmp eax, 0x20
jae 0x4aecc5
pause
inc dword [ebx + 0xc]
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.005bca10
add esp, 0x3c
ret
jne 0x4aed9e
push 7
call fcn.004adc60
add esp, 4
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
call eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x4aed08
mov ecx, dword [esp + 0xc]
mov eax, 0xd1b71759
lea ecx, [ecx - 1]
mul ecx
shr edx, 0xd
jmp 0x4aed49
mov eax, dword [esp + 0xc]
mov ecx, 0x5f5e100
push esi
push edi
push dword [esp + 0x10]
mul ecx
push dword [esp + 0x10]
mov edi, eax
mov esi, edx
push 0x38d7e
sub edi, 1
push 0xa4c67fff
sbb esi, 0
call fcn.005bcc70
add eax, 1
adc edx, 0
push edx
push eax
push esi
push edi
call fcn.005bcc70
pop edi
mov edx, eax
pop esi
lea eax, [edx + 1]
mov dword [ebx + 8], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4aed7e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebx], eax
inc dword [ebx + 0xc]
mov dword [ebx + 4], ecx
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.005bca10
add esp, 0x3c
ret
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
inc dword [ebx + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.005bca10
add esp, 0x3c
ret
cmp dword [ebx + 8], 0
jne 0x4aedcc
and al, 1
je 0x4aee04
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x4aedb9
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebx + 0xc]
mov ecx, dword [esp + 0x3c]
pop ebx
xor ecx, esp
call fcn.005bca10
add esp, 0x3c
ret
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4aede5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
jmp 0x4aeded
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
sub eax, dword [ebx]
sbb ecx, dword [ebx + 4]
test ecx, ecx
jb 0x4aeda8
ja 0x4aedfd
cmp eax, dword [ebx + 8]
jb 0x4aeda8
mov dword [ebx + 8], 0
push 1
jmp 0x4aedb3
Function at 0x4b11a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8e7d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
call fcn.004ccbf0
mov ebx, dword [esi]
add esp, 4
add ebx, 0xa
add ebx, eax
mov eax, 7
mov word [edi], ax
mov eax, dword [ebp - 0x24]
mov dword [edi + 2], ebx
add eax, 0xfffffffa
mov ecx, dword [esi + 0x30]
add edi, 6
push eax
push edi
call fcn.004b1cb0
mov ecx, dword [esi + 0x2c]
add edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edi
test ecx, ecx
je 0x4b12a8
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x20]
push edx
call dword [eax + 8]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ebp - 0x24]
sub eax, edi
add eax, dword [ebp - 0x28]
push eax
push dword [esi]
push edi
call fcn.004ccac0
mov ecx, dword [esi + 0x30]
lea eax, [ebp - 0x3c]
add esp, 0x10
push eax
call fcn.004b1a60
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.0049fee0
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.004f3090
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x4b1288
mov ecx, dword [ebp - 0x30]
sub ecx, edx
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.0046f9e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bca10
mov esp, ebp
pop ebp
ret 8
call fcn.005a76da
int3
Function at 0x4b12b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8e7d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
call fcn.004ccbf0
mov ebx, dword [esi]
add esp, 4
add ebx, 0x12
add ebx, eax
mov eax, 3
mov word [edi], ax
mov eax, dword [ebp - 0x24]
mov dword [edi + 2], ebx
add eax, 0xfffffffa
mov ecx, dword [esi + 0x30]
add edi, 6
push eax
push edi
call fcn.004b1cd0
mov ecx, dword [esi + 0x2c]
add edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edi
test ecx, ecx
je 0x4b13b8
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x20]
push edx
call dword [eax + 8]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ebp - 0x24]
sub eax, edi
add eax, dword [ebp - 0x28]
push eax
push dword [esi]
push edi
call fcn.004ccac0
mov ecx, dword [esi + 0x30]
lea eax, [ebp - 0x3c]
add esp, 0x10
push eax
call fcn.004b1a60
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.0049fee0
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.004f3090
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x4b1398
mov ecx, dword [ebp - 0x30]
sub ecx, edx
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.0046f9e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bca10
mov esp, ebp
pop ebp
ret 8
call fcn.005a76da
int3
Function at 0x4b2100
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
sub esp, 0x154
mov eax, dword [0x616930]
xor eax, esp
mov dword [esp + 0x150], eax
movups xmm0, xmmword [ecx + 0x1c]
mov eax, dword [ecx]
mov edx, dword [ecx + 0x10]
movups xmmword [esp + 0x10], xmm0
push ebx
movups xmm0, xmmword [ecx + 0x2c]
mov ebx, dword [ecx + 4]
push ebp
movups xmmword [esp + 0x28], xmm0
push esi
movups xmm0, xmmword [ecx + 0x3c]
push edi
mov edi, dword [ecx + 0xc]
mov ebp, eax
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x18], eax
mov esi, 0x40
movups xmm0, xmmword [ecx + 0x4c]
mov eax, dword [ecx + 8]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x1c], ecx
movups xmmword [esp + 0x50], xmm0
mov ecx, dword [edx + 0x2c]
lea edx, [edx + 4]
xor ecx, dword [edx + 0x14]
xor ecx, dword [edx - 0xc]
xor ecx, dword [edx - 4]
rol ecx, 1
mov dword [edx + 0x34], ecx
sub esi, 1
jne 0x4b2161
nop word [eax + eax]
mov ecx, edi
mov edx, ebp
xor ecx, eax
rol edx, 5
and ecx, ebx
xor ecx, edi
add edx, ecx
mov ecx, dword [esp + 0x10]
add edx, dword [esp + esi*4 + 0x20]
add ecx, 0x5a827999
add ecx, edx
inc esi
mov edx, edi
mov edi, eax
mov eax, ebx
mov dword [esp + 0x10], edx
ror eax, 2
mov ebx, ebp
mov ebp, ecx
cmp esi, 0x14
jl 0x4b2180
nop word [eax + eax]
rol ecx, 5
add edx, 0x6ed9eba1
mov dword [esp + 0x10], ecx
mov ecx, edi
xor ecx, eax
xor ecx, ebx
add dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + esi*4 + 0x20]
inc esi
add ecx, edx
mov edx, edi
mov edi, eax
mov eax, ebx
ror eax, 2
mov ebx, ebp
mov ebp, ecx
cmp esi, 0x28
jl 0x4b21c0
mov dword [esp + 0x10], edx
cmp esi, 0x3c
jae 0x4b223d
mov dword [esp + 0x10], edx
rol ecx, 5
mov edx, eax
mov dword [esp + 0x14], ecx
or edx, ebx
mov ecx, eax
and edx, edi
and ecx, ebx
or edx, ecx
mov ecx, dword [esp + 0x14]
add edx, dword [esp + esi*4 + 0x20]
add ecx, 0x8f1bbcdc
add ecx, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], edi
add ecx, edx
mov edi, eax
mov eax, ebx
ror eax, 2
mov ebx, ebp
mov ebp, ecx
cmp esi, 0x3c
jl 0x4b2201
mov edx, ebp
cmp esi, 0x50
jae 0x4b2272
rol edx, 5
mov ecx, edi
xor ecx, eax
add edx, 0xca62c1d6
add edx, dword [esp + 0x10]
xor ecx, ebx
add ecx, dword [esp + esi*4 + 0x20]
inc esi
mov dword [esp + 0x10], edi
add edx, ecx
mov edi, eax
mov eax, ebx
ror eax, 2
mov ebx, ebp
mov ebp, edx
cmp esi, 0x50
jl 0x4b2244
mov ecx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [esp + 0x1c]
add dword [edx + 0xc], edi
add dword [edx + 4], ebx
add dword [edx + 8], eax
mov eax, dword [esp + 0x10]
add dword [edx + 0x10], eax
pop edi
pop esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x158]
pop ebp
pop ebx
xor ecx, esp
call fcn.005bca10
add esp, 0x154
ret

Function at 0x4b22c0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x5c], 0
ret
Function at 0x4b74c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4b74df
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b7505
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4b74f1
mov ecx, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4b74f9
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
jmp 0x4b7518
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4b750f
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4b7524
pop edi
mov al, 1
pop esi
add esp, 0x14
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x10]
movq qword [esp + 0x18], xmm0
push esi
push eax
call fcn.004b7cb0
add esp, 0xc
cmp dword [esp + 0xc], 3
je 0x4b7568
push 0x420a68
push edi
push esi
push ebx
call fcn.004b8ef0
add esp, 0x10
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x14
ret

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

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4b77b3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b77db
push dword [esp + 0x18]
lea eax, [esp + 0xc]
push esi
push eax
call fcn.004b7670
add esp, 0xc
mov eax, dword [eax]
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b77f1
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
test ebx, 0x400
je 0x4b7827
push esi
call fcn.004b7580
add esp, 4
test al, al
je 0x4b781c
test bl, 0x10
mov eax, 4
mov ecx, 0xb
pop esi
cmovne eax, ecx
pop ebx
add esp, 8
ret
pop esi
mov eax, 9
pop ebx
add esp, 8
ret
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x4b7be0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x4b7c02
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4b7bff
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
xor al, al
ret
push esi
push edi
cmp eax, 3
je 0x4b7c25
cmp eax, 0xb
je 0x4b7c25
mov esi, dword [esp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4b7c1c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4b7c3a
mov esi, dword [esp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4b7c33
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4b7c93
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x4b7c93
cmp eax, 3
je 0x4b7c93
cmp eax, 0x7b
je 0x4b7c93
cmp eax, 0xf
je 0x4b7c93
cmp eax, 0x15
je 0x4b7c93
cmp eax, 0x57
je 0x4b7c93
cmp eax, 0xa1
je 0x4b7c93
cmp eax, 0x35
je 0x4b7c93
cmp eax, 0x43
je 0x4b7c93
call edi
test eax, eax
je 0x4b7c93
push 0x420a08
push dword [esp + 0x18]
push esi
push eax
call fcn.004b8ef0
add esp, 0x10
xor al, al
pop edi
pop esi
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b7ca9
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
pop edi
mov al, 1
pop esi
ret
Function at 0x4b7cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9795
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x4b7cf9
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4b7d03
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b7d23
push dword [ebp - 0x60]
push ebx
push edi
call fcn.004b7670
add esp, 0xc
jmp 0x4b7e4a
push esi
push ebx
call fcn.004b6e70
add esp, 8
mov ecx, eax
mov dword [ebp - 0x64], ecx
test esi, 0x400
je 0x4b7e27
push ebx
call fcn.004b7580
add esp, 4
test al, al
jne 0x4b7d5c
mov eax, dword [ebp - 0x64]
mov dword [edi], 9
mov dword [edi + 4], eax
jmp 0x4b7e4a
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4b7d66
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x28]
call fcn.004b3ba0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x4b7db5
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00459da0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x4b7de1
push dword [ebp - 0x60]
push ebx
push edi
call fcn.004b7670
add esp, 0xc
jmp 0x4b7e4a
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4b7e0d
push dword [ebp - 0x60]
push ebx
push edi
call fcn.004b7670
add esp, 0xc
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b7e4a
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
push esi
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
and esi, 0x10
je 0x4b7e31
mov edx, dword [ebp - 0x68]
jmp 0x4b7e36
mov edx, ecx
mov ecx, dword [ebp - 0x68]
xor eax, eax
test esi, esi
setne al
add eax, 2
test esi, esi
mov dword [edi], eax
cmove ecx, edx
mov dword [edi + 4], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bca10
mov esp, ebp
pop ebp
ret
Function at 0x4b9380
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
xor edx, edx
push ebx
push esi
mov esi, 0x5a4d
mov eax, ecx
cmp si, word [ecx]
push edi
cmovne eax, edx
mov edi, 0xf8
mov edx, 0x20b
mov eax, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
cmovne ecx, eax
mov eax, 0x108
cmp dx, word [ecx + 0x18]
movzx ebx, word [ecx + 6]
cmove edi, eax
or eax, 0xffffffff
add edi, ecx
xor esi, esi
test ebx, ebx
je 0x4b93e9
nop word [eax + eax]
mov ecx, dword [edi + 0xc]
mov edx, eax
cmp ecx, eax
mov eax, ecx
cmovb esi, edi
add edi, 0x28
cmp ecx, edx
cmovae eax, edx
sub ebx, 1
jne 0x4b93d0
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4b94b0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
xor edx, edx
push esi
mov esi, 0x5a4d
mov eax, ecx
cmp si, word [ecx]
pop esi
cmovne eax, edx
mov eax, dword [eax + 0x3c]
add eax, ecx
xor ecx, ecx
cmp dword [eax], 0x4550
cmovne eax, ecx
mov ecx, dword [esp + 4]
cmp ecx, dword [eax + 0x74]
jbe 0x4b94ed
mov ecx, dword [esp + 8]
xor eax, eax
mov edx, dword [eax + 4]
mov dword [ecx], edx
mov eax, dword [eax]
ret 8
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 8]
add eax, 0x78
mov edx, dword [eax + 4]
mov dword [ecx], edx
mov eax, dword [eax]
ret 8

Function at 0x4b9510
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, ecx
xor ecx, ecx
push esi
mov esi, 0x5a4d
push edi
mov edx, dword [ebp + 4]
mov eax, edx
mov edi, dword [esp + 0x14]
cmp si, word [edx]
mov esi, 0x20b
cmovne eax, ecx
mov ecx, dword [eax + 0x3c]
xor eax, eax
add ecx, edx
mov edx, 0x108
cmp dword [ecx], 0x4550
cmovne ecx, eax
mov eax, 0xf8
cmp si, word [ecx + 0x18]
movzx ebx, word [ecx + 6]
cmove eax, edx
xor esi, esi
add eax, ecx
test ebx, ebx
je 0x4b9578
nop
mov edx, dword [eax + 0x14]
cmp edi, edx
jb 0x4b9570
mov ecx, dword [eax + 0x10]
add ecx, edx
cmp edi, ecx
jb 0x4b9591
inc esi
add eax, 0x28
cmp esi, ebx
jl 0x4b9560
mov ecx, ebp
call fcn.004b9380
test eax, eax
je 0x4b959f
cmp edi, dword [eax + 0xc]
jae 0x4b959f
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [eax + 0xc]
sub eax, edx
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x4ba850
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9bab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x616930]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
mov dword [esi + 4], 0x41ee38
mov dword [ebp - 4], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ebx, dword [ebp + 0xc]
mov edi, eax
mov byte [ebp - 4], 1
cmp byte [edi + 0xc], 0
mov ecx, dword [ebx + 0xc]
jne 0x4ba8d1
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 4]
mov ecx, eax
mov edx, dword [edi + 4]
add edx, ecx
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ba8e0
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 8]
call fcn.00459b10
mov eax, dword [ebx + 4]
mov dword [esi + 0x20], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x24], eax
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x2c], eax
mov eax, esi
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 0x4bdc40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 0x10
jb 0x4bdc4b
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4bdc5e
test al, 0x10
je 0x4bdc5e
mov al, 1
ret
xor al, al
ret

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

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 0x10
jb 0x4bdc7b
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4bdc8e
test al, 0x10
jne 0x4bdc8e
mov al, 1
ret
xor al, al
ret