joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fb530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd0
mov eax, dword [0x16c3f34]
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x4fb777
test byte [0x11e6920], 1
je 0x4fb777
test byte [0x11e6fa8], 1
je 0x4fb777
mov edx, dword [0x11e762c]
mov esi, dword [0x11e6fa4]
mov eax, edx
xor eax, esi
test eax, 0xfffffe00
jne 0x4fb777
xor ecx, ecx
lea eax, [esp + 0x10]
jmp 0x4fb590
mov edi, dword [ecx + 0x11e69b4]
test edi, edi
mov dword [eax], 0
je 0x4fb5b8
mov ebx, dword [eax]
inc ebx
mov edi, ebx
imul edi, edi, 0xc8
mov ebp, dword [edi + ecx + 0x11e69b4]
test ebp, ebp
jne 0x4fb5a2
mov dword [eax], ebx
add ecx, 0x688
add eax, 4
cmp ecx, 0xd10
jl 0x4fb590
cmp dword [esp + 0x14], 1
jne 0x4fb777
mov ebx, dword [esp + 0x10]
mov eax, dword [0x16c3a78]
lea ecx, [ebx + 1]
cmp ecx, eax
jg 0x4fb777
and esi, 0xff
and edx, 0xff
xor eax, eax
mov ecx, 0x5404dc
jmp 0x4fb600
cmp esi, dword [ecx - 4]
jne 0x4fb609
cmp edx, dword [ecx]
je 0x4fb612
inc eax
add ecx, 0x10
cmp eax, 9
jb 0x4fb600
cmp eax, 9
je 0x4fb777
shl eax, 4
mov edx, dword [eax + 0x5404e0]
cmp edx, 0x104
jne 0x4fb63c
mov ecx, dword [0x16c3a98]
test ecx, ecx
je 0x4fb777
cmp edx, edx
mov edi, dword [0x11e6f84]
jne 0x4fb64d
cmp edi, 2
jne 0x4fb777
mov ecx, dword [0x11e760c]
cmp edi, ecx
mov esi, dword [0x11e7624]
mov ebp, dword [0x11e6f9c]
jne 0x4fb667
cmp ebp, esi
je 0x4fb689
cmp edx, 0x2100
jne 0x4fb777
cmp ecx, 2
jne 0x4fb777
test esi, esi
je 0x4fb689
cmp esi, 1
jne 0x4fb777
cmp edi, 8
jne 0x4fb6ab
mov ecx, 5
mov edi, 0x11e75f8
mov esi, 0x11e6f70
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
jne 0x4fb777
mov ebx, dword [esp + 0x10]
cmp ebp, 7
jne 0x4fb6c9
mov ecx, 5
mov edi, 0x11e7610
mov esi, 0x11e6f88
xor ebp, ebp
repe cmpsd dword [esi], dword es:[edi]
jne 0x4fb777
cmp ebx, 1
jne 0x4fb704
mov cl, byte [0x11e69e8]
test cl, cl
je 0x4fb704
mov ecx, 0x32
mov esi, 0x11e6924
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x32
mov esi, 0x11e6fac
mov edi, 0x11e6924
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x18]
mov edi, 0x11e69ec
jmp 0x4fb717
mov edi, ebx
imul edi, edi, 0xc8
add edi, 0x11e6924
mov esi, 0x11e6fac
imul ebx, ebx, 0xc8
mov ecx, 0x32
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x11e69b4], edx
mov edx, dword [eax + 0x5404e4]
mov byte [0x11e6fa4], 0
mov edi, dword [0x11e6fa4]
push 0x2730
or edi, edx
push 0x11e7630
push 0x11e6fa8
mov dword [0x11e6fa4], edi
call fcn.005257f0
add esp, 0xc
xor eax, eax
mov ecx, 0x1a2
mov edi, 0x11e96d8
rep stosd dword es:[edi], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5161a0
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x10], 0xcc
je 0x5161c3
mov eax, dword [esi + 0x17c]
push esi
call dword [eax]
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x10], 0xcc
mov ecx, dword [esi + 0x17c]
mov al, byte [ecx + 8]
test al, al
je 0x5161ee
mov edx, dword [esi]
mov dword [edx + 0x14], 0x2d
mov eax, dword [esi]
push esi
call dword [eax]
mov ecx, dword [esi + 0x17c]
mov al, byte [ecx + 8]
add esp, 4
test al, al
jne 0x5161d0
mov cl, byte [esi + 0x41]
xor edx, edx
test cl, cl
setne dl
mov al, 1
add edx, 0xcd
mov dword [esi + 0x10], edx
ret

Function at 0x51a40e
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
cmp ebp, 0x3b9ac9f0
push esi
mov esi, dword [esp + 0x18]
mov ebx, dword [esi + 4]
push edi
mov dword [esp + 0x14], ebx
jbe 0x51a328
mov eax, dword [esi]
mov dword [eax + 0x14], 0x33
mov ecx, dword [esi]
mov dword [ecx + 0x18], 1
mov edx, dword [esi]
push esi
call dword [edx]
add esp, 4
mov eax, ebp
and eax, 7
jbe 0x51a33c
mov ecx, 8
sub ecx, eax
add ebp, ecx
mov dword [esp + 0x24], ebp
mov edi, dword [esp + 0x20]
test edi, edi
jl 0x51a349
cmp edi, 2
jl 0x51a35f
mov edx, dword [esi]
mov dword [edx + 0x14], 0xb
mov eax, dword [esi]
mov dword [eax + 0x18], edi
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
mov ecx, dword [ebx + edi*4 + 0x30]
test ecx, ecx
mov dword [esp + 0x10], 0
je 0x51a383
nop
cmp dword [ecx + 8], ebp
jae 0x51a478
mov dword [esp + 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x51a370
mov eax, dword [esp + 0x10]
add ebp, 0x10
test eax, eax
jne 0x51a397
mov edi, dword [edi*4 + 0x53fb78]
jmp 0x51a39e
mov edi, dword [edi*4 + 0x53fb80]
mov eax, 0x3b9aca00
sub eax, ebp
cmp edi, eax
jbe 0x51a3ab
mov edi, eax
lea ebx, [edi + ebp]
push ebx
call fcn.005268b7
mov esi, eax
add esp, 4
test esi, esi
je 0x51a409
lea ecx, [ecx]
push ebx
push 0
push esi
call fcn.00432670
add esp, 0xc
test esi, esi
mov ecx, esi
jne 0x51a43b
shr edi, 1
cmp edi, 0x32
jae 0x51a3f7
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov dword [edx + 0x14], 0x33
mov ecx, dword [eax]
mov dword [ecx + 0x18], 2
mov edx, dword [eax]
push eax
call dword [edx]
add esp, 4
lea ebx, [edi + ebp]
push ebx
call fcn.005268b7
mov esi, eax
add esp, 4
test esi, esi
jne 0x51a3c0
call fcn.00462b20
push 0x10
push str.WIN_OUT_OF_MEM_TITLE
call fcn.00462450
add esp, 4
push eax
push str.WIN_OUT_OF_MEM_BODY
call fcn.00462450
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.00527e27
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x48]
lea edx, [edi + ebp]
mov ebp, dword [esp + 0x24]
add ebx, edx
mov edx, dword [esp + 0x24]
add edi, edx
mov edx, dword [esp + 0x10]
test edx, edx
mov dword [eax + 0x48], ebx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], edi
jne 0x51a476
mov edx, dword [esp + 0x20]
mov dword [eax + edx*4 + 0x30], esi
jmp 0x51a478
mov dword [edx], esi
mov edx, dword [ecx + 4]
lea eax, [edx + ecx + 0x10]
add edx, ebp
pop edi
mov dword [ecx + 4], edx
mov edx, dword [ecx + 8]
pop esi
sub edx, ebp
pop ebp
mov dword [ecx + 8], edx
pop ebx
add esp, 8
ret
Function at 0x527afc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x570930]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x527b77
push ebx
call fcn.00527ac5
test eax, eax
pop ecx
jne 0x527b49
call fcn.0052b924
mov dword [eax], 0xf
call fcn.0052b91b
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.0052e7b9
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x527b89
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x527b39
inc eax
cmp eax, 0x104
ja 0x527b39
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x527bc1
cmp eax, dword [ebp + 0x10]
jg 0x527ba4
mov eax, dword [ebp + 0x10]
push eax
call fcn.005268b7
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x527bd6
call fcn.0052b91b
mov dword [eax], 0xc
jmp 0x527b39
cmp eax, dword [ebp + 0x10]
jle 0x527bd6
call fcn.0052b91b
mov dword [eax], 0x22
jmp 0x527b39
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.0052e690
pop ecx
pop ecx
jmp 0x527b3b

Function at 0x527d54
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0052b8ea
xor esi, esi
inc esi
cmp dword [0x57c4c0], esi
pop ecx
jne 0x527d7c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x57c4bc], esi
mov byte [0x57c4b8], al
jne 0x527de2
mov ecx, dword [0x140eb0c]
test ecx, ecx
je 0x527dc3
mov eax, dword [0x140eb08]
sub eax, 4
cmp eax, ecx
jmp 0x527dbc
mov eax, dword [eax]
test eax, eax
je 0x527dae
call eax
mov eax, dword [0x140eb08]
sub eax, 4
cmp eax, dword [0x140eb0c]
mov dword [0x140eb08], eax
jae 0x527da6
mov eax, 0x570074
mov esi, 0x57007c
cmp eax, esi
mov edi, eax
jae 0x527de2
mov eax, dword [edi]
test eax, eax
je 0x527ddb
call eax
add edi, 4
cmp edi, esi
jb 0x527dd3
mov eax, 0x570080
mov esi, 0x570088
cmp eax, esi
mov edi, eax
jae 0x527e01
mov eax, dword [edi]
test eax, eax
je 0x527dfa
call eax
add edi, 4
cmp edi, esi
jb 0x527df2
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x527e12
push 8
call fcn.0052b83e
jmp 0x527e24
push dword [ebp + 8]
mov dword [0x57c4c0], 1
call fcn.00527c77
pop ecx
pop ebp
ret
Function at 0x52ca4c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x570930]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x52ca75
xor eax, eax
jmp 0x52cbe3
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x140d9c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x52caa8
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.005341dc
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x52cb7a
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x52cbb5
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x52cb03
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x52caf4
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x52cad7
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x52cb43
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x52cb4c
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x52cac8
jmp 0x52cb4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x52cbde
cmp dword [ebp - 8], edi
je 0x52cbb5
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x52cba7
call fcn.0052b91b
mov dword [eax], 9
call fcn.0052b924
mov dword [eax], esi
jmp 0x52cbb0
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x52cb9c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x52cb4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x52cb4e
push dword [ebp - 8]
call fcn.0052b92d
pop ecx
or eax, 0xffffffff
jmp 0x52cbe1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x52cbca
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x52cbca
xor eax, eax
jmp 0x52cbe1
call fcn.0052b91b
mov dword [eax], 0x1c
call fcn.0052b924
mov dword [eax], edi
jmp 0x52cbb0
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0052e7b9
leave
ret
Function at 0x52d0ee
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 0x52d2b4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x140d9c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x52d2b4
test cl, 0x48
je 0x52d154
mov al, byte [eax + 5]
cmp al, 0xa
je 0x52d154
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 0x52d1a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x52d18e
call fcn.0052b91b
mov dword [eax], 9
call fcn.0052b924
mov dword [eax], esi
jmp 0x52d19e
cmp eax, 0x6d
je 0x52d2b4
push eax
call fcn.0052b92d
pop ecx
or eax, 0xffffffff
jmp 0x52d2b6
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x52d2af
test edx, edx
je 0x52d1c9
cmp byte [ebx], 0xa
jne 0x52d1c9
or al, 4
jmp 0x52d1cb
and al, 0xfb
mov byte [ecx], al
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 0x52d2a9
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x52d299
cmp al, 0xd
je 0x52d1ff
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x52d28b
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x52d219
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x52d214
add dword [ebp + 0x10], 2
jmp 0x52d26d
mov dword [ebp + 0x10], eax
jmp 0x52d287
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 0x52d241
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x52d287
cmp dword [ebp - 0xc], 0
je 0x52d287
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x52d262
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x52d26d
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x52d28a
cmp ebx, dword [ebp + 0xc]
jne 0x52d272
cmp byte [ebp - 1], 0xa
jne 0x52d272
mov byte [ebx], 0xa
jmp 0x52d28a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0052d8f7
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x52d28b
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x52d1e3
jmp 0x52d2a9
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x52d2a9
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x52d2b6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x52e9e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x570930]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x570940]
je 0x52ea16
inc eax
cmp eax, 0x12
jb 0x52ea07
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x570940]
jne 0x52eb4a
mov eax, dword [0x57c4d0]
cmp eax, 1
je 0x52eb25
cmp eax, edx
jne 0x52ea46
cmp dword [0x570384], 1
je 0x52eb25
cmp ecx, 0xfc
je 0x52eb4a
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x52ea7f
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0052e690
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0052b460
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x52eac1
lea eax, [ebp - 0x10c]
push eax
call fcn.0052b460
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x561210
push edi
call fcn.00525500
add esp, 0x10
push edi
call fcn.0052b460
push dword [esi + 0x570944]
mov ebx, eax
call fcn.0052b460
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0052f1c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0052e690
push edi
push ebx
call fcn.0052e6a0
push 0x566044
push ebx
call fcn.0052e6a0
push dword [esi + 0x570944]
push ebx
call fcn.0052e6a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00535102
add esp, 0x2c
jmp 0x52eb4a
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x570944]
push dword [esi]
call fcn.0052b460
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0052e7b9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x532a5b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0052f1c0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x532af0
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x57c480]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x532af0
cmp eax, 1
je 0x532b08
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x532af0
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x532ac5
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x532aec
xor eax, eax
inc eax
jmp 0x532b24
cmp esi, ebx
jae 0x532af4
xor eax, eax
jmp 0x532b24
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x57c480]
jmp 0x532b0a
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x533f8c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x533ff7
push 0x3d
push dword [ebp + 8]
call fcn.00535f2a
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x533ff7
cmp dword [ebp + 8], esi
je 0x533ff7
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x57c4a0]
cmp eax, dword [0x57c4a4]
jne 0x533fdd
mov edi, eax
call fcn.00533f2b
mov dword [0x57c4a0], eax
cmp eax, ebx
jne 0x534036
cmp dword [ebp + 0xc], ebx
je 0x533fff
cmp dword [0x57c4a8], ebx
je 0x533fff
call fcn.0052b735
test eax, eax
je 0x534036
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x53413a
push 4
call fcn.005268b7
cmp eax, ebx
pop ecx
mov dword [0x57c4a0], eax
je 0x533ff7
mov dword [eax], ebx
cmp dword [0x57c4a8], ebx
jne 0x534036
push 4
call fcn.005268b7
cmp eax, ebx
pop ecx
mov dword [0x57c4a8], eax
je 0x533ff7
mov dword [eax], ebx
mov ebx, dword [0x57c4a0]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00533ede
mov edi, eax
test edi, edi
pop ecx
jl 0x53408f
cmp dword [ebx], 0
je 0x53408f
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00526479
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x534077
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x5340c5
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x53406e
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00528196
test eax, eax
pop ecx
pop ecx
je 0x5340c5
jmp 0x5340c0
cmp dword [ebp - 4], 0
jne 0x534133
test edi, edi
jge 0x53409f
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00528196
test eax, eax
pop ecx
pop ecx
je 0x533ff7
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x57c4a0], eax
cmp dword [ebp + 0xc], 0
je 0x53411c
push dword [ebp + 8]
call fcn.0052b460
inc eax
inc eax
push eax
call fcn.005268b7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x53411c
push dword [ebp + 8]
push esi
call fcn.0052e690
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x534115
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00526479
pop ecx
cmp dword [ebp - 4], 0
je 0x53412b
push dword [ebp + 8]
call fcn.00526479
pop ecx
mov eax, dword [ebp - 8]
jmp 0x533ffa
push esi
call fcn.00526479
pop ecx
xor eax, eax
jmp 0x533ffa
Function at 0x535102
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x57c8c8], ebx
push esi
push edi
jne 0x535182
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5351bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53f64c
push edi
call esi
test eax, eax
mov dword [0x57c8c8], eax
je 0x5351bd
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x57c8cc], eax
call esi
cmp dword [0x57c480], 2
mov dword [0x57c8d0], eax
jne 0x535182
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x57c8d8], eax
je 0x535182
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x57c8d4], eax
mov eax, dword [0x57c8d4]
test eax, eax
je 0x5351c7
call eax
test eax, eax
je 0x5351ae
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x57c8d8]
test eax, eax
je 0x5351ae
test byte [ebp - 8], 1
jne 0x5351c7
cmp dword [0x57c48c], 4
jb 0x5351c1
or byte [ebp + 0x12], 0x20
jmp 0x5351e6
xor eax, eax
jmp 0x5351f6
or byte [ebp + 0x12], 4
jmp 0x5351e6
mov eax, dword [0x57c8cc]
test eax, eax
je 0x5351e6
call eax
mov ebx, eax
test ebx, ebx
je 0x5351e6
mov eax, dword [0x57c8d0]
test eax, eax
je 0x5351e6
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x57c8c8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x535fa5
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0052f1c0
mov eax, dword [0x570930]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0052d8f7
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x5360cf
push 2
push esi
push dword [ebp + 8]
call fcn.0052d8f7
add esp, 0xc
cmp eax, ebx
je 0x5360cf
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x536072
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.0052e520
push 0x8000
push dword [ebp + 8]
call fcn.00536cb6
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x53602b
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0052ca4c
add esp, 0xc
cmp eax, 0xffffffff
je 0x53604b
sub edi, eax
test edi, edi
jg 0x536023
jmp 0x536063
call fcn.0052b924
cmp dword [eax], 5
jne 0x536060
call fcn.0052b91b
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00536cb6
pop ecx
pop ecx
jmp 0x5360ba
jge 0x5360ba
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0052d8f7
push dword [ebp + 8]
call fcn.00534418
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 0x5360ba
call fcn.0052b91b
mov dword [eax], 0xd
call fcn.0052b924
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0052d8f7
add esp, 0xc
mov eax, esi
pop edi
jmp 0x5360d1
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0052e7b9
leave
ret