joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52ac50
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x5d2f49
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x20], esi
push esi
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], esi
push 0x62a4a0
mov ecx, ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], ebp
mov byte [ebp + 4], 0
call fcn.004098b0
cmp dword [esp + 0x40], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], 1
je 0x52ae00
mov edi, dword [esp + 0x3c]
mov al, byte [edi]
sub dword [esp + 0x40], 1
mov byte [esp + esi + 0x14], al
mov bl, byte [esp + 0x15]
add esi, 1
add edi, 1
cmp esi, 3
jne 0x52ad47
mov al, byte [esp + 0x14]
mov cl, al
shr cl, 2
and al, 3
shl al, 4
mov byte [esp + 0x18], cl
mov dl, bl
shr dl, 4
add al, dl
mov byte [esp + 0x19], al
mov al, byte [esp + 0x16]
mov cl, bl
and cl, 0xf
add cl, cl
mov dl, al
add cl, cl
shr dl, 6
add cl, dl
and al, 0x3f
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], al
xor esi, esi
jmp 0x52ad20
movzx eax, byte [esp + esi + 0x18]
mov cl, byte [eax + 0x5f7310]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
push 1
mov ecx, ebp
call fcn.00407090
add esi, 1
cmp esi, 4
jl 0x52ad20
xor esi, esi
cmp dword [esp + 0x40], 0
jne 0x52acbe
test esi, esi
je 0x52ae00
cmp esi, 3
jge 0x52ad7a
mov ecx, 3
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x18]
push 0
push eax
call fcn.005b4520
mov bl, byte [esp + 0x21]
add esp, 0xc
mov al, byte [esp + 0x14]
mov dl, al
mov cl, bl
and al, 3
shl al, 4
shr cl, 4
add al, cl
shr dl, 2
and bl, 0xf
mov byte [esp + 0x19], al
mov al, byte [esp + 0x16]
add bl, bl
mov byte [esp + 0x18], dl
mov dl, al
add bl, bl
shr dl, 6
add bl, dl
mov byte [esp + 0x1a], bl
and al, 0x3f
lea ebx, [esi + 1]
xor edi, edi
test ebx, ebx
mov byte [esp + 0x1b], al
jle 0x52ade4
lea esp, [esp]
movzx eax, byte [esp + edi + 0x18]
mov cl, byte [eax + 0x5f7310]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
push 1
mov ecx, ebp
call fcn.00407090
add edi, 1
cmp edi, ebx
jl 0x52adc0
cmp esi, 3
jge 0x52ae00
mov edi, 3
sub edi, esi
push 0x3d
push 1
mov ecx, ebp
call fcn.00407090
sub edi, 1
jne 0x52adf0
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x52ca80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5d31a3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x65ec64
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x65ec64
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x62a4a0
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00530410
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x530b20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor eax, eax
lea ebx, [ebx]
mov byte [eax + esi], al
add eax, 1
cmp eax, 0x100
jb 0x530b30
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor edi, edi
xor ecx, ecx
lea esp, [esp]
xor edx, edx
mov eax, ecx
div ebp
add ecx, 1
movzx eax, byte [edx + ebx]
movzx edx, byte [ecx + esi - 1]
add edx, edi
add eax, edx
and eax, 0xff
cmp ecx, 0x100
mov edi, eax
movzx edx, byte [edi + esi]
mov al, byte [ecx + esi - 1]
mov byte [ecx + esi - 1], dl
mov byte [edi + esi], al
jb 0x530b50
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x530b90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x104
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x100], eax
cmp byte [esp + 0x108], 0x31
push esi
mov esi, dword [esp + 0x110]
push edi
mov edi, dword [esp + 0x11c]
jne 0x530c56
push ebp
push 0x100
lea eax, [esp + 0x10]
push 0
push eax
call fcn.005b4520
mov edx, dword [esp + 0x128]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.00530b20
mov ebp, dword [esp + 0x13c]
add esp, 0x18
xor ecx, ecx
xor esi, esi
xor eax, eax
test ebp, ebp
jbe 0x530c55
push ebx
lea esp, [esp]
add ecx, 1
and ecx, 0xff
movzx edx, byte [esp + ecx + 0x10]
add edx, esi
and edx, 0xff
mov esi, edx
mov bl, byte [esp + esi + 0x10]
mov dl, byte [esp + ecx + 0x10]
mov byte [esp + ecx + 0x10], bl
mov byte [esp + esi + 0x10], dl
movzx ebx, byte [esp + ecx + 0x10]
movzx edx, dl
add edx, ebx
and edx, 0x800000ff
jns 0x530c42
dec edx
or edx, 0xffffff00
inc edx
movzx edx, dl
movzx edx, byte [esp + edx + 0x10]
xor byte [edi + eax], dl
add eax, 1
cmp eax, ebp
jb 0x530c00
pop ebx
pop ebp
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
call fcn.005b0968
add esp, 0x104
ret

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

Disassembly:
xor eax, eax
test ecx, ecx
jle 0x532cd1
push esi
push edi
jmp 0x532cb0
movzx esi, byte [edx]
movzx esi, byte [esi + 0x5f8b18]
lea edi, [eax*8]
xor esi, edi
sub ecx, 1
xor eax, esi
add edx, 1
test ecx, ecx
jg 0x532cb0
pop edi
pop esi
ret
Function at 0x533710
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call fcn.00532e30
test eax, eax
mov ebx, dword [esp + 0x20]
je 0x533737
call fcn.00532e90
mov edi, eax
jmp 0x533753
call fcn.00532e90
mov esi, eax
cmp esi, ebp
je 0x533757
push esi
call fcn.00532fc0
push esi
mov edi, eax
call fcn.005b0977
add esp, 8
cmp edi, ebp
jne 0x533764
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 8
ret
call fcn.00532e30
test eax, eax
je 0x5337b6
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esp, [esp]
push edi
call ebx
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x53379c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov dword [esp + 0x14], eax
jne 0x5337f8
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x5337f8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x533780
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call ebx
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x5337de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov dword [esp + 0x14], eax
jne 0x5337f8
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x5337f8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x5337c2
push edi
call fcn.005b0977
add esp, 4
cmp esi, 0xffffffff
jne 0x533817
cmp dword [esp + 0x14], 2
jne 0x533817
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0xa0a
pop ebx
add esp, 8
ret
Function at 0x538b80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
test ebp, ebp
mov eax, ebp
jne 0x538b97
xor ebx, ebx
jmp 0x538bb1
cmp byte [ebp], 0
je 0x538ba8
lea ecx, [ecx]
add eax, 1
cmp byte [eax], 0
jne 0x538ba0
sub eax, ebp
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jle 0x538c74
jmp 0x538bd4
mov esi, dword [esp + 0x10]
cmp esi, 2
jge 0x538bdc
xor esi, 1
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x538bfc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov edx, esi
shl edx, 4
mov edx, dword [edx + eax]
call fcn.00532030
test eax, eax
jne 0x538c5f
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
shl esi, 4
mov ecx, dword [esi + edx + 0xc]
add ecx, 4
cmp dword [ecx + 0xc], 0
je 0x538c49
xor eax, eax
test ebx, ebx
mov edi, ebx
mov edx, ebp
jle 0x538c43
lea ecx, [ecx]
movzx esi, byte [edx]
movzx esi, byte [esi + 0x5f8b18]
lea ebp, [eax*8]
xor esi, ebp
sub edi, 1
xor eax, esi
add edx, 1
test edi, edi
jg 0x538c20
mov ebp, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x538c4b
xor edx, edx
push ebp
call fcn.00532d40
add esp, 4
test eax, eax
je 0x538c7e
mov edi, dword [eax + 8]
test edi, edi
jne 0x538c74
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x538bd0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor edi, edi
jmp 0x538c5f

Function at 0x538c90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
xor ebp, ebp
test edi, edi
mov eax, edi
jne 0x538ca6
xor ebx, ebx
jmp 0x538cc1
cmp byte [edi], 0
je 0x538cb8
jmp 0x538cb0
add eax, 1
cmp byte [eax], 0
jne 0x538cb0
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov edx, dword [ecx + 4]
xor eax, eax
test edx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
jle 0x538d82
mov ecx, dword [ecx + 8]
push esi
mov dword [esp + 0x14], ecx
jmp 0x538ce4
mov eax, dword [esp + 0x10]
cmp eax, 2
jge 0x538cec
xor eax, 1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
shl eax, 4
mov esi, dword [eax + edx + 0xc]
add eax, edx
test ecx, ecx
je 0x538d0c
mov edx, dword [eax]
call fcn.00532030
test eax, eax
jne 0x538d5f
cmp dword [esi + 0x20], 0
lea ecx, [esi + 0x14]
je 0x538d49
xor eax, eax
test ebx, ebx
mov esi, ebx
mov edx, edi
jle 0x538d43
nop
movzx edi, byte [edx]
movzx edi, byte [edi + 0x5f8b18]
lea ebp, [eax*8]
xor edi, ebp
sub esi, 1
xor eax, edi
add edx, 1
test esi, esi
jg 0x538d20
mov edi, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x538d4b
xor edx, edx
push edi
call fcn.00532d40
add esp, 4
test eax, eax
je 0x538d7e
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x538d74
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jl 0x538ce0
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
jmp 0x538d5f
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x53ce80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea eax, [esi*8]
cmp eax, 0x400
jbe 0x53ce9b
mov esi, 0x80
cmp esi, dword [edi]
jne 0x53cea6
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [0x65ef5c]
test eax, eax
je 0x53ceb1
call eax
lea ecx, [esi*8]
push ebp
push ecx
call fcn.0053c530
mov ebp, eax
mov eax, dword [0x65ef60]
add esp, 4
test eax, eax
mov dword [esp + 8], ebp
je 0x53ced3
call eax
test ebp, ebp
jne 0x53cedf
pop ebp
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [edi + 0xc]
push ebx
push edx
call fcn.00531ca0
push ebp
mov dword [edi + 0xc], ebp
call dword [0x659294]
mov ebx, eax
shr ebx, 3
lea eax, [ebx*8]
push eax
push 0
push ebp
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call fcn.005b4520
mov ecx, dword [edi + 8]
add esp, 0x14
test ecx, ecx
mov dword [edi + 8], 0
je 0x53cfc5
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx + 0xc]
xor eax, eax
test edx, edx
jle 0x53cf57
nop
movzx ebx, byte [esi]
movzx ebx, byte [ebx + 0x5f8b18]
lea ebp, [eax*8]
xor ebx, ebp
sub edx, 1
xor eax, ebx
add esi, 1
test edx, edx
jg 0x53cf30
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
xor edx, edx
div ebx
lea eax, [ebp + edx*8]
test eax, eax
je 0x53cfa0
mov esi, dword [eax]
test esi, esi
je 0x53cf74
mov edx, dword [eax + 4]
jmp 0x53cf76
xor edx, edx
add esi, 1
test edx, edx
mov dword [eax], esi
mov dword [eax + 4], ecx
je 0x53cfa0
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x53cf98
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x53cfb9
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x53cfb9
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x53cfaf
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x53cf23
pop ebx
pop ebp
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x544300
Capabilities:
Get common file path

Disassembly:
sub esp, 0x318
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x314], eax
mov eax, dword [0x65f050]
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x324]
push esi
push edi
mov edi, ecx
je 0x544347
push eax
push 0x5f453c
lea eax, [esp + 0x1c]
push eax
push 0xe6
call fcn.00544170
add esp, 0x10
jmp 0x5443ee
call fcn.00532e30
test eax, eax
je 0x544393
lea ecx, [esp + 0x11c]
push ecx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [esp + 0x11c]
call fcn.00532ef0
mov esi, eax
test esi, esi
jne 0x5443d0
mov eax, 7
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b0968
add esp, 0x318
ret
lea eax, [esp + 0x11c]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x11c]
push ecx
call fcn.00532f50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x544375
call fcn.00532ef0
push ebx
mov esi, eax
call fcn.005b0977
add esp, 4
test esi, esi
je 0x544375
push esi
push 0x5f453c
lea edx, [esp + 0x1c]
push edx
push 0xe6
call fcn.00544170
push esi
call fcn.005b0977
add esp, 0x14
mov dl, byte [esp + 0x14]
test dl, dl
lea eax, [esp + 0x14]
je 0x544408
lea ebx, [ebx]
add eax, 1
cmp byte [eax], 0
jne 0x544400
lea ecx, [esp + 0x14]
sub eax, ecx
and eax, 0x3fffffff
mov ecx, eax
mov eax, str.etilqs_
lea ebx, [ebx]
add eax, 1
cmp byte [eax], 0
jne 0x544420
sub eax, str.etilqs_
and eax, 0x3fffffff
lea eax, [eax + ecx + 0x11]
cmp eax, edi
jl 0x544444
mov eax, 1
jmp 0x54437a
test dl, dl
lea eax, [esp + 0x14]
je 0x544458
lea esp, [esp]
add eax, 1
cmp byte [eax], 0
jne 0x544450
lea ecx, [esp + 0x14]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x544473
sub ecx, 1
cmp byte [ecx + eax], 0x5c
jne 0x544473
sub eax, 1
jne 0x544468
lea edx, [esp + 0x14]
push edx
push str._setilqs_
push ebp
add edi, 0xffffffef
push edi
mov byte [esp + eax + 0x24], 0
call fcn.00544170
add esp, 0x10
test ebp, ebp
mov eax, ebp
je 0x5444af
cmp byte [ebp], 0
je 0x5444a8
jmp 0x5444a0
add eax, 1
cmp byte [eax], 0
jne 0x5444a0
sub eax, ebp
and eax, 0x3fffffff
cmp dword [0x659274], 0
mov esi, eax
mov edi, 0xf
lea ebx, [eax + ebp]
jne 0x5444cc
mov dword [esp + 0x10], 0
jmp 0x5444f0
push 5
call dword [0x6592b0]
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x5444f0
push eax
call dword [0x6592b8]
add esp, 4
lea esp, [esp]
sub edi, 1
call fcn.0053cc80
mov byte [ebx], al
add ebx, 1
test edi, edi
jne 0x5444f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x544513
push eax
call dword [0x6592c0]
add esp, 4
mov ecx, 0xf
jmp 0x544520
movzx eax, byte [esi + ebp]
xor edx, edx
mov edi, 0x3e
div edi
add esi, 1
sub ecx, 1
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi + ebp - 1], dl
jne 0x544520
mov byte [esi + ebp], cl
xor eax, eax
jmp 0x54437a
Function at 0x544760
Capabilities:
Get disk size

Disassembly:
sub esp, 0x114
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
push 0x104
push eax
push edx
mov dword [esp + 0x14], 0x200
call fcn.00544640
add esp, 0x10
test eax, eax
jne 0x544891
push ebx
push esi
push edi
call fcn.00532e30
test eax, eax
lea ebx, [esp + 0x14]
je 0x5447b8
call fcn.00532e90
mov esi, eax
jmp 0x5447d8
call fcn.00532e90
mov edi, eax
test edi, edi
je 0x544858
push edi
call fcn.00532fc0
push edi
mov esi, eax
call fcn.005b0977
add esp, 8
test esi, esi
je 0x544858
call fcn.00532e30
test eax, eax
mov eax, esi
je 0x54481d
cmp word [esi], 0
je 0x544806
lea ecx, [ecx]
cmp word [eax], 0x5c
je 0x544801
add eax, 2
cmp word [eax], 0
jne 0x5447f0
jmp 0x544806
mov word [eax], 0
lea eax, [esp + 0xc]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x544849
cmp byte [esi], 0
je 0x544834
cmp byte [eax], 0x5c
je 0x544831
add eax, 1
cmp byte [eax], 0
jne 0x544822
jmp 0x544834
mov byte [eax], 0
lea ecx, [esp + 0xc]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x18]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.005b0977
add esp, 4
test edi, edi
jne 0x544875
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005b0968
add esp, 0x114
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005b0968
add esp, 0x114
ret
mov ecx, dword [esp + 0x110]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.005b0968
add esp, 0x114
ret
Function at 0x546170
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
jne 0x54617d
xor eax, eax
pop ebx
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, 0x44
call fcn.0053c960
mov edi, eax
test edi, edi
jne 0x546197
pop edi
pop esi
pop ebx
ret
mov eax, dword [ebx]
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push eax
push esi
call fcn.005403d0
mov dword [edi], eax
mov ecx, dword [ebx + 8]
push ebp
push ecx
push esi
call fcn.00545f10
push 0
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
push ebp
push eax
push esi
call fcn.0054dca0
mov dword [edi + 0xc], eax
mov edx, dword [ebx + 0x10]
push ebp
push edx
push esi
call fcn.005403d0
push 0
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
push ebp
push eax
push esi
call fcn.0054dca0
add esp, 0x44
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
push ebp
push eax
push esi
call fcn.005403d0
mov dword [edi + 0x18], eax
mov cl, byte [ebx + 4]
mov byte [edi + 4], cl
mov edx, dword [ebx + 0x1c]
push ebp
push edx
push esi
call fcn.00546170
push 0
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x28]
push ebp
push eax
push esi
call fcn.0054dca0
push 0
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x2c]
push ebp
push eax
push esi
call fcn.0054dca0
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov cx, word [ebx + 6]
add esp, 0x38
mov dword [edi + 0x24], eax
or eax, 0xffffffff
pop ebp
and cx, 0xfff7
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov word [edi + 6], cx
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x54f5a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esi]
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebp
jmp 0x54f5c0
test edi, edi
mov al, byte [ebp + 0x5f9388]
mov byte [esp + 0x10], al
je 0x54f649
cmp byte [edi], 0
mov eax, edi
je 0x54f5dd
add eax, 1
cmp byte [eax], 0
jne 0x54f5d5
mov ecx, dword [esp + 0x20]
sub eax, edi
and eax, 0x3fffffff
add ecx, 0x190
cmp dword [ecx + 0xc], 0
mov ebx, eax
je 0x54f631
xor eax, eax
test ebx, ebx
mov esi, ebx
mov edx, edi
jle 0x54f627
movzx edi, byte [edx]
movzx edi, byte [edi + 0x5f8b18]
lea ebp, [eax*8]
xor edi, ebp
sub esi, 1
xor eax, edi
add edx, 1
test esi, esi
jg 0x54f600
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
xor edx, edx
div dword [ecx]
jmp 0x54f633
xor edx, edx
push edi
call fcn.00532d40
add esp, 4
test eax, eax
je 0x54f645
mov eax, dword [eax + 8]
jmp 0x54f650
xor eax, eax
jmp 0x54f650
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x2c]
test eax, eax
je 0x54f660
movzx ecx, byte [esp + 0x10]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4 - 0x14]
cmp dword [eax + 0xc], 0
jne 0x54f683
add ebp, 1
cmp ebp, 3
mov dword [esp + 0x14], ebp
jl 0x54f5c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [eax + 0x10]
pop edi
mov dword [esi + 0x10], 0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x5559b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esi + 0x3c]
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [edx], ebx
jne 0x5559e1
mov eax, dword [esi + 0x78]
mov ecx, dword [esi]
or eax, 0x1e
push ebx
and eax, 0x87f3f
push eax
mov eax, dword [ecx + 0x18]
push edx
push ebx
push ecx
call eax
add esp, 0x14
test eax, eax
jne 0x555ac2
mov ebx, eax
mov ecx, dword [esi + 0x18]
cmp ecx, dword [esi + 0x24]
jbe 0x555a1d
mov eax, dword [esi + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.005b6180
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 5
push eax
mov eax, dword [ecx + 0x28]
call eax
mov ecx, dword [esi + 0x18]
add esp, 0xc
mov dword [esi + 0x24], ecx
push ebp
push edi
nop
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x555abe
mov edi, dword [ebp + 0xc]
cmp edi, dword [esi + 0x18]
ja 0x555aaf
test byte [ebp + 0x14], 0x20
jne 0x555aaf
mov ebx, dword [esi + 0x80]
mov eax, ebx
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.005b6180
mov ecx, dword [esi + 0x3c]
mov ebp, dword [ebp]
push edx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
push ebx
push ebp
push ecx
call eax
add esp, 0x14
cmp edi, 1
mov dword [esp + 0xc], eax
jne 0x555a91
mov ecx, dword [ebp + 0x18]
lea eax, [ebp + 0x18]
mov dword [esi + 0x64], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x68], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x6c], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x70], edx
cmp edi, dword [esi + 0x20]
jbe 0x555a99
mov dword [esi + 0x20], edi
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [esi + 0x58]
call fcn.005536b0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0xc]
test ebx, ebx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x20], ecx
je 0x555a20
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x58e220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d3708
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xc], ebx
jl 0x58e2d3
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x40], ebx
call fcn.0058e080
test eax, eax
je 0x58e2b7
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x18]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004080b0
cmp dword [esp + 0x28], 0x10
jb 0x58e2ed
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00594e98
add esp, 4
jmp 0x58e2ed
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x38], 0xffffffff
jb 0x58e2d3
mov edx, dword [esp + 0x14]
push edx
call fcn.00594e98
add esp, 4
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x62a4a0
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004098b0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005b0968
add esp, 0x30
ret 8