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

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

Function at 0x427648
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42768a
call fcn.0042d437
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42768a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x427681
xor eax, eax
jmp 0x427692
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00427698
pop edi
pop esi
pop ebx
ret 4

Function at 0x42db45
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42db73
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42db91
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042daab
jmp 0x42db91
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42db91
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042daab
test edi, edi
mov eax, edi
jne 0x42db7b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x52ed84
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0x66433c
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x52ee48
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x52edbc
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x52ee5f
dec edx
je 0x52eea0
jmp 0x52eefd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x52eefd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x52ef60
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
xor esi, esi
xor edi, edi
xor eax, eax
mov ebp, ecx
test ebp, ebp
jns 0x52ef7d
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x52f08f
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x52efb0
je 0x52effc
sub ecx, 0x2b
je 0x52eff2
sub ecx, 4
je 0x52eff7
dec ecx
sub ecx, 0xa
jb 0x52efe1
jmp 0x52efff
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x52efc2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x52efd0
jmp 0x52efff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x52efff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x52efff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x52efff
mov byte [eax], 0x3e
jmp 0x52efff
mov byte [eax], 0x3f
jmp 0x52efff
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x52ef8f
mov al, byte [esp]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi], al
lea eax, [edi + 1]
mov dl, byte [esp + 2]
cmp dl, 0xff
je 0x52f04f
cmp byte [esp + 3], 0xff
jne 0x52f04f
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
lea eax, [edi + 2]
inc edi
jmp 0x52f087
cmp dl, 0xff
je 0x52f087
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 2]
shl edx, 6
or dl, byte [esp + 3]
mov byte [eax + edi + 2], dl
lea eax, [edi + 3]
add edi, 2
inc edi
dec ebp
jne 0x52ef88
add esp, 0xc
pop ebp
pop edi
pop esi
ret

Function at 0x52f11c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x6757a0
mov eax, ebx
mov edx, 8
test al, 1
je 0x52f138
shr eax, 1
xor eax, 0xedb88320
jmp 0x52f13a
shr eax, 1
dec edx
jne 0x52f12b
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x52f124
pop ebx
ret
Function at 0x52f150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x52f159
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00526a38
xor eax, eax
push ebp
push 0x52f239
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0052f11c
mov eax, dword [0x674e0c]
mov byte [eax], 0
mov dword [ebx], 0xffffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.00524e7c
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.00525218
call fcn.00524ba8
test eax, eax
jne 0x52f216
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.00524fcc
mov dx, word [ebp - 8]
test dx, dx
jbe 0x52f210
lea eax, [ebp - 0x10145]
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebx]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x6757a0]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x52f1ec
cmp dword [ebp - 8], 0
jne 0x52f1c3
lea eax, [ebp - 0x154]
call fcn.00524fec
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f240
lea eax, [ebp - 4]
call fcn.00526588
ret

Function at 0x53a718
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x53a738
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x53a726
pop edi
pop esi
pop ebx
ret
Function at 0x542fd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
mov ebx, 0x675cb4
mov eax, ebp
shr eax, 1
and eax, 0xff
mov dword [esp], eax
mov esi, ebp
and esi, 1
mov eax, ebp
and eax, 0x200
shr eax, 8
or esi, eax
mov edx, dword [esi*4 + 0x66a670]
mov eax, dword [esi*4 + 0x66a6b0]
xor eax, dword [esp]
call fcn.00542f70
mov edi, eax
shl edi, 0x18
mov eax, edi
call fcn.00542fac
mov dword [ebx], eax
mov edx, dword [esi*4 + 0x66a680]
mov eax, dword [esi*4 + 0x66a6c0]
xor eax, dword [esp]
call fcn.00542f70
mov edi, eax
shl edi, 0x10
mov eax, edi
call fcn.00542fac
mov dword [ebx + 0x1000], eax
mov edx, dword [esi*4 + 0x66a690]
mov eax, dword [esi*4 + 0x66a6d0]
xor eax, dword [esp]
call fcn.00542f70
mov edi, eax
shl edi, 8
mov eax, edi
call fcn.00542fac
mov dword [ebx + 0x2000], eax
mov edx, dword [esi*4 + 0x66a6a0]
mov eax, dword [esi*4 + 0x66a6e0]
xor eax, dword [esp]
call fcn.00542f70
mov edi, eax
mov eax, edi
call fcn.00542fac
mov dword [ebx + 0x3000], eax
inc ebp
add ebx, 4
cmp ebp, 0x400
jne 0x542fe0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x543138
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0x4c]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + ebx*4], edx
inc ebx
cmp ebx, 3
jne 0x54316d
xor ebx, ebx
mov eax, ebx
mov esi, 3
xor edx, edx
div esi
mov eax, dword [ebp - 0x14]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
xor eax, eax
lea edx, [eax + ecx]
and edx, 3
mov esi, dword [ebp - 8]
lea edx, [esi + edx*2]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dx, word [edx]
and dx, 1
movzx edx, dx
mov esi, dword [ebp - 0x18]
mov esi, dword [esi]
add esi, esi
or esi, edx
mov edi, dword [ebp - 0x18]
mov dword [edi], esi
mov esi, dword [ebp - 0x1c]
movzx esi, word [esi]
shr esi, 1
xor dx, 1
shl edx, 0xf
or si, dx
mov edx, dword [ebp - 0x1c]
mov word [edx], si
inc eax
cmp eax, 4
jne 0x543193
inc ebx
cmp ebx, 0xf
jne 0x54317d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jne 0x54314f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x6bc6b3
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov dh, bh
jmp 0x6bc6f6
lea esp, [esp + 4]
add esi, 0x10
bsr dx, bp
mov dh, 0x92
jmp 0x6bc6df
mov ebx, dword [ebx*4 + 0x698eb8]
mov di, sp
seto dh
btr edi, edx
mov dx, word [esp]
jmp 0x6bc6b7

Function at 0x6bc80e
Capabilities:
Encrypt data using aes

Disassembly:
push word [esp + 3]
add esp, 5
lea esp, [esp + 1]
jmp 0x6bc841

Function at 0x6bc860
Capabilities:
Encrypt data using aes

Disassembly:
and edx, ecx
cmc
push edx
mov dword [esp], eax
add esp, 1
lea esp, [esp + 3]
jmp 0x6bc834
xor edi, dword [ebx*4 + 0x6996b8]
dec ebx
cmc
movzx ebx, byte [esi + 5]
jmp 0x6bc7fe
mov edx, dword [edx*4 + 0x698eb8]
push edx
call fcn.006bc80e
and edx, ecx
sub esp, 0x18
push word [esp + 0x15]
lea esp, [esp + 2]
jmp 0x6bc8bd
clc
lea esp, [esp + 4]
jmp 0x6bc825
xchg dh, dl
mov edx, dword [esi + 4]
clc
stc
call fcn.006bc889
mov edx, 0x35c6a333
test dword [esi + 0x5a23e0a1], esi
mov ch, 0x8d
and al, 0x1c
lea esp, [esp + 0x1c]
xor edi, dword [edx*4 + 0x699eb8]
sub esp, 0xc
push dword [esp]
push dword [esp + 0xa]
jmp 0x6bc8a5

Function at 0x6bca08
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push dword [esp]
mov dword [esp + 1], ecx
push dword [esp + 6]
jmp 0x6bcb04
neg dx
mov edx, 0x4df96a6a
jmp 0x6bca65
push ecx
mov ecx, esi
lea ecx, [ecx + 4]
mov dword [ecx], edi
jmp 0x6bca99
mov edx, dword [esi + 8]
sub esp, 0xe
add esp, 7
lea esp, [esp + 3]
jmp 0x6bca4a
mov edi, edx
push edx
mov byte [esp + 1], dh
shr edi, 0x18
jmp 0x6bcadc
lea ecx, [ecx*4]
lea ecx, [ecx + 0x698eb8]
mov edi, dword [ecx]
pop ecx
sub esp, 0x1e
jmp 0x6bcac5
pop ecx
mov edi, 0x9efc4274
mov di, word [esp]
mov ebx, dword [ebx*4 + 0x698eb8]
lea edi, [edx + ebp]
jmp 0x6bca74
and edi, ecx
jmp 0x6bcae3
sub esp, 2
mov word [esp + 0x1a], di
jmp 0x6bcaaf
clc
pushal
push ecx
mov ecx, edi
jmp 0x6bca80
push esi
mov esi, edi
lea esi, [esi*4]
jmp 0x6bcb49
and edx, ecx
lea esp, [esp + 0x18]
xor edi, dword [edx*4 + 0x699eb8]
setbe dh
bsf dx, si
jmp 0x6bca18
and ebx, ecx
lea esp, [esp + 0x48]
xor edi, dword [ebx*4 + 0x699ab8]
ror bh, 3
jmp 0x6bcb33
setne bl
push edx
jmp 0x6bcb99
lea esi, [esi + 0x6992b8]
mov edi, dword [esi]
pop esi
jmp 0x6bcb1d
mov ebx, dword [ebx*4 + 0x698eb8]
push esp
pushal
cmc
and ebx, ecx
jmp 0x6bcb82
stc
lea esp, [esp + 0x34]
xor edi, dword [ebx*4 + 0x6996b8]
jmp 0x6bcbcd
lea esp, [esp + 4]
movzx ebx, byte [esi + 0xa]
sub esp, 0x12
lea esp, [esp + 2]
jmp 0x6bcb70
push ecx
mov ecx, edx
lea ecx, [ecx*4]
lea ecx, [ecx + 0x698eb8]
jmp 0x6bcbd6
movzx ebx, byte [esi + 0xd]
and edx, ecx
pushal
jmp 0x6bcbaa
mov edx, dword [ecx]
pop ecx
call fcn.006bcc29
and edx, ecx
sub esp, 0
jmp 0x6bcc00
lea esp, [esp + 0x2c]
xor edi, dword [edx*4 + 0x699eb8]
shr dx, cl
neg dx
jmp 0x6bcc38
pop edi
call fcn.006bcc42
retf 0xcc5e
push edi
mov edi, esi
lea edi, [edi + 0xc]
mov edx, dword [edi]
jmp 0x6bcc13

Function at 0x6bcc29
Capabilities:
Encrypt data using aes

Disassembly:
pushal
add esp, 0x13
pop word [esp + 9]
lea esp, [esp + 3]
jmp 0x6bcbde
Function at 0x6bcc73
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
shr edi, 0x18
push esp
jmp 0x6bccd4
push esi
mov esi, edi
lea esi, [esi*4]
jmp 0x6bccbb
lea esi, [esi + 0x698eb8]
mov edi, dword [esi]
pop esi
jmp 0x6bce58
sub esp, 0xe
lea esp, [esp + 2]
jmp 0x6bcc79
lea ebp, [ebp + 0x698eb8]
mov ebx, dword [ebp]
pop ebp
call 0x6bcd12
push esi
lea esp, [esp + 3]
lea esp, [esp]
sub esp, 4
jmp 0x6bcd34
push ebp
mov ebp, ebx
lea ebp, [ebp*4]
jmp 0x6bcd02
lea esp, [esp + 1]
and edx, ecx
clc
sub esp, 0xe
stc
jmp 0x6bcd93
lea esp, [esp + 3]
lea esp, [esp + 0x1c]
xor edi, dword [ebx*4 + 0x699ab8]
movzx ebx, byte [esi + 0xe]
jmp 0x6bcd28
lea esp, [esp + 0x14]
xor edi, dword [ebx*4 + 0x6996b8]
stc
pushal
mov word [esp + 0x18], dx
jmp 0x6bcdbd
xor edi, dword [edx*4 + 0x699eb8]
call fcn.006bcda6
dec edx
retf 0x3f58
push dword [esp + 2]
lea esp, [esp + 2]
mov edx, dword [edx*4 + 0x698eb8]
and ebx, ecx
jmp 0x6bcd69
and edx, ecx
sub esp, 0x12
lea esp, [esp + 2]
lea esp, [esp + 0x30]
jmp 0x6bcd7d
mov edi, dword [edi*4 + 0x6992b8]
and ebx, ecx
sub esp, 8
add esp, 5
jmp 0x6bcd54
and edi, ecx
stc
push esp
lea esp, [esp + 1]
lea esp, [esp + 3]
jmp 0x6bcdde

Function at 0x6bce12
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov byte [esp + 2], bh
pop word [esp]
lea esp, [esp + 2]
jmp 0x6bcdfa
Function at 0xb9ee7b
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
push edx
lea esp, [esp + 4]
push esp
mov word [esp], bx
mov byte [esp + 1], bh
lea esp, [esp + 1]
jmp 0xb9ee12
lea esp, [esp + 3]
lea esp, [esp]
jmp 0xb9edc9
mov dword [esp + 0x18], ebp
push esp
call fcn.00b9eded
scasd eax, dword es:[edi]
cmp al, 0xd2
mov ch, 0x44
lodsd eax, dword [esi]
wait
or dword [ecx + 0x3bae0bf8], ebx
stosb byte es:[edi], al
cmp byte [edi - 0x56], bl
pop ebx
dec ebx
loop 0xb9ee97
invalid
pop dword [esp + 5]
add eax, 0x1c245489
mov dword [esp + 0x1c], edx
call fcn.00b9edbd
or dword [ebp + 0x10a7540d], ebx
jns 0xb9ee34
jl 0xb9ee63
neg byte [edi + 0x69]
add edx, dword [ebx + 0x46b505f6]
int1
invalid
add dword [ebp - 0x76fedb9c], ecx
jl 0xb9ee8f
sub byte [ebp - 0x14d7db9c], cl
or esp, esp
ja 0xb9ee5c
xor byte [ecx - 0x2a], 0xea
add eax, 0x64dfebb4
mov eax, dword [0x30]
dec esp
ret 0x54a5
in eax, dx
cld
mov dword [esp + 0x28], esi
push edx
push word [esp + 3]
lea esp, [esp + 3]
push word [esp + 2]
pop word [esp]
call 0xb9ee7b
aad 0x53
ret
Function at 0x404880
Capabilities:
Shutdown system
Terminate process

Disassembly:
sub esp, 0xb0
lea eax, [esp]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.DLL_OpenProcessToken]
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.DLL_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.DLL_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push 2
call dword [sym.imp.USER32.DLL_ExitWindowsEx]
test eax, eax
jne 0x404917
lea ecx, [esp + 0x34]
push pe_nt_image_headers32
push ecx
push 6
push eax
call dword [sym.imp.USER32.DLL_LoadStringA]
push 0
lea edx, [esp + 0x38]
push 0x4140cc
push edx
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
push 0
call fcn.00407075
mov esi, dword [sym.imp.USER32.DLL_GetMessageA]
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
je 0x40495d
push ebx
mov ebx, dword [sym.imp.USER32.DLL_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.DLL_TranslateMessage]
lea ecx, [esp + 0x20]
push ecx
call edi
lea edx, [esp + 0x20]
push edx
call ebx
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call esi
test eax, eax
jne 0x40493c
pop edi
pop ebx
pop esi
add esp, 0xb0
ret

Function at 0x404c10
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x358
push ebx
push ebp
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
mov ebx, dword [esp + 0x36c]
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [ebx + 0x100]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], 0x44
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x64]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x200]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x68]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x404ce6
push eax
lea eax, [esp + 0x26c]
push 0x100
push eax
push 0x400
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x300], ecx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ebx + 0x304], edx
mov dword [ebx + 0x308], eax
mov dword [ebx + 0x30c], ecx
pop ebp
mov al, 1
pop ebx
add esp, 0x358
ret
Function at 0x405640
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ecx
mov eax, ecx
push ebx
push ebp
push esi
lea edx, [eax + 4]
push edi
mov ebp, dword [esp + 0x18]
mov ecx, 0x12
mov esi, 0x4112ec
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x4c]
mov ecx, 0x12
mov esi, 0x4112ec
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x400
mov esi, 0x411334
lea edi, [eax + 0x94]
test ebp, ebp
rep movsd dword es:[edi], dword [esi]
je 0x405792
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x405792
xor ecx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0x12
mov eax, ecx
cdq
idiv ebx
xor eax, eax
inc ecx
mov al, byte [edx + ebp]
mov edi, eax
mov eax, ecx
cdq
idiv ebx
xor eax, eax
shl edi, 8
mov al, byte [edx + ebp]
mov esi, eax
or esi, edi
inc ecx
mov eax, ecx
cdq
idiv ebx
xor eax, eax
shl esi, 8
mov al, byte [edx + ebp]
mov edi, eax
or edi, esi
inc ecx
mov eax, ecx
cdq
idiv ebx
xor eax, eax
shl edi, 8
mov al, byte [edx + ebp]
mov edx, dword [esp + 0x18]
or eax, edi
inc ecx
mov edi, dword [edx]
add edx, 4
xor edi, eax
mov eax, dword [esp + 0x1c]
mov dword [edx - 4], edi
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jne 0x4056a3
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea esi, [ecx + 4]
lea edi, [ebx + 0x90]
mov ebp, 9
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebx
call fcn.00405990
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi], eax
add esi, 4
sub edi, 4
mov dword [esi], ecx
mov dword [edi + 4], eax
mov dword [edi], ecx
add esi, 4
sub edi, 4
dec ebp
jne 0x40571f
lea esi, [ebx + 0x98]
mov ebp, 4
mov edi, pe_nt_image_headers32
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebx
call fcn.00405990
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi - 4], eax
mov dword [esi], ecx
add esi, 8
dec edi
jne 0x405760
dec ebp
jne 0x40575b
pop edi
pop esi
mov byte [ebx], 1
pop ebp
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
mov byte [eax], 0
pop ebx
pop ecx
ret 8
Function at 0x410680
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49596b
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.00488559
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x410702
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00485a2a
mov eax, dword [eax]
push 0x4e71f4
push eax
call fcn.00477a04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004887e4
test bl, bl
je 0x410702
push 0x4e71f4
lea ecx, [esp + 0xc]
call fcn.00488bc0
push 0x4ead7c
lea ecx, [esp + 0xc]
call fcn.00488bc0
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 0x41073e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004887e4
jmp 0x410809
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 0x4107c2
lea edx, [esp + 0x7c]
push 0x4ead78
push edx
call fcn.00477a04
add esp, 8
test eax, eax
je 0x4107c2
lea eax, [esp + 0x7c]
push 0x4ead74
push eax
call fcn.00477a04
add esp, 8
test eax, eax
je 0x4107c2
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 0x410752
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.004887e4
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 0x411000
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 0x411062
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