joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432004]
jne 0x401010
repz ret
jmp fcn.0040131a

Function at 0x4053a5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00401492
and dword [ebp - 4], 0
cmp dword [0x4350d0], 0
mov ebx, eax
jne 0x405456
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405507
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405507
push eax
call fcn.00401420
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4350d0], eax
call esi
push eax
call fcn.00401420
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4350d4], eax
call esi
push eax
call fcn.00401420
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4350d8], eax
call esi
push eax
call fcn.00401420
pop ecx
mov dword [0x4350e0], eax
test eax, eax
je 0x405456
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401420
pop ecx
mov dword [0x4350dc], eax
mov eax, dword [0x4350dc]
cmp eax, ebx
je 0x4054ae
cmp dword [0x4350e0], ebx
je 0x4054ae
push eax
call fcn.0040149b
push dword [0x4350e0]
mov esi, eax
call fcn.0040149b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4054ae
test edi, edi
je 0x4054ae
call esi
test eax, eax
je 0x4054a5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4054a5
test byte [ebp - 0xc], 1
jne 0x4054ae
or dword [ebp + 0x10], 0x200000
jmp 0x4054e7
mov eax, dword [0x4350d4]
cmp eax, ebx
je 0x4054e7
push eax
call fcn.0040149b
pop ecx
test eax, eax
je 0x4054e7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4054e7
mov eax, dword [0x4350d8]
cmp eax, ebx
je 0x4054e7
push eax
call fcn.0040149b
pop ecx
test eax, eax
je 0x4054e7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4350d0]
call fcn.0040149b
pop ecx
test eax, eax
je 0x405507
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405509
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42ac00
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x404
mov eax, dword [0x432004]
xor eax, esp
mov dword [esp + 0x400], eax
cmp dword [0x807e34], 0x114e
mov eax, dword [esp + 0x408]
mov dword [0x807c78], eax
jne 0x42ac41
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00401006
add esp, 0x404
ret
Function at 0x42ac70
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push edi
cmp ebp, 0x182
jne 0x42ac97
push 0
push 0
push 0
push str.lamarogomukowotebijujiloxiho
push str.yenosepacocatu
push 0
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
xor edi, edi
test ebp, ebp
jle 0x42acd7
push esi
mov edi, edi
lea esi, [esp + 0xc]
mov dword [esp + 0x14], 5
mov dword [esp + 0xc], 0
call fcn.0042ac60
mov eax, dword [esp + 0xc]
add eax, 0x46
mov dword [esp + 0x14], eax
nop
sub dword [esp + 0x14], 0x46
mov al, byte [esp + 0x14]
xor byte [edi + ebx], al
inc edi
cmp edi, ebp
jl 0x42aca0
pop esi
pop edi
cmp ebp, 0x2d
pop ebp
jne 0x42acf2
mov dword [0x807f68], 0xa62e7790
mov dword [0x807f6c], 0xffffffff
pop ecx
ret

Function at 0x42ad00
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x432004]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x432c60]
push ebx
mov ebx, dword [0x807c7c]
push esi
mov esi, dword [0x807e34]
push eax
call fcn.0042ac00
add esp, 4
cmp dword [0x807e34], 0x2f
jne 0x42ad3f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
call fcn.0042ac70
add esp, 4
cmp dword [0x807e34], 0x568
pop esi
pop ebx
jne 0x42ad65
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00401006
add esp, 0x804
ret
Function at 0x401a6a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x40b074]
test eax, eax
je 0x401aa9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401aa9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401aa9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401aa9
cmp dword [ecx + 0x74], 0xe
jbe 0x401aa9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408920
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ecx
add ebx, 1
push edi
mov ebx, dword [esp]
add esp, 4
call fcn.00408958
sub edi, ebx
and ebx, ebx
xor dword [edx], ecx
and edi, edi
sub edi, ebx
inc edx
and ebx, edi
add ebx, 0xa57195b2
cmp edx, eax
jne fcn.00408920
and ebx, ebx
sub ebx, 0x6b5664ba
ret
Function at 0x401040
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.00401290
test eax, eax
jne 0x401276
cmp dword [0x44aad4], eax
je 0x401080
cmp dword [0x44aaf4], eax
je 0x401276
push 0x44aad8
mov dword [0x44aaf4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
xor eax, eax
mov dword [0x44ab10], 0
xor ecx, ecx
lea edi, [ebp - 0x10]
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
cmp dword [ebp - 0x10], 0
je 0x40115f
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
xor edi, edi
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
shr eax, 0x1a
and eax, 1
mov dword [0x44ab24], edi
mov dword [0x44ab14], eax
mov eax, esi
and eax, 1
mov dword [0x44ab18], eax
mov eax, esi
shr eax, 9
and eax, 1
mov dword [0x44ab1c], eax
mov eax, esi
shr eax, 0x13
and eax, 1
mov dword [0x44ab20], eax
mov eax, esi
and eax, 0x1c000000
cmp eax, 0x1c000000
jne 0x401129
xor ecx, ecx
xgetbv
and al, 6
cmp al, 6
mov eax, 1
cmove edi, eax
mov dword [0x44ab24], edi
mov eax, esi
mov dword [0x44ab28], 0
shr eax, 1
and eax, 1
shr esi, 0x19
and esi, 1
mov dword [0x44ab2c], 0
mov dword [0x44ab30], eax
mov dword [0x44ab34], esi
mov dword [0x44ab38], 0
mov dword [0x44ab0c], 1
call fcn.004015d0
mov eax, dword [0x44ab3c]
pop edi
pop esi
pop ebx
mov eax, dword [eax + 8]
test eax, eax
je 0x40117f
call eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x30]
mov dword [0x44ab08], eax
cmp eax, 0x10
jb 0x40127d
cmp eax, 4
jb 0x40127d
mov eax, dword [0x44ab3c]
test eax, eax
jne 0x4011ce
mov dword [0x44ab3c], 0x429160
call fcn.004015d0
mov eax, dword [0x44ab3c]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4011ce
call ecx
mov eax, dword [0x44ab3c]
mov eax, dword [eax + 0x10]
push 0x10
push 0x44aaf8
call eax
mov ecx, dword [0x44ab1c]
add esp, 8
cmp dword [0x44ab20], 0
je 0x4011f3
mov eax, 0x407a30
jmp 0x401202
test ecx, ecx
mov eax, 0x4099b0
mov edx, 0x40f6c0
cmovne eax, edx
mov dword [0x4291bc], eax
test ecx, ecx
mov edx, 0x429140
mov dword [0x4291a0], 0x429180
mov eax, 0x429130
mov dword [0x42919c], 0x429178
cmove eax, edx
mov ecx, 0x429158
cmp dword [0x44ab14], 0
mov dword [0x429194], eax
mov eax, 0x429150
cmove eax, ecx
mov dword [0x429198], eax
mov dword [0x44aad4], 1
cmp dword [0x44aaf4], 0
je 0x401276
push 0x44aad8
mov dword [0x44aaf4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
call fcn.00401340
int3
Function at 0x404d70
Capabilities:
Hash data using sha256

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
push 0x125
push 0
lea eax, [edi + 0x40]
mov dword [edi], 0xf3bcc908
push eax
mov dword [edi + 4], 0x6a09e667
mov dword [edi + 8], 0x84caa73b
mov dword [edi + 0xc], 0xbb67ae85
mov dword [edi + 0x10], 0xfe94f82b
mov dword [edi + 0x14], 0x3c6ef372
mov dword [edi + 0x18], 0x5f1d36f1
mov dword [edi + 0x1c], 0xa54ff53a
mov dword [edi + 0x20], 0xade682d1
mov dword [edi + 0x24], 0x510e527f
mov dword [edi + 0x28], 0x2b3e6c1f
mov dword [edi + 0x2c], 0x9b05688c
mov dword [edi + 0x30], 0xfb41bd6b
mov dword [edi + 0x34], 0x1f83d9ab
mov dword [edi + 0x38], 0x137e2179
mov dword [edi + 0x3c], 0x5be0cd19
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi]
add esp, 0xc
xor dword [edi], eax
mov eax, dword [esi + 4]
xor dword [edi + 4], eax
mov eax, dword [esi + 8]
xor dword [edi + 8], eax
mov eax, dword [esi + 0xc]
xor dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
xor dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
xor dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
xor dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
xor dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
xor dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
xor dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
xor dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
xor dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
xor dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
xor dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
xor dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
xor dword [edi + 0x3c], eax
xor eax, eax
pop edi
pop esi
pop ecx
ret
Function at 0x416240
Capabilities:
Decode data using base64 via winapi
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0x4293d0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x4293d0
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x416285
xor al, al
jmp 0x4163f9
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
push 0
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
push 0x4293d0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x4293d0
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4162c4
xor al, al
jmp 0x4163f9
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 0x42a7a0
call fcn.004173b0
add esp, 4
push 0x42a4f8
lea ecx, [ebp - 0x48]
push ecx
call fcn.00401530
add esp, 8
mov edx, dword [ebp - 4]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x42923c], eax
push 0x42a4f8
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 4]
xor edx, edx
push edx
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [0x42923c]
push ecx
call fcn.00401420
add esp, 0x18
test eax, eax
je 0x416368
mov edx, dword [0x42923c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x4163f9
lea eax, [ebp - 0x250]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x41d944
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
push 2
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x42923c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x10]
push edx
push 1
push 0x41d958
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x416400
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c405
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x8050
call fcn.0041b550
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00415bb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00415a30
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41648b
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00415f00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00415f20
mov eax, dword [ebp - 0x28]
jmp 0x416631
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x2c], 0x8000
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x8060]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call sub.MPR.dll_WNetEnumResourceW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4164e1
mov dword [ebp - 0x30], 2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00415f00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00415f20
mov eax, dword [ebp - 0x30]
jmp 0x416631
mov dword [ebp - 0x14], 0
jmp 0x4164f3
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jae 0x4165f6
mov edx, dword [ebp - 0x14]
shl edx, 5
mov eax, dword [ebp + edx - 0x8058]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 2
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 7
ja case.0x416525.3
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x416644]
mov eax, dword [ebp - 0x14]
shl eax, 5
mov ecx, dword [ebp + eax - 0x804c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004160a0
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x44a6a4
call fcn.00417390
jmp case.0x416525.3
mov eax, dword [ebp - 0x14]
shl eax, 5
mov ecx, dword [ebp + eax - 0x804c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004160a0
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x44a6a4
call fcn.00417390
jmp case.0x416525.3
mov eax, dword [ebp - 0x14]
shl eax, 5
mov ecx, dword [ebp + eax - 0x804c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004160a0
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x44a6a4
call fcn.00417390
jmp case.0x416525.3
mov eax, dword [ebp - 0x14]
shl eax, 5
mov ecx, dword [ebp + eax - 0x804c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004160a0
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x44a6a4
call fcn.00417390
mov eax, dword [ebp - 0x14]
shl eax, 5
mov ecx, dword [ebp + eax - 0x8054]
and ecx, 2
je 0x4165f1
mov edx, dword [ebp + 0xc]
add edx, 1
push edx
mov eax, dword [ebp - 0x14]
shl eax, 5
lea ecx, [ebp + eax - 0x8060]
push ecx
call fcn.00416400
add esp, 8
jmp 0x4164ea
mov edx, dword [ebp - 0x24]
push edx
call sub.MPR.dll_WNetCloseEnum
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00415f00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00415f20
jmp 0x41661f
mov dword [ebp - 4], 0xffffffff
jmp 0x41662f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417220
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c45d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
lea eax, [ebp - 0x470]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x10], ecx
jmp 0x41726f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
test ecx, ecx
je 0x41735a
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4172c5
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
call fcn.00415b40
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
push edx
mov ecx, 0x44a6a4
call fcn.00417370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00415f20
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x41730d
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00415b40
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, 0x44a6a4
call fcn.00417370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00415f20
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x417355
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x70]
call fcn.00415b40
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, 0x44a6a4
call fcn.00417370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00415f20
jmp 0x41725b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4173b0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4173e4
xor eax, eax
jmp 0x41741f
cmp dword [ebp - 4], 0x20
je 0x4173ee
xor eax, eax
jmp 0x41741f
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x42a4f8
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x41741a
xor eax, eax
jmp 0x41741f
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x417de0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c4f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2f4
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00415bb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00415bf0
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00417390
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x50]
call fcn.00415bb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00418500
movzx ecx, al
test ecx, ecx
jne 0x417faa
lea ecx, [ebp - 0x1c]
call fcn.00418400
push eax
lea ecx, [ebp + 8]
call fcn.00417d10
push 0x41d9f0
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.00417680
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00417ca0
lea ecx, [ebp - 0x80]
call fcn.00415f20
lea ecx, [ebp - 0x1c]
call fcn.00418610
lea edx, [ebp - 0x300]
push edx
lea ecx, [ebp - 0x68]
call fcn.00416f60
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x417fa5
lea eax, [ebp - 0x2d4]
push eax
push 0x41d9f8
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0xb0]
push edx
call fcn.00417680
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x98]
push edx
call fcn.00417650
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
call fcn.00417ca0
lea ecx, [ebp - 0x98]
call fcn.00415f20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb0]
call fcn.00415f20
mov ecx, dword [ebp - 0x300]
and ecx, 0x10
je 0x417f69
push 0x41d9fc
lea edx, [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x417f59
push 0x41da00
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x417f5b
jmp 0x417f82
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00417390
jmp 0x417f82
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x38], esp
lea edx, [ebp - 0x50]
push edx
call fcn.00415ac0
call fcn.00419ed0
add esp, 0x18
lea eax, [ebp - 0x300]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417eba
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x417e3f
lea ecx, [ebp - 0x1c]
call fcn.00418430
lea ecx, [ebp - 0x1c]
call fcn.004186a0
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00415f20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00415f40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00415f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00415f20
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41bd47
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41bd86
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41bd86
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41bd86
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41bd86
cmp dword [ecx + 0x74], 0xe
jbe 0x41bd86
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401960
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0x14], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x18], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8]
movzx edi, ch
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, eax
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + edx*8]
movzx eax, ah
xor edx, dword [ebp + eax*8 + 3]
mov eax, dword [esp + 4]
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
xor edx, dword [ebp + ecx*8 + 1]
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
jb 0x401980
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, bh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, edx
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, ch
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, dh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
movzx edi, bh
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov edi, dword [esp + 0x14]
and edx, 0xff
mov edx, dword [ebp + edx*8 + 2]
and edx, 0xff
movzx eax, ah
mov eax, dword [ebp + eax*8]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 4]
and ebx, 0xff
mov ebx, dword [ebp + ebx*8]
and ebx, 0xff0000
xor edx, ebx
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + ecx*8 + 2]
and ecx, 0xff000000
xor edx, ecx
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret