joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ae420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x7ae4ba.0
jmp dword [ecx*4 + 0x7ae453]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x7ae485
sub dl, 8
je 0x7ae494
jmp case.0x7ae4ba.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7ae18c
jmp case.0x7ae4ba.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7ae1e4
jmp case.0x7ae4ba.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x7ae4ba.0
movzx ecx, byte [ecx + 0x7ae4c1]
jmp dword [ecx*4 + 0x7ae4d2]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7ae23c
jmp case.0x7ae4ba.0
cmp dl, 3
jne 0x7ae4ff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7ae290
jmp case.0x7ae4ba.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7ae24c
jmp case.0x7ae4ba.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7ae2d4
jmp case.0x7ae4ba.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x7ae52a
sub dl, 8
je 0x7ae536
jmp case.0x7ae4ba.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7ae2f0
jmp case.0x7ae4ba.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7ae35c
jmp case.0x7ae4ba.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x7ae555
sub dl, 8
je 0x7ae561
jmp case.0x7ae4ba.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7ae3cc
jmp case.0x7ae4ba.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x7ae3f4
mov esi, dword [eax + 0x468]
mov edx, dword [ebx + 0x1c]
dec edx
imul esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov eax, dword [eax + 0x454]
mov dword [ebp - 8], eax
mov esi, edx
test esi, esi
jb 0x7ae5f1
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.007ad7f8
test eax, eax
je 0x7ae5f1
mov eax, ebx
call fcn.007ae5fc
mov eax, dword [ebp - 8]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x7ae591
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x7ae5fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x7ae62d
dec al
je 0x7ae668
dec al
je 0x7ae6ad
dec al
je 0x7ae716
jmp 0x7ae7a0
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x7ae7a0
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x7ae63d
jmp 0x7ae7a0
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x7ae7a0
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x7ae678
jmp 0x7ae7a0
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x7ae7a0
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x7ae6dc
xor ebp, ebp
jmp 0x7ae6ec
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x7ae6f5
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x7ae6bd
jmp 0x7ae7a0
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x7ae7a0
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x7ae76f
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.007abe60
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x7ae72a
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x9d6760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x39a000]
mov dword [edi + 0x3df7c8], 0x854afd0a
push edi
or ebp, 0xffffffff
jmp 0x9d678a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9d6791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9d6780
mov eax, 1
add ebx, ebx
jne 0x9d67a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9d67b4
jne 0x9d67d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9d67d3
dec eax
add ebx, ebx
jne 0x9d67c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x9d6798
add ebx, ebx
jne 0x9d67cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9d6825
xor ecx, ecx
sub eax, 3
jb 0x9d67eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9d685a
sar eax, 1
mov ebp, eax
jmp 0x9d67f6
add ebx, ebx
jne 0x9d67f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9d67c4
inc ecx
add ebx, ebx
jne 0x9d6804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9d67c4
add ebx, ebx
jne 0x9d6811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9d6806
jne 0x9d6822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9d6806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9d6844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9d6836
jmp 0x9d6786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9d6844
add edi, ecx
jmp 0x9d6786
pop esi
mov edi, esi
mov ecx, 0x373515
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x9d687f
cmp byte [edi], 0xa0
jne 0x9d6864
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x9d6862
lea edi, [esi + 0x5d1000]
mov eax, dword [edi]
or eax, eax
je 0x9d68c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5de470]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5de600]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9d6885
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5de604]
or eax, eax
je 0x9d68c1
mov dword [ebx], eax
add ebx, 4
jmp 0x9d68a2
call dword [esi + 0x5de614]
mov ebp, dword [esi + 0x5de608]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x9d68fb
sub esp, 0xffffff80
jmp fcn.007df5f4
Function at 0x407181
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40721e
push ebx
push esi
call fcn.0040714a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00407093
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4071cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40721d
push edi
push eax
call fcn.004079f9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4071eb
call fcn.00405ca1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40721c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407093
add esp, 0x20
test eax, eax
jne 0x40720a
push edi
call fcn.00405ca1
jmp 0x407212
push ebx
call fcn.00405ca1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x408105
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ff58
push 0x40ff50
push str.FlsAlloc
push 0x1e
call fcn.00408023
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408139
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e10c]
call esi
jmp 0x40813f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408183
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ff68
push 0x40ff60
push str.FlsGetValue
push 0x20
call fcn.00408023
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4081ba
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e10c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x418400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x418453
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41843a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401e60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401ed0
xor eax, eax
jmp 0x401fb1
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x401ee8
xor eax, eax
jmp 0x401fb1
push ebp
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
call fcn.004018b0
mov esp, ebp
pop ebp
ret

Function at 0x401340
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebx
push ebp
push esi
push edi
mov edi, eax
mov edx, 0x220
or ecx, 0xffffffff
mov esi, edi
movzx eax, byte [esi]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x413050]
inc esi
dec edx
jne 0x401352
mov ebp, dword [edi + 0x224]
lea ebx, [ecx + ebp]
test ebp, ebp
je 0x4013b3
mov edi, dword [edi + 0x220]
lea ecx, [ecx]
mov edx, 0xb3c
or ecx, 0xffffffff
mov esi, edi
lea ebx, [ebx]
movzx eax, byte [esi]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x413050]
inc esi
dec edx
jne 0x401390
add ebx, ecx
add edi, 0xb3c
dec ebp
jne 0x401380
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x401570
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push esi
mov edx, 0x68
or eax, 0xffffffff
mov esi, ecx
lea ecx, [ecx]
movzx ecx, byte [esi]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x413050]
inc esi
dec edx
jne 0x401580
pop esi
ret
Function at 0x40566b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404368
and dword [ebp - 0x14], 0
cmp dword [0x40e840], 0
mov dword [ebp - 0x18], eax
jne 0x40571e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4057c6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4057c6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40e840], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40e844], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e848], eax
call edi
push eax
call esi
mov dword [0x40e850], eax
test eax, eax
je 0x40571e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e84c], eax
mov eax, dword [0x40e84c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405777
cmp dword [0x40e850], ecx
je 0x405777
push eax
call esi
push dword [0x40e850]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405777
test ebx, ebx
je 0x405777
call edi
test eax, eax
je 0x40576e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40576e
test byte [ebp - 8], 1
jne 0x405777
or dword [ebp + 0x10], 0x200000
jmp 0x4057aa
mov eax, dword [0x40e844]
cmp eax, dword [ebp - 0x18]
je 0x4057aa
push eax
call esi
test eax, eax
je 0x4057aa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4057aa
mov eax, dword [0x40e848]
cmp eax, dword [ebp - 0x18]
je 0x4057aa
push eax
call esi
test eax, eax
je 0x4057aa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e840]
call esi
test eax, eax
je 0x4057c6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4057c8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004059d6
leave
ret

Function at 0x4059d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d0f0]
jne 0x4059e0
repz ret
jmp fcn.00406d13

Function at 0x8de2e4
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de2ea
pop ebp
sub ebp, 6
sub ebp, 0x4de2e4
jmp 0x8de348
jmp 0x8de351
mov eax, 0x4de2e4
add eax, ebp
add eax, 0x93
mov ecx, 0x618
mov edx, 0xc7f9aaff
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de368
jmp 0x8de37b
xchg ebp, eax
mov edi, 0xffefff97
call dword [edi - 0x2ccc01]
int3
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409b38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x409b47
pop dword [ebp - 0x1c]
mov eax, 0x2e45d50c
sub eax, 0x2e0539c5
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xa97bac07
add dword [ebp - 0x2c], 0xa4d69944
mov dword [ebp - 0x28], 0xd58f0f43
sub dword [ebp - 0x28], 0xa35bc2fe
mov dword [ebp - 0x24], 0x6a44b21e
sub dword [ebp - 0x24], 0x1df86df0
mov dword [ebp - 0x20], 0x42668fff
sub dword [ebp - 0x20], 0x42668fff
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x8052839d
sub dword [ebp - 0x2c], 0xbe01a47
mov dword [ebp - 0x28], 0xb1cb945f
sub dword [ebp - 0x28], 0x705f32ea
mov dword [ebp - 0x24], 0xa5acd81d
add dword [ebp - 0x24], 0xbdc2944f
mov dword [ebp - 0x20], 0xd8c08c87
add dword [ebp - 0x20], 0x273f7379
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x62281918
sub eax, 0x61e748cc
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x362e2
push 0
call eax
mov ecx, 0xcb4f44a
sub ecx, 0xcb4b9bd
xor esi, esi
add esi, eax
mov edx, 0xa0a24dc8
sub edx, 0xa0609dc8
add edx, dword [ebp - 0x1c]
mov ebx, 0xfd468784
sub ebx, 0x3769dc9f
xor dword [ebp - 0xc], eax
mov edi, dword [edx]
add edi, ebx
xor dword [ebp - 8], ebx
mov dword [esi], edi
add dword [ebp - 0x18], edi
add esi, 4
add edx, 4
loop 0x409c66
add eax, 0x48472cda
add eax, 0xb7b9b02d
mov ebx, eax
add eax, 0x66ae0208
add eax, 0x9951fdfd
mov ecx, 0xdaabf1c
sub ecx, 0xd6abf1c
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x40152e
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x124]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x124], 0x14
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
movzx eax, word [ebp - 0x120]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x40158a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.0040152e
mov dword [esp], 0x401664
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x4020c6
sub eax, 0x401664
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x40162d
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.0040144c
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004014ad
lea eax, [ebx + 0x1b600]
mov cl, bl
mov edx, 0x40300c
shl eax, cl
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, edx
or eax, 1
imul ebx, eax
sub edx, ebx
mov dword [esp], edx
call fcn.00401dc9
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x1003ee0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x100aa90]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x1003f16
call edi
test eax, eax
je 0x1003f06
mov eax, 1
jmp 0x1003f11
call esi
test eax, eax
je 0x1003f81
mov eax, 2
mov dword [0x100aa90], eax
cmp eax, 1
jne 0x1003f22
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x1003f8a
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
mov edi, eax
mov eax, dword [0x100aab0]
push 0
push 0xffffffffffffffff
push edi
push 1
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x1003f4d
pop edi
pop esi
pop ebp
pop ebx
ret
lea ecx, [esi + esi]
push ecx
call fcn.01003480
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1003f64
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [0x100aab0]
push esi
push ebx
push 0xffffffffffffffff
push edi
push 1
push edx
call ebp
test eax, eax
jne 0x1003f88
push ebx
call fcn.010031f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1004210
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x10083b0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x1004234
add eax, 8
inc ebp
cmp eax, 0x1008440
jb 0x1004225
cmp ecx, dword [ebp*8 + 0x10083b0]
jne 0x10043db
mov eax, dword [0x100a828]
cmp eax, 1
je 0x100439d
test eax, eax
jne 0x1004260
cmp dword [0x1008084], 1
je 0x100439d
cmp ecx, 0xfc
je 0x10043db
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100429b
mov ecx, 5
mov esi, 0x1001c94
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x10042e4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x1001c90
add ebx, ecx
push ebx
call fcn.01005ca0
add esp, 0xc
mov ecx, 6
mov esi, 0x1001c74
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001c70
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1001c48
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x10083b4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.01005c10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x100ab00]
test eax, eax
je 0x10043ae
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x10043b8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x10083b4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret