joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40383c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [ebp - 0x200], esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1fc]
mov edx, dword [ebp - 0x200]
add eax, dword [ecx + edx*8 + 0x78]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x80]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x80]
add eax, dword [ecx + 0x1c]
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x80]
add eax, dword [ecx + 0x24]
mov dword [ebp - 0x1f0], eax
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x80]
cmp eax, dword [ecx + 0x18]
jae 0x4038dc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ebp - 0x58]
add eax, dword [ecx + edx*4]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [ebp - 0x208]
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x2d8], ecx
mov dword [ebp - 0xd8], 0
mov ecx, dword [ebp - 0x170]
call fcn.00402a15
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
cmp eax, dword [ebp - 0x2d4]
jae 0x40389f
mov eax, dword [ebp - 0x170]
mov ecx, dword [ebp - 0xac]
mov al, byte [eax + ecx]
mov byte [ebp - 0x42], al
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 0x2ec], ecx
mov dword [ebp - 0xec], 0
add byte [eax], al
mov dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0xe8]
cmp eax, dword [ebp - 0x2f0]
jae 0x403879
mov eax, dword [ebp - 0x2ec]
invalid
test dword [edi + edi*8], edx

Function at 0x404db8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x542054], 0
je 0x404e19
cmp word [0x542330], 0xd7b2
jne 0x404de1
cmp dword [0x542338], 0
jbe 0x404de1
mov eax, 0x54232c
call dword [0x542348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404e44
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52f030], 0
jne 0x404e35
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404fe4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x52f034], 0
je 0x40500a
mov edx, esi
mov eax, ebx
call dword [0x52f034]
jmp 0x405019
mov eax, 8
call fcn.00403064
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x542055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404fac
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408714
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40a2b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x544b64
push 0xa
push 0x40a34c
mov eax, dword [0x544b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a2dc
call fcn.00415fa0
push ebx
mov eax, dword [0x544b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a2f3
call fcn.00415fa0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a305
call fcn.00415fa0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x544b68], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x544b6c], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x544b70], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x544b74], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x544b78], ecx
add edx, dword [eax + 0x14]
mov dword [0x544b7c], edx
pop esi
pop ebx
ret

Function at 0x40bd14
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40bdbd
test eax, edx
je 0x40bdc0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40bd3d
push edx
mov edx, eax
mov eax, esp
call fcn.00405fe4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40bd53
push eax
lea eax, [esp + 8]
call fcn.00405fe4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40bd62
movzx eax, word [eax]
sub eax, ecx
jmp 0x40bd89
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40bda3
add ecx, 4
js 0x40bd7a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40bda0
push eax
mov eax, ecx
mov edx, 2
call fcn.00405084
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40bd87
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40bd89
xor eax, eax
ret
test eax, eax
je 0x40bdd0
test edx, edx
jne 0x40bd24
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40cf58
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405e6c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cf76
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40cf97
cmp ebx, 3
je 0x40cf97
cmp ebx, 0x7b
je 0x40cf97
mov eax, esi
call fcn.0040cf18
test al, al
jne 0x40cf9b
xor eax, eax
jmp 0x40cf9d
mov al, 1
pop esi
pop ebx
ret

Function at 0x40cfa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405e6c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cfb9
test al, 0x10
jne 0x40cfbd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40d0d8
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405e6c
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret

Function at 0x40d0ec
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405e6c
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40d10e
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4130b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4130e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405f1c
jmp 0x4130f2
mov eax, ebx
mov edx, esi
call fcn.00405de0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4130fc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41311e
movzx eax, word [esp]
jmp 0x413120
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41476c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x414842
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405e34
lea eax, [ebp - 4]
call fcn.00406838
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405e6c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41482c
mov eax, ebx
call fcn.00403064
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x414825
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405e6c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41480f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x414854
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41480f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41482c
mov eax, dword [ebp - 0x10]
call fcn.00403080
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414849
lea eax, [ebp - 4]
call fcn.00405dd0
ret
Function at 0x415e48
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405430
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x415df2
mov eax, edi
add eax, eax
call fcn.00403064
mov esi, eax
jmp 0x415df4
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x415e2d
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x415e17
mov eax, esp
cmp esi, eax
je 0x415e3a
mov eax, esi
call fcn.00403080
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x415e74
cmp bl, 0
je 0x415e70
cmp bl, 0x41
jl 0x415e6b
cmp bl, 0x5a
jg 0x415e6b
or bl, 0x20
xor al, bl
inc esi
jmp 0x415e4f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x415db4

Function at 0x42cca8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042c9ac
dec esi
jne 0x42ccca
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x42de74
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x546e98
cmp dword [edi], 0
jne 0x42def0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x546e94]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x52fda0
mov ecx, 2
call fcn.0040324c
mov edx, 0x42de4c
lea eax, [esi + 5]
call fcn.0042de6c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042de6c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42dec5
mov dword [0x546e94], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42e9c0
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.0040369c
ret
Function at 0x42ec9c
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x42ed36
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + 0x52fe2c]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + 0x52fe2c]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + 0x52fe2c]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x52fe2c]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x42ecbb
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x42ed4c
dec edx
je 0x42ed81
jmp 0x42edd2
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x52fe2c]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + 0x52fe2c]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x42edd2
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x52fe2c]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + 0x52fe2c]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + 0x52fe2c]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42eeb4
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x42eed3
add edx, 3
sar edx, 2
test edx, edx
jle 0x42efe1
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x42ef08
je 0x42ef4b
sub ecx, 0x2b
je 0x42ef41
sub ecx, 4
je 0x42ef46
dec ecx
sub ecx, 0xa
jb 0x42ef33
jmp 0x42ef4e
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x42ef1a
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x42ef25
jmp 0x42ef4e
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x42ef4e
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x42ef4e
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x42ef4e
mov byte [eax], 0x3e
jmp 0x42ef4e
mov byte [eax], 0x3f
jmp 0x42ef4e
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x42eeeb
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x42ef9f
cmp byte [esp + 7], 0xff
jne 0x42ef9f
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x42efd6
cmp dl, 0xff
je 0x42efd6
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x42eee2
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x42fefc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x42ff1d
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x42ff0a
pop edi
pop esi
pop ebx
ret
Function at 0x4319dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
jmp 0x431a09
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x431a88
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0043033c
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x431a56
mov cx, word [esp]
sub cx, si
jmp 0x431a58
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x431a3f
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x431a7e
mov cx, word [esp]
sub cx, si
jmp 0x431a80
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x431a67
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x431ae5
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.004316bc
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x431ad0
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x431ae5
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4319e6
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x436f84
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
mov eax, 0xedb88320
xor esi, esi
mov ebx, dword [esp]
mov edx, esi
mov ecx, 0xfffffff8
mov edi, edx
and edi, 1
dec edi
jne 0x436faa
shr edx, 1
xor edx, eax
jmp 0x436fac
shr edx, 1
inc ecx
jne 0x436f9c
mov dword [ebx], edx
inc esi
add ebx, 4
cmp esi, 0x100
jne 0x436f95
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x436fc4
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x436fcd
mov eax, dword [ebp - 4]
add esp, 0xfffff7f0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00427e28
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x14]
or esi, 0xffffffff
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
sub eax, dword [ebp + 8]
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x43707a
cmp dword [ebp - 0xc], 0x2800
jl 0x437028
mov dword [ebp - 8], 0x2800
jmp 0x43702e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x2814]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
xor ebx, ebx
cmp ebx, dword [ebp - 0x10]
jge 0x437072
mov eax, esi
shr eax, 8
and eax, 0xffffff
movzx edx, byte [ebp + ebx - 0x2814]
xor esi, edx
and esi, 0xff
xor eax, dword [esi*4 + 0x546e9c]
mov esi, eax
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x437049
mov eax, dword [ebp - 8]
sub dword [ebp - 0xc], eax
jmp 0x437010
mov ebx, esi
xor ebx, 0xffffffff
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x442fd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405e6c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x44302c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x541218]
mov dl, 1
mov eax, dword [0x442820]
call fcn.00413c58
call fcn.004047b8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004429a8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x444244
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x44425d
add esp, 0xfffffff0
call fcn.00404214
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405dc8
xor eax, eax
push ebp
push 0x4443e1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x24], eax
mov byte [ebx + 0x21], 0
mov byte [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0xffffffff
lea eax, [ebx + 0x18]
xor edx, edx
call fcn.00405de0
mov byte [ebx + 0x22], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.0043b92c
lea eax, [ebx + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
call fcn.00403ddc
mov dl, 1
mov eax, dword [0x4431d0]
call fcn.00427dc8
mov esi, eax
mov dword [ebx + 0x14], esi
lea eax, [ebx + 0xc]
sub eax, 4
mov dword [eax], esi
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 4]
call fcn.00405de0
cmp dword [ebx + 0x10], 0
je 0x4443b0
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.00443fbc
mov eax, dword [ebx + 0x10]
call fcn.0040cf58
test al, al
jne 0x4443a6
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.0040d4b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x444328
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x444328
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040524c
test eax, eax
je 0x444331
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x44433d
mov eax, dword [ebp - 4]
call fcn.00444084
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [ebx + 0x10]
call fcn.00405e6c
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x4443a6
cmp dword [ebp + 8], 0
je 0x4443a0
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
call fcn.0040770c
test eax, eax
jle 0x4443a0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040770c
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebx + 0x24], 0
je 0x4443b0
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x4441a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4443e8
lea eax, [ebp - 8]
mov edx, dword [0x40a4e0]
call fcn.004078e0
lea eax, [ebp - 4]
call fcn.00405dd0
ret

Function at 0x448314
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x44831a
ret
Function at 0x455138
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405de0
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x45517f
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00405fc8
add esp, 0x200
pop esi
pop ebx
ret