joyce8/EMBER2024-capa huggingface dataset:
Function at 0x108bb48
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], edi
cmp eax, edi
je 0x108bc5d
cmp word [eax], di
je 0x108bc5d
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x108bc42
cmp word [ebx], di
je 0x108bc42
cmp dword [ebp + 0x14], edi
jne 0x108bbb4
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108bc81
test byte [eax + 0x1c], 1
je 0x108bc81
push 0x10127f8
push 0x16
jmp 0x108bc76
push esi
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [0x10a7d6c]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x20019
push ecx
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x108bc2f
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 2
je 0x108bc2f
cmp dword [ebp - 8], 4
je 0x108bc2f
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108bc2c
test byte [eax + 0x1c], 1
je 0x108bc2c
push dword [ebp - 8]
push ebx
push 0x10127f8
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103a48a
push 0xd
pop esi
cmp dword [ebp - 4], edi
je 0x108bc3d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x108bc84
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108bc81
test byte [eax + 0x1c], 1
je 0x108bc81
push 0x10127f8
push 0x15
jmp 0x108bc76
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108bc81
test byte [eax + 0x1c], 1
je 0x108bc81
push 0x10127f8
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
push 0x57
pop eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x108bc8f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x108bd83
cmp word [eax], di
je 0x108bd83
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
je 0x108bd68
cmp word [ebx], di
je 0x108bd68
push esi
push edi
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [0x10a7d6c]
push dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x20006
push ecx
push edi
push edi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
je 0x108bd16
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108bd55
test byte [eax + 0x1c], 1
je 0x108bd55
push esi
push dword [ebp + 0xc]
push 0x10127f8
push 0x1a
jmp 0x108bd4a
push 4
lea eax, [ebp + 0x18]
push eax
push 4
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x108bd55
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108bd55
test byte [eax + 0x1c], 1
je 0x108bd55
push esi
push ebx
push 0x10127f8
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103a48a
cmp dword [ebp - 4], edi
je 0x108bd63
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x108bdaa
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108bda7
test byte [eax + 0x1c], 1
je 0x108bda7
push 0x10127f8
push 0x19
jmp 0x108bd9c
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108bda7
test byte [eax + 0x1c], 1
je 0x108bda7
push 0x10127f8
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
push 0x57
pop eax
pop edi
pop ebx
leave
ret 0x14
Function at 0x108bdb5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 8
mov dword [ebp - 4], edi
cmp eax, edi
je 0x108bec9
cmp word [eax], di
je 0x108bec9
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x108beae
cmp word [ebx], di
je 0x108beae
cmp dword [ebp + 0x14], edi
jne 0x108be21
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108beed
test byte [eax + 0x1c], 1
je 0x108beed
push 0x10127f8
push 0x1e
jmp 0x108bee2
push esi
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [0x10a7d6c]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x20019
push ecx
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x108be9b
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
jne 0x108be9b
cmp dword [ebp - 8], 0xb
je 0x108be9b
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108be98
test byte [eax + 0x1c], 1
je 0x108be98
push dword [ebp - 8]
push ebx
push 0x10127f8
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103a48a
push 0xd
pop esi
cmp dword [ebp - 4], edi
je 0x108bea9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x108bef0
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108beed
test byte [eax + 0x1c], 1
je 0x108beed
push 0x10127f8
push 0x1d
jmp 0x108bee2
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108beed
test byte [eax + 0x1c], 1
je 0x108beed
push 0x10127f8
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
push 0x57
pop eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x108befb
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x108bfef
cmp word [eax], di
je 0x108bfef
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
je 0x108bfd4
cmp word [ebx], di
je 0x108bfd4
push esi
push edi
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [0x10a7d6c]
push dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x20006
push ecx
push edi
push edi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
je 0x108bf82
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108bfc1
test byte [eax + 0x1c], 1
je 0x108bfc1
push esi
push dword [ebp + 0xc]
push 0x10127f8
push 0x22
jmp 0x108bfb6
push 8
lea eax, [ebp + 0x18]
push eax
push 0xb
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x108bfc1
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108bfc1
test byte [eax + 0x1c], 1
je 0x108bfc1
push esi
push ebx
push 0x10127f8
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103a48a
cmp dword [ebp - 4], edi
je 0x108bfcf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x108c016
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108c013
test byte [eax + 0x1c], 1
je 0x108c013
push 0x10127f8
push 0x21
jmp 0x108c008
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108c013
test byte [eax + 0x1c], 1
je 0x108c013
push 0x10127f8
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
push 0x57
pop eax
pop edi
pop ebx
leave
ret 0x18

Function at 0x108c021
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x108c0ad
cmp word [eax], di
je 0x108c0ad
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x108c092
cmp word [esi], di
je 0x108c092
push ebx
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [0x10a7d6c]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x20006
push ecx
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, edi
jne 0x108c07f
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
cmp dword [ebp - 4], edi
je 0x108c08d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
jmp 0x108c0d4
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108c0d1
test byte [eax + 0x1c], 1
je 0x108c0d1
push 0x10127f8
push 0x25
jmp 0x108c0c6
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108c0d1
test byte [eax + 0x1c], 1
je 0x108c0d1
push 0x10127f8
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
push 0x57
pop eax
pop edi
pop esi
leave
ret 0xc
Function at 0x108ca49
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x108cbb3
cmp word [esi], bx
je 0x108cbb3
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x108cb98
cmp word [eax], bx
je 0x108cb98
mov edi, dword [ebp + 0x18]
cmp edi, ebx
je 0x108cb7d
cmp word [edi], bx
je 0x108cb7d
lea eax, [ebp - 8]
push eax
push 0x7fffffff
push edi
call fcn.01073d30
cmp eax, ebx
jge 0x108cad9
mov ecx, dword [0x10a60d8]
cmp ecx, 0x10a60d8
je 0x108cad1
test byte [ecx + 0x1c], 1
je 0x108cad1
push eax
push 0x10127f8
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010160ad
push 0x57
pop esi
jmp 0x108cb6b
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [0x10a7d6c]
push dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0x20006
push eax
push ebx
push ebx
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
je 0x108cb27
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108cb6b
test byte [eax + 0x1c], 1
je 0x108cb6b
push esi
push dword [ebp + 0xc]
push 0x10127f8
push 0x12
jmp 0x108cb60
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x108cb6b
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108cb6b
test byte [eax + 0x1c], 1
je 0x108cb6b
push esi
push edi
push 0x10127f8
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103a48a
cmp dword [ebp - 4], ebx
je 0x108cb79
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x108cbda
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108cbd7
test byte [eax + 0x1c], 1
je 0x108cbd7
push 0x10127f8
push 0x10
jmp 0x108cbcc
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108cbd7
test byte [eax + 0x1c], 1
je 0x108cbd7
push 0x10127f8
push 0xf
jmp 0x108cbcc
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108cbd7
test byte [eax + 0x1c], 1
je 0x108cbd7
push 0x10127f8
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x108d25f
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x10a6184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x458]
push ebx
push eax
mov dword [ebp - 0x468], edi
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x45c], ebx
call sub.msvcrt.dll_memset
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
cmp esi, ebx
jne 0x108d300
mov dword [ebp - 0x460], 0x57
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108d4c4
test byte [eax + 0x1c], 1
je 0x108d4c4
push 0x10127f8
push 0x62
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
jmp 0x108d4c4
cmp edi, ebx
jne 0x108d331
mov dword [ebp - 0x460], 0x57
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108d4c4
test byte [eax + 0x1c], 1
je 0x108d4c4
push 0x10127f8
push 0x63
jmp 0x108d2f0
push esi
push edi
mov ebx, 0x101227c
push ebx
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0103e1ed
add esp, 0x14
test eax, eax
jge 0x108d394
mov ecx, eax
and ecx, 0x1000ffff
mov dword [ebp - 0x460], ecx
mov ecx, dword [0x10a60d8]
cmp ecx, 0x10a60d8
je 0x108d4c4
test byte [ecx + 0x1c], 1
je 0x108d4c4
push eax
push 0x10127f8
push 0x64
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010160ad
jmp 0x108d4c4
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x464], eax
cmp eax, 0xffffffff
jne 0x108d3eb
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108d4c4
test byte [eax + 0x1c], 4
je 0x108d4c4
lea ecx, [ebp - 0x20c]
push ecx
push 0x10127f8
push 0x65
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b9c
jmp 0x108d4c4
cmp dword [ebp - 0x45c], 0x10
je 0x108d49d
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x468]
lea eax, [ebp - 0x20c]
push ebx
push edi
push eax
call fcn.0103e1ed
mov esi, eax
add esp, 0x14
test esi, esi
jl 0x108d46c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x108d49d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x460], eax
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108d49d
test byte [eax + 0x1c], 1
je 0x108d49d
push dword [ebp - 0x460]
lea ecx, [ebp - 0x20c]
push ecx
push 0x10127f8
push 0x66
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103a48a
jmp 0x108d49d
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108d491
test byte [eax + 0x1c], 1
je 0x108d491
push esi
push 0x10127f8
push 0x67
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
and esi, 0x1000ffff
mov dword [ebp - 0x460], esi
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x108d3eb
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x460]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01039921
leave
ret 8
Function at 0x1093c7c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x1093cbd
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x1093c96
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1093cdb
dec esi
je 0x1093cd2
dec esi
jne 0x1093ce0
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10951bb
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
and dword [ebx + 0x28], 0
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 4], eax
xor eax, eax
cmp byte [ebp + 0x24], 0
mov word [ebx + 0xc], ax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x24], ecx
mov esi, 0x8000
jne 0x109520b
push esi
push eax
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
and dword [ebx + 0x30], eax
mov word [ebx + 0x2c], ax
call fcn.01094bf2
and dword [ebx + 0x20], 0
mov eax, esi
push 2
mov word [ebx + 0x3c], ax
mov eax, dword [ebx + 0x14]
pop ecx
mov dword [ebx + 0x34], esi
add eax, esi
push edi
movzx edi, byte [eax]
mov edx, dword [ebx + 0x20]
shl edx, 5
xor edx, edi
and edx, 0x7fff
inc eax
dec ecx
mov dword [ebx + 0x20], edx
jne 0x109522f
cmp byte [ebp + 0x24], cl
je 0x1095255
mov edi, ebx
call fcn.01094a33
jmp 0x1095267
xor eax, eax
mov ecx, esi
mov edx, dword [ebx + 0x18]
xor edi, edi
mov word [eax + edx], di
inc eax
inc eax
dec ecx
jne 0x1095259
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.01093df3
push 0x4b
pop edx
call fcn.01093df3
call fcn.01094f38
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
pop edi
je 0x10952a6
mov eax, dword [ebx + 0x14]
push esi
lea ecx, [eax + 0x8000]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x28]
neg eax
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24
Function at 0x10977b9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc9c
mov eax, dword [0x10a6184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc88], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0xc8c], eax
mov eax, dword [esi + 0x870]
add eax, 0x20
mov ecx, eax
shl ecx, 3
mov dword [ebp - 0xc9c], ecx
cmp ecx, 0x320
jb 0x1097806
xor eax, eax
jmp 0x10979e8
push ebx
push edi
mov edi, eax
shl edi, 4
push edi
lea eax, [ebp - 0xc84]
push 0
push eax
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x644]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 0x18]
add esp, 0x18
test ecx, ecx
jbe 0x1097965
mov eax, dword [ebp + 0x14]
mov ebx, dword [esi + 0x34]
mov edi, dword [esi + 0x30]
shl eax, 2
mov dword [ebp - 0xc90], eax
mov eax, dword [ebp + 0x10]
shl eax, 2
mov dword [ebp - 0xc94], eax
mov dword [ebp - 0xc98], ecx
jmp 0x1097865
mov eax, dword [ebp - 0xc94]
mov ecx, dword [ebp - 0xc88]
and ecx, 7
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0xc88]
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x109788f
mov eax, dword [ebp - 0xc88]
movzx eax, byte [edi + eax]
jmp 0x10978d3
mov ecx, dword [ebp - 0xc88]
cmp byte [edi + ecx], 7
mov ecx, dword [esi + 0x2c]
push dword [ecx + eax]
push esi
jae 0x10978bd
call fcn.01095a43
mov ecx, dword [ebp - 0xc88]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x10978cc
call fcn.01095a43
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc94], 4
inc dword [ebp - 0xc88]
lea eax, [ebp + eax*2 - 0xc84]
inc word [eax]
mov eax, dword [ebp - 0xc8c]
xor edx, edx
mov ecx, eax
and ecx, 7
inc edx
shl edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x1097905
movzx eax, byte [edi + eax]
jmp 0x1097949
cmp byte [edi + eax], 7
mov ecx, dword [ebp - 0xc90]
mov eax, dword [esi + 0x2c]
push dword [eax + ecx]
push esi
jae 0x1097933
call fcn.01095a43
mov ecx, dword [ebp - 0xc8c]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x1097942
call fcn.01095a43
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc90], 4
inc dword [ebp - 0xc8c]
lea eax, [ebp + eax*2 - 0x644]
inc word [eax]
dec dword [ebp - 0xc98]
jne 0x109785f
xor esi, esi
xor ebx, ebx
cmp dword [ebp - 0xc9c], esi
jbe 0x10979e4
mov edi, 0x100
movzx eax, word [ebp + esi*2 - 0xc84]
mov ecx, edi
cmp ax, cx
movzx eax, ax
jae 0x1097991
movzx eax, byte [eax + 0x1012f68]
jmp 0x109799e
shr eax, 8
movzx eax, byte [eax + 0x1012f68]
add eax, 8
movzx ecx, word [ebp + esi*2 - 0x644]
mov edx, edi
cmp cx, dx
movzx ecx, cx
jae 0x10979b9
movzx ecx, byte [ecx + 0x1012f68]
jmp 0x10979c6
shr ecx, 8
movzx ecx, byte [ecx + 0x1012f68]
add ecx, 8
mov eax, dword [eax*4 + 0x1012f20]
sub eax, dword [ecx*4 + 0x1012f20]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
inc esi
cmp esi, dword [ebp - 0xc9c]
jb 0x1097976
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01039921
leave
ret 0x14
Function at 0x835480
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d2000]
mov dword [edi + 0x2ee4d0], 0x14373329
push edi
or ebp, 0xffffffff
jmp 0x8354aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8354b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8354a0
mov eax, 1
add ebx, ebx
jne 0x8354c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8354b8
jne 0x8354d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8354b8
xor ecx, ecx
sub eax, 3
jb 0x8354e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x83555a
mov ebp, eax
add ebx, ebx
jne 0x8354f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x835500
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x835524
inc ecx
add ebx, ebx
jne 0x835510
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x835505
jne 0x835521
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x835505
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x835544
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x835535
jmp 0x8354a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x835544
add edi, ecx
jmp 0x8354a6
pop esi
mov edi, esi
mov ecx, 0xe7d1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x835562
cmp byte [edi], 0x65
jne 0x835562
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 0x835567
lea edi, [esi + 0x433000]
mov eax, dword [edi]
or eax, eax
je 0x8355df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x57516c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x57525c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x835594
mov ecx, edi
jns 0x8355c3
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 + 0x575260]
or eax, eax
je 0x8355d9
mov dword [ebx], eax
add ebx, 4
jmp 0x8355b1
call dword [esi + 0x575268]
mov ebp, dword [esi + 0x575264]
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 0x835613
sub esp, 0xffffff80
jmp 0x61b7ef