joyce8/EMBER2024-capa huggingface dataset:
Function at 0x653b05a3
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx edx, word [ebx + 4]
mov eax, dword [eax]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x653b05d6
mov eax, 0x8007000e
pop ebx
leave
ret 0xc
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [eax + ecx*4]
xor eax, eax
and dword [ebp - 4], eax
cmp dword [edi], eax
jbe 0x653b0638
push esi
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 4]
and dword [ebp + 8], 0
mov esi, dword [ecx + edx*4]
cmp dword [esi + 8], 0
jbe 0x653b062d
push dword [esi + 0xc]
mov dword [ebp - 0x10], eax
inc eax
mov ecx, ebx
push dword [ebp + 8]
mov dword [ebp - 8], eax
call fcn.65362f48
push eax
mov ecx, ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.653b04c4
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 8]
mov eax, dword [ebp - 8]
jb 0x653b05fd
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp ecx, dword [edi]
jb 0x653b05ea
pop esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
shr eax, 3
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
inc eax
pop edi
mov dword [ecx], eax
xor eax, eax
jmp 0x653b05d1

Function at 0x653b064e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x653b06a7
cmp dword [esi + 0xc], 0
jne 0x653b06a7
mov eax, dword [esi]
push dword [eax + 4]
call sym.OLEAUT32.dll_SysFreeString
mov eax, dword [esi]
push dword [eax + 0xc]
call sym.OLEAUT32.dll_SysFreeString
push dword [section..data]
call edi
mov eax, dword [eax]
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push dword [section..data]
call edi
mov eax, dword [eax]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
pop edi
pop esi
pop ebx
ret 4
push eax
mov ecx, ebx
call fcn.653b064e
push dword [esi + 0xc]
mov ecx, ebx
call fcn.653b064e
jmp 0x653b0690
Function at 0x653b596b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov al, byte [edx + 0x10]
and al, 0x78
cmp al, 0x10
je 0x653b5a54
mov edi, edx
mov edx, dword [ebp + 0x10]
mov cx, word [edi + 0x14]
mov si, word [edx + 0x14]
movzx ebx, cx
mov dword [ebp + 0xc], ebx
mov bx, word [edi + 0x10]
shr bx, 0xe
movzx eax, si
sub ecx, ebx
mov dword [ebp + 0x10], eax
test cx, cx
nop
je 0x653b5a64
mov cx, word [edx + 0x10]
mov dword [ebp - 4], ecx
and dword [ebp - 4], 0x78
cmp word [ebp - 4], 0x10
je 0x653b5a5c
shr cx, 0xe
sub esi, ecx
test si, si
je 0x653b5a64
mov ecx, eax
cmp ecx, dword [ebp + 0xc]
jne 0x653b5a64
dec dword [ebp + 0x10]
movzx ebx, word [edx]
lea ecx, [eax + eax*2]
and dword [ebp - 8], 0
shl ecx, 2
mov esi, ecx
mov ecx, edx
sub ecx, esi
movzx esi, word [edi]
add ecx, ebx
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0xc], esi
jbe 0x653b5a40
sub eax, dword [ebp + 0xc]
lea esi, [eax + eax*2]
shl esi, 2
sub esi, edx
add esi, edi
add esi, dword [ebp - 0xc]
sub esi, ebx
mov ebx, 0x80000000
mov ax, word [ecx + 8]
mov dl, byte [ecx + esi + 8]
xor dl, al
test dl, 4
jne 0x653b5a64
test al, 8
je 0x653b5a70
inc dword [ebp + 0xc]
inc dword [ebp - 8]
add ecx, 0xc
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jb 0x653b5a1c
cmp word [ebp - 4], 0x10
jne 0x653b5a50
mov eax, dword [ebp + 0x10]
inc eax
cmp eax, dword [ebp + 0xc]
jne 0x653b5a64
xor eax, eax
jmp 0x653b5a69
mov edi, dword [ebp + 0x10]
jmp 0x653b5989
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ecx
jbe 0x653b59e4
mov eax, 0x80029c83
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + esi + 4]
jne 0x653b5a64
mov edx, dword [ecx]
mov edi, dword [ecx + esi]
cmp edx, edi
je 0x653b5a32
test ebx, edx
jne 0x653b5a64
test ebx, edi
jne 0x653b5a64
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xd4]
add edi, eax
cmp word [eax + edx], 0x1c
jne 0x653b5a64
cmp word [edi], 0x1c
je 0x653b5a32
jmp 0x653b5a64

Function at 0x653b6a25
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x653b6a4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x653b6a4f
push eax
call fcn.653b827e
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
jmp 0x653b6a3a
xor eax, eax
ret
Function at 0x653b6a93
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x653c6010]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x653b6b01
push 0x74
push 1
call fcn.6534d565
mov esi, eax
add esp, 8
test esi, esi
je 0x653b6af7
mov ecx, dword [0x653c6010]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x653b6af7
push esi
call fcn.6534d74b
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.653b61bc
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x653b6b0d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x653c6010]
cmp eax, 0xffffffff
je 0x653b6ba9
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x653b6b31
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x653b6b9a
mov eax, dword [esi + 0x24]
test eax, eax
je 0x653b6b41
push eax
call fcn.6534ddb0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x653b6b51
push eax
call fcn.6534ddb0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x653b6b61
push eax
call fcn.6534ddb0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x653b6b71
push eax
call fcn.6534ddb0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x653b6b81
push eax
call fcn.6534ddb0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x653b6b91
push eax
call fcn.6534ddb0
add esp, 4
push esi
call fcn.6534ddb0
add esp, 4
mov eax, dword [0x653c6010]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x653b6c83
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x653c8868
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x653b6ca7
add eax, 8
inc ebp
cmp eax, 0x653c88f8
jb 0x653b6c98
cmp ecx, dword [ebp*8 + 0x653c8868]
jne 0x653b6e4e
mov eax, dword [0x653c90cc]
cmp eax, 1
je 0x653b6e10
test eax, eax
jne 0x653b6cd3
cmp dword [0x653c3284], 1
je 0x653b6e10
cmp ecx, 0xfc
je 0x653b6e4e
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x653b6d0e
mov ecx, 5
mov esi, 0x6537b654
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x653b6d57
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x6537b650
add ebx, ecx
push ebx
call fcn.653b96d9
add esp, 0xc
mov ecx, 6
mov esi, 0x6537b634
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x6537b62e
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x6537b608
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x653c886c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.653b964a
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x653c61c0]
test eax, eax
je 0x653b6e21
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x653b6e2b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x653c886c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x653b9607
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x653b9640
mov eax, dword [esp + 4]
cmp ah, 0x3a
jne 0x653b9640
and eax, 0xff
push eax
call fcn.653b8303
mov esi, eax
add esp, 4
sub esi, 0x40
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x653ba52f
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x653ba5f8
push ebx
call fcn.653ba65e
add esp, 4
test eax, eax
jne 0x653ba576
call fcn.653b82fa
mov dword [eax], 0xf
call fcn.653b82f1
mov dword [eax], 0xd
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x653ba652
inc eax
cmp eax, 0x104
ja 0x653ba652
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x653ba60a
cmp eax, ecx
jg 0x653ba5d2
mov eax, ecx
push eax
call fcn.6534d81c
mov edx, eax
add esp, 4
test edx, edx
jne 0x653ba625
call fcn.653b82f1
mov dword [eax], 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x653ba5a6
cmp eax, ecx
jle 0x653ba625
call fcn.653b82f1
mov dword [eax], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x653ba65e
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x653ba66c
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x653ba69b
cmp eax, 1
je 0x653ba69b
mov eax, 1
ret
xor eax, eax
ret
Function at 0x653bb539
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x653bb565
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x653c61c0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x653bb5a0
push 2
push ebp
push ecx
call fcn.653bba4a
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x653bb702
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x653bb64a
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x653bb5fb
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x653bb5e8
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x653bb5cb
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x653bb6f3
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x653bb646
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x653bb5c7
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x653bb6e2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x653bb69e
cmp eax, 5
jne 0x653bb687
call fcn.653b82f1
mov dword [eax], 9
call fcn.653b82fa
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.653b827e
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x653bb6be
cmp byte [ebp], 0x1a
jne 0x653bb6be
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.653b82f1
mov dword [eax], 0x1c
call fcn.653b82fa
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x653bb646
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x653bb733
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x653bb64a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x653bb64a
Function at 0x653bbaca
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x653bbc88
push 0x3d
push edi
call fcn.653a692d
mov esi, eax
add esp, 8
test esi, esi
je 0x653bbc88
cmp edi, esi
je 0x653bbc88
mov dl, byte [esi + 1]
mov ecx, dword [0x653c90d4]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x653c65ec]
cmp eax, ecx
jne 0x653bbb21
push eax
call fcn.653bbd41
add esp, 4
mov dword [0x653c65ec], eax
test eax, eax
jne 0x653bbb9c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x653bbb48
mov eax, dword [0x653c90d8]
test eax, eax
je 0x653bbb48
call fcn.653bb742
test eax, eax
je 0x653bbb97
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x653bbb54
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.6534d81c
add esp, 4
mov dword [0x653c65ec], eax
test eax, eax
je 0x653bbc88
mov dword [eax], 0
mov eax, dword [0x653c90d8]
test eax, eax
jne 0x653bbb97
push 4
call fcn.6534d81c
add esp, 4
mov dword [0x653c90d8], eax
test eax, eax
je 0x653bbc88
mov dword [eax], 0
mov eax, dword [0x653c65ec]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.653bbccd
mov esi, eax
add esp, 8
test esi, esi
jl 0x653bbc99
cmp dword [ebx], 0
je 0x653bbc99
test ebp, ebp
je 0x653bbc91
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.6534ddb0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x653bbbf3
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x653bbbe2
lea eax, [esi*4]
push eax
push ebx
call fcn.653b85c2
add esp, 8
test eax, eax
je 0x653bbc0d
mov dword [0x653c65ec], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x653bbc80
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.6534d81c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x653bbc80
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.6534ddb0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x653bbc11
test ebp, ebp
jne 0x653bbc80
test esi, esi
jge 0x653bbca3
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.653b85c2
add esp, 8
test eax, eax
je 0x653bbc88
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x653c65ec], eax
jmp 0x653bbc11
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x16015c91
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0xfaa1c93
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x410220
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
not edx
and esi, 0x10
inc edi
sub edx, 0x1e
ror edi, 0x6e
sbb ebx, 0x5e
and eax, 0x48
rcr esi, 0xe4
inc eax
imul esi
sub eax, 0xbe
inc eax
neg eax
not esi
rcl ebx, 0x7f
inc eax
not eax
dec esi
sub ebx, 0xe8
add edi, 0x83
bswap esi
bswap eax
not eax
or edi, 0x91
rcr edi, 0x37
and edi, 0xe5
bswap esi
add edi, 0x72
dec ebx
imul esi
rol edi, 0x74
and esi, 0
not edx
not ebx
sub esi, 0x83
ror edi, 0x66
mov edi, 0x10
bswap ebx
ror ebx, 0x2c
dec esi
inc esi
mov esi, 0x88
sub edi, 0x76
inc ebx
and edx, 0x76
inc edi
neg edx
ror ebx, 0xfe
rcr edi, 0xf6
mov edi, 0xfe
xor ecx, ecx
xor edi, edi
rol eax, 0x19
sub esi, 0x15
ror edi, 0xb5
bswap ebx
rcr esi, 0xdd
rcr edi, 0x5b
bswap esi
imul ebx
and ebx, 0x36
and ebx, 0x19
rcl edx, 0xeb
inc ebx
dec edi
not ebx
bswap esi
sbb ebx, 0xa9
add edi, 0xc3
not esi
inc ebx
ror ebx, 3
inc eax
inc esi
or eax, 0x80
mov ebx, 0x6b
inc edx
rol eax, 0x80
mov eax, 0xcf
not eax
ror edx, 0xc4
dec edi
imul eax
add ebx, 0x8b
mov eax, 0x8b
dec edi
ror edx, 8
mov edi, 0xba
rcr edx, 0x5f
rcr ebx, 0x2a
neg ebx
sbb ebx, 0xa2
not esi
or esi, 0xb
or ebx, 0x3c
bswap edx
ror eax, 0x3b
or edi, 0xd8
neg ebx
rcr edi, 0x24
or edi, 0x11
neg ebx
mov ecx, dword [ebp + 0xc]
rcl edi, 0xc9
inc edi
inc esi
mov edx, 0x4d
not edi
sbb edx, 0xd1
dec ebx
sbb edi, 0xca
sbb edi, 0x23
imul ebx
mov edx, 0xe
or ebx, 0xd2
sub eax, 0
and esi, 0x56
not ebx
add edi, 0xef
or esi, 7
rol esi, 0x83
rol esi, 0xda
and esi, 0xd3
and eax, 0x8e
add edi, 7
add edi, 0x30
rcr edi, 0xb3
not eax
rol ebx, 0xf4
inc eax
sub edx, 0xbe
rcr edx, 0xbd
ror edx, 0xad
mov edx, 0x50
or ebx, 0x36
rol edx, 0x14
rcl eax, 0xf3
dec edi
sub ebx, 0xb0
bswap ebx
inc edi
bswap esi
dec edi
imul esi
rol edx, 0x4a
inc esi
inc eax
not eax
dec esi
bswap esi
bswap edi
neg ebx
add edi, 0xe0
mov edi, dword [ebp + 8]
xor ebx, esi
mov esi, ebx
xor ebx, ebx
not byte [edi]
xor eax, esi
xor esi, eax
mov esi, esi
mov ebx, ebx
xor eax, ebx
xor eax, esi
xor eax, eax
xor esi, ebx
mov esi, ebx
add byte [edi], 0x26
xor ebx, esi
mov esi, ebx
xor eax, eax
xor ebx, ebx
xor eax, eax
xor ebx, esi
xor esi, ebx
xor esi, esi
mov ebx, eax
sub byte [edi], 0x86
xor ebx, eax
mov ebx, eax
xor eax, esi
xor ebx, eax
xor esi, esi
xor esi, esi
xor esi, eax
mov ebx, esi
mov ebx, eax
imul byte [edi]
inc edi
loop 0x4103ea
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4011f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
mov dword [edx], 0
mov dword [ecx], 0
mov dword [ebp - 0x20], edx
xor edx, edx
mov dword [ebp - 0x24], ecx
call sym._chomp
cmp word [ebx], 0
mov edx, eax
je 0x4012ff
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401228
sub eax, ebx
sar eax, 1
lea eax, [edx + eax + 1]
mov dword [esp + 4], 0
mov edi, dword [sym.imp.kernel32.dll_HeapAlloc]
add eax, eax
mov dword [esp + 8], eax
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x4012ea
mov dword [ebp - 0x28], eax
mov eax, ebx
call sym._chomp
mov dword [esp + 4], 0
lea ebx, [eax*4 + 4]
mov dword [ebp - 0x1c], eax
mov dword [esp + 8], ebx
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x28]
sub esp, 0xc
test eax, eax
mov ecx, eax
je 0x401306
mov esi, eax
lea ebx, [eax + ebx - 4]
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x401326
mov dword [esi], edx
cmp word [edx], 0
je 0x4012f8
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4012c0
sub eax, edx
add eax, 2
add esi, 4
add edx, eax
cmp ebx, esi
jne 0x4012b0
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov dword [ebx], 0
mov dword [eax], edi
mov eax, dword [ebp - 0x24]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x4012ce
xor eax, eax
jmp 0x401235
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x4012ea
mov ebx, ecx
jmp 0x4012d7