joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47af82
Capabilities:
Create thread

Disassembly:
push esi
push 0x4a08d8
push 0x4a0884
push 3
mov esi, ecx
call dword [sym.imp.CBSHost.dll_DismWriteLog]
push 0x4a08ec
call sym.Dismx86.exe_DismMultiLanguage
mov ecx, dword [esi + 0x230]
push eax
call fcn.0047dbc3
push 4
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
xor ecx, ecx
test eax, eax
je 0x47afc0
mov dword [eax], esi
jmp 0x47afc2
mov eax, ecx
push ecx
push ecx
push eax
push 0x47efe8
push ecx
push ecx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
pop esi
test eax, eax
je 0x47afe1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret 8

Function at 0x47afe6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x4a090c
push 0x4a0884
push 3
mov esi, ecx
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
call fcn.0043ac79
push 8
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
xor ecx, ecx
test eax, eax
je 0x47b020
mov dword [eax], esi
mov dword [eax + 4], edi
jmp 0x47b022
mov eax, ecx
push ecx
push ecx
push eax
push 0x47f016
push ecx
push ecx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
pop edi
pop esi
test eax, eax
je 0x47b042
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebp
ret 8

Function at 0x47bcb4
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x238], edi
je 0x47bd23
push 0x4a0afc
push 0x498940
push 3
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [esi + 0x234]
push 1
call fcn.0047dbc3
mov ecx, dword [esi + 0x238]
add ecx, 0x1f0
mov eax, dword [ecx]
call dword [eax + 0x20]
push 4
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
test eax, eax
je 0x47bd03
mov dword [eax], esi
jmp 0x47bd05
mov eax, edi
push edi
push edi
push eax
push 0x47f0e6
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x47bd23
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret 8
Function at 0x47cbd3
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x234]
test ecx, ecx
je 0x47cd11
add ecx, 0x248
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, eax
cmp edx, 0xffffffff
jne 0x47cc2c
push 0x40
push 0x486080
call sym.Dismx86.exe_DismMultiLanguage
push eax
push 0x4a0cd0
call sym.Dismx86.exe_DismMultiLanguage
push eax
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
call dword [eax + 0x1c]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x47cd11
mov ecx, dword [esi + 0x234]
add ecx, 0x1f0
push edx
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 8], eax
mov edi, dword [eax + 0x268]
test edi, edi
je 0x47cbfd
mov ecx, eax
call fcn.00469cdc
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47cd11
push dword [ebp - 8]
mov ecx, edi
call fcn.00469a0c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xb8]
push dword [eax*4 + 0x48d190]
mov eax, dword [esi + 0x230]
push 0x80000002
push dword [eax + 0x228]
call sym.Dismx86.exe_DismRegOpenKey
test eax, eax
jne 0x47cd09
jmp 0x47ccd1
mov ecx, dword [eax + 0x264]
mov eax, dword [ecx]
call dword [eax + 0x28]
push ebx
mov esi, eax
lea eax, [ebp - 8]
push 0x491494
push eax
call fcn.00449eea
mov ecx, dword [ebp - 4]
push esi
mov edx, dword [eax]
call fcn.0044cd7d
mov ecx, dword [ebp - 8]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.0043c924
inc ebx
push ebx
lea ecx, [edi + 0x26c]
call fcn.0044e3d3
test eax, eax
jne 0x47cc9b
push ebx
lea eax, [ebp - 8]
push 0x491494
push eax
call fcn.00449eea
add esp, 0xc
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [ebp - 4]
call fcn.0043a910
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x47d969
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x228], edi
jne 0x47d9ba
push str.ck_WSb
call sym.Dismx86.exe_DismMultiLanguage
push eax
mov ecx, esi
call fcn.0047dbc3
push 4
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
test eax, eax
je 0x47d99a
mov dword [eax], esi
jmp 0x47d99c
mov eax, edi
push edi
push edi
push eax
push 0x47f8d5
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x47d9ba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret 8
Function at 0x4800bc
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], esi
cmp dword [esi + 0x40], 0
je 0x480155
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0x30]
mov ecx, esi
push 0
call fcn.0047fe8d
mov edi, dword [esi + 0xc]
sub edi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x480136
lea eax, [esi + 4]
mov esi, eax
push edi
mov ecx, esi
call fcn.00480096
lea ecx, [ebp - 8]
push ecx
mov eax, dword [eax]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0x103
jne 0x480129
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 4]
call ebx
sub edi, 1
jns 0x4800fd
mov esi, dword [ebp - 0xc]
push dword [esi + 0x40]
call ebx
and dword [esi + 0x40], 0
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [esi + 0x3c]
call ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x481106
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp byte [0x4aacd8], 0
push esi
mov esi, ecx
je 0x48112e
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp MessageBoxW
push ebx
push edi
test esi, esi
je 0x4811ec
xor ebx, ebx
cmp word [esi], bx
je 0x4811ec
mov edi, 0x200
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x4811ec
cmp ecx, edi
jae 0x4811ec
push 0x5c
pop eax
mov word [ebp + ecx*2 - 0x404], ax
inc ecx
cmp ecx, edi
jae 0x4811ec
movzx eax, word [esi]
test ax, ax
je 0x48119c
mov edx, eax
mov word [ebp + ecx*2 - 0x404], dx
inc ecx
cmp ecx, edi
jae 0x4811ec
add esi, 2
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x481182
xor eax, eax
mov word [ebp + ecx*2 - 0x404], ax
mov eax, dword [0x4aacd0]
test eax, eax
je 0x4811ba
lea ecx, [ebp - 4]
push ecx
push ebx
call eax
mov esi, eax
jmp 0x4811bf
mov esi, 0xc000000d
push 8
push ebx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test esi, esi
js 0x4811e8
mov ecx, dword [0x4aacd0]
test ecx, ecx
je 0x4811e8
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
call ecx
mov eax, edi
jmp 0x4811ee
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x481afc
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x4aacfc]
sub esp, 0x410
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push esi
or ebp, 0xffffffff
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x481b4a
push str.kernel32
call edi
test eax, eax
je 0x481b43
push str.AddDllDirectory
push eax
call ebx
test eax, eax
je 0x481b43
mov dword [0x4aacfc], 1
jmp 0x481b4f
mov eax, ebp
mov dword [0x4aacfc], eax
cmp eax, 1
jne 0x481b62
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x481caa
test esi, esi
je 0x481ca0
xor ecx, ecx
cmp word [esi], cx
je 0x481ca0
mov eax, dword [0x4aad04]
test eax, eax
je 0x481b8e
cmp dword [0x4aad00], ecx
je 0x481b8e
cmp dword [0x4aad08], ecx
jne 0x481bf0
push 0x4855d4
call edi
mov edi, eax
test edi, edi
je 0x481bdb
push str.RtlWow64EnableFsRedirectionEx
push edi
call ebx
test eax, eax
jne 0x481ba9
mov eax, ebp
push 0x4857f0
push edi
mov dword [0x4aad00], eax
call ebx
test eax, eax
jne 0x481bbc
mov eax, ebp
push 0x485658
push edi
mov dword [0x4aad04], eax
call ebx
test eax, eax
jne 0x481bcf
mov eax, ebp
mov dword [0x4aad08], eax
mov eax, dword [0x4aad04]
jmp 0x481bee
mov eax, ebp
mov dword [0x4aad00], ebp
mov dword [0x4aad04], eax
mov dword [0x4aad08], ebp
xor ecx, ecx
cmp eax, ebp
jne 0x481bfb
push ecx
push ecx
jmp 0x481b56
mov eax, esi
mov dword [esp + 0x1c], eax
jmp 0x481c06
add esi, 2
cmp word [esi], cx
jne 0x481c03
sub esi, eax
and esi, 0xfffffffe
mov word [esp + 0x18], si
lea eax, [esi + 2]
mov esi, 0x200
mov word [esp + 0x1a], ax
lea eax, [esp + 0x20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x481c99
cmp eax, esi
jae 0x481c99
mov eax, dword [0x4aad00]
cmp eax, ebp
je 0x481c48
lea ecx, [esp + 0x10]
push ecx
push 0
call eax
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
call dword [0x4aad04]
mov esi, eax
mov eax, dword [0x4aad00]
test eax, eax
je 0x481c7a
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x14]
call eax
test esi, esi
jns 0x481c93
mov eax, dword [0x4aad08]
cmp eax, ebp
je 0x481c8c
push esi
call eax
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x14]
jmp 0x481caa
push 0x65b
jmp 0x481ca2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x481d90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x481dae
push 0x19
pop ecx
int 0x29
test byte [ebp - 8], 0x44
je 0x481df9
push esi
push edi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x3c]
mov esi, edi
neg esi
and esi, dword [ebp + 8]
lea edx, [edi - 1]
mov eax, edx
and edx, dword [ebp + 0xc]
and eax, dword [ebp + 8]
dec edx
add eax, edi
add eax, edx
xor edx, edx
div edi
xor edx, edx
mov ecx, eax
mov eax, dword [ebp + 0xc]
div edi
add ecx, eax
je 0x481df7
xor eax, eax
lock or dword [esi], eax
add esi, edi
sub ecx, 1
jne 0x481deb
pop edi
pop esi
leave
ret

Function at 0x482de0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
movzx ecx, word [ecx + 6]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*8]
cmp eax, edi
je 0x482e1e
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x482e17
mov ecx, dword [eax + 8]
add ecx, edx
cmp esi, ecx
jb 0x482e20
add eax, 0x28
cmp eax, edi
jne 0x482e07
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x483aa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x4aa038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x483ac7
mov ecx, 5
int 0x29
push 2
call fcn.00483870
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x483bd2
test esi, esi
jne 0x483bd2
push 2
call fcn.00483870
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004843e4
mov esp, ebp
pop ebp
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.00401533
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401dc7
sub eax, fcn.00401592
push eax
push fcn.00401592
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40107a
mov eax, ebx
lea edx, [ebp - 2]
call fcn.00401461
mov eax, ebx
lea ecx, [ebx + 0x1b600]
call fcn.004014b3
mov esi, ecx
mov eax, ebx
or si, 1
cdq
idiv esi
lea edx, [eax + ecx]
mov eax, ebx
lea ebx, [ebp - 2]
or eax, 0x402054
call fcn.00401592
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret

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

Disassembly:
push ecx
push edx
enter 0x11c, 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
movzx eax, byte [ebp - 0x18]
sub eax, 0x41
leave
pop edx
pop ecx
ret
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
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 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
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 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x408955
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
call fcn.0040897d
sub eax, eax
inc esi
xor dword [ecx], edx
inc ecx
mov esi, 0x3e0cb5a3
sub eax, 0xceaa4cca
cmp ecx, edi
jne fcn.00408955
add esi, 0x1eaaf640
ret
Function at 0x1d00ca30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
jmp 0x1d00ca4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1d00ca51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1d00ca40
mov eax, 1
add ebx, ebx
jne 0x1d00ca63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1d00ca58
jne 0x1d00ca74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1d00ca58
xor ecx, ecx
sub eax, 3
jb 0x1d00ca88
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1d00cafa
mov ebp, eax
add ebx, ebx
jne 0x1d00ca93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1d00caa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1d00cac4
inc ecx
add ebx, ebx
jne 0x1d00cab0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1d00caa5
jne 0x1d00cac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1d00caa5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1d00cae4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1d00cad5
jmp 0x1d00ca46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1d00cae4
add edi, ecx
jmp 0x1d00ca46
pop esi
mov edi, esi
mov ecx, 0x20
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1d00cb02
cmp byte [edi], 0
jne 0x1d00cb02
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 0x1d00cb07
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x1d00cb76
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x110c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1d00cb34
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11120]
or eax, eax
je 0x1d00cb70
mov dword [ebx], eax
add ebx, 4
jmp 0x1d00cb51
call dword [esi + 0x1111c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1d00cba7
cmp al, 0xef
ja 0x1d00cb9a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1d00cb7c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1d00cb89
mov ebp, dword [esi + 0x11124]
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 0x1d00cbdb
sub esp, 0xffffff80
jmp 0x1d001348
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
cmp esi, dword [ebp + 0x10]
jge 0x401191
mov eax, dword [ebp - 0x10]
push 3
pop edx
cmp eax, edx
mov dword [ebp - 0xc], edx
jge 0x401032
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, 0x3d3d3d3d
lea edi, [ebp - 4]
stosw word es:[edi], ax
test ecx, ecx
stosb byte es:[edi], al
jle 0x401059
mov eax, dword [ebp + 8]
lea edi, [ebp - 4]
add esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, edx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebp - 4]
mov al, cl
shr al, 2
test ebx, ebx
mov byte [ebp - 1], al
je 0x40108e
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x401096
mov eax, ebx
mov esi, dword [ebp + 0xc]
sub eax, dword [ebp - 8]
cdq
idiv edi
test edx, edx
jne 0x401099
mov byte [ebx + esi], 0xd
inc ebx
mov byte [ebx + esi], 0xa
inc ebx
add dword [ebp - 8], 2
jmp 0x401099
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
jmp 0x401099
mov esi, dword [ebp + 0xc]
movzx eax, byte [ebp - 1]
mov edx, dword [str.zprtvhjln_bdfXZPRTVHJL:__0246__.___]
and cl, 3
shl cl, 4
mov al, byte [eax + edx]
mov byte [ebx + esi], al
mov al, byte [ebp - 3]
mov dl, al
inc ebx
shr dl, 4
add cl, dl
test ebx, ebx
je 0x4010df
test edi, edi
jle 0x4010df
mov eax, ebx
sub eax, dword [ebp - 8]
cdq
idiv edi
test edx, edx
jne 0x4010dc
mov byte [ebx + esi], 0xd
inc ebx
mov byte [ebx + esi], 0xa
inc ebx
add dword [ebp - 8], 2
mov al, byte [ebp - 3]
mov edx, dword [str.zprtvhjln_bdfXZPRTVHJL:__0246__.___]
and al, 0xf
movzx ecx, cl
shl al, 2
mov cl, byte [ecx + edx]
mov byte [ebx + esi], cl
mov cl, byte [ebp - 2]
mov dl, cl
inc ebx
shr dl, 6
add al, dl
test ebx, ebx
mov byte [ebp - 1], al
je 0x401123
test edi, edi
jle 0x401123
mov eax, ebx
sub eax, dword [ebp - 8]
cdq
idiv edi
test edx, edx
jne 0x401123
mov byte [ebx + esi], 0xd
inc ebx
mov byte [ebx + esi], 0xa
inc ebx
add dword [ebp - 8], 2
movzx eax, byte [ebp - 1]
mov edx, dword [str.zprtvhjln_bdfXZPRTVHJL:__0246__.___]
mov al, byte [eax + edx]
mov byte [ebx + esi], al
inc ebx
cmp dword [ebp - 0xc], 2
jg 0x40113f
mov byte [ebx + esi - 1], 0x3d
and cl, 0x3f
test ebx, ebx
je 0x401164
test edi, edi
jle 0x401164
mov eax, ebx
sub eax, dword [ebp - 8]
cdq
idiv edi
test edx, edx
jne 0x401164
mov byte [ebx + esi], 0xd
inc ebx
mov byte [ebx + esi], 0xa
inc ebx
add dword [ebp - 8], 2
movzx eax, cl
mov ecx, dword [str.zprtvhjln_bdfXZPRTVHJL:__0246__.___]
mov al, byte [eax + ecx]
mov byte [ebx + esi], al
inc ebx
cmp dword [ebp - 0xc], 1
jg 0x40117f
mov byte [ebx + esi - 1], 0x3d
mov esi, dword [ebp - 0x14]
add esi, 3
sub dword [ebp - 0x10], 3
mov dword [ebp - 0x14], esi
jmp 0x401019
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x401198
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 4
push 0x40f244
call fcn.00403434
pop ecx
pop ecx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401282
push ebx
push esi
push edi
mov ebx, 0x40f967
push eax
push ebx
call fcn.00403464
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
lea eax, [ebp - 0x110]
push 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401276
lea eax, [ebp - 0x110]
push eax
call fcn.0040c3e8
xor edi, edi
pop ecx
cmp dword [ebp - 0xc], edi
jle 0x40126e
push edi
push ebx
call fcn.00403434
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00403b7d
add esp, 0x10
test eax, eax
je 0x401268
push 0x40fb6f
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401268
push 2
push str.26
call fcn.00403434
pop ecx
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401261
lea ecx, [ebp - 0x110]
push ecx
push dword [ebp - 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x40120f
inc dword [ebp - 8]
jmp 0x4011df
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401284
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
lea eax, [ebp + 0xc]
push esi
and dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov esi, 0x400
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4012b8
xor eax, eax
jmp 0x4013a4
push ebx
push edi
mov edi, 0x40f967
push 0
push edi
call fcn.00403464
pop ecx
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0xc], esi
push eax
mov dword [ebp - 8], esi
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401397
cmp dword [ebp - 0x10], 1
je 0x40130f
and byte [ebp - 0x814], al
lea eax, [ebp - 0x414]
push eax
call fcn.0040c3e8
lea eax, [ebp - 0x814]
push eax
call fcn.0040c3e8
cmp dword [ebp + 8], 0
pop ecx
pop ecx
jle 0x40138f
push ebx
push edi
call fcn.00403434
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00403b7d
add esp, 0x10
test eax, eax
jne 0x401379
push dword [ebp - 0x14]
lea eax, [ebp - 0x814]
push eax
call fcn.00403b7d
pop ecx
test eax, eax
pop ecx
jne 0x401379
lea eax, [ebp - 0x414]
push 0x40e034
push eax
call fcn.00407280
pop ecx
test eax, eax
pop ecx
jne 0x401389
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x40132f
inc dword [ebp - 4]
jmp 0x4012cc
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret 8