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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f539
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x4a6554]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x848], ecx
mov dword [ebp - 0x844], 0
push 0x48be9c
lea ecx, [ebp - 0x83c]
call fcn.004039c0
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x820], 0x400
mov word [ebp - 0x81c], 0
push 0x3fe
push 0
lea eax, [ebp - 0x81a]
push eax
call fcn.00448460
add esp, 0xc
mov word [ebp - 0x41c], 0
push 0x3fe
push 0
lea ecx, [ebp - 0x41a]
push ecx
call fcn.00448460
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x444212
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
je 0x44427a
mov dword [ebp - 0x840], 1
lea edx, [ebp - 0x820]
push edx
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x840]
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x444270
lea ecx, [ebp - 0x81c]
push ecx
call fcn.00447961
add esp, 4
test eax, eax
jbe 0x444270
lea edx, [ebp - 0x81c]
push edx
lea ecx, [ebp - 0x83c]
call fcn.004042b0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x83c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004010c0
mov edx, dword [ebp - 0x844]
or edx, 1
mov dword [ebp - 0x844], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x83c]
call fcn.004010f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00447fc5
mov esp, ebp
pop ebp
ret 0x10

Function at 0x445a62
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4a8c10], 0
push esi
jne 0x4459d5
call fcn.00445900
test eax, eax
je 0x445a18
mov eax, dword [0x4a8c10]
cmp eax, 1
jne 0x4459f6
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x445a18
pop esi
ret
push eax
call dword [0x4a8c18]
test eax, eax
jne 0x445a60
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x445a1c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4a8c10]
call dword [0x4a8c18]
mov edi, eax
test edi, edi
je 0x445a43
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x445a5f
lea edi, [esi + 0xff0]
push esi
push dword [0x4a8c10]
call dword [0x4a8c14]
add esi, 0x10
cmp esi, edi
jb 0x445a49
mov eax, esi
pop edi
pop esi
ret
jmp 0x4459c2
Function at 0x44904b
Capabilities:
Encode data using xor

Disassembly:
out dx, al
adc al, bl
mov edx, 0xf3043361
push edx
inc eax
jnp 0x449081
push esi
adc al, byte [edx + esi]
and byte [eax + edi*4 + 0x40945516], dl
push ecx
lea edx, [ebp - 0x3a3a5518]
ror word [ebp - 0x6b], 1
dec esi
sbb ch, byte [ebp - 0xa]
cld
pushal
frstor dword [esp + ebp*2]
stosd dword es:[edi], eax
dec ebx
inc eax
aad 0x9d
jg 0x449097
dec ebx
popfd
fsubr dword [edi + edi*4 + 0x11]
cmc
cdq
js 0x4490af
fdiv dword [ebx + 0x59]
call 0xfa48391c
push edx
xor bl, byte [ebx + esi]
jle 0x44908c
neg dword [ebx - 0x13fa28de]
neg byte [edx - 0x43823825]
sbb ecx, esi
stc
mov ch, 0x61
xchg edi, eax
dec esp
cmp byte [eax + esi*2], dh
sbb al, 0x7d
imul edx, ebx, 0x20467981
inc esi
and byte [eax], bl
js 0x4490c8
sbb byte [esi], ah
js 0x4490c8
pop edx
cdq
xor edx, dword [eax - 0x25]
xor ecx, dword [ebx - 0x9d28473]
jbe 0x44907f
mov ecx, dword [ebp + 0x76f62d7b]
in al, dx
push cs
mov dword [ecx], ebx
jb 0x449018
sbb dword [edx - 0x80], esi
cmp byte [eax + edx], 0x63
invalid
cmp al, 0x10
arpl bp, ax
cmc
add byte [edi + 0x7a], ch
push esp
sub byte [ecx + 0x54804ffe], 0x6c
push ecx
xor esp, dword [eax - 0x72f92ac]
out dx, al
mov ch, 0x72
clc
or bh, byte [ebx + esi - 0x5e]
adc edi, edi
push es
jbe 0x449095
push esi
stosb byte es:[edi], al
cmpxchg byte gs:[ecx - 0x34], bh
idiv dword [eax - 0xb0fe42f]
xchg ebx, eax
mov dword [0x241ab339], eax
mov ecx, dword [ebx]
mov edi, 0x2216667a
mov byte [0xe486ebbd], al
movsb byte es:[edi], byte [esi]
stosd dword es:[edi], eax
mov dl, 0x1d
invalid
invalid

Function at 0x451c04
Capabilities:
Encode data using xor

Disassembly:
add dword [edi], esp
rcr byte [edi - 0x5c], 0x18
fild word [edi - 0x1d]
push 0xab9aaba7
mov dl, 0xf6
hlt
push ss
jle 0x451bf1
xlatb
jg 0x451b6a
stc
sub al, 0xef
push 0x81036d04
test dword [edi], esp
mov dword [eax], ebx
push edx
mov bl, 0xc9
dec esi
in eax, dx
xor eax, 0x54202473
push esp
push esp
cmc
cmp al, 0xcb
mov dh, bh
mov eax, dword [ecx + 0x2b522f2f]
sub eax, 0x2303ceda
push dword [esi - 0x292f905]
push ebx
adc dword [ebp - 0xc], ecx
lodsb al, byte [esi]
mov bl, byte [eax - 0x1635395c]
popal
mov ecx, 0x4e7b2944
inc esp
sub dword [ebx + 0x4e], edi
test cl, bh
fsubp st(7)
jle 0x451bae
or eax, 0xbb70d936
dec esi
lodsd eax, dword [esi]
xor word [esi - 0x7f], 0xa534
jbe 0x451b87
xor al, 0xa5
call 0xd782d3d9
call 0x1ccffe4a
xor al, 0xe1
arpl word [edx - 0x22], sp
stosb byte es:[edi], al
push 0xffffffffffffffe8
imul esp, dword [ecx - 0x5d0c248b], 0x83e0bb0f
imul ecx, edi, 0xa7e9d68f
push edi
push cs
inc esi
je 0x451c01
mov byte [edx - 1], 0x76
xor dl, al
ret 0x8329
Function at 0x469d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47fe3f
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
mov eax, dword [0x4a6554]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x84]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 4]
mov esi, dword [edi + 0x14]
sub eax, 2
cmp esi, eax
mov ebx, 1
ja 0x469d99
cmp dword [edi + 0x18], eax
je 0x469d99
push ebx
push eax
mov ecx, edi
call fcn.00402ff0
test al, al
je 0x469d99
cmp dword [edi + 0x18], 0x10
mov dword [edi + 0x14], esi
jb 0x469d92
mov eax, dword [edi + 4]
jmp 0x469d95
lea eax, [edi + 4]
mov byte [eax + esi], 0
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
sub ecx, ebx
add esi, ebx
cmp esi, ecx
mov dword [esp + 0x10], ecx
je 0x469f79
jmp 0x469db5
mov ecx, dword [esp + 0x10]
mov al, byte [esi]
add esi, ebx
cmp al, 0x22
mov byte [esp + 0x18], al
je 0x469f79
cmp al, 0x5c
jne 0x469eb3
cmp esi, ecx
je 0x469ecf
mov al, byte [esi]
movsx eax, al
add esi, ebx
add eax, 0xffffffde
cmp eax, 0x53
mov dword [esp + 0x84], esi
ja case.0x469df6.35
movzx eax, byte [eax + 0x469fb8]
jmp dword [eax*4 + 0x469f90]
push 0x22
jmp 0x469eb8
push 0x2f
jmp 0x469eb8
push 0x5c
jmp 0x469eb8
push 8
jmp 0x469eb8
push 0xc
jmp 0x469eb8
push 0xa
jmp 0x469eb8
push 0xd
jmp 0x469eb8
push 9
jmp 0x469eb8
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x14]
push edx
push ecx
push eax
lea ecx, [esp + 0x90]
mov edx, ebp
call fcn.00469bf0
test al, al
je 0x469f0a
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x38]
call fcn.00469720
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov dword [esp + 0x84], ebx
call fcn.00406e10
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x50], 0x10
jb 0x469e95
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00446c0b
add esp, 4
mov esi, dword [esp + 0x84]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
jmp 0x469ec0
mov edx, dword [esp + 0x18]
push edx
push ebx
mov ecx, edi
call fcn.004046b0
cmp esi, dword [esp + 0x10]
jne 0x469db1
jmp 0x469f79
push str.Empty_escape_sequence_in_string
lea ecx, [esp + 0x58]
call fcn.00403390
mov edx, dword [esp + 0x80]
push esi
push ebp
lea ecx, [esp + 0x5c]
mov dword [esp + 0x80], 0
call fcn.00469970
cmp dword [esp + 0x6c], 0x10
mov bl, al
jb 0x469f79
mov eax, dword [esp + 0x58]
push eax
jmp 0x469f71
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8
push 0x1d
push str.Bad_escape_sequence_in_string
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.004033f0
mov edx, dword [esp + 0x80]
push esi
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x80], 2
call fcn.00469970
cmp dword [esp + 0x34], 0x10
mov bl, al
jb 0x469f79
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00446c0b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8
Function at 0x3b63700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.03b6378f
jae 0x3b6370e
xor ecx, ecx
call fcn.03b6378f
jae 0x3b6373d
xor eax, eax
call fcn.03b6378f
jae 0x3b6374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.03b6378f
adc al, al
jae 0x3b6372f
jne 0x3b63779
stosb byte es:[edi], al
jmp 0x3b63711
call fcn.03b6379b
sub ecx, ebx
jne 0x3b63756
call fcn.03b63799
jmp 0x3b63775
lodsb al, byte [esi]
shr eax, 1
je 0x3b63783
adc ecx, ecx
jmp 0x3b63772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03b63799
cmp eax, 0x7d00
jae 0x3b63772
cmp ah, 5
jae 0x3b63773
cmp eax, 0x7f
ja 0x3b63774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3b63711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x3b83700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.03b8378f
jae 0x3b8370e
xor ecx, ecx
call fcn.03b8378f
jae 0x3b8373d
xor eax, eax
call fcn.03b8378f
jae 0x3b8374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.03b8378f
adc al, al
jae 0x3b8372f
jne 0x3b83779
stosb byte es:[edi], al
jmp 0x3b83711
call fcn.03b8379b
sub ecx, ebx
jne 0x3b83756
call fcn.03b83799
jmp 0x3b83775
lodsb al, byte [esi]
shr eax, 1
je 0x3b83783
adc ecx, ecx
jmp 0x3b83772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03b83799
cmp eax, 0x7d00
jae 0x3b83772
cmp ah, 5
jae 0x3b83773
cmp eax, 0x7f
ja 0x3b83774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3b83711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x43aaca
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44f7f4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043aa5f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004225b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43ab19
cmp dword [ebp - 0x1c], 5
jb 0x43ab31
jmp 0x43ab2d
cmp dword [ebp - 0x10], 1
jne 0x43ab31
cmp dword [ebp - 0x1c], 4
ja 0x43ab2d
jne 0x43ab31
cmp dword [ebp - 0x18], 0
jbe 0x43ab31
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44578c
call fcn.0043a933
test eax, eax
jge 0x43ab52
mov byte [0x4511a4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004221b5
add ebp, 0x78
leave
ret
Function at 0x48a750
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x42000]
mov dword [edi + 0x69ac0], 0x700a15a7
push edi
or ebp, 0xffffffff
jmp 0x48a77a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48a781
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48a770
mov eax, 1
add ebx, ebx
jne 0x48a793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48a7a4
jne 0x48a7c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48a7c3
dec eax
add ebx, ebx
jne 0x48a7b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48a788
add ebx, ebx
jne 0x48a7bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48a815
xor ecx, ecx
sub eax, 3
jb 0x48a7db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48a84a
sar eax, 1
mov ebp, eax
jmp 0x48a7e6
add ebx, ebx
jne 0x48a7e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48a7b4
inc ecx
add ebx, ebx
jne 0x48a7f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48a7b4
add ebx, ebx
jne 0x48a801
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48a7f6
jne 0x48a812
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48a7f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48a834
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48a826
jmp 0x48a776
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48a834
add edi, ecx
jmp 0x48a776
pop esi
mov edi, esi
mov ecx, 0x1da7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48a852
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x48a857
lea edi, [esi + 0x87000]
mov eax, dword [edi]
or eax, eax
je 0x48a8c8
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9ddf8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9debc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48a87d
mov ecx, edi
jns 0x48a8ac
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9dec4]
or eax, eax
je 0x48a8c2
mov dword [ebx], eax
add ebx, 4
jmp 0x48a89a
call dword [esi + 0x9dec0]
mov ebp, dword [esi + 0x9dec8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x48a8fc
sub esp, 0xffffff80
jmp 0x43adab
Function at 0x40108f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x401097
mov dword [ecx*4 + 0x509ae0], eax
inc ecx
cmp ecx, 0x100
jb 0x401092
mov edx, 0x800
jmp 0x4010e4
mov eax, dword [ecx*4 + 0x5096e0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x509ae0]
inc ecx
mov dword [ecx*4 + 0x509adc], eax
cmp ecx, edx
jb 0x4010c3
mov dword [0x5038e0], 0x401107
call fcn.00403d79
pop esi
test eax, eax
jne 0x401106
mov dword [0x5038e0], 0x4011a3
ret

Function at 0x401993
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [esi]
test edi, edi
je 0x4019de
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x4019af
mov eax, edi
and dword [ebp + 0x10], 0
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x4019e4
test ecx, ecx
je 0x4019de
test edi, edi
ja 0x4019a4
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x403b26
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x403b3f
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x403b62
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x403b67
inc edi
cmp edi, dword [ebp - 4]
jb 0x403b59
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x403c5f
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x403bbe
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x403b92
cmp cl, 0xff
jne 0x403be9
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x403bf7
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x403bfe
dec ecx
shl edx, cl
and edx, 7
je 0x403b83
movzx ecx, byte [edx + 0x477744]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x47773c], 0
mov cl, byte [ebx + 4]
je 0x403be6
test cl, cl
je 0x403be6
cmp cl, 0xff
jne 0x403b83
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x403b54
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x403c32
movzx esi, byte [edx + 0x477744]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x403c1d
cmp al, 0xff
jne 0x403c2f
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x403bb0
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x403b54
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x403e2c
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x14], ecx
lea ecx, [esi + 0xc]
push ecx
movzx ecx, byte [esp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 4
push ecx
lea eax, [esi + 0x10]
push eax
push 0x403df6
push 0
push 0
mov dword [eax], esi
call fcn.0044ff6a
add esp, 0x18
xor ecx, ecx
test eax, eax
mov dword [esi + 4], eax
setne cl
mov al, cl
pop esi
ret 8

Function at 0x403e6e
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x403e90
cmp byte [esi + 0x1c], 0
je 0x403e85
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret
Function at 0x40769e
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xa8]
sub esp, 0x128
mov eax, dword [0x501f8c]
xor eax, ebp
mov dword [ebp + 0xa4], eax
mov eax, dword [ebp + 0xb4]
push ebx
push esi
mov esi, dword [ebp + 0xb8]
push edi
mov edi, dword [ebp + 0xbc]
push 0x4779f8
push dword [ebp + 0xb0]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], edi
call fcn.0045137d
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
cmp eax, ebx
jne 0x40771d
cmp esi, ebx
je 0x407716
lea eax, [ebp - 0x80]
push eax
call fcn.00406ce8
pop ecx
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.004067b7
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.004064d9
xor al, al
jmp 0x40780d
cmp edi, ebx
je 0x407728
mov eax, dword [edi]
mov dword [ebp - 0x5c], eax
jmp 0x40772b
mov dword [ebp - 0x5c], ebx
push 9
xor eax, eax
pop ecx
mov word [ebp + 0x7c], ax
lea edi, [ebp + 0x7e]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x58]
push 0xffffffffffffffff
push ebx
stosw word es:[edi], ax
call fcn.00406459
push 2
push ebx
push dword [ebp - 0x50]
call fcn.00451232
push dword [ebp - 0x50]
call fcn.0045113a
push ebx
push ebx
push dword [ebp - 0x50]
mov edi, eax
call fcn.00451232
add esp, 0x1c
xor esi, esi
cmp edi, ebx
je 0x4077cf
push edi
call fcn.0045030e
push dword [ebp - 0x50]
mov ebx, eax
push 1
push edi
push ebx
call fcn.00450f80
push edi
push ebx
push esi
call fcn.00405cc9
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045030e
push edi
push ebx
push eax
mov dword [ebp - 0x54], eax
call fcn.00405cc9
mov ecx, dword [ebp - 0x58]
add esp, 0x30
push esi
push dword [ebp - 0x54]
call fcn.004069c9
push dword [ebp - 0x54]
call fcn.00450544
push ebx
call fcn.00450544
pop ecx
pop ecx
xor ebx, ebx
push esi
push edi
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0x4c]
push 0x4779c0
push eax
call fcn.00450ad6
mov ecx, dword [ebp - 0x60]
add esp, 0x14
cmp ecx, ebx
je 0x4077f6
lea eax, [ebp - 0x4c]
push eax
call fcn.00406a67
push dword [ebp - 0x50]
call fcn.00450c64
mov eax, dword [ebp - 0x64]
pop ecx
cmp eax, ebx
je 0x40780b
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
mov al, 1
mov ecx, dword [ebp + 0xa4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fa41
add ebp, 0xa8
leave
ret
Function at 0x40833d
Capabilities:
Copy file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x3c0]
sub esp, 0x440
mov eax, dword [0x501f8c]
xor eax, ebp
mov dword [ebp + 0x3bc], eax
mov eax, dword [ebp + 0x3cc]
push ebx
mov ebx, dword [ebp + 0x3c8]
push esi
push edi
mov dword [ebp - 0x60], eax
xor eax, eax
mov esi, 0x20a
push esi
push eax
mov word [ebp + 0x1b0], ax
lea eax, [ebp + 0x1b2]
push eax
call fcn.00450020
xor eax, eax
push esi
push eax
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5a]
push eax
call fcn.00450020
mov edi, 0x102
push edi
push ebx
lea esi, [edi + 2]
lea eax, [ebp + 0x1b0]
push esi
push eax
call fcn.0045183e
push edi
push dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.0045183e
push 0x1e
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00450020
and dword [ebp - 0x80], 0
lea eax, [ebp + 0x1b0]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov eax, 0x614
mov word [ebp - 0x70], ax
add esp, 0x44
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], 4
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x408418
push dword [ebp - 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x408418
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40841a
inc eax
jmp 0x40841a
xor eax, eax
mov ecx, dword [ebp + 0x3bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fa41
add ebp, 0x3c0
leave
ret

Function at 0x40959d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x501f8c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00450020
add esp, 0xc
push edi
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x477d58
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x228]
call fcn.00406c25
push eax
push esi
call fcn.00406c47
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x228]
call fcn.004064d9
cmp dword [esi + 0x18], 8
jb 0x409620
mov eax, dword [esi + 4]
jmp 0x409623
lea eax, [esi + 4]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044fa41
leave
ret