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

Disassembly:
push ecx
mov eax, dword [0x984a68]
xor edx, edx
cmp eax, edx
jne 0x5b9576
xor eax, eax
mov byte [eax + 0x984968], al
inc eax
cmp eax, 0x100
jl 0x5b955e
mov dword [0x984a68], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x984968
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5b9607
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5b95da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5b95a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5b9610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5b9663
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5b964a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5bffe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x604ffe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005c0900
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x8ef844
call fcn.005e90b0
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5c0073
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005e90b0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5c006c
push 0
mov ecx, eax
call fcn.005b71d0
mov dword [esi + 0xc], eax
jmp 0x5c0075
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5c0075
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5ea1ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x5ea210
cmp dword [edi + 0x3c], 0
jne 0x5ea210
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005f521d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.005ea23d
pop edi
pop esi
pop ebx
ret 8

Function at 0x5ea28b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.005f521d
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5ea2bc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.005ea2cf
pop edi
pop esi
pop ebx
ret 8

Function at 0x5eb8e5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5eb91d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005e9816
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005e97ee
jmp 0x5eb929
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5ed2aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5ed2ec
call fcn.005f521d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5ed2ec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5ed2e3
xor eax, eax
jmp 0x5ed2f4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005ed2fa
pop edi
pop esi
pop ebx
ret 4

Function at 0x5f574d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5f577b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5f5799
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005f56b3
jmp 0x5f5799
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5f5799
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005f56b3
test edi, edi
mov eax, edi
jne 0x5f5783
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5f85da
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5f8602
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5f8613
push 2
call edi
test ax, ax
jge 0x5f8613
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005eaf1b
cmp dword [esi + 0x30], ebx
jne 0x5f86ed
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005eaf1b
cmp eax, dword [esp + 0x34]
jne 0x5f86ed
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5f8689
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5f86ce
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5f86ed
cmp eax, 0x205
je 0x5f86ed
cmp eax, 0x201
je 0x5f86ed
cmp eax, 0x204
je 0x5f86ed
cmp eax, ebx
jne 0x5f86b4
cmp dword [esp + 0x1c], 0x1b
je 0x5f86ed
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x9965d8]
jbe 0x5f86e3
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5f8646
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x50b36294
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x30a72506
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4012a0
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x30c
lea eax, [esp + 0x208]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp]
lea eax, [esp + 0x208]
push edx
push eax
call fcn.004014e0
add esp, 8
test eax, eax
jne 0x401396
push esi
push edi
mov edi, dword [esp + 0x31c]
lea ecx, [esp + 8]
push edi
push ecx
call fcn.00401710
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
lea edx, [esp + 8]
push str.installoui.exe
push edx
call esi
lea eax, [esp + 0x10c]
push 0x40715c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 8]
lea edx, [esp + 0x10c]
push ecx
push edx
call esi
lea eax, [esp + 0x10c]
push 0x407158
push eax
call esi
lea ecx, [esp + 0x10c]
push edi
push ecx
call esi
push 0x44
call fcn.004017df
mov esi, eax
xor edi, edi
push 0x10
mov dword [esi], 0x44
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x2c], edi
mov word [esi + 0x32], di
mov dword [esi + 0x34], edi
call fcn.004017df
add esp, 8
lea edx, [esp + 0x10c]
push eax
push esi
push edi
push edi
push 0x4000000
push edi
push edi
push edi
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
add esp, 0x30c
ret
xor eax, eax
add esp, 0x30c
ret

Function at 0x4013c0
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
cmp eax, 0x416
jg 0x40141c
je 0x40140b
add eax, 0xfffffbf9
cmp eax, 0xb
ja case.0x4013e2.1032
jmp dword [eax*4 + 0x4014ac]
mov eax, dword [esp + 4]
push 0x40719c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
mov ecx, dword [esp + 4]
push 0x407198
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
mov edx, dword [esp + 4]
push 0x407194
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
cmp eax, 0xc07
jg 0x401469
je case.0x4013e2.1031
sub eax, 0x804
je 0x401447
sub eax, 3
je case.0x4013e2.1031
sub eax, 9
jne case.0x4013e2.1032
mov eax, dword [esp + 4]
push 0x407190
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
mov ecx, dword [esp + 4]
push 0x40718c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
mov edx, dword [esp + 4]
push 0x407188
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
cmp eax, 0xc0a
je case.0x4013e2.1034
cmp eax, 0x100c
je case.0x4013e2.1036
mov eax, dword [esp + 4]
push 0x407184
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
mov ecx, dword [esp + 4]
push 0x407180
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
mov edx, dword [esp + 4]
push 0x40717c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
Function at 0x401610
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x30
mov al, byte [0x409a88]
mov edx, dword [0x4071cc]
push esi
push edi
mov ecx, 5
mov esi, str.SoftwareORACLEocr
lea edi, [esp + 0x24]
mov byte [esp + 0xb], al
mov ax, word [0x4071d0]
mov dword [esp + 0x1c], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.Local_Only]
lea edx, [esp + 0xc]
mov word [esp + 0x20], ax
push edx
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], ecx
mov cl, byte [0x4071d2]
push 0
push eax
push 0x80000002
mov dword [esp + 0x28], 2
mov dword [esp + 0x24], 0x105
mov byte [esp + 0x36], cl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 5
jne 0x401690
pop edi
mov eax, 1
pop esi
add esp, 0x30
ret
test eax, eax
je 0x40169c
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0xb]
push ecx
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x4016da
pop edi
mov eax, 1
pop esi
add esp, 0x30
ret
test esi, esi
je 0x4016e6
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
lea ecx, [esp + 0xb]
push str.true
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x30
ret

Function at 0x403f45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4093f0
cmp edx, dword [eax]
je 0x403f67
add eax, 8
inc ecx
cmp eax, 0x409480
jl 0x403f58
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4093f0]
jne 0x404095
mov eax, dword [0x409a98]
cmp eax, 1
je 0x40406f
test eax, eax
jne 0x403f98
cmp dword [0x407224], 1
je 0x40406f
cmp edx, 0xfc
je 0x404095
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403fcf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405220
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405310
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404012
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405310
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406418
push edi
call fcn.00405750
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405220
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405230
lea eax, [ebp - 0xa0]
push 0x4063f8
push eax
call fcn.00405230
push dword [esi + 0x4093f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405230
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004056c5
add esp, 0x2c
pop edi
jmp 0x404095
lea eax, [ebp + 8]
lea esi, [esi + 0x4093f4]
push 0
push eax
push dword [esi]
call fcn.00405310
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]
pop esi
leave
ret
Function at 0x472c28
Capabilities:
Encode data using xor

Disassembly:
popal
pop esp
xchg ebp, eax
dec esi
das
out dx, al
jb 0x472bc4
mov bl, ah

Function at 0x47ba24
Capabilities:
Encode data using xor

Disassembly:
push cs
fstp qword [ecx + edx*4]
call 0x1ed6c44a
cmc
push ecx
fdiv dword [0xce6c4f7c]
mov esp, 0xf5939851
cmc
in eax, 9
xor dword [ecx], 0x51
movsb byte es:[edi], byte [esi]
salc
sub byte [eax + 0x21], bl
lcall 0xf174, 0x7d23b201
rcr byte [ebx + 0x1b], 1
and dword [ebx], esp
and eax, edi
mov cl, 0xe8
adc eax, eax
push ecx
and eax, 0x9a1002bd
and eax, 0xa0b54dd2
mov esi, 0xd895c0be
jno 0x47ba39
push ebx
in eax, dx
mov dl, 0xff
push cs
push edi
enter 0x7701, 0xffffffffffffffe6
add dword [ecx], eax
push ebp
stc
pushal
rol dword [ebp + 0xc9949ff], 0x31
mov eax, dword [0x69ad1a2]
xchg ecx, eax
dec esp
or eax, 0xfbd2ad09
rol dword [ecx + 0x21800e91], 1
shr eax, cl
add byte [eax + 0x1e], cl
ljmp 0xc95f

Function at 0x4bad51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c5398
cmp edx, dword [eax]
je 0x4bad73
add eax, 8
inc ecx
cmp eax, 0x4c5428
jl 0x4bad64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c5398]
jne 0x4baea1
mov eax, dword [0x4c9d24]
cmp eax, 1
je 0x4bae7b
test eax, eax
jne 0x4bada4
cmp dword [0x4c52c0], 1
je 0x4bae7b
cmp edx, 0xfc
je 0x4baea1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4baddb
lea eax, [ebp - 0x1a4]
push 0x4c0d58
push eax
call fcn.004bb730
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbbc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bae1e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbbc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0d54
push edi
call fcn.004bda90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0d38
push eax
call fcn.004bb730
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb740
lea eax, [ebp - 0xa0]
push 0x4c0d34
push eax
call fcn.004bb740
push dword [esi + 0x4c539c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb740
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0d0c
push eax
call fcn.004bda04
add esp, 0x2c
pop edi
jmp 0x4baea1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c539c]
push 0
push eax
push dword [esi]
call fcn.004bbbc0
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]
pop esi
leave
ret
Function at 0x82ae00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22f000]
push edi
jmp 0x82ae1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x82ae21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x82ae10
mov eax, 1
add ebx, ebx
jne 0x82ae33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x82ae44
jne 0x82ae63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x82ae63
dec eax
add ebx, ebx
jne 0x82ae50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x82ae28
add ebx, ebx
jne 0x82ae5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x82aeb5
xor ecx, ecx
sub eax, 3
jb 0x82ae7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x82aeea
sar eax, 1
mov ebp, eax
jmp 0x82ae86
add ebx, ebx
jne 0x82ae86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x82ae54
inc ecx
add ebx, ebx
jne 0x82ae94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x82ae54
add ebx, ebx
jne 0x82aea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x82ae96
jne 0x82aeb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x82ae96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x82aed4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x82aec6
jmp 0x82ae16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x82aed4
add edi, ecx
jmp 0x82ae16
pop esi
mov edi, esi
mov ecx, 0x2dcb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x82aef2
cmp byte [edi], 0x1d
jne 0x82aef2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x82aef7
lea edi, [esi + 0x427000]
mov eax, dword [edi]
or eax, eax
je 0x82af6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x42b2d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x42b3f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x82af24
mov ecx, edi
jns 0x82af53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x42b400]
or eax, eax
je 0x82af69
mov dword [ebx], eax
add ebx, 4
jmp 0x82af41
call dword [esi + 0x42b3fc]
mov ebp, dword [esi + 0x42b404]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x82afa3
sub esp, 0xffffff80
jmp 0x4601c8