joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ae340
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5ae36f
push esi
call fcn.005ae520
add esp, 4
cmp byte [esi + 0x40], 0
je 0x5ae368
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x5ae3f2
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x5ae3dd
mov eax, dword [esi + 8]
test eax, eax
je 0x5ae395
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a8]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x5ae3d8
cmp eax, 2
je 0x5ae3dd
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5ae386
cmp eax, 3
je 0x5ae3bd
cmp eax, 1
jne 0x5ae386
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x5ae386
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x5ae386
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.005ae420
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x5ae414
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.005ae420
add esp, 4
pop edi
pop esi
ret

Function at 0x5ae420
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x5ae44c
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
je 0x5ae4d2
lea ebx, [esi + 0x78]
jmp 0x5ae460
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x5ae4a6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5ae485
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x19c]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x5ae4e8
cmp eax, dword [esi + 0x60]
jb 0x5ae467
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
jne 0x5ae460
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x5af660
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.005bb880
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.005bb850
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5af6a7
push edi
call fcn.005bb890
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.005af2f0
mov dword [esi + 4], fcn.005af180
mov dword [esi + 8], fcn.005af250
mov dword [esi + 0xc], fcn.005af0d0
mov dword [esi + 0x10], 0x5af9c0
mov dword [esi + 0x14], 0x5af950
mov dword [esi + 0x18], 0x5af7b0
mov dword [esi + 0x1c], 0x5aef80
mov dword [esi + 0x20], 0x5aee30
mov dword [esi + 0x24], 0x5af560
mov dword [esi + 0x28], 0x5afa30
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x5af78a
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x5af78a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x5af779
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x5af781
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x5b2f50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1c0]
mov dword [esp + 0x1c], ebx
jne 0x5b2f75
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x5b2f7b
xor esi, esi
mov byte [ebx + 0x1c], 0
push dword [ebp + 0x64]
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x100]
push eax
push 1
push ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], esi
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x64], ecx
jle 0x5b3090
push edi
lea ecx, [ecx]
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x5b2fcd
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi*2 - 2]
cdq
idiv ecx
xor esi, esi
mov edx, eax
lea esp, [esp]
cmp esi, edx
jle 0x5b3026
mov ecx, dword [esp + 0x10]
lea edi, [edi*2 - 2]
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
lea ecx, [ecx]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x5b3010
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x5b2ff0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x5b3071
mov ecx, 1
lea edx, [ebp - 1]
jmp 0x5b3050
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x5b3050
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x1c]
jl 0x5b2fb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x405980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ceaa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x4fe9a8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], ebx
call fcn.004b30ce
mov ecx, dword [0x4fe9a8]
mov dword [esp + 0x30], ecx
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 2
mov dword [esp + 0x24], vtable.CFileException.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0xffffffff
call fcn.004b1c27
lea edx, [esp + 0xc]
mov ecx, esi
push edx
mov byte [esp + 0x40], 3
call fcn.00405b60
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 4
call fcn.004b1bd7
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 3
call fcn.004b1a9e
lea ecx, [esp + 0x10]
call fcn.004b34f5
mov ecx, dword [esp + 8]
lea eax, [esp + 0x20]
push eax
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 5
call fcn.004b36a7
cmp eax, ebx
je 0x405adc
push edi
lea edx, [esi + 0x40]
push 0x1c
push edx
lea ecx, [esp + 0x1c]
call fcn.004b37c4
lea ebx, [esi + 0x3c]
push 4
push ebx
lea ecx, [esp + 0x1c]
call fcn.004b37c4
lea edi, [esi + 0x38]
push 4
push edi
lea ecx, [esp + 0x1c]
call fcn.004b37c4
mov eax, dword [edi]
mov ecx, 1
cmp eax, 0x418
pop edi
jne 0x405a7f
mov dword [esi + 4], 2
jmp 0x405a82
mov dword [esi + 4], ecx
mov eax, dword [ebx]
cmp eax, ecx
jne 0x405a8f
push 0x4fb474
jmp 0x405ac9
cmp eax, 2
jne 0x405a9b
push 0x4fb46c
jmp 0x405ac9
cmp eax, 3
jne 0x405aa7
push 0x4fb460
jmp 0x405ac9
cmp eax, 4
jne 0x405ab3
push 0x4fb450
jmp 0x405ac9
cmp eax, 5
jne 0x405abf
push 0x4fb448
jmp 0x405ac9
cmp eax, 6
jne 0x405ad1
push 0x4fb440
lea ecx, [esi + 0x5c]
call fcn.004b1c27
lea ecx, [esp + 0x10]
call fcn.004b38c2
jmp 0x405b0c
mov ecx, 1
push 0x4fb448
mov byte [esi + 0x54], cl
mov dword [esi + 4], ecx
lea ecx, [esi + 0x5c]
mov dword [esi + 0x44], 0x2580
mov byte [esi + 0x52], 8
mov byte [esi + 0x53], bl
mov dword [esi + 0x38], 0x417
mov dword [esi + 0x3c], ebx
call fcn.004b1c27
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.004b35ea
mov dword [esp + 0x20], vtable.CFileException.0
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 6
call fcn.004b1a9e
lea ecx, [esp + 8]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004b1a9e
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x40eee0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x4d0050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x95c]
mov dword [esp + 0x10], 0x24
call fcn.004c003a
lea ecx, [esi + 0x920]
mov byte [esp + 0x10], 0x23
call fcn.004c003a
lea ecx, [esi + 0x8e4]
mov byte [esp + 0x10], 0x22
call fcn.004c003a
lea ecx, [esi + 0x8a8]
mov byte [esp + 0x10], 0x21
call fcn.004c003a
lea ecx, [esi + 0x86c]
mov byte [esp + 0x10], 0x20
call fcn.004c003a
lea ecx, [esi + 0x830]
mov byte [esp + 0x10], 0x1f
call fcn.004c003a
lea ecx, [esi + 0x7f4]
mov byte [esp + 0x10], 0x1e
call fcn.004c003a
lea ecx, [esi + 0x7b8]
mov byte [esp + 0x10], 0x1d
call fcn.004c003a
lea ecx, [esi + 0x77c]
mov byte [esp + 0x10], 0x1c
call fcn.004c003a
lea ecx, [esi + 0x740]
mov byte [esp + 0x10], 0x1b
call fcn.004c003a
lea ecx, [esi + 0x704]
mov byte [esp + 0x10], 0x1a
call fcn.004c003a
lea ecx, [esi + 0x6c8]
mov byte [esp + 0x10], 0x19
call fcn.004c011f
lea ecx, [esi + 0x68c]
mov byte [esp + 0x10], 0x18
call fcn.004c011f
mov byte [esp + 0x10], 0x17
lea ecx, [esi + 0x650]
call fcn.004c011f
lea ecx, [esi + 0x614]
mov byte [esp + 0x10], 0x16
call fcn.004c011f
lea ecx, [esi + 0x5d8]
mov byte [esp + 0x10], 0x15
call fcn.004c011f
lea ecx, [esi + 0x59c]
mov byte [esp + 0x10], 0x14
call fcn.004c011f
lea ecx, [esi + 0x560]
mov byte [esp + 0x10], 0x13
call fcn.004c011f
lea ecx, [esi + 0x524]
mov byte [esp + 0x10], 0x12
call fcn.004c011f
lea ecx, [esi + 0x4e8]
mov byte [esp + 0x10], 0x11
call fcn.004c011f
lea ecx, [esi + 0x4ac]
mov byte [esp + 0x10], 0x10
call fcn.004c011f
lea ecx, [esi + 0x470]
mov byte [esp + 0x10], 0xf
call fcn.004c011f
lea ecx, [esi + 0x434]
mov byte [esp + 0x10], 0xe
call fcn.004c011f
lea ecx, [esi + 0x3f8]
mov byte [esp + 0x10], 0xd
call fcn.004c011f
lea ecx, [esi + 0x3bc]
mov byte [esp + 0x10], 0xc
call fcn.004c011f
lea ecx, [esi + 0x380]
mov byte [esp + 0x10], 0xb
call fcn.004c011f
lea ecx, [esi + 0x344]
mov byte [esp + 0x10], 0xa
call fcn.004c011f
lea ecx, [esi + 0x308]
mov byte [esp + 0x10], 9
call fcn.004c011f
lea ecx, [esi + 0x2cc]
mov byte [esp + 0x10], 8
call fcn.004c011f
lea ecx, [esi + 0x290]
mov byte [esp + 0x10], 7
call fcn.004c011f
lea ecx, [esi + 0x254]
mov byte [esp + 0x10], 6
call fcn.004c011f
lea ecx, [esi + 0x218]
mov byte [esp + 0x10], 5
call fcn.004c011f
lea ecx, [esi + 0x1dc]
mov byte [esp + 0x10], 4
call fcn.004c011f
lea ecx, [esi + 0x1a0]
mov byte [esp + 0x10], 3
call fcn.004c011f
lea ecx, [esi + 0x164]
mov byte [esp + 0x10], 2
call fcn.004c011f
lea ecx, [esi + 0x128]
mov byte [esp + 0x10], 1
call fcn.004c011f
lea ecx, [esi + 0xec]
mov byte [esp + 0x10], 0
call fcn.004bfeb3
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.004b2261
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x443bd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d4ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov ecx, dword [0x4fe9a8]
mov edi, dword [esi + 0x14e8]
mov eax, dword [edi + 0x3c4]
mov dword [esp + 8], ecx
neg eax
sbb eax, eax
and eax, 0x3c28
add eax, 0x2710
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
sub esp, 8
lea edx, [esp + 0x10]
mov dword [esp + 0x28], 0
fstp qword [esp + 0x18]
fild dword [esp + 0x30]
fdiv qword [esp + 0x18]
fstp qword [esp]
push str._.2lf
push edx
call fcn.004ab8dd
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.004b1813
mov ecx, esi
call fcn.0043ad30
fild dword [esp + 0x2c]
sub esp, 8
lea ecx, [esp + 0x10]
fdiv qword [esp + 0x18]
fstp qword [esp]
push str._.2lf
push ecx
call fcn.004ab8dd
add esp, 0xc
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004b1813
mov ecx, esi
call fcn.0043adc0
mov eax, dword [edi + 0x1c]
push 0
push 0
push eax
nop
call fcn.00548ceb
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.004b1a9e
mov ecx, dword [esp + 0x18]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x1c
ret 8
Function at 0x48c900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
test ecx, ecx
jle 0x48ca30
mov eax, dword [ebp + 0x10]
mov ebx, ecx
lea edx, [eax + 0x168]
mov eax, dword [ebp + 0xc]
add eax, 0x78
lea esi, [eax - 0x3c]
lea edi, [edx - 0x168]
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
lea edi, [edx - 0xb4]
mov ecx, 0xf
mov esi, eax
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x3c]
mov edi, edx
mov ecx, 0xf
add eax, 0xf0
add edx, 0x21c
dec ebx
rep movsd dword es:[edi], dword [esi]
jne 0x48c928
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x48ca30
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x14], ecx
lea ebx, [edx + 0xb4]
cmp byte [ebx - 0xb4], 0x40
jne 0x48ca1b
lea eax, [ebx - 0xb3]
push eax
call fcn.0049b35e
add esp, 4
test eax, eax
jg 0x48c9ae
cmp byte [ebx], 0x40
jne 0x48ca1b
lea ecx, [ebx + 1]
push ecx
call fcn.0049b35e
add esp, 4
test eax, eax
jle 0x48ca1b
lea esi, [ebx + 4]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x18]
lea edi, [esi - 0xb4]
push edx
push edi
call fcn.0041d460
lea eax, [esp + 0x20]
push eax
push esi
call fcn.0041d460
fld qword [esp + 0x18]
fmul qword [0x4dc548]
push edi
fstp qword [esp + 0x1c]
fld qword [esp + 0x24]
fmul qword [0x4dc548]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
fstp qword [esp + 0x2c]
call fcn.0041d420
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push esi
push eax
push ecx
call fcn.0041d420
mov eax, dword [esp + 0x10]
add esi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x48c9b5
mov eax, dword [esp + 0x14]
add ebx, 0x21c
dec eax
mov dword [esp + 0x14], eax
jne 0x48c979
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x53d553
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.00541ce3
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00541d6b
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call fcn.00542658
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 2
jne 0x53d5d6
cmp dword [0x54f4c8], 1
jne 0x53d5d6
cmp dword [ebp - 0xc], 0
je 0x53d5d6
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0053d412
add esp, 8
jmp 0x53d5e5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 0x14], eax
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 8

Function at 0x53d7d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
jmp 0x53d81b
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x3c
jge 0x53d841
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp dword [eax*4 + 0x54f09c], ecx
jne 0x53d83f
cmp dword [ebp - 0xc], 0
je 0x53d83d
mov eax, dword [ebp - 0xc]
add dword [eax + 8], 0xa
jmp 0x53d841
jmp 0x53d818
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x53d8e4
mov dword [ebp - 0x18], 0
jmp 0x53d86f
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x3c
jge 0x53d8e4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp dword [eax*4 + 0x54f09c], ecx
jne 0x53d8e2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx*4 + 0x54f2b8]
cmp dword [eax*4 + 0x54f1c8], ecx
jb 0x53d8d1
mov eax, dword [ebp - 0x10]
cmp dword [0x54f098], eax
je 0x53d8bf
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x54f18c]
push eax
call fcn.0054241a
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [0x54f098], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00541f71
add esp, 8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add dword [ecx*4 + 0x54f1c8], eax
jmp 0x53d8e4
jmp 0x53d86c
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 0x14
Function at 0x53d8f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
jmp 0x53d943
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x3c
jge 0x53d9a5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
cmp dword [eax*4 + 0x54f09c], ecx
jne 0x53d9a3
mov eax, dword [ebp - 0xc]
cmp dword [0x54f098], eax
je 0x53d97d
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x54f18c]
push eax
call fcn.0054241a
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x54f098], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00541fbd
add esp, 8
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], 0
je 0x53d9a1
mov eax, dword [ebp - 8]
add dword [eax + 8], 0xa
jmp 0x53d9a5
jmp 0x53d940
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x53d9d3
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00541f71
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 0x14

Function at 0x5426b3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.00541ce3
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00541d6b
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.005428e2
add esp, 8
cmp eax, 0xffffffff
je 0x542718
mov dword [ebp - 0x14], 1
jmp 0x54271f
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 2
jne 0x54274f
cmp dword [ebp - 8], 0
je 0x54274f
cmp dword [ebp - 0x14], 0
je 0x54274f
push 0x54fc78
mov eax, dword [ebp - 4]
push eax
call fcn.00542760
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x543f2d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x543f55
xor eax, eax
leave
ret
mov eax, dword [ebp - 0x84]
xor ecx, ecx
sub eax, ecx
je 0x543f89
dec eax
je 0x543f69
dec eax
je 0x543f7b
jmp 0x543f51
cmp dword [ebp - 0x8c], ecx
jne 0x543f75
push 4
jmp 0x543f8b
jbe 0x543f7b
push 5
jmp 0x543f8b
cmp dword [ebp - 0x90], 5
sbb eax, eax
add eax, 7
leave
ret
push 3
pop eax
leave
ret

Function at 0x546b8f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x546bc1
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
push 4
pop ebx
lea ecx, [eax + esi]
mov eax, esi
cdq
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx + edi]
inc esi
cmp esi, dword [ebp + 0x14]
mov byte [ecx], al
jl 0x546ba2
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x408b90
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c63b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046127f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408c12
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045ee5d
mov eax, dword [eax]
push 0x4b31c0
push eax
call fcn.00451c34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046150a
test bl, bl
je 0x408c12
push 0x4b31c0
lea ecx, [esp + 0xc]
call fcn.0046189a
push 0x4b6d34
lea ecx, [esp + 0xc]
call fcn.0046189a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x408c4e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046150a
jmp 0x408d19
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408cd2
lea edx, [esp + 0x7c]
push 0x4b6d30
push edx
call fcn.00451c34
add esp, 8
test eax, eax
je 0x408cd2
lea eax, [esp + 0x7c]
push 0x4b6d2c
push eax
call fcn.00451c34
add esp, 8
test eax, eax
je 0x408cd2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408c62
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046150a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x409510
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409572
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc