joyce8/EMBER2024-capa huggingface dataset:
Function at 0x82ec74
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4496f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
push eax
push esi
call dword [0x45bfd8]
test eax, eax
jne 0x82ecb7
mov eax, 0x200
jmp 0x82ee40
mov ecx, dword [ebp - 0x38]
xor eax, eax
push ebx
xor ebx, ebx
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
je 0x82ecce
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x82ecd7
or dword [ebp - 0x3c], 2
test cl, 4
je 0x82ece0
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x82eceb
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x82ecf4
or dword [ebp - 0x3c], 0x20
cmp eax, ebx
je 0x82ed01
or dword [ebp - 0x3c], 0x40000000
jmp 0x82ed08
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], ebx
jne 0x82ed1b
or dword [ebp - 0x3c], 0x800000
push ebx
push esi
call dword [0x45c0bc]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x82edc0
push ebx
push ebx
push ebx
push esi
call dword [fcn.0045beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push esi
call dword [fcn.0045c004]
push ebx
push ebx
push 0x24
push esi
call dword [fcn.0045beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [fcn.0045c004]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x82edc0
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x82edc0
push ebx
push ebx
push eax
push esi
call dword [fcn.0045beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [fcn.0045c004]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x5a4d
je 0x82edb9
cmp eax, 0x454e
je 0x82edb9
cmp eax, 0x454c
je 0x82edb9
cmp eax, 0x4550
jne 0x82edc0
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x82edcc
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x82edd8
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp edi, ebx
je 0x82ee11
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0082ebdf
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.0082ebdf
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.0082ebdf
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x54]
cmp esi, ebx
pop ebx
je 0x82ee3e
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.0082ec03
movzx eax, word [ebp - 0x40]
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00831cba
leave
ret
Function at 0x82fae4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x82fb11
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.00831c40
mov ecx, dword [ebp + 0xc]
mov eax, ecx
movzx edx, word [eax*8 + 0x4415ba]
mov dword [esi + 0x6af98], edx
movzx edx, word [eax*8 + 0x4415b8]
mov dword [esi + 0x6af9c], edx
movzx edx, word [eax*8 + 0x4415bc]
mov dword [esi + 0x6afa0], edx
movzx eax, word [eax*8 + 0x4415be]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ecx, 2
jg 0x82fb77
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x82fb83
cmp ecx, 8
jl 0x82fb83
mov eax, dword [ebp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x82fbea
cmp eax, 0xffffffff
je 0x82fbea
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x82fbc5
push esi
call fcn.0082e0d0
pop ecx
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x82fbcd
jmp 0x82fbfa
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x8301ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x8303b4
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x830226
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x830269
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x830269
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x830250
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
push esi
call fcn.0082df8c
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x830269
mov ebx, eax
cmp ebx, 3
jb 0x83032e
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.0082db11
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x8302fb
cmp eax, 3
jb 0x8302fb
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x8302a9
jmp 0x830351
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x830357
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0082db11
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x830393
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x830370
lea ecx, [eax + esi + 0x1af70]
jmp 0x830372
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00830029
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x8303a6
push esi
call fcn.0082e0d0
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x8301d6
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x8303c7
lea ecx, [eax + esi + 0x1af70]
jmp 0x8303c9
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.00830029
add esp, 0x10
pop esi
pop ebx
leave
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x41c151
Capabilities:
Encode data using xor

Disassembly:
jns 0x41c12d
push dword [0]
xor eax, 0
push 2
mov ebx, 0x94
mov eax, 2
jmp 0x41c145
call fcn.0043631b
add esp, 0x1c
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0xffffffffffffffff
push 8
push 0x160114dd
push 0x52010001
call fcn.0043633f
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x41c192
jmp 0x41c195
push 0x80000004
push 0
clc
jae 0x41c1a0
jg 0x41c12c
mov eax, dword [ebp - 0x14]
inc ebp
in al, dx
test eax, eax
jne 0x41c1ac
sal byte [ebp + 5], 0xb8
sbb eax, dword [eax]
add byte [eax], al
mov eax, 0x1b
push eax
push 1
mov ebx, 0x9dc
stc
jb 0x41c1bb
jge 0x41c1a4
call fcn.00436327
mov eax, dword [1]
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41c1d6
push ebx
call fcn.00436315
add esp, 4
les eax, [ecx + edi*8]
stc
jb 0x41c1da
jae 0x41c1d4
stc
jb 0x41c1de
punpckhbw mm0, qword [eax + eax]
add byte [eax + 0x1eb006a], al
test byte [eax], ch
add byte [eax], al
add byte [eax + 1], ch
add byte [eax], al
add byte [ebx + 0x9dc], bh
push 0x80000004
push 0
jmp 0x41c1e8
push 0
push 1
mov ebx, 0x9dc
call fcn.0041c1fc
Function at 0x4011cb
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040123c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x401120
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebp
mov eax, dword [esp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push eax
mov dword [esp + 0x2c], esi
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40122f
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x40121c
lea ecx, [esp + 0x1c]
push 0
push ecx
push ebx
push esi
push ebp
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esi + 8]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401213
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
add ecx, 0xfffffff4
mov dword [esp + 0x10], eax
lea edx, [esi + 0xc]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push ebx
call fcn.00401040
mov ecx, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x10], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x40120a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 0
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push esi
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x401350
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x424
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x434]
lea eax, [esp + 0xc]
push ebp
push eax
lea ecx, [esp + 0x1c]
push 0x214
push ecx
push esi
mov dword [esp + 0x20], ebp
call ebx
cmp dword [esp + 0xc], 0x214
je 0x401395
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x424
ret
mov edx, dword [esp + 0x438]
push edi
lea eax, [esp + 0x22c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov ecx, dword [esp + 0x228]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x40144e
mov eax, dword [esp + 0x220]
lea edx, [esp + 0x10]
push ebp
push edx
push eax
push edi
push esi
call ebx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x22c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea eax, [esp + 0x22c]
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401445
mov edx, dword [esp + 0x220]
lea ecx, [esp + 0x14]
push ebp
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x224]
push eax
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, 1
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x424
ret

Function at 0x401460
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push esi
push edi
mov edi, dword [esp + 0x214]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4014fc
lea eax, [esp + 8]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea ecx, [esp + 0x10]
push 0x2e
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 0x10
test eax, eax
je 0x4014f5
lea edx, [esp + 8]
push 0
push edx
mov word [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 8]
push 0x409070
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00401350
add esp, 0x10
test eax, eax
je 0x4014f5
lea edx, [esp + 8]
push edx
push esi
call fcn.00401350
add esp, 8
test eax, eax
jne 0x4014e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7f13280c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3cc5165f
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x430be0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cbcbb
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.004bff2f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x430c62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004bd56d
mov eax, dword [eax]
push 0x530220
push eax
call fcn.004aea64
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004c01ba
test bl, bl
je 0x430c62
push 0x530220
lea ecx, [esp + 0xc]
call fcn.004c054a
push 0x533dd4
lea ecx, [esp + 0xc]
call fcn.004c054a
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 0x430c9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004c01ba
jmp 0x430d69
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 0x430d22
lea edx, [esp + 0x7c]
push 0x533dd0
push edx
call fcn.004aea64
add esp, 8
test eax, eax
je 0x430d22
lea eax, [esp + 0x7c]
push 0x533dcc
push eax
call fcn.004aea64
add esp, 8
test eax, eax
je 0x430d22
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 0x430cb2
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.004c01ba
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 0x432450
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 0x4324b2
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
Function at 0x4324c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cbe5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x542368]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4325f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x432526
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c01ba
xor eax, eax
jmp 0x43266f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004c02f7
push esi
lea ecx, [esp + 0xc]
call fcn.004c0586
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x43264d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push connect
call fcn.00432450
test eax, eax
jne 0x43264d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push connect
mov ecx, edi
call fcn.00432450
test eax, eax
jne 0x43264d
lea eax, [esp + 0x14]
push 0x533de8
push eax
call fcn.004afcb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43262c
lea ecx, [esp + 0x14]
push 0x533de4
push ecx
call fcn.004afc30
mov esi, eax
add esp, 8
test esi, esi
jne 0x43262c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43262f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004c02a7
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x43253e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c01ba
xor eax, eax
jmp 0x43266f
mov byte [esi], 0
push 0x533de0
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004c01ba
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x448d10
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x448d7e
cmp si, 0x69
ja 0x448d7e
add esi, 0xffd0
cmp si, 0x11
je 0x448d4e
push 0x11
call edi
test ax, ax
jge 0x448d4e
or esi, 0x2000
cmp si, 0x10
je 0x448d63
push 0x10
call edi
test ax, ax
jge 0x448d63
or esi, 0x4000
cmp si, 0x12
je 0x448d78
push 0x12
call edi
test ax, ax
jge 0x448d78
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x448d8b
mov esi, 0xbd
jmp 0x448d3f
cmp si, 0x6e
jne 0x448d98
mov esi, 0xbe
jmp 0x448d3f
cmp si, 0x6f
jne 0x448d39
mov esi, 0xbf
jmp 0x448d3f

Function at 0x44ae30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x552ba8]
xor edx, edx
cmp eax, edx
jne 0x44ae56
xor eax, eax
mov byte [eax + 0x552aa8], al
inc eax
cmp eax, 0x100
jl 0x44ae3e
mov dword [0x552ba8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x552aa8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x44aee7
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 0x44aeba
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 0x44ae88
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x44af60
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 0x44afb3
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 0x44af9a
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