joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x405a12
pop dword [ebp - 0x2c]
mov eax, 0xea1a231e
sub eax, 0xe9d9c90c
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x65b5e513
add dword [ebp - 0x3c], 0xe89c6038
mov dword [ebp - 0x38], 0xae3103ad
sub dword [ebp - 0x38], 0x7bfdb768
mov dword [ebp - 0x34], 0xbdd6076d
add dword [ebp - 0x34], 0x8e763cc1
mov dword [ebp - 0x30], 0x3f5aff7e
add dword [ebp - 0x30], 0xc0a50082
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x44ff3d41
add eax, 0xbb4143c3
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x35142347
sub dword [ebp - 0x3c], 0xc0a1b9f1
mov dword [ebp - 0x38], 0x3588bbc4
sub dword [ebp - 0x38], 0xf41c5a4f
mov dword [ebp - 0x34], 0x5dac3301
sub dword [ebp - 0x34], 0xfa3cc695
mov dword [ebp - 0x30], 0x3ead38e3
add dword [ebp - 0x30], 0xc152c71d
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x7f2e7dd2
add eax, 0x8112032e
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3bad0
push 0
call eax
mov ecx, 0x5d4adf56
sub ecx, 0x5d4a848e
mov edx, eax
mov ebx, 0x7f65663e
add ebx, 0x80e17dc2
add ebx, dword [ebp - 0x2c]
mov edi, 0xe1534108
sub edi, 0x32180167
mov esi, dword [ebx]
add dword [ebp - 0x10], 0x88d9b756
xor esi, edi
mov dword [edx], esi
xor dword [ebp - 8], 0xbe5704ce
add edx, 0xeaaeb5c1
add edx, 0x15514a43
add ebx, 0xc937e576
sub ebx, 0xc937e572
loop 0x405b34
add eax, 0xae8e4506
sub eax, 0xae8ce713
xor ebx, ebx
add ebx, eax
add eax, 0x6e83f8b7
add eax, 0x917c074e
mov ecx, 0x7e95fea0
add ecx, 0x81aa0160
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x4041b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x4041fe
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x4041cd
jmp 0x4041fe
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x4041ee
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x404261
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.TestSegmentedVector.exe_gMozillaPoisonSize]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x404299
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x1c]
jb 0x4042c3
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x1c]
jb 0x4042c3
test edi, edi
je 0x404290
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x404290
test edi, edi
je 0x4042cb
mov eax, edi
jmp 0x404292
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404292
int3

Function at 0x4042fa
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
mov dword [sym.TestSegmentedVector.exe_gMozillaPoisonSize], eax
call fcn.00404261
mov ecx, dword [sym.TestSegmentedVector.exe_gMozillaPoisonSize]
mov dword [sym.TestSegmentedVector.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x404330
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestSegmentedVector.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x43dc60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x24000]
push edi
jmp 0x43dc7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43dc81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43dc70
mov eax, 1
add ebx, ebx
jne 0x43dc93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43dc88
jne 0x43dca4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43dc88
xor ecx, ecx
sub eax, 3
jb 0x43dcb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43dd2a
mov ebp, eax
add ebx, ebx
jne 0x43dcc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43dcd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43dcf4
inc ecx
add ebx, ebx
jne 0x43dce0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43dcd5
jne 0x43dcf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43dcd5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43dd14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43dd05
jmp 0x43dc76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43dd14
add edi, ecx
jmp 0x43dc76
pop esi
mov edi, esi
mov ecx, 0x122a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43dd32
cmp byte [edi], 0x11
jne 0x43dd32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x43dd37
lea edi, [esi + 0x3b000]
mov eax, dword [edi]
or eax, eax
je 0x43ddaf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3d888]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3d8e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43dd64
mov ecx, edi
jns 0x43dd93
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 + 0x3d8e8]
or eax, eax
je 0x43dda9
mov dword [ebx], eax
add ebx, 4
jmp 0x43dd81
call dword [esi + 0x3d8e4]
mov ebp, dword [esi + 0x3d8ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x43dde3
sub esp, 0xffffff80
jmp 0x41cc49
Function at 0x10106590
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101b2860]
jne 0x1010659a
repz ret
jmp fcn.1010766c

Function at 0x1010886b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10105a71
and dword [ebp - 4], 0
cmp dword [0x101b477c], 0
mov ebx, eax
jne 0x1010891c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101089cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101089cd
push eax
call fcn.101059ff
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101b477c], eax
call esi
push eax
call fcn.101059ff
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101b4780], eax
call esi
push eax
call fcn.101059ff
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101b4784], eax
call esi
push eax
call fcn.101059ff
pop ecx
mov dword [0x101b478c], eax
test eax, eax
je 0x1010891c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.101059ff
pop ecx
mov dword [0x101b4788], eax
mov eax, dword [0x101b4788]
cmp eax, ebx
je 0x10108974
cmp dword [0x101b478c], ebx
je 0x10108974
push eax
call fcn.10105a7a
push dword [0x101b478c]
mov esi, eax
call fcn.10105a7a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10108974
test edi, edi
je 0x10108974
call esi
test eax, eax
je 0x1010896b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1010896b
test byte [ebp - 0xc], 1
jne 0x10108974
or dword [ebp + 0x10], 0x200000
jmp 0x101089ad
mov eax, dword [0x101b4780]
cmp eax, ebx
je 0x101089ad
push eax
call fcn.10105a7a
pop ecx
test eax, eax
je 0x101089ad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101089ad
mov eax, dword [0x101b4784]
cmp eax, ebx
je 0x101089ad
push eax
call fcn.10105a7a
pop ecx
test eax, eax
je 0x101089ad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101b477c]
call fcn.10105a7a
pop ecx
test eax, eax
je 0x101089cd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101089cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10109cd7
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101b20b0], 0
mov byte [0x101b20b4], 0
mov dword [0x101b20a4], 0x1f84
mov dword [0x101b20ac], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x101b20a8], 0x24b3
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101b20ac]
add eax, 1
mov dword [0x101b20ac], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10109d1c
xor eax, eax
mov dword [0x101b20ac], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101b20b8], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x101b20a8], 0x188c
mov edi, dword [0x101b20b0]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101b20b8], esi
mov dword [0x101b20a8], 0xfffff400
mov eax, esi
cdq
idiv ecx
mov dword [0x101b20b0], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101b20b4], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov esi, dword [0x101b20a4]
add esi, 0xffffedea
mov dword [0x101b20a8], esi
mov cl, byte [0x101b20b4]
mov esi, dword [0x101b20b0]
mov byte [ebx + esi], cl
mov dword [0x101b20a4], 0xa6b
mov esi, dword [0x101b20ac]
add esi, 1
mov dword [0x101b20ac], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x10109d5b
mov dword [0x101b20a8], 0x26c1
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10109ef8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101b20a8], 0x26ee
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1019add5]
mov dh, byte [eax + 0x1019ada6]
sub dh, dl
mov byte [ebp + eax - 0x20], dh
cmp ecx, 0xe
mov dword [ebp - 0x2c], ecx
jne 0x10109f19
lea eax, [ebp - 0x20]
mov ecx, dword [0x101b20a4]
add ecx, 0xffffde5c
mov dword [0x101b20a8], ecx
mov dword [0x101b20a4], 0xa9c
mov dword [ebp - 0x30], eax
call fcn.1010a51d
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.10109874
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x1010a048
mov eax, dword [ebp - 0x34]
mov ecx, dword [0x101b20a4]
add ecx, 0x241b
mov dword [0x101b20a4], ecx
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x101b20a8], 0x1203
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1010a962
xor eax, eax
mov ecx, dword [0x101b20a8]
add ecx, 0x144e
mov dword [0x101b20a4], ecx
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x3c], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x48], ecx
mov dword [0x101b20a8], 0x1220
cmp ecx, 0
mov dword [ebp - 0x38], eax
je 0x1010a048
mov eax, dword [ebp - 0x3c]
add eax, 0x2145
mov dword [0x101b20a4], 0x4d7
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop ebp
ret
Function at 0x1010a67d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x101b20a4], 0x928
mov dword [0x101b20a8], 0x17ae
mov dword [ebp - 0x10], eax
call fcn.1010abfd
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1010a6cd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x101b20a4], 0x12f0
mov esi, dword [edx + eax + 0x24]
mov dword [0x101b20a8], 0x205f
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x1010a7ff
jmp 0x1010a7a5
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x101b20a4], 0x1881
mov dword [ebp - 0x34], edi
jmp 0x1010a7ff
mov al, byte [ebp - 0x39]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x40]
add edx, 1
mov ah, byte [ebp - 0x41]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x48], edx
jne 0x1010a76f
jmp 0x1010a798
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x39], bh
mov byte [ebp - 0x41], cl
jne 0x1010a744
mov al, byte [ebp - 0x41]
test al, 1
jne 0x1010a71c
jmp 0x1010a7db
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [0x101b20a8], 0xda1
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edx
jmp 0x1010a76f
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x58]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x34], eax
jb 0x1010a7b5
mov eax, dword [ebp - 0x34]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1010a80a
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [0x101b20a4], 0x6aa
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x101b20a4], 0x2fc
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x101b20a8]
add esi, 0x1bd4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
jmp 0x1010a892
mov eax, dword [ebp - 0x10]
mov dword [0x101b20a4], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], ecx
jl 0x1010a892
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x24], eax
je 0x1010a8aa
jmp 0x1010a940
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x1010a87b
jmp 0x1010a85a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1010a940
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1010a940
mov dword [0x101b20a8], 0x135f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1010a940
mov dword [0x101b20a4], 0x44e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1010a940
mov dword [0x101b20a4], 0x17e9
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1010a940
mov eax, 1
mov ecx, 0x7ea
mov dword [0x101b20a4], 0x3d7c
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
je 0x1010a94f
xor eax, eax
mov ecx, 0x1b81
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
jmp 0x1010a94f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [0x101b20a4], eax
mov eax, ecx
add esp, 0x28
pop esi
pop ebp
ret

Function at 0x1010ab53
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [0x101b20a4]
add ecx, 0xfffffad2
mov dword [0x101b20a4], ecx
cmp eax, 0
mov dword [ebp - 4], eax
jne 0x1010abd0
lea eax, [0x10109c74]
mov dword [0x101b20a4], 0xd66
mov dword [0x101b20a8], 0x11fe
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
mov dword [ebp - 0xc], eax
jne 0x1010abb4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [ebp - 0x10], eax
je 0x1010abf5
mov dword [0x101b20a4], 0x11c1
mov eax, dword [ebp - 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 8], eax
jmp 0x1010ab95
xor eax, eax
mov dword [0x101b20a8], 0x9a4
mov ecx, dword [ebp - 4]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0x14], eax
call fcn.10109a3e
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0x1c
pop ebp
ret
Function at 0x1010ad87
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101b20ac], 0
mov dword [0x101b20b0], 0
mov dword [0x101b20bc], 0
mov ebx, dword [0x101b20a8]
add ebx, 0x1fa1
mov dword [0x101b20a4], ebx
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
je 0x1010af21
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x1059
mov edi, 0x100
add edx, 1
mov ebx, ecx
add ebx, 1
mov dword [0x101b20a8], 0x1f1b
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv edi
mov dword [0x101b20ac], edx
mov dword [0x101b20a4], 0x15f0
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x30]
add ecx, edx
mov eax, ecx
cdq
idiv edi
mov dword [0x101b20b0], edx
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x38]
mov cl, byte [ecx + edi]
mov byte [0x101b20b4], cl
mov dword [0x101b20a4], 0x8db
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x24]
mov byte [edx + edi], cl
mov cl, byte [0x101b20b4]
mov edx, dword [0x101b20b0]
mov edi, dword [ebp - 0x24]
mov byte [edi + edx], cl
mov dword [0x101b20a4], 0x1622
mov edx, dword [0x101b20ac]
movzx edx, byte [edi + edx]
mov ecx, dword [0x101b20b0]
movzx ecx, byte [edi + ecx]
add ecx, edx
mov dword [0x101b20a4], 0xfc2
and ecx, 0xff
mov dword [0x101b20bc], ecx
mov dword [0x101b20a8], 0xe3
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
xor cl, byte [edx + edi]
mov byte [0x101b20c0], cl
mov dword [0x101b20a8], 0xffffe6d8
mov edx, dword [ebp - 0x20]
mov byte [edx + edi], cl
mov dword [0x101b20a4], 0x1059
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], esi
je 0x1010af21
mov eax, dword [0x101b20b0]
mov ecx, dword [0x101b20ac]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], eax
jmp 0x1010adf5
mov eax, dword [ebp - 0x2c]
add eax, 0xfffff930
mov dword [0x101b20a4], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret

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 0x402b58
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040460c
test esi, esi
jne 0x402b8e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004046fc
jmp 0x402bac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a0c
mov edi, eax
test esi, esi
je 0x402bac
cmp dword [ebx], 0
je 0x402bac
dec esi
jmp 0x402b95
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40372c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4de020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037a4
xor eax, eax
push ebp
push 0x40379d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037e0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4037a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4de020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4de020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404490
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e204c], 0
je 0x4044f1
cmp word [0x4e2220], 0xd7b2
jne 0x4044b9
cmp dword [0x4e2228], 0
jbe 0x4044b9
mov eax, 0x4e221c
call dword [0x4e2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4de070
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 0x404518
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4de030], 0
jne 0x40450d
push 0
push 0x4de068
push 0x4de070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret