joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412a86
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, eax
test edi, edi
je 0x412b1f
test esi, esi
jne 0x412aa0
mov esi, 0x477e98
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00431530
and dword [ebp - 0x38], 0
and dword [ebp - 0x34], 0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
call fcn.00412858
mov dword [ebp - 0x30], str.runas
test eax, eax
jne 0x412ad6
mov dword [ebp - 0x30], str.open
mov eax, dword [ebp + 8]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x38], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x412b12
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x412b0e
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
jmp 0x412b24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, 0x80004005
pop esi
leave
ret

Function at 0x412c0d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46dfe1
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4879c0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x4879c0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
mov esi, ecx
call fcn.00404e91
xor edi, edi
mov dword [esp + 0x60], edi
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 7
call fcn.00403e67
mov dword [esp + 0x4c], edi
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], 1
call fcn.0040378d
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0x1c]
call fcn.00412fb5
mov ecx, esi
call fcn.00412d03
mov eax, dword [esp + 0x24]
mov esi, eax
cmp eax, dword [esp + 0x28]
jbe 0x412ca1
call fcn.0042f239
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], esi
lea esi, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.00403854
mov eax, dword [eax + 0x1c]
cmp eax, edi
jne 0x412cf7
mov ebx, 0x8618000a
push edi
push 1
lea ecx, [esp + 0x38]
call fcn.00403f22
lea esi, [esp + 0x18]
call fcn.00412f6c
mov eax, ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0042ea9f
mov esp, ebp
pop ebp
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ebx, ebx
jmp 0x412cc2
Function at 0x412d03
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4879c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
test eax, 0xffffffe0
jne 0x412d30
xor eax, eax
inc eax
jmp 0x412e7f
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
jne 0x412d4e
mov eax, 0x8618000b
jmp 0x412e7f
lea esi, [ebp - 0x250]
call fcn.00412f99
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x248], eax
cmp dword [edi + 0xc], eax
jbe 0x412d6c
call fcn.0042f239
mov eax, dword [edi]
mov esi, 0x22c
push esi
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.00431530
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
mov dword [ebp - 0x238], esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x412e69
mov edi, dword [ebp - 0x250]
mov ebx, dword [ebp - 0x24c]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x240], ebx
test edi, edi
je 0x412dcc
cmp edi, dword [ebp - 0x258]
je 0x412dd1
call fcn.0042f239
cmp ebx, dword [ebp - 0x248]
je 0x412e57
lea esi, [ebp - 0x244]
call fcn.00403854
cmp dword [eax + 0x1c], 0
jne 0x412e36
call fcn.00403854
cmp dword [eax + 0x18], 8
jb 0x412dfa
mov eax, dword [eax + 4]
jmp 0x412dfd
add eax, 4
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x412e36
lea esi, [ebp - 0x244]
call fcn.00403854
push dword [ebp - 0x230]
mov esi, eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0x1c], eax
test edi, edi
jne 0x412e53
call fcn.0042f239
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x412e4b
call fcn.0042f239
add ebx, 0x20
jmp 0x412dba
mov eax, dword [edi]
jmp 0x412e41
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x412da8
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ea9f
leave
ret

Function at 0x414d7c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4879c0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00431530
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call esi
test eax, eax
jne 0x414dcf
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
cmp dword [ebp - 0x7c], 6
mov ecx, dword [ebp + 0x9c]
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0042ea9f
add ebp, 0xa0
leave
ret
Function at 0x414dec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46cf4b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4879c0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x4879c0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
mov esi, vtable.ATL::CAccessToken.0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push 0x8b
lea ecx, [esp + 0x1c]
mov dword [esp + 0xd4], ebx
call fcn.00412762
test al, al
jne 0x414ea4
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.0041278b
xor eax, eax
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0042ea9f
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
push ebx
push 0x2000000
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xdc], 1
call fcn.004126a5
test al, al
jne 0x414ef2
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.0041278b
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.0041278b
mov eax, ebx
jmp 0x414e80
push 6
pop ecx
xor eax, eax
mov esi, str.S_1_16_8192
lea edi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0xb0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x9c]
push eax
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
push 0x20
pop esi
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [esp + 0x48]
push eax
push 0x19
push edi
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [esp + 0x14]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, ebx
je 0x414fa4
push 0x40
lea eax, [esp + 0x54]
push ebx
push eax
mov dword [esp + 0x58], 0x44
call fcn.00431530
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push dword [esp + 0x3c]
lea eax, [esp + 0x50]
push eax
push ebx
push ebx
push esi
push ebx
push ebx
push ebx
push dword [esp + 0x58]
push dword [esp + 0x64]
push dword [esp + 0x54]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
mov ebx, edi
mov esi, vtable.ATL::CAccessToken.0
jmp 0x414ed4
Function at 0x41b208
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x41b250
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x41b221
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x41b255
test ecx, ecx
je 0x41b250
test edi, edi
ja 0x41b216
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b252

Function at 0x41b25d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x41b2a5
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x41b276
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x41b2aa
test ecx, ecx
je 0x41b2a5
test edi, edi
ja 0x41b26b
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b2a7

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

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x41d1bd
mov dword [ecx*4 + 0x48e300], eax
inc ecx
cmp ecx, 0x100
jb 0x41d1b8
mov edx, 0x800
jmp 0x41d20a
mov eax, dword [ecx*4 + 0x48df00]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x48e300]
inc ecx
mov dword [ecx*4 + 0x48e2fc], eax
cmp ecx, edx
jb 0x41d1e9
mov dword [0x48b768], 0x41da54
call fcn.0041dbb2
test eax, eax
jne 0x41d22b
mov dword [0x48b768], 0x41daf0
pop esi
ret
Function at 0x41dfba
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x41dfd1
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x41dff0
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41dff5
inc edi
cmp edi, dword [ebp - 8]
jb 0x41dfe7
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x41e0e4
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x41e077
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x41e021
cmp cl, 0xff
jne 0x41e0a6
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, 5
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x41e0b7
movzx esi, byte [edx + 0x47aa68]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x41e067
cmp bl, 0xff
jne 0x41e0b4
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x41e03f
dec ecx
shl edx, cl
and edx, 7
je 0x41e00e
movzx ecx, byte [edx + 0x47aa68]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x47aa60], 0
mov cl, byte [ebx + 4]
je 0x41e0a3
test cl, cl
je 0x41e0a3
cmp cl, 0xff
jne 0x41e00e
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x41dfe2
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x41dfe2
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x41feb0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x118
sub eax, 0x80
push edi
je 0x41feec
sub eax, 0x40
je 0x41fee1
sub eax, 0x40
je 0x41fed6
or eax, 0xffffffff
jmp 0x41ffcc
mov edi, dword [ebp + 8]
mov dword [edi], 0xe
jmp 0x41fef5
mov edi, dword [ebp + 8]
mov dword [edi], 0xc
jmp 0x41fef5
mov edi, dword [ebp + 8]
mov dword [edi], 0xa
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push dword [ebp + 0xc]
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.0041fc2c
mov eax, dword [ebp - 0x118]
shl eax, 4
add eax, dword [ebp - 0x114]
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
push 4
pop ecx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
mov edi, dword [edi]
add esi, ecx
dec edi
sub eax, 0x1c
test edi, edi
jle 0x41ffaf
push ebx
mov dword [ebp + 0x10], ecx
movzx edx, byte [eax + 3]
movzx edx, byte [edx + str.cw]
movzx ebx, byte [eax + 2]
movzx ebx, byte [ebx + str.cw]
mov edx, dword [edx*4 + 0x473368]
xor edx, dword [ebx*4 + 0x472f68]
movzx ebx, byte [eax + 1]
movzx ebx, byte [ebx + str.cw]
xor edx, dword [ebx*4 + 0x472b68]
mov ebx, dword [eax]
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
xor edx, dword [ebx*4 + 0x472768]
add eax, ecx
mov dword [esi], edx
add esi, ecx
dec dword [ebp + 0x10]
jne 0x41ff4f
dec edi
sub eax, 0x20
test edi, edi
jg 0x41ff4c
pop ebx
mov edx, dword [eax]
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add esi, ecx
add eax, ecx
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
xor eax, eax
pop esi
pop edi
leave
ret
Function at 0x420c6e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x420cb3
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x420cb3
xor edx, edx
mov eax, esi
shl eax, 3
push 6
pop ecx
div ecx
mov ecx, esi
shl ecx, 3
mov edx, eax
imul edx, edx, 6
sub ecx, edx
dec ecx
dec ecx
je 0x420ca6
dec ecx
dec ecx
jne 0x420ca9
inc eax
inc eax
jmp 0x420ca9
add eax, 3
mov ecx, dword [ebp + 0xc]
inc eax
cmp dword [ecx], eax
jae 0x420cba
mov dword [ecx], eax
push 0xfffffffffffffff0
pop eax
pop edi
pop esi
leave
ret
push ebx
xor edx, edx
push 3
pop ecx
mov eax, esi
div ecx
mov ecx, dword [ebp + 8]
xor edx, edx
imul eax, eax, 3
test eax, eax
jbe 0x420d3e
dec eax
push 3
pop esi
div esi
inc eax
mov dword [ebp + 0x10], eax
imul eax, eax, 3
mov dword [ebp - 4], eax
movzx esi, byte [edi]
inc edi
movzx eax, byte [edi]
mov ebx, esi
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc edi
movzx edx, byte [edi]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 4
shl esi, 4
add ebx, esi
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, edx
shr esi, 6
inc edi
inc ecx
mov byte [ecx], bl
lea eax, [esi + eax*4]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
and edx, 0x3f
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x10]
jne 0x420ce0
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
cmp edx, esi
jae 0x420d93
movzx eax, byte [edi]
inc edx
cmp edx, esi
jae 0x420d50
movzx edi, byte [edi + 1]
jmp 0x420d52
xor edi, edi
mov ebx, eax
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
shl eax, 4
mov ebx, edi
shr ebx, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, esi
jae 0x420d8b
and edi, 0xf
mov al, byte [edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x420d8e
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebp + 8]
pop ebx
mov dword [edx], eax
mov byte [ecx], 0
xor eax, eax
jmp 0x420cb6
Function at 0x420da8
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
test ebx, ebx
je 0x420ecb
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x420ecb
xor ecx, ecx
xor edi, edi
xor esi, esi
test edx, edx
jbe 0x420e29
mov eax, edx
sub eax, esi
cmp eax, 2
jb 0x420de5
cmp byte [esi + ebx], 0xd
jne 0x420de5
cmp byte [esi + ebx + 1], 0xa
je 0x420e20
mov al, byte [esi + ebx]
cmp al, 0xa
je 0x420e20
cmp al, 0x3d
jne 0x420dfa
inc edi
cmp edi, 2
ja 0x420ecb
cmp al, 0x7f
ja 0x420ecb
movzx eax, al
mov al, byte [eax + 0x4737e0]
cmp al, 0x7f
je 0x420ecb
cmp al, 0x40
jae 0x420e1f
test edi, edi
jne 0x420ecb
inc ecx
inc esi
cmp esi, edx
jb 0x420dcf
test ecx, ecx
jne 0x420e30
xor eax, eax
jmp 0x420ece
imul ecx, ecx, 6
add ecx, 7
shr ecx, 3
mov eax, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], eax
jae 0x420e4b
mov dword [ecx], eax
push 0xfffffffffffffff0
jmp 0x420ecd
mov eax, dword [ebp + 8]
xor edx, edx
push 3
pop edi
mov dword [ebp - 4], edx
test esi, esi
jbe 0x420ec1
mov cl, byte [ebx]
cmp cl, 0xd
je 0x420eb5
cmp cl, 0xa
je 0x420eb5
movzx ecx, cl
mov cl, byte [ecx + 0x4737e0]
xor ebx, ebx
cmp cl, 0x40
sete bl
movzx ecx, cl
and ecx, 0x3f
shl edx, 6
or edx, ecx
sub edi, ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jne 0x420eb2
and dword [ebp - 4], 0
test edi, edi
jbe 0x420e9d
mov ecx, edx
shr ecx, 0x10
mov byte [eax], cl
inc eax
cmp edi, 1
jbe 0x420eaa
mov ecx, edx
shr ecx, 8
mov byte [eax], cl
inc eax
cmp edi, 2
jbe 0x420eb2
mov byte [eax], dl
inc eax
mov ebx, dword [ebp + 0x10]
dec esi
inc ebx
mov dword [ebp + 0x10], ebx
test esi, esi
ja 0x420e5a
mov ecx, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x420e29
push 0xffffffffffffffee
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42160c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x4879c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0042152e
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.00431530
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x64
lea eax, [ebp - 0x7c]
push eax
push 0x473a44
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x421660
xor al, al
jmp 0x4216a2
mov ecx, dword [ebp - 0x80]
push ebx
push ebx
mov eax, ecx
shr eax, 0x18
push eax
mov edx, ecx
shr edx, 0x10
mov eax, 0xff
and edx, eax
push edx
mov edx, ecx
shr edx, 8
and edx, eax
movzx eax, cl
push edx
push eax
lea eax, [ebp - 0x18]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.0042f8f5
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004039f8
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ea9f
leave
ret 4
Function at 0x4229c1
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4879c0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
push esi
push edi
xor esi, esi
push 0x103
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push esi
push eax
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x78], 0
call fcn.00431530
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x422a25
push str.c:windows_temp
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 0x9c], esi
je 0x422a4b
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x422a4b
push esi
lea eax, [ebp - 0x78]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Thunder_Network
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x422a78
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x422a78
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
push str.DownloadLib
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x422a9f
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x422a9f
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call fcn.0040359e
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ea9f
add ebp, 0x90
leave
ret
Function at 0x426f14
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a629
mov eax, dword fs:[0]
push eax
mov eax, 0x28d8
call fcn.00433730
mov eax, dword [0x4879c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28c8], ecx
call fcn.0042152e
lea ecx, [ebp - 0x28e4]
call fcn.00407b9c
lea eax, [ebp - 0x28e4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00426a24
pop ecx
lea eax, [ebp - 0x28cc]
push eax
lea esi, [ebp - 0x28c0]
mov eax, esi
push eax
mov dword [ebp - 0x28cc], 0x2880
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4270ab
mov dword [ebp - 0x28c4], ebx
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x24]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.0042f8f5
add esp, 0x20
lea eax, [esi + 0x10c]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040359e
push ebx
push 0x473dc4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00426947
cmp eax, 0xffffffff
jne 0x427066
push ebx
push str.VMare
lea ecx, [ebp - 0x40]
call fcn.00426947
cmp eax, 0xffffffff
jne 0x427066
push ebx
push str.Virtual
lea ecx, [ebp - 0x40]
call fcn.00426947
cmp eax, 0xffffffff
jne 0x427066
push ebx
push str.SLIP
lea ecx, [ebp - 0x40]
call fcn.00426947
cmp eax, 0xffffffff
jne 0x427066
push ebx
push str.P.P.P
lea ecx, [ebp - 0x40]
call fcn.00426947
cmp eax, 0xffffffff
jne 0x427066
lea eax, [ebp - 0x28e4]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004268d6
pop ecx
pop ecx
test al, al
je 0x42708f
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x40]
push 1
cmp esi, ebx
je 0x4270dd
mov byte [ebp - 4], bl
call fcn.00403adf
inc dword [ebp - 0x28c4]
cmp dword [ebp - 0x28c4], 0x10
jb 0x426f9d
jmp 0x4270ab
mov ecx, dword [ebp - 0x28c8]
lea eax, [ebp - 0x24]
push eax
call fcn.004039f8
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00403adf
mov bl, 1
lea ecx, [ebp - 0x28e4]
call fcn.0040836d
push dword [ebp - 0x28e4]
call fcn.0042ea94
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ea9f
leave
ret
call fcn.00403adf
jmp 0x4270ab