joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51e70f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x5473d0
call fcn.00520fbc
mov edi, 0x94
mov eax, edi
call fcn.0051d0b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x5af950], ecx
mov eax, dword [esi + 4]
mov dword [0x5af95c], eax
mov edx, dword [esi + 8]
mov dword [0x5af960], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x5af954], esi
cmp ecx, 2
je 0x51e76f
or esi, 0x8000
mov dword [0x5af954], esi
shl eax, 8
add eax, edx
mov dword [0x5af958], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x51e7aa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x51e7aa
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x51e7c2
cmp eax, 0x20b
je 0x51e7af
mov dword [ebp - 0x1c], esi
jmp 0x51e7d6
cmp dword [ecx + 0x84], 0xe
jbe 0x51e7aa
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x51e7d0
cmp dword [ecx + 0x74], 0xe
jbe 0x51e7aa
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00522acc
pop ecx
test eax, eax
jne 0x51e7ea
push 0x1c
call fcn.0051e6eb
pop ecx
call fcn.0051fc9e
test eax, eax
jne 0x51e7fb
push 0x10
call fcn.0051e6eb
pop ecx
call fcn.00523afc
mov dword [ebp - 4], esi
call fcn.00521a71
test eax, eax
jge 0x51e814
push 0x1b
call fcn.0051e6c6
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x5b11e4], eax
call fcn.00525a0b
mov dword [0x5af994], eax
call fcn.00525969
test eax, eax
jge 0x51e83a
push 8
call fcn.0051e6c6
pop ecx
call fcn.00525736
test eax, eax
jge 0x51e84b
push 9
call fcn.0051e6c6
pop ecx
push 1
call fcn.0051daa2
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x51e861
push eax
call fcn.0051e6c6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.005256d9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x51e882
movzx eax, word [ebp - 0x40]
jmp 0x51e885
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042ffc0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x51e8a3
push edi
call fcn.0051dbcf
call fcn.0051dbf1
jmp 0x51e8d5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00520ff7
ret
Function at 0x5210e9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x5212bd
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x5afe80]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x5212bd
test cl, 0x48
je 0x521154
cmp byte [eax + 5], 0xa
je 0x521154
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x5211a6
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x52118e
call fcn.0051f1cf
mov dword [eax], 9
call fcn.0051f1d8
mov dword [eax], esi
jmp 0x52119e
cmp eax, 0x6d
je 0x5212bd
push eax
call fcn.0051f1e1
pop ecx
or eax, 0xffffffff
jmp 0x5212bf
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x5212b8
test eax, eax
je 0x5211cd
cmp byte [ebx], 0xa
jne 0x5211cd
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x5211d6
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x5212b2
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x5212a2
cmp al, 0xd
je 0x521208
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x521294
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x521222
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x52121d
add dword [ebp + 0x10], 2
jmp 0x521276
mov dword [ebp + 0x10], eax
jmp 0x521290
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x52124a
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x521290
cmp dword [ebp - 0xc], 0
je 0x521290
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x52126b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x521276
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x521293
cmp ebx, dword [ebp + 0xc]
jne 0x52127b
cmp byte [ebp - 1], 0xa
jne 0x52127b
mov byte [ebx], 0xa
jmp 0x521293
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00521742
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x521294
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x5211ec
jmp 0x5212b2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x5212b2
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x5212bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x521a71
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.0051d8b3
test eax, eax
pop ecx
jne 0x521a8d
or eax, 0xffffffff
jmp 0x521c6a
mov dword [0x5afe80], eax
mov dword [0x5afe64], 0x20
lea ecx, [eax + 0x480]
jmp 0x521ac2
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x5afe80]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x521aa4
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x521bc9
mov eax, dword [esp + 0x48]
test eax, eax
je 0x521bc9
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x521b03
mov edi, eax
cmp dword [0x5afe64], edi
jge 0x521b59
mov esi, 0x5afe84
push ebx
call fcn.0051d8b3
test eax, eax
pop ecx
je 0x521b53
add dword [0x5afe64], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x521b42
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x521b2c
add esi, 4
cmp dword [0x5afe64], edi
jl 0x521b10
jmp 0x521b59
mov edi, dword [0x5afe64]
xor ebx, ebx
test edi, edi
jle 0x521bc9
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x521bbe
mov cl, byte [ebp]
test cl, 1
je 0x521bbe
test cl, 8
jne 0x521b82
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x521bbe
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x5afe80]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.00527680
test eax, eax
pop ecx
pop ecx
je 0x521be9
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x521b5f
xor ebx, ebx
mov ecx, dword [0x5afe80]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x521c4b
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x521bee
push 0xfffffffffffffff6
pop eax
jmp 0x521bf8
or eax, 0xffffffff
jmp 0x521c67
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x521c45
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x521c45
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x521c23
or byte [esi + 4], 0x40
jmp 0x521c2c
cmp eax, 3
jne 0x521c2c
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.00527680
test eax, eax
pop ecx
pop ecx
je 0x521be9
inc dword [esi + 8]
jmp 0x521c4f
or byte [esi + 4], 0x40
jmp 0x521c4f
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x521bcb
push dword [0x5afe64]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x521c6f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x521c9d
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x521ca4
cmp ebx, dword [eax + 4]
jae 0x521ca4
xor eax, eax
jmp 0x521e94
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x521cb5
xor eax, eax
inc eax
jmp 0x521e93
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x521ccb
cmp ecx, edx
jae 0x521e10
cmp dword [eax + 4], 0
je 0x521cd4
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x521cbc
cmp dword [ebp + 8], 0
je 0x521cf6
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x521e10
cmp eax, esi
jae 0x521e10
mov eax, dword [0x5afb40]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x521d1b
cmp dword [esi*4 + 0x5afb48], edi
je 0x521e14
inc esi
cmp esi, eax
jl 0x521d09
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x521e90
cmp dword [ebp - 8], 0x1000000
jne 0x521e90
test byte [ebp - 0xc], 0xcc
je 0x521d99
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x521e90
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x521e90
cmp word [eax + 0x18], 0x10b
jne 0x521e90
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x521e90
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x521d99
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x521d99
test byte [ecx + 0x27], 0x80
jne 0x521e10
push 1
push 0x5afb88
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x521cad
mov ecx, dword [0x5afb40]
test ecx, ecx
mov edx, ecx
jle 0x521dcd
lea eax, [ecx*4 + 0x5afb44]
cmp dword [eax], edi
je 0x521dcd
dec edx
sub eax, 4
test edx, edx
jg 0x521dc1
test edx, edx
jne 0x521dfe
push 0xf
pop ebx
cmp ecx, ebx
jg 0x521dda
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x521df2
lea eax, [edx*4 + 0x5afb48]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x521de0
cmp ecx, 0x10
jge 0x521dfe
inc ecx
mov dword [0x5afb40], ecx
push 0
push 0x5afb88
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x521cad
xor eax, eax
jmp 0x521e93
test esi, esi
jle 0x521cad
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x5afb88
call ebx
test eax, eax
jne 0x521cad
cmp dword [esi*4 + 0x5afb48], edi
je 0x521e6a
mov eax, dword [0x5afb40]
lea esi, [eax - 1]
test esi, esi
jl 0x521e58
cmp dword [esi*4 + 0x5afb48], edi
je 0x521e54
dec esi
jns 0x521e48
test esi, esi
jge 0x521e68
cmp eax, 0x10
jge 0x521e63
inc eax
mov dword [0x5afb40], eax
lea esi, [eax - 1]
jmp 0x521e6a
je 0x521e82
xor ecx, ecx
test esi, esi
jl 0x521e82
lea eax, [ecx*4 + 0x5afb48]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x521e70
push 0
push 0x5afb88
call ebx
jmp 0x521cad
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x521fb1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x565b14]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x521fe2
xor eax, eax
jmp 0x52216b
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5afe80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x52201e
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00527ab5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x5220f9
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x522137
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x522082
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x522073
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x522053
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x5220c2
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x5220cb
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x522044
jmp 0x5220cd
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x522166
cmp dword [ebp - 0x6c], edi
je 0x522137
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x52212c
call fcn.0051f1cf
mov dword [eax], 9
call fcn.0051f1d8
mov dword [eax], esi
jmp 0x522161
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x522121
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x5220cd
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x5220cd
push dword [ebp - 0x6c]
call fcn.0051f1e1
pop ecx
jmp 0x522161
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x52214f
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x52214f
xor eax, eax
jmp 0x522169
call fcn.0051f1cf
mov dword [eax], 0x1c
call fcn.0051f1d8
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x522169
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00527505
add ebp, 0x3a0
leave
ret
Function at 0x525529
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x565b14]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x565eb0]
je 0x52555e
inc eax
cmp eax, 0x13
jb 0x52554f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x565eb0]
jne 0x525684
mov eax, dword [0x5af99c]
cmp eax, 1
je 0x52565c
cmp eax, edx
jne 0x52558e
cmp dword [0x565574], 1
je 0x52565c
cmp ecx, 0xfc
je 0x525684
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5255c4
lea eax, [ebp - 0x80]
push 0x54bb64
push eax
call fcn.00520d40
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0051ede0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5255f8
mov eax, edi
push eax
call fcn.0051ede0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x54bb60
push edi
call fcn.0051c790
add esp, 0x10
push edi
call fcn.0051ede0
push dword [esi + 0x565eb4]
mov ebx, eax
call fcn.0051ede0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0051d0b0
mov ebx, esp
push 0x54bb44
push ebx
call fcn.00520d40
push edi
push ebx
call fcn.00520d50
push 0x54bb40
push ebx
call fcn.00520d50
push dword [esi + 0x565eb4]
push ebx
call fcn.00520d50
push 0x12010
push 0x54bb18
push ebx
call fcn.00529484
add esp, 0x2c
jmp 0x525684
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x565eb4]
push dword [esi]
call fcn.0051ede0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00527505
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x52850d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0051d0b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x5285a8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x5af950]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x5285a8
cmp eax, 1
je 0x5285c9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x5285a8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x528575
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x5285a4
xor eax, eax
inc eax
jmp 0x5285e8
cmp edi, eax
jae 0x5285ac
xor eax, eax
jmp 0x5285e8
cmp eax, esi
jae 0x5285b3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x5af950]
jmp 0x5285cc
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x529484
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x5afd44], ebx
push esi
push edi
jne 0x529504
push 0x54c248
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x52953f
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x54c23c
push edi
call esi
test eax, eax
mov dword [0x5afd44], eax
je 0x52953f
push 0x54c22c
push edi
call esi
push 0x54c218
push edi
mov dword [0x5afd48], eax
call esi
cmp dword [0x5af950], 2
mov dword [0x5afd4c], eax
jne 0x529504
push 0x54c1fc
push edi
call esi
test eax, eax
mov dword [0x5afd54], eax
je 0x529504
push 0x54c1e4
push edi
call esi
mov dword [0x5afd50], eax
mov eax, dword [0x5afd50]
test eax, eax
je 0x529549
call eax
test eax, eax
je 0x529530
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x5afd54]
test eax, eax
je 0x529530
test byte [ebp - 8], 1
jne 0x529549
cmp dword [0x5af95c], 4
jb 0x529543
or byte [ebp + 0x12], 0x20
jmp 0x529568
xor eax, eax
jmp 0x529578
or byte [ebp + 0x12], 4
jmp 0x529568
mov eax, dword [0x5afd48]
test eax, eax
je 0x529568
call eax
mov ebx, eax
test ebx, ebx
je 0x529568
mov eax, dword [0x5afd4c]
test eax, eax
je 0x529568
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x5afd44]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x529bfc
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0051d0b0
mov eax, dword [0x565b14]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00521742
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x529d2f
push 2
push esi
push dword [ebp + 8]
call fcn.00521742
add esp, 0xc
cmp eax, ebx
je 0x529d2f
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x529ccf
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00525f80
push 0x8000
push dword [ebp + 8]
call fcn.0052a4a1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x529c85
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00521fb1
add esp, 0xc
cmp eax, 0xffffffff
je 0x529ca5
sub edi, eax
test edi, edi
jg 0x529c7d
jmp 0x529cbd
call fcn.0051f1d8
cmp dword [eax], 5
jne 0x529cba
call fcn.0051f1cf
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0052a4a1
pop ecx
pop ecx
jmp 0x529d17
jge 0x529d17
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00521742
push dword [ebp + 8]
call fcn.0052643c
add esp, 0x10
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x529d17
call fcn.0051f1cf
mov dword [eax], 0xd
call fcn.0051f1d8
mov edi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00521742
add esp, 0xc
mov eax, esi
pop edi
jmp 0x529d31
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00527505
leave
ret

Function at 0x52a770
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x52a810
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x52a7c2
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x5667cc]
xor eax, edx
inc esi
cmp esi, edi
jl 0x52a7a3
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x52a7eb
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x5667cc]
xor eax, edx
inc esi
cmp esi, edi
jl 0x52a7ce
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x52b360
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x52b380
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0051f1e1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x52b3a3
test byte [esp + 8], 2
je 0x52b3a3
call fcn.0051f1cf
mov dword [eax], 0xd
call fcn.0051f1d8
mov dword [eax], 5
jmp 0x52b37c
xor eax, eax
ret

Function at 0x40894b
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
call fcn.00408973
add ecx, 1
sub ecx, ecx
xor dword [esi], ebx
inc ecx
add esi, 1
cmp esi, eax
jne fcn.0040894b
sub ecx, ecx
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]