joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54144e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5710b4
push 0x5710ac
push str.FlsAlloc
push 0x1e
call fcn.005412cf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x541482
push dword [ebp + 8]
mov ecx, esi
call dword [0x55670c]
call esi
jmp 0x541488
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5414cc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5710c4
push 0x5710bc
push str.FlsGetValue
push 0x20
call fcn.005412cf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x541503
push dword [ebp + 8]
mov ecx, esi
call dword [0x55670c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x541c8f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00541c0b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x541e07
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x541e07
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x541db6
jg 0x541ce8
test eax, eax
je 0x541dac
push 1
push 0x1000
call fcn.0054113f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x541d0e
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x541da3
push 0x8000
push ebx
call fcn.0053c87a
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x541d3a
jg 0x541d35
cmp ecx, 0x1000
jb 0x541d3a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0053b542
add esp, 0x10
cmp eax, 0xffffffff
je 0x541d7f
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x541d35
jl 0x541d66
test ecx, ecx
jne 0x541d27
push dword [ebp - 0xc]
push ebx
call fcn.0053c87a
push esi
call fcn.0053f58a
add esp, 0xc
xor edi, edi
jmp 0x541e18
cmp byte [edi + 0x24], 0
je 0x541d96
cmp dword [edi + 0x20], 5
jne 0x541d96
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x541da1
mov edi, dword [edi + 0x18]
jmp 0x541da3
xor edi, edi
push esi
call fcn.0053f58a
pop ecx
jmp 0x541e18
test ecx, ecx
jg 0x541d78
jl 0x541db6
test eax, eax
jae 0x541d78
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0053a27b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x541dd9
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x541d78
jmp 0x541e10
push ebx
call fcn.00541ba1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x541d78
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x541e18
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x541e15
mov edi, dword [edi + 0x18]
jmp 0x541e18
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0053a27b
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x542277
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005420e8
Function at 0x5425e2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0053c7e9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x542624
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x542780
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0052f750
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x634858]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0053a25d
mov ecx, dword [esi*4 + 0x634858]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x542779
cmp eax, dword [edi + ecx + 0x24]
jne 0x542779
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x542779
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0053a25d
add esp, 0x14
test edx, edx
jl 0x542779
jg 0x5426ef
test eax, eax
jb 0x542779
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x542779
jl 0x542709
cmp dword [ebp - 0x1008], eax
ja 0x542779
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x542727
test ebx, ebx
je 0x542760
cmp ecx, edi
jae 0x542760
mov al, byte [ecx]
cmp al, 0xd
jne 0x542741
lea eax, [edi - 1]
cmp ecx, eax
jae 0x54274d
cmp byte [ecx + 1], 0xa
jne 0x54274d
inc ecx
jmp 0x54274d
movzx eax, al
movsx eax, byte [eax + 0x58bba0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x542727
cmp edx, ebx
jne 0x542727
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x54277e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0052f708
leave
ret
Function at 0x544380
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x54441d
push ebx
push esi
call fcn.00544349
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00541e88
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5443ca
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x54441c
push edi
push eax
call fcn.0053f5c4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5443ea
call fcn.0053f58a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x54441b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00541e88
add esp, 0x20
test eax, eax
jne 0x544409
push edi
call fcn.0053f58a
jmp 0x544411
push ebx
call fcn.0053f58a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x549fe0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x54a00d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x54a00d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001054
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
lea ecx, [ebp - 8]
call fcn.100011f8
lea ecx, [ebp + 0x28]
call fcn.10001b9f
push ecx
mov ecx, esp
push eax
call fcn.100787e3
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0xc]
push eax
call fcn.1002571d
push eax
lea ecx, [ebp - 8]
call fcn.10078862
lea ecx, [ebp - 0x10]
call fcn.10078775
lea eax, [ebp - 1]
lea ecx, [ebp - 8]
push eax
call fcn.10058d92
push eax
lea ecx, [ebp - 0x30]
call fcn.10001b5c
lea eax, [ebp - 1]
lea ecx, [ebp - 8]
push eax
call fcn.10058d92
push eax
lea ecx, [ebp - 0x20]
call fcn.10001b5c
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0xc]
push eax
call fcn.10024809
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100035f2
add esp, 0xc
lea ecx, [ebp - 0x30]
push eax
call fcn.10001b87
lea ecx, [ebp - 0x40]
call fcn.10001b7f
lea ecx, [ebp - 0x50]
call fcn.10001b7f
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xc]
push eax
call fcn.10024542
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.100035f2
add esp, 0xc
lea ecx, [ebp - 0x20]
push eax
call fcn.10001b87
lea ecx, [ebp - 0x50]
call fcn.10001b7f
lea ecx, [ebp - 0x40]
call fcn.10001b7f
lea ecx, [ebp - 0x30]
call fcn.10001b9f
push eax
call fcn.100045d6
pop ecx
lea eax, [ebp + 0x18]
push 0
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.100035f2
add esp, 0xc
mov ecx, eax
call fcn.10001b9f
push eax
lea ecx, [ebp + 0x28]
call fcn.10001b9f
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x50]
call fcn.10001b7f
push 0x1008eb14
lea ecx, [ebp + 8]
call fcn.10001b9f
push eax
call fcn.1005d01b
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x100011c5
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0xc]
push eax
call fcn.100242c8
mov ecx, eax
call fcn.10001b9f
push eax
lea ecx, [ebp - 0x20]
call fcn.10001b9f
push eax
push esi
call fcn.10001203
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.10001b7f
push esi
call fcn.1005d09a
lea eax, [ebp - 0x20]
push eax
call fcn.10004725
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
call fcn.10001b7f
lea ecx, [ebp - 0x30]
call fcn.10001b7f
lea ecx, [ebp - 8]
call fcn.10078775
lea ecx, [ebp + 8]
call fcn.10001b7f
lea ecx, [ebp + 0x18]
call fcn.10001b7f
lea ecx, [ebp + 0x28]
call fcn.10001b7f
pop esi
leave
ret
Function at 0x10004338
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 2]
push edi
push eax
lea eax, [ebp - 1]
xor ebx, ebx
push eax
push 0xb
lea ecx, [ebp - 0x14]
mov byte [ebp - 1], bl
call fcn.10004b9e
push ebx
lea ecx, [ebp - 0x14]
call fcn.10004bd8
push 1
lea ecx, [ebp - 0x14]
mov byte [eax], 0x4b
call fcn.10004bd8
push 2
lea ecx, [ebp - 0x14]
mov byte [eax], 0x50
call fcn.10004bd8
push 3
lea ecx, [ebp - 0x14]
mov byte [eax], 0x54
call fcn.10004bd8
push 4
lea ecx, [ebp - 0x14]
mov byte [eax], 0x5b
call fcn.10004bd8
push 5
lea ecx, [ebp - 0x14]
mov byte [eax], 0x5e
call fcn.10004bd8
push 6
lea ecx, [ebp - 0x14]
mov byte [eax], 0x4a
call fcn.10004bd8
push 7
lea ecx, [ebp - 0x14]
mov byte [eax], 0x46
call fcn.10004bd8
push 8
lea ecx, [ebp - 0x14]
mov byte [eax], 0x58
call fcn.10004bd8
push 9
lea ecx, [ebp - 0x14]
mov byte [eax], 0x57
call fcn.10004bd8
push 0xa
lea ecx, [ebp - 0x14]
mov byte [eax], 0x50
call fcn.10004bd8
mov byte [eax], 0x51
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 1], bl
call fcn.10002b1c
push eax
lea ecx, [ebp - 0x24]
call fcn.10004b9e
lea ecx, [ebp - 0x14]
call fcn.10002b1c
lea ecx, [ebp + 0xc]
mov edi, eax
xor esi, esi
call fcn.10002b1c
test eax, eax
jbe 0x10004455
mov eax, esi
lea ecx, [ebp - 0x14]
cdq
idiv edi
push edx
call fcn.10004bd8
push esi
lea ecx, [ebp + 0xc]
mov ebx, eax
call fcn.10004bd8
mov dl, byte [eax]
push esi
xor dl, byte [ebx]
lea ecx, [ebp - 0x24]
mov byte [ebp - 1], dl
call fcn.10004bd8
mov cl, byte [ebp - 1]
inc esi
mov byte [eax], cl
lea ecx, [ebp + 0xc]
call fcn.10002b1c
cmp esi, eax
jb 0x1000441a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.10001bec
lea ecx, [ebp - 0x24]
call fcn.10001c31
lea ecx, [ebp - 0x14]
call fcn.10001c31
lea ecx, [ebp + 0xc]
call fcn.10001c31
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004725
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
lea eax, [ebp - 0x14]
push esi
push eax
lea ecx, [ebp - 4]
call fcn.10020103
push eax
lea eax, [ebp - 0x24]
push dword [ebp + 8]
push eax
call fcn.100035f2
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.10001b7f
lea eax, [ebp - 0x1a4]
lea ecx, [ebp - 0x24]
push eax
call fcn.10001b9f
push eax
call fcn.1001b3bf
mov esi, eax
pop ecx
cmp esi, 0xffffffff
pop ecx
jne 0x10004779
xor bl, bl
jmp 0x100048a0
lea eax, [ebp - 0x64]
lea ecx, [ebp - 4]
push eax
call fcn.10020c52
mov ecx, eax
call fcn.10001b9f
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.1005ed10
pop ecx
test eax, eax
pop ecx
je 0x100047d6
lea eax, [ebp - 0x34]
lea ecx, [ebp - 4]
push eax
call fcn.10020085
mov ecx, eax
call fcn.10001b9f
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.1005ed10
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x34]
setne bl
call fcn.10001b7f
test bl, bl
je 0x100047d6
mov bl, 1
jmp 0x100047d8
xor bl, bl
lea ecx, [ebp - 0x64]
call fcn.10001b7f
test bl, bl
je 0x10004854
lea eax, [ebp - 0x178]
lea ecx, [ebp - 4]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.1002020b
push eax
lea eax, [ebp - 0x44]
push dword [ebp + 8]
push eax
call fcn.100035f2
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100052f2
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.10001b7f
lea ecx, [ebp - 0x54]
call fcn.10001b7f
test byte [ebp - 0x1a4], 0x10
je 0x10004839
lea eax, [ebp - 0x14]
push eax
call fcn.10004725
pop ecx
jmp 0x1000484c
lea ecx, [ebp - 0x14]
call fcn.10001b9f
push eax
call fcn.1001b376
test eax, eax
pop ecx
je 0x1000486c
lea ecx, [ebp - 0x14]
call fcn.10001b7f
lea eax, [ebp - 0x1a4]
push eax
push esi
call fcn.1001b459
pop ecx
test eax, eax
pop ecx
je 0x10004880
jmp 0x10004779
lea ecx, [ebp - 0x14]
call fcn.10001b7f
lea ecx, [ebp - 0x24]
call fcn.10001b7f
xor al, al
jmp 0x100048aa
push esi
call fcn.1001b4a6
pop ecx
mov ecx, dword [ebp + 8]
call fcn.10001b9f
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x10004772
mov bl, 1
lea ecx, [ebp - 0x24]
call fcn.10001b7f
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x100080a9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov eax, dword [edi + 4]
mov dword [ebp + 0x14], eax
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x10008178
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x10008118
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x10008163
push dword [edi + 0x34]
mov eax, dword [ebp + 0x14]
add eax, dword [esi - 4]
push 4
push 0x1000
push ebx
push eax
call dword [edi + 0x1c]
add esp, 0x14
test eax, eax
je 0x10008180
mov eax, dword [ebp + 0x14]
push ebx
add eax, dword [esi - 4]
push 0
push eax
mov dword [esi - 8], eax
call fcn.1005e2e0
add esp, 0xc
jmp 0x10008163
mov ecx, dword [esi + 4]
add ecx, eax
push ecx
push dword [ebp + 0xc]
call fcn.1000809d
pop ecx
test eax, eax
pop ecx
je 0x10008180
push dword [edi + 0x34]
mov ebx, dword [ebp + 0x14]
mov eax, ebx
add eax, dword [esi - 4]
push 4
push 0x1000
push dword [esi]
push eax
call dword [edi + 0x1c]
add esp, 0x14
test eax, eax
je 0x10008180
mov eax, dword [esi + 4]
push dword [esi]
add eax, dword [ebp + 8]
add ebx, dword [esi - 4]
push eax
push ebx
call fcn.1005dba0
add esp, 0xc
mov dword [esi - 8], ebx
mov eax, dword [edi]
inc dword [ebp - 4]
add esi, 0x28
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x100080d5
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x1000817b
Function at 0x10020e6b
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
lea eax, [ebp - 1]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.10001b1a
and byte [ebp - 0x17], 0
push 0x1008eb14
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x3c], 0x5f
mov byte [ebp - 0x3b], 0x30
mov byte [ebp - 0x3a], 0x31
mov byte [ebp - 0x39], 0x32
mov byte [ebp - 0x38], 0x33
mov byte [ebp - 0x37], 0x34
mov byte [ebp - 0x36], 0x35
mov byte [ebp - 0x35], 0x36
mov byte [ebp - 0x34], 0x37
mov byte [ebp - 0x33], 0x38
mov byte [ebp - 0x32], 0x39
mov byte [ebp - 0x31], 0x41
mov byte [ebp - 0x30], 0x42
mov byte [ebp - 0x2f], 0x43
mov byte [ebp - 0x2e], 0x44
mov byte [ebp - 0x2d], 0x45
mov byte [ebp - 0x2c], 0x46
mov byte [ebp - 0x2b], 0x47
mov byte [ebp - 0x2a], 0x48
mov byte [ebp - 0x29], 0x49
mov byte [ebp - 0x28], 0x4a
mov byte [ebp - 0x27], 0x4b
mov byte [ebp - 0x26], 0x4c
mov byte [ebp - 0x25], 0x4d
mov byte [ebp - 0x24], 0x4e
mov byte [ebp - 0x23], 0x4f
mov byte [ebp - 0x22], 0x50
mov byte [ebp - 0x21], 0x51
mov byte [ebp - 0x20], 0x52
mov byte [ebp - 0x1f], 0x53
mov byte [ebp - 0x1e], 0x54
mov byte [ebp - 0x1d], 0x55
mov byte [ebp - 0x1c], 0x56
mov byte [ebp - 0x1b], 0x57
mov byte [ebp - 0x1a], 0x58
mov byte [ebp - 0x19], 0x59
mov byte [ebp - 0x18], 0x5a
call fcn.10003bbc
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x10020f5e
call fcn.1001b6f9
add eax, esi
push eax
call fcn.1005ecdc
pop ecx
call fcn.1005ece9
push 0x24
cdq
pop ecx
idiv ecx
lea ecx, [ebp - 0x14]
mov al, byte [ebp + edx - 0x3c]
push eax
call fcn.10004ace
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x10020f2a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.10001b32
lea ecx, [ebp - 0x14]
call fcn.10001b7f
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x10053f90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10053f9e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x1005407f
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x100817e4]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x100817e4]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x100817e4]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x100817e4]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x100817e4]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x100817e4]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x100817e4]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x100817e4]
xor eax, esi
inc edx
dec edi
jne 0x10053fbb
pop ebx
cmp dword [ebp + 0x10], 0
je 0x100540a0
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x100817e4]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x10054085
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x100540a6
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x100817e4]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x100817e4]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x10055dfc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 8], 0
push ebx
push edi
mov ebx, 0x104
je 0x10055e70
push ebx
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push eax
call fcn.1005584d
lea eax, [ebp - 0x208]
push eax
call fcn.1005e340
add esp, 0x10
test eax, eax
jbe 0x10055e50
mov cl, byte [ebp + eax - 0x209]
lea eax, [ebp + eax - 0x209]
cmp cl, 0x2f
je 0x10055e4d
cmp cl, 0x5c
jne 0x10055e50
and byte [eax], 0
lea eax, [ebp - 0x208]
push eax
call fcn.100525d7
test al, al
pop ecx
jne 0x10055e70
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [ebp + 0xc]
mov al, byte [edi]
test al, al
je 0x10055f2a
push esi
mov esi, edi
mov ecx, edi
cmp al, 0x2f
je 0x10055e8a
cmp al, 0x5c
jne 0x10055e8c
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x10055e82
cmp esi, edi
je 0x10055ec2
sub esi, edi
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call fcn.1005dba0
and byte [ebp + esi - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.10055dfc
add esp, 0x14
and byte [ebp - 0x104], 0
cmp dword [ebp + 8], 0
pop esi
je 0x10055ee3
push ebx
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
call fcn.1005584d
add esp, 0xc
and byte [ebp - 1], 0
lea eax, [ebp - 0x104]
push eax
call fcn.1005e340
sub ebx, eax
lea eax, [ebp + eax - 0x104]
push ebx
push edi
push eax
call fcn.1005584d
and byte [ebp - 1], 0
lea eax, [ebp - 0x104]
push eax
call fcn.100525d7
add esp, 0x14
test al, al
jne 0x10055f2a
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebx
leave
ret
Function at 0x100565f2
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 1], 0
push ebx
mov eax, dword fs:[0x30]
mov bl, byte [eax + 2]
mov byte [ebp - 1], bl
movzx eax, byte [ebp - 1]
pop ebx
leave
ret

Function at 0x1005660e
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 1], 0
push dword fs:[0x30]
pop edx
mov al, byte [edx + 2]
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
leave
ret

Function at 0x1005662a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x1005918b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x100591ae
mov eax, 0x200
jmp 0x1005931c
mov eax, dword [ebp - 0x44]
push esi
push edi
mov edx, eax
xor esi, esi
xor edi, edi
and edx, 1
je 0x100591c1
push 1
pop edi
test al, 2
je 0x100591c8
or edi, 2
test al, 4
je 0x100591cf
or edi, 4
mov ecx, eax
and ecx, 0x10
je 0x100591d9
or edi, 0x10
test al, 0x20
je 0x100591e0
or edi, 0x20
cmp ecx, esi
je 0x100591ec
or edi, 0x40000000
jmp 0x100591f2
or edi, 0x80000000
or edi, 0x1000000
cmp edx, esi
jne 0x10059202
or edi, 0x800000
push esi
push ebx
call fcn.1001b6ac
pop ecx
cmp eax, 0x28
pop ecx
mov dword [ebp - 8], eax
jbe 0x100592a4
push esi
push esi
push esi
push ebx
call fcn.1001b601
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp + 0xa]
push 2
push eax
push ebx
call fcn.1001b656
push esi
push esi
push 0x24
push ebx
call fcn.1001b601
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push ebx
call fcn.1001b656
add esp, 0x48
cmp word [ebp + 0xa], 0x54ad
jne 0x100592a4
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x34]
cmp dword [ebp - 8], ecx
jbe 0x100592a4
push esi
push esi
push eax
push ebx
call fcn.1001b601
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push ebx
call fcn.1001b656
mov eax, dword [ebp - 0x10]
add esp, 0x24
cmp eax, 0x5a4d
je 0x1005929e
cmp eax, 0x454e
je 0x1005929e
cmp eax, 0x454c
je 0x1005929e
cmp eax, 0x4550
jne 0x100592a4
or edi, 0x400000
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x100592ad
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x100592b9
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x100592ec
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.10059125
push dword [ebp - 0x2c]
mov dword [edi], eax
push dword [ebp - 0x30]
call fcn.10059125
push dword [ebp - 0x3c]
mov dword [edi + 4], eax
push dword [ebp - 0x40]
call fcn.10059125
add esp, 0x18
mov dword [edi + 8], eax
mov edi, dword [ebp + 0x18]
cmp edi, esi
je 0x10059318
lea eax, [ebp + 0xe]
push eax
lea eax, [ebp + 0xa]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.100590c8
movzx eax, word [ebp + 0xa]
movzx ecx, word [ebp + 0xe]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [edi], eax
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret