joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4094f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41484a
call fcn.004144dc
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
call fcn.0040814e
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x14], esi
jne 0x409551
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40953c
call esi
mov esi, eax
jmp 0x40966a
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40966a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x409572
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x40959a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x409585
call esi
jmp 0x40965f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x409661
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x409608
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x4095d5
push edi
call fcn.00406334
test al, al
je 0x4095d5
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00414560
mov dword [ebp + 8], esp
jmp 0x4095e1
push edi
lea ecx, [ebp - 0x10]
call fcn.0040809b
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4095ef
mov esi, 0x8007000e
jmp 0x409661
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov byte [eax + ebx], 0
test edi, edi
jne 0x409610
xor eax, eax
jmp 0x409653
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x409640
push ebx
call fcn.00406334
test al, al
je 0x409640
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.00414560
mov eax, esp
jmp 0x409649
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040809b
push 0
push esi
push edi
push eax
call fcn.0040638f
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00408e14
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.00406f0c
mov eax, esi
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40e0c7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0xd
mov edx, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104b
push dword [edx + 4]
mov dword [ebp - 0x34], 4
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
leave
ret 4
Function at 0x40e155
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x40e1a0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 4]
call fcn.0040d997
test eax, eax
je 0x40e1a0
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.0040d96d
jmp 0x40e1a2
xor eax, eax
pop esi
leave
ret 8

Function at 0x40eb5c
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x414aab
call fcn.004144dc
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
and dword [ebp - 4], 0
push 0x1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x40eb8f
mov ecx, eax
call fcn.0040d8aa
mov ebx, eax
jmp 0x40eb91
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jne 0x40eba1
or esi, 0xffffffff
jmp 0x40ebfe
push edi
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esi + 0x30]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x10]
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040e859
push 0xd
pop ecx
xor eax, eax
push eax
push eax
push 0x1004
push dword [esi + 4]
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x48], 4
call edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x104d
push dword [esi + 4]
mov dword [ebp - 0x28], ebx
call edi
mov esi, eax
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x40ec1d
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x414abd
call fcn.004144dc
sub esp, 0x10
mov eax, dword [0x417020]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
push 1
push dword [esi + 4]
call edi
push 2
push dword [esi + 4]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
call edi
push dword [esi + 4]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ed5d
test ebx, ebx
je 0x40ed5d
cmp dword [ebp - 0x14], 0
je 0x40ed5d
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0040ea1d
test eax, eax
je 0x40ed45
push 1
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
call ebx
push 0
push dword [ebp - 0x14]
call ebx
push 1
push dword [ebp - 0x1c]
push 0x28
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x130
push dword [esi + 4]
call edi
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
je 0x40eccc
push 0
push eax
call ebx
push 0x138
push dword [esi + 4]
call edi
test eax, eax
je 0x40ecdf
push 0
push eax
call ebx
push 0x131
push dword [esi + 4]
call edi
test eax, eax
je 0x40ecf2
push 0
push eax
call ebx
push 0x139
push dword [esi + 4]
call edi
test eax, eax
je 0x40ed05
push 0
push eax
call ebx
cmp dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
jne 0x40ed15
push 0x1f4
jmp 0x40ed1a
push 0x1f5
call fcn.0040e58d
test eax, eax
je 0x40ed5d
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
je 0x40ed5d
lea eax, [esi + 0x1c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x34]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40ed5d
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
call edi
test byte [esi + 0x4c], 2
je 0x40ed5d
push 1
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x10]
call fcn.0040dc05
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40f8ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f8d8
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f8d8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x40f8da
xor eax, eax
ret 8

Function at 0x411fc4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x4120a6
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x412041
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x412091
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x4120b0
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x412091
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00411fac
test eax, eax
je 0x4120b0
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x4120b0
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x411ff1
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x4120a9
Function at 0x413a86
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4188a0]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x4028a8
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x413b73
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x413b67
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x413b15
xor edi, edi
jmp 0x413b5e
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x413b11
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x413b11
push dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00414161
leave
ret 8
Function at 0x414161
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4188a0]
jne 0x41416a
ret
jmp 0x41416f
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4188a0]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x418a40]
test eax, eax
je 0x414193
call eax
cmp dword [0x418a44], 0
je 0x4141da
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x418a44]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.00414161
add ebp, 0x2a8
leave
ret
Function at 0x4910c3
Capabilities:
Encode data using xor

Disassembly:
push 0x203
call fcn.004915ea
jb 0x491399
xchg esi, eax
mov eax, dword [esp + 4]
bswap eax
mov edx, eax
and eax, 0xf0f0f0f
xor edx, eax
rol eax, 8
or eax, edx
mov edx, eax
and eax, 0x33333333
xor edx, eax
rol eax, 4
or eax, edx
mov edx, eax
and eax, 0x55555555
xor edx, eax
rol eax, 2
or eax, edx
ror eax, 7
push eax
mov eax, esi
bswap eax
mov edx, eax
and eax, 0xf0f0f0f
xor edx, eax
rol eax, 8
or eax, edx
mov edx, eax
and eax, 0x33333333
xor edx, eax
rol eax, 4
or eax, edx
mov edx, eax
and eax, 0x55555555
xor edx, eax
rol eax, 2
or eax, edx
ror eax, 7
pop ebx
push esi
add eax, ebx
xchg ecx, eax
lea esi, [ebp + 0x793]
mov ebx, ecx
shr ebx, 0x10
mov edx, 0x37f5
dec edx
shr edx, 1
mov ch, cl
dec cx
and cl, 0xf
mov ax, word [esi]
xor ax, bx
add ax, cx
ror ax, cl
xor ax, cx
mov word [esi], ax
inc esi
inc esi
dec edx
jne 0x491151
mov ecx, 0x37f5
dec ecx
shr ecx, 2
lea esi, [ebp + 0x793]
mov edi, esi
lodsw ax, word [esi]
mov bx, ax
lodsw ax, word [esi]
stosw word es:[edi], ax
mov ax, bx
stosw word es:[edi], ax
loop 0x491180
lea esi, [ebp + 0x793]
pop ecx
mov ebx, ecx
shr ebx, 0x10
mov edx, 0x37f5
dec edx
mov ch, cl
dec cx
and cl, 0xf
mov al, byte [esi]
xor al, bl
add al, ch
ror al, cl
xor al, cl
mov byte [esi], al
inc ebx
inc esi
dec edx
jne 0x4911a2
lea esi, [ebp + 0x793]
mov ecx, dword [esp + 4]
mov ebx, ecx
shr ebx, 0x10
mov edx, 0x37f5
dec edx
shr edx, 1
mov ch, cl
dec cx
and cl, 0xf
mov ax, word [esi]
xor ax, bx
add ax, cx
ror ax, cl
xor ax, cx
mov word [esi], ax
inc esi
inc esi
dec edx
jne 0x4911d1
clc
xor ecx, ecx
pop ebx
pop eax
call fcn.00491793

Function at 0x491453
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x3c]
add edi, eax
mov ecx, dword [edi + 0x7c]
jecxz 0x4914ad
mov ebx, eax
add ebx, dword [edi + 0x78]
mov edx, eax
add edx, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
mov edi, edx
mov ebp, eax
xor eax, eax
push eax
mov esi, ebp
add esi, dword [edx + eax*4]
push esi
mov edi, esi
push eax
push ecx
mov al, 0
xor ecx, ecx
dec ecx
repne scasb al, byte es:[edi]
pop ecx
pop eax
xchg edi, esi
sub esi, dword [esp]
mov edi, esi
pop esi
call fcn.00491080
cmp eax, dword [esp + 0x18]
pop eax
je 0x4914be
inc eax
loop 0x491482
xor eax, eax
pop dword fs:[0]
add esp, 4
pop ebp
clc
ret 8
mov edx, ebp
add edx, dword [ebx + 0x24]
movzx eax, word [edx + eax*2]
cmp eax, dword [ebx + 0x14]
jae 0x4914ad
mov edx, ebp
add edx, dword [ebx + 0x1c]
add ebp, dword [edx + eax*4]
xchg ebp, eax
jmp 0x4914af
Function at 0x4914d7
Capabilities:
Encode data using xor

Disassembly:
push 0x4402890e
xor eax, eax
push eax
call fcn.0049141e
jb 0x4915e7
push 4
push 0x1000
push 0x200
push 0
call eax
dec eax
js 0x4915e7
inc eax
push eax
mov edi, eax
xor ecx, ecx
xor eax, eax
mov al, cl
push ecx
mov ecx, 8
clc
rcr ax, 1
jae 0x49151b
xor ax, 0xa001
loop 0x491511
mov word [edi], ax
inc edi
inc edi
pop ecx
inc ecx
cmp ecx, 0x100
jne 0x491507
mov esi, ebp
mov edi, dword [esp]
mov ecx, 0x77f
dec ecx
xor eax, eax
xor ebx, ebx
xor bh, bh
mov bl, al
lodsb al, byte [esi]
xor bl, al
shl bx, 1
mov bx, word [edi + ebx]
xor bl, ah
mov ax, bx
loop 0x49153b
xor edx, edx
mov ecx, 0x77f
dec ecx
mov edi, ecx
shr edi, 1
mov esi, ebp
test ah, 0x80
je 0x491567
xor ax, 0xa097
test dh, 0x80
je 0x491571
xor dx, 0xa097
mov bx, ax
add bx, ax
mov cx, dx
add cx, dx
lodsw ax, word [esi]
mov dl, ah
add ax, bx
mov ah, bh
add dx, cx
mov dh, ch
dec edi
jne 0x49155e
shl eax, 0x10
add eax, edx
mov edx, eax
shr eax, 4
and edx, 0xf0f0f0f
shl edx, 4
and eax, 0xf0f0f0f
or eax, edx
pop ebx
push eax
push ebx
push 0x2aad1211
xor eax, eax
push eax
call fcn.0049141e
jb 0x4915e7
pop ebx
push 0x8000
push 0
push ebx
call eax
call fcn.004912cb
jb 0x4915e7
push ecx
mov ecx, dword [ebp + 0x77f]
add ecx, ebp
lea ebx, [ebp + 0x41e]
sub ebx, dword [ebp + 0x783]
mov dword [ecx + 0x18], ebx
pop ecx
inc ecx
ret
xor ecx, ecx
ret

Function at 0x49167f
Capabilities:
Encode data using xor

Disassembly:
pop ecx
push 0x4402890e
xor eax, eax
push eax
call fcn.0049141e
jb 0x4915e7
push 4
push 0x1000
push 0x200
push 0
call eax
dec eax
js 0x491777
inc eax
push eax
mov edi, eax
xor ecx, ecx
xor eax, eax
mov al, cl
push ecx
mov ecx, 8
clc
rcr ax, 1
jae 0x4916c4
xor ax, 0xa001
loop 0x4916ba
mov word [edi], ax
inc edi
inc edi
pop ecx
inc ecx
cmp ecx, 0x100
jne 0x4916b0
mov esi, ebp
mov edi, dword [esp]
mov ecx, 0x77f
dec ecx
xor eax, eax
xor ebx, ebx
xor bh, bh
mov bl, al
lodsb al, byte [esi]
xor bl, al
shl bx, 1
mov bx, word [edi + ebx]
xor bl, ah
mov ax, bx
loop 0x4916e4
xor edx, edx
mov ecx, 0x77f
dec ecx
mov edi, ecx
shr edi, 1
mov esi, ebp
test ah, 0x80
je 0x491710
xor ax, 0xa097
test dh, 0x80
je 0x49171a
xor dx, 0xa097
mov bx, ax
add bx, ax
mov cx, dx
add cx, dx
lodsw ax, word [esi]
mov dl, ah
add ax, bx
mov ah, bh
add dx, cx
mov dh, ch
dec edi
jne 0x491707
shl eax, 0x10
add eax, edx
mov edx, eax
shr eax, 4
and edx, 0xf0f0f0f
shl edx, 4
and eax, 0xf0f0f0f
or eax, edx
pop ebx
push eax
push ebx
push 0x2aad1211
xor eax, eax
push eax
call fcn.0049141e
jb 0x491777
pop ebx
push 0x8000
push 0
push ebx
call eax
call fcn.004910c3
jb 0x491777
inc ecx
ret
xor ecx, ecx
jmp 0x491673
Function at 0x1ebd3f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x15b7015
lea edi, [esi - 0x11b6015]
push edi
or ebp, 0xffffffff
jmp 0x1ebd412
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1ebd419
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ebd408
mov eax, 1
add ebx, ebx
jne 0x1ebd42b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1ebd43c
jne 0x1ebd45b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ebd45b
dec eax
add ebx, ebx
jne 0x1ebd448
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1ebd420
add ebx, ebx
jne 0x1ebd457
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1ebd4ad
xor ecx, ecx
sub eax, 3
jb 0x1ebd473
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1ebd4e2
sar eax, 1
mov ebp, eax
jmp 0x1ebd47e
add ebx, ebx
jne 0x1ebd47e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ebd44c
inc ecx
add ebx, ebx
jne 0x1ebd48c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ebd44c
add ebx, ebx
jne 0x1ebd499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1ebd48e
jne 0x1ebd4aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1ebd48e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1ebd4cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1ebd4be
jmp 0x1ebd40e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1ebd4cc
add edi, ecx
jmp 0x1ebd40e
pop esi
mov edi, esi
mov ecx, 0x7db017
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1ebd507
cmp byte [edi], 0x24
jne 0x1ebd4ec
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1ebd4ea
lea edi, [esi + 0x1a87000]
mov eax, dword [edi]
or eax, eax
je 0x1ebd54f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1abd000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1abd028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1ebd50d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1abd030]
or eax, eax
je 0x1ebd549
mov dword [ebx], eax
add ebx, 4
jmp 0x1ebd52a
call dword [esi + 0x1abd02c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1ebd589
cmp al, 0xef
ja 0x1ebd573
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1ebd555
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x1ebd562
mov eax, dword [edi]
add edi, 4
jmp 0x1ebd562
mov ebp, dword [esi + 0x1abd034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x1ebd5bd
sub esp, 0xffffff80
jmp 0x475a00
Function at 0x10005fa0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1007641b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1006b562
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10006022
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10069475
mov eax, dword [eax]
push 0x1008dc48
push eax
call fcn.1005c1c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1006b7ed
test bl, bl
je 0x10006022
push 0x1008dc48
lea ecx, [esp + 0xc]
call fcn.1006bb7d
push 0x1008dc54
lea ecx, [esp + 0xc]
call fcn.1006bb7d
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1000605e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1006b7ed
jmp 0x10006129
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x100060e2
lea edx, [esp + 0x7c]
push 0x1008dc50
push edx
call fcn.1005c1c4
add esp, 8
test eax, eax
je 0x100060e2
lea eax, [esp + 0x7c]
push 0x1008dc4c
push eax
call fcn.1005c1c4
add esp, 8
test eax, eax
je 0x100060e2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10006072
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.1006b7ed
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x10006920
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10006982
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc