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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 0x24], eax
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x4d4261
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4d4261
add eax, 4
push 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004dd610
shr ebx, 4
add esp, 0xc
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x4d4245
lea eax, [esi + 8]
sub esi, edi
mov dword [ebp - 0x18], eax
sub esi, 8
lea eax, [edi + 8]
mov dword [ebp + 8], esi
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
add esi, eax
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.004d4274
mov eax, dword [esi]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x34]
xor ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x30]
xor edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
xor edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
add esi, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], ebx
mov dword [eax - 8], ebx
mov dword [eax - 4], edi
mov dword [eax], edx
mov dword [eax + 4], ecx
add eax, 0x10
sub dword [ebp - 0x20], 1
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], eax
jne 0x4d41d3
mov ebx, dword [ebp + 0xc]
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
add eax, 4
push eax
call fcn.004dd610
add esp, 0xc
shl ebx, 4
mov eax, ebx
jmp 0x4d4263
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret 0xc
Function at 0x4d45a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea edi, [ecx + 0x24]
mov dword [ebp - 0x20], 9
mov dword [ebp - 0x1c], edi
lea eax, [edi + 2]
xor esi, esi
mov dword [ebp - 0x24], eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], 4
add edi, esi
mov ebx, eax
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx - 1]
mov dl, byte [esi + eax*4 + 0x6709b0]
movzx eax, byte [ebx - 2]
xor dl, byte [esi + ecx*4 + 0x6701b0]
xor dl, byte [esi + eax*4 + 0x66fdb0]
movzx eax, byte [ebx]
lea ebx, [ebx + 4]
xor dl, byte [esi + eax*4 + 0x6705b0]
sub dword [ebp - 0x18], 1
mov byte [edi], dl
lea edi, [edi + 4]
jne 0x4d45d9
mov eax, dword [ebp - 0x24]
inc esi
cmp esi, 4
jl 0x4d45cb
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call fcn.004dd610
add edi, 0x10
add esp, 0xc
sub dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], edi
jne 0x4d45c3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret
Function at 0x4d4648
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x20
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
push eax
call fcn.004dd610
add esp, 0xc
xor esi, esi
xor edx, edx
mov dword [ebp - 0x28], esi
xor edi, edi
push 4
pop ecx
cmp esi, 0xa
jg 0x4d4781
cmp edi, ecx
jge 0x4d46ad
lea ebx, [ebp - 0x24]
lea ebx, [ebx + edi*4]
cmp edx, ecx
jge 0x4d46ad
mov eax, dword [ebx]
lea ecx, [edx + esi*4]
mov esi, dword [ebp - 0x2c]
inc edi
push 4
mov dword [esi + ecx*4 + 0x14], eax
mov esi, dword [ebp - 0x28]
pop ecx
add ebx, ecx
inc edx
cmp edi, ecx
jl 0x4d468f
cmp edx, ecx
lea eax, [esi + 1]
cmovne eax, esi
mov esi, eax
xor eax, eax
cmp edx, ecx
mov dword [ebp - 0x28], esi
cmovne eax, edx
mov edx, eax
cmp edi, ecx
jl 0x4d467c
cmp esi, 0xa
jg 0x4d4781
mov ecx, 0x66dd90
movzx eax, byte [ebp - 0x16]
push 3
pop ebx
mov al, byte [eax + 0x66db90]
xor byte [ebp - 0x23], al
movzx eax, byte [ebp - 0x15]
mov al, byte [eax + 0x66db90]
xor byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x18]
mov al, byte [eax + 0x66db90]
xor byte [ebp - 0x21], al
movzx eax, byte [ebp - 0x17]
mov al, byte [eax + 0x66db90]
xor al, byte [ebp - 0x24]
xor al, byte [ecx]
inc ecx
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x24], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4d471b
sub ebx, 1
jne 0x4d4718
push 4
pop ecx
cmp esi, 0xa
jg 0x4d4781
cmp edi, ecx
jge 0x4d475b
lea ebx, [ebp - 0x24]
lea ebx, [ebx + edi*4]
cmp edx, ecx
jge 0x4d475b
mov eax, dword [ebx]
lea ecx, [edx + esi*4]
mov esi, dword [ebp - 0x2c]
inc edi
push 4
mov dword [esi + ecx*4 + 0x14], eax
mov esi, dword [ebp - 0x28]
pop ecx
add ebx, ecx
inc edx
cmp edi, ecx
jl 0x4d473d
cmp edx, ecx
lea eax, [esi + 1]
cmovne eax, esi
mov esi, eax
xor eax, eax
cmp edx, ecx
mov dword [ebp - 0x28], esi
cmovne eax, edx
mov edx, eax
cmp edi, ecx
jl 0x4d472e
mov ecx, dword [ebp - 0x30]
cmp esi, 0xa
jle 0x4d46d5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test eax, eax
je 0x4d4990
push esi
push edi
dec eax
mov ecx, 0x1234
add cx, word [ebx + 0x214]
mov dword [ebp + 0xc], eax
movzx eax, cx
mov word [ebx + 0x214], ax
movzx edi, cx
mov eax, edi
shr eax, 1
movzx ecx, al
mov ax, word [ecx*4 + 0x66d790]
xor word [ebx + 0x216], ax
mov ax, word [ecx*4 + 0x66d792]
xor ecx, ecx
sub word [ebx + 0x218], ax
inc ecx
mov ax, word [ebx + 0x21a]
movzx edx, word [ebx + 0x216]
movzx esi, word [ebx + 0x218]
ror ax, cl
xor ax, dx
ror ax, cl
mov ecx, dword [ebp + 8]
movzx eax, ax
mov word [ebx + 0x21a], ax
xor eax, esi
xor eax, edi
movzx eax, ax
mov word [ebx + 0x214], ax
shr eax, 8
xor byte [ecx], al
inc ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], ecx
test eax, eax
jne 0x4d48fc
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4d49fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
push 0x10
mov eax, dword [esi + 0x208]
push edi
xor eax, dword [edi + 4]
mov ebx, dword [edi]
xor ebx, dword [esi + 0x204]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x20c]
xor eax, dword [edi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0x210]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x28], edi
call fcn.004dd610
mov edi, dword [ebp - 0x18]
add esp, 0xc
push 0x1f
pop eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
and eax, 3
rol ecx, 0xb
add ecx, dword [ebp - 0x20]
mov edx, dword [esi + eax*4 + 0x204]
xor ecx, edx
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + esi + 0x104]
mov dword [ebp - 0x18], eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + esi + 0x104]
shl eax, 8
or dword [ebp - 0x18], eax
mov eax, ecx
shl dword [ebp - 0x18], 8
shr eax, 8
movzx eax, al
movzx eax, byte [eax + esi + 0x104]
or dword [ebp - 0x18], eax
shl dword [ebp - 0x18], 8
movzx eax, cl
mov ecx, dword [ebp - 0x18]
movzx eax, byte [eax + esi + 0x104]
or ecx, eax
xor ecx, ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov ecx, ebx
ror ecx, 0xf
xor ecx, dword [ebp - 0x1c]
add ecx, edx
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + esi + 0x104]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + esi + 0x104]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + esi + 0x104]
or edx, eax
movzx eax, cl
mov ecx, dword [ebp - 0x18]
shl edx, 8
mov dword [ebp - 0x20], ecx
movzx eax, byte [eax + esi + 0x104]
or edx, eax
mov eax, dword [ebp - 0x24]
xor edx, edi
mov edi, dword [ebp - 0x1c]
sub eax, 1
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
jns 0x4d4a59
mov eax, dword [esi + 0x204]
xor eax, ecx
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x28]
mov ecx, esi
mov dword [edi], eax
mov eax, dword [esi + 0x208]
xor eax, edx
mov dword [edi + 4], eax
mov eax, dword [esi + 0x20c]
xor eax, ebx
mov dword [edi + 8], eax
mov eax, dword [esi + 0x210]
xor eax, dword [ebp - 0x18]
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004d5301
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret 4
Function at 0x4d5220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
call fcn.00505070
push eax
push edi
push 0xffffffffffffffff
call fcn.004d3cda
mov word [esi + 0x214], ax
xor ebx, ebx
shr eax, 0x10
add esp, 0x10
mov word [esi + 0x216], ax
xor eax, eax
mov dword [esi + 0x218], eax
mov word [esi + 0x21d], bx
mov byte [esi + 0x21c], bl
mov ah, byte [edi]
test ah, ah
je 0x4d52e3
mov cl, bl
mov dword [ebp - 8], ebx
mov al, bl
mov dword [ebp - 0xc], ebx
xor cl, ah
add al, ah
mov byte [esi + 0x21d], cl
add bl, ah
mov byte [ebp - 1], cl
movzx ecx, ah
rol al, 1
mov byte [esi + 0x21e], al
mov byte [esi + 0x21c], bl
mov dx, word [ecx*4 + 0x66d790]
mov byte [ebp + 0xb], al
movzx eax, ah
xor dx, ax
xor dx, word [ebp - 8]
mov word [esi + 0x218], dx
mov cx, word [ecx*4 + 0x66d792]
add cx, ax
movzx edx, dx
add cx, word [ebp - 0xc]
inc edi
mov al, byte [ebp + 0xb]
mov word [esi + 0x21a], cx
movzx ecx, cx
mov ah, byte [edi]
mov dword [ebp - 0xc], ecx
mov cl, byte [ebp - 1]
mov dword [ebp - 8], edx
test ah, ah
jne 0x4d5278
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4d5301
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x210]
add edx, 2
push ebx
mov ebx, dword [ecx + 0x20c]
push esi
mov esi, dword [ecx + 0x204]
push edi
mov edi, dword [ecx + 0x208]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov dword [ebp + 8], 4
movzx eax, byte [edx - 2]
xor esi, dword [eax*4 + 0x66d790]
mov dword [ecx + 0x204], esi
movzx eax, byte [edx - 1]
xor edi, dword [eax*4 + 0x66d790]
mov dword [ecx + 0x208], edi
movzx eax, byte [edx]
lea edx, [edx + 4]
xor ebx, dword [eax*4 + 0x66d790]
mov dword [ecx + 0x20c], ebx
movzx eax, byte [edx - 3]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax*4 + 0x66d790]
sub dword [ebp + 8], 1
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ecx + 0x210], eax
jne 0x4d5334
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4d9546
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x4dba43
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4dba82
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4dba82
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4dba82
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4dba82
cmp dword [ecx + 0x74], 0xe
jbe 0x4dba82
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x5063ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004db570
mov eax, dword [0x667710]
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.00524ffa
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5063f0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x50654c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004db5a0
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 + 0x6722f8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00527e96
mov ecx, dword [esi*4 + 0x6722f8]
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 0x506545
cmp eax, dword [edi + ecx + 0x24]
jne 0x506545
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 0x506545
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00527e96
add esp, 0x14
test edx, edx
jl 0x506545
jg 0x5064bb
test eax, eax
jb 0x506545
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x506545
jl 0x5064d5
cmp dword [ebp - 0x1008], eax
ja 0x506545
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5064f3
test ebx, ebx
je 0x50652c
cmp ecx, edi
jae 0x50652c
mov al, byte [ecx]
cmp al, 0xd
jne 0x50650d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x506519
cmp byte [ecx + 1], 0xa
jne 0x506519
inc ecx
jmp 0x506519
movzx eax, al
movsx eax, byte [eax + 0x667928]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5064f3
cmp edx, ebx
jne 0x5064f3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x50654a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret
Function at 0x526f6c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x620a34
push 0x620a2c
push str.FlsAlloc
push 0x1e
call fcn.00526c3c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x526fa0
push dword [ebp + 8]
mov ecx, esi
call dword [0x614c1c]
call esi
jmp 0x526fa6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x526fea
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x620a44
push 0x620a3c
push str.FlsGetValue
push 0x20
call fcn.00526c3c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x527021
push dword [ebp + 8]
mov ecx, esi
call dword [0x614c1c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x527f15
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6722f8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x527f55
cmp byte [ebx], 0xa
jne 0x527f55
or byte [eax + edi + 0x28], 4
jmp 0x527f5a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x528058
mov al, byte [edx]
cmp al, 0x1a
je 0x52803a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x527f89
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x527fae
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x527fb8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x527f6b
jmp 0x528058
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x528035
cmp dword [ebp - 0xc], 0
je 0x528035
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6722f8]
test byte [eax + edi + 0x28], 0x48
je 0x52800f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x527ffa
mov byte [esi], dl
jmp 0x52800b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6722f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x528058
cmp byte [ebp - 1], 0xa
jne 0x52801e
cmp esi, ebx
jne 0x52801e
mov byte [esi], 0xa
jmp 0x528057
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00527eb4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x528058
mov byte [esi], 0xd
jmp 0x528057
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6722f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x528054
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x528058
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x528061
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6722f8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5280a4
cmp word [esi], dx
jne 0x5280a4
or byte [edi + eax + 0x28], 4
jmp 0x5280a9
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x5281fc
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x5281dc
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x5280eb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x528121
cmp eax, edx
jae 0x52812d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x5280c3
jmp 0x5281fc
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5281d8
cmp dword [ebp - 0x14], 0
je 0x5281d8
mov eax, dword [ebx*4 + 0x6722f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5281b0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x528179
mov word [esi], cx
jmp 0x5281ac
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6722f8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6722f8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6722f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x5281fc
pop ebx
cmp word [ebp - 4], bx
jne 0x5281c1
cmp esi, dword [ebp + 0xc]
jne 0x5281c1
mov word [esi], bx
jmp 0x5281f9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00527eb4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5281fc
push 0xd
jmp 0x5281f5
mov ecx, dword [ebx*4 + 0x6722f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5281f3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5281fc
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x52a869
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052a450

Function at 0x52a874
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052a5df
Function at 0x52f4c4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x52f50f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0052f868
test al, al
jne 0x52f509
sub edx, 2
cmp edx, edi
jne 0x52f4ef
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x52f531
lea eax, [edi + 2]
cmp edx, eax
je 0x52f531
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0052f18b
add esp, 0x10
jmp 0x52f62b
push esi
lea ecx, [ebp - 0x255]
call fcn.0052f868
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x52f574
push dword [ebp - 0x25c]
jmp 0x52f521
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x52f5b1
cmp word [ebp - 0x226], 0
je 0x52f5d2
cmp word [ebp - 0x226], ax
jne 0x52f5b1
cmp word [ebp - 0x224], 0
je 0x52f5d2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0052f18b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x52f61e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x52f58b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x52f606
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x52f62b
push 0x52ecaa
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0053b0f0
add esp, 0x10
jmp 0x52f5fb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret
Function at 0x5309a9
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 0x530a46
push ebx
push esi
call fcn.00530965
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.00530857
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5309f3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x530a45
push edi
push eax
call fcn.00523f12
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x530a13
call fcn.00523ed8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x530a44
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00530857
add esp, 0x20
test eax, eax
jne 0x530a32
push edi
call fcn.00523ed8
jmp 0x530a3a
push ebx
call fcn.00523ed8
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 0x530a49
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x530a5a
pop esi
ret
push ebx
push edi
push esi
call fcn.00530965
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00523f12
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x530a82
push ebx
push esi
push edi
call fcn.004dd610
add esp, 0xc
push 0
call fcn.00523ed8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x531343
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00530cf5

Function at 0x531679
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053154d