joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c548
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004082bc
xor eax, eax
push ebp
push 0x40c60a
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408f9c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004090e0
mov eax, dword [ebx]
call fcn.0040c3f0
test al, al
jne 0x40c5e5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408f9c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004090e0
mov eax, dword [ebx]
call fcn.0040c3f0
test al, al
jne 0x40c5e5
mov eax, ebx
call fcn.004081c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c611
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408228
lea eax, [ebp - 4]
call fcn.004081c8
pop eax
jmp eax

Function at 0x40e0f0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4185fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x418655
test eax, edx
je 0x418658
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x418613
movzx eax, word [eax]
sub eax, ecx
jmp 0x41863a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x41863b
add ecx, 4
js 0x41862b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x418638
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41863a
xor eax, eax
ret
test eax, eax
je 0x418664
test edx, edx
jne 0x418604
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41bc88
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x41bcc1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00408344
jmp 0x41bcca
mov eax, ebx
mov edx, esi
call fcn.0040859c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41bcd4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x41bcf8
movzx eax, word [esp]
jmp 0x41bcfa
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41d414
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41d53b
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041d21c
mov esi, eax
mov eax, dword [0x4449a4]
cmp byte [eax], 0
je 0x41d4e1
mov eax, dword [0x444890]
call fcn.00404ffc
call fcn.004046e8
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41d3e4]
call fcn.0040b120
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41d554
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x41d51d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x444860]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x44862c]
call fcn.0040b4c8
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d542
lea eax, [ebp - 4]
mov edx, dword [0x41d3e4]
call fcn.0040b244
pop eax
jmp eax
Function at 0x41e888
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41e98c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004085e4
lea eax, [ebp - 4]
call fcn.0040878c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408f0c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41e974
mov eax, ebx
call fcn.00404594
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x41e96d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408f0c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41e955
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41e9a0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41e955
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e974
mov eax, dword [ebp - 0x10]
call fcn.004045b0
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e993
lea eax, [ebp - 4]
call fcn.004081c8
pop eax
jmp eax

Function at 0x41f874
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004086cc
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040e0d0
mov edi, eax
cmp edi, 0x104
jbe 0x41f81f
mov eax, edi
add eax, eax
call fcn.00404594
mov esi, eax
jmp 0x41f821
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040e0d0
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41f85a
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41f844
mov eax, esp
cmp esi, eax
je 0x41f867
mov eax, esi
call fcn.004045b0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41f8a0
cmp bl, 0
je 0x41f89c
cmp bl, 0x41
jl 0x41f897
cmp bl, 0x5a
jg 0x41f897
or bl, 0x20
xor al, bl
inc esi
jmp 0x41f87b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41f7e0

Function at 0x41fc08
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00408f9c
add esp, 0x800
pop ebx
ret
Function at 0x4215b4
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffdfc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4215e5
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00408c64
jmp 0x4215f1
mov eax, ebx
mov edx, 0x421600
call fcn.00408610
add esp, 0x204
pop ebx
ret

Function at 0x4223a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x422454
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00408c64
lea edx, [ebp - 0x20c]
mov eax, dword [ebx]
call fcn.004187dc
mov edx, dword [ebp - 0x20c]
mov eax, ebx
call fcn.00408610
mov edx, dword [ebx]
mov eax, edx
test eax, eax
je 0x422412
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
je 0x422439
mov eax, edx
test eax, eax
je 0x422423
sub eax, 4
mov eax, dword [eax]
shr eax, 1
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x422439
mov eax, ebx
mov edx, 0x422464
call fcn.00408cb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42245b
lea eax, [ebp - 0x20c]
call fcn.00408210
pop eax
jmp eax

Function at 0x422540
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4225f0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, ebx
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00408c64
lea edx, [ebp - 0x20c]
mov eax, dword [ebx]
call fcn.004187dc
mov edx, dword [ebp - 0x20c]
mov eax, ebx
call fcn.00408610
mov edx, dword [ebx]
mov eax, edx
test eax, eax
je 0x4225ae
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
je 0x4225d5
mov eax, edx
test eax, eax
je 0x4225bf
sub eax, 4
mov eax, dword [eax]
shr eax, 1
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4225d5
mov eax, ebx
mov edx, 0x422600
call fcn.00408cb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4225f7
lea eax, [ebp - 0x20c]
call fcn.00408210
pop eax
jmp eax

Function at 0x42350c
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.0040506c
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x424974
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x424a03
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x424a1c
call fcn.0040859c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
mov edx, dword [0x4448c8]
mov edx, dword [edx + 0x8c]
movzx edx, word [edx]
call fcn.00408f20
lea eax, [ebp - 0x1c]
mov edx, 0x424a34
call fcn.00409088
mov eax, dword [ebp - 0x1c]
call fcn.00408f0c
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x4249eb
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, ebx
call fcn.00418c40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424a0a
lea eax, [ebp - 0x1c]
call fcn.004081c8
pop eax
jmp eax

Function at 0x424a3c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x424ac0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.00418c40
push dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
movzx eax, word [ebp - 4]
call fcn.00418c24
push dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 2]
call fcn.00418c24
push dword [ebp - 0x30]
mov eax, ebx
mov edx, 3
call fcn.00409168
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424ac7
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00408228
pop eax
jmp eax

Function at 0x424acc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
xor edx, edx
mov dword [ebp - 0x420], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x424b76
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x420]
mov edx, dword [0x4448c8]
mov edx, dword [edx + 0x8c]
movzx edx, word [edx]
call fcn.00408f20
lea eax, [ebp - 0x420]
mov edx, 0x424b90
call fcn.00409088
mov eax, dword [ebp - 0x420]
call fcn.00408f0c
push eax
call sub.kernel32.dll_GetVolumeInformationW
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.00418c40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424b7d
lea eax, [ebp - 0x420]
call fcn.004081c8
pop eax
jmp eax

Function at 0x424b98
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffd8
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x11
call fcn.00408c64
add esp, 0x28
pop ebx
ret
Function at 0x424ef8
Capabilities:
Check for time delay via queryperformancecounter
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp], eax
lea esi, [esp + 8]
lea ebp, [esp + 0x18]
mov eax, dword [esp]
mov byte [eax], 0
mov edi, 0x3e8
mov byte [ebp], 0
mov ebx, 8
shl byte [ebp], 1
push esi
call sub.kernel32.dll_QueryPerformanceCounter
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [esi]
mov edx, dword [esi + 4]
sub eax, dword [esp + 0x10]
sbb edx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], edx
push 0
push 2
mov eax, dword [esi]
mov edx, dword [esi + 4]
call fcn.0040aaa4
cmp edx, 0
jne 0x424f6a
cmp eax, 0
jne 0x424f6a
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x424f77
mov dword [esi], 1
mov dword [esi + 4], 0
movzx eax, byte [esi]
add byte [ebp], al
dec ebx
jne 0x424f1e
mov eax, dword [esp]
movzx edx, byte [ebp]
xor byte [eax], dl
dec edi
jne 0x424f15
mov edi, 8
push esi
call sub.kernel32.dll_QueryPerformanceCounter
push 1
call sub.kernel32.dll_Sleep
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, dword [esi]
sbb edx, dword [esi + 4]
mov dword [esi], eax
mov dword [esi + 4], edx
movzx eax, byte [esi]
mov byte [ebp], al
mov eax, dword [esp]
movzx edx, byte [ebp]
xor byte [eax], dl
dec edi
jne 0x424f91
mov dword [esi], 0
mov dword [esi + 4], 0
mov edx, ebp
mov eax, esi
mov ecx, 1
call fcn.00404738
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4258a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
movzx ebx, cl
dec ebx
test ebx, ebx
jb 0x4258ea
inc ebx
xor eax, eax
mov ecx, eax
add ecx, ecx
add ecx, ecx
movzx esi, byte [edx + ecx]
mov esi, dword [esi*4 + 0x443780]
movzx edi, byte [edx + ecx + 1]
xor esi, dword [edi*4 + 0x443b80]
movzx edi, byte [edx + ecx + 2]
xor esi, dword [edi*4 + 0x443f80]
movzx edi, byte [edx + ecx + 3]
xor esi, dword [edi*4 + 0x444380]
mov dword [edx + ecx], esi
inc eax
dec ebx
jne 0x4258ae
pop edi
pop esi
pop ebx
ret
Function at 0x425c9c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x425caa
sub ecx, 4
mov ecx, dword [ecx]
mov edi, dword [edx]
mov esi, edi
test esi, esi
je 0x425cb7
sub esi, 4
mov esi, dword [esi]
cmp ecx, esi
jle 0x425cc6
mov ecx, edi
test ecx, ecx
je 0x425cc6
sub ecx, 4
mov ecx, dword [ecx]
mov esi, ecx
dec esi
test esi, esi
jl 0x425cdf
inc esi
xor ecx, ecx
mov ebx, dword [edx]
movzx ebx, byte [ebx + ecx]
mov edi, dword [eax]
xor byte [edi + ecx], bl
inc ecx
dec esi
jne 0x425cd0
pop edi
pop esi
pop ebx
ret

Function at 0x425ce4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebx]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, pe_nt_image_headers32
call fcn.00425c04
lea edx, [ebp - 0x18]
mov eax, dword [ebx]
mov ecx, 0x10
call fcn.00404738
jmp 0x425d5b
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004255f8
xor ebx, ebx
lea esi, [ebp - 0x18]
movzx eax, bl
add eax, edi
mov edx, dword [ebp - 4]
mov edx, dword [edx]
movzx eax, byte [edx + eax]
xor al, byte [esi]
movzx edx, bl
add edx, edi
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov byte [ecx + edx], al
inc ebx
inc esi
cmp bl, 0x10
jne 0x425d34
add edi, 0x10
lea eax, [edi + 0x10]
cmp eax, dword [ebp + 0xc]
jle 0x425d1f
cmp edi, dword [ebp + 0xc]
je 0x425db1
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004255f8
movzx edx, byte [ebp + 0xc]
mov eax, edi
sub dl, al
dec edx
test dl, dl
jb 0x425db1
inc edx
mov bl, 0
lea eax, [ebp - 0x18]
movzx ecx, bl
add ecx, edi
mov esi, dword [ebp - 4]
mov esi, dword [esi]
movzx ecx, byte [esi + ecx]
xor cl, byte [eax]
push ecx
movzx ecx, bl
add ecx, edi
mov esi, dword [ebp + 0x10]
mov esi, dword [esi]
add esi, ecx
pop ecx
mov byte [esi], cl
inc ebx
inc eax
dec dl
jne 0x425d8b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00425b80
lea eax, [ebp - 0x18]
xor ecx, ecx
mov edx, 0x10
call fcn.0040506c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x426bfc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_FindResourceW
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
je 0x426c53
push edi
push esi
call sub.kernel32.dll_LoadResource
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
je 0x426c53
mov eax, dword [ebx + 8]
push eax
push esi
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, ebx
pop ecx
call fcn.00426bf4
mov byte [ebx + 4], 1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x427374
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004082dc
xor eax, eax
push ebp
push 0x427447
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00408ca0
push eax
call sub.kernel32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x42742f
lea eax, [ebp - 0x10]
push eax
push edi
call sub.kernel32.dll_GetFileSizeEx
test eax, eax
jne 0x4273d7
push edi
call sub.kernel32.dll_CloseHandle
jmp 0x42742f
mov eax, esi
mov edx, dword [0x420c8c]
call fcn.0040b244
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
mov ecx, 1
mov edx, dword [0x420c8c]
call fcn.0040b120
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0
push edi
call sub.kernel32.dll_SetFilePointerEx
test eax, eax
je 0x427427
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [esi]
push eax
push edi
call sub.kernel32.dll_ReadFile
push edi
call sub.kernel32.dll_CloseHandle
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42744e
lea eax, [ebp - 4]
call fcn.00408210
pop eax
jmp eax

Function at 0x427d8c
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, eax
jmp 0x427daa
mov eax, dword [0x444890]
mov edx, 0x427dd0
call fcn.00406074
call fcn.00406178
call fcn.004046e8
push 0
push ebx
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x427d91
pop ebx
ret
Function at 0x428d20
Capabilities:
Create process on windows
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x428d28
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x428e90
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x4448c8]
mov edx, dword [edx + 0x90]
lea eax, [ebp - 8]
mov ecx, 0x428ea4
call fcn.00408d28
mov eax, dword [ebp - 8]
call fcn.004219c0
test al, al
je 0x428e5e
lea eax, [ebp - 4]
push eax
push 0x428ecc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyW
mov eax, dword [0x4448c8]
mov eax, dword [eax + 0x44]
mov ebx, eax
test ebx, ebx
je 0x428d8f
sub ebx, 4
mov ebx, dword [ebx]
lea ecx, [ebp - 0x20]
mov eax, dword [0x4448c8]
mov eax, dword [eax + 0x44]
mov edx, ebx
call fcn.004236c4
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x10]
call fcn.00423638
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00408c80
mov eax, dword [ebp - 0xc]
call fcn.00408ca0
mov esi, eax
mov edx, dword [0x4448c8]
mov edx, dword [edx + 0x90]
lea eax, [ebp - 0x24]
mov ecx, 0x428ea4
call fcn.00408d28
mov eax, dword [ebp - 0x24]
mov ebx, eax
test ebx, ebx
je 0x428dec
sub ebx, 4
mov eax, dword [ebx]
shr eax, 1
mov ebx, eax
mov eax, ebx
add eax, eax
push eax
mov edx, dword [0x4448c8]
mov edx, dword [edx + 0x90]
lea eax, [ebp - 0x28]
mov ecx, 0x428ea4
call fcn.00408d28
mov eax, dword [ebp - 0x28]
call fcn.00408ca0
push eax
push 1
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
push 5
push 0
push 0
mov edx, dword [0x4448c8]
mov edx, dword [edx + 0x90]
lea eax, [ebp - 0x2c]
mov ecx, 0x428ea4
call fcn.00408d28
mov eax, dword [ebp - 0x2c]
call fcn.00408ca0
push eax
push 0x428f28
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428e97
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00408298
lea eax, [ebp - 0x10]
call fcn.004081ec
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00408298
pop eax
jmp eax