joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40acec
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.00407578
xor eax, eax
push ebp
push 0x40adac
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.004083b8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408568
mov eax, dword [ebx]
call fcn.0040abb4
test al, al
jne 0x40ad89
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004083b8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408568
mov eax, dword [ebx]
call fcn.0040abb4
test al, al
jne 0x40ad89
mov eax, ebx
call fcn.00407494
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40adb3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004074f4
lea eax, [ebp - 4]
call fcn.00407494
ret

Function at 0x40b814
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 0x41c280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41c2d9
test eax, edx
je 0x41c2dc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41c297
movzx eax, word [eax]
sub eax, ecx
jmp 0x41c2be
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 [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41c2bf
add ecx, 4
js 0x41c2af
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41c2bc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41c2be
xor eax, eax
ret
test eax, eax
je 0x41c2e8
test edx, edx
jne 0x41c288
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41d488
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41d4b5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41d588
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.004082fc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d5f2
test ah, 4
je 0x41d5eb
test bl, bl
jne 0x41d5b0
mov al, 1
jmp 0x41d619
test al, 0x10
je 0x41d5b8
xor eax, eax
jmp 0x41d619
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41d5dc
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41d619
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41d619
test al, 0x10
sete al
jmp 0x41d619
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41d613
cmp ebx, 3
je 0x41d613
cmp ebx, 0x7b
je 0x41d613
mov eax, esi
call fcn.0041d548
test al, al
jne 0x41d617
xor eax, eax
jmp 0x41d619
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x41d620
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.004082fc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41d6c7
test esi, 0x400
jne 0x41d65c
test esi, 0x10
setne bl
jmp 0x41d6f7
cmp byte [esp], 0
je 0x41d690
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41d6f7
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41d6f7
test esi, 0x10
je 0x41d69c
mov bl, 1
jmp 0x41d6f7
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41d6c3
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41d6f7
mov bl, 1
jmp 0x41d6f7
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41d6f1
cmp eax, 3
je 0x41d6f1
cmp eax, 0xa1
je 0x41d6f1
cmp eax, 0x7b
je 0x41d6f1
cmp eax, 0x35
je 0x41d6f1
cmp eax, 0x15
je 0x41d6f1
cmp eax, 0x43
jne 0x41d6f5
xor ebx, ebx
jmp 0x41d6f7
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41d82c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.004082fc
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41d881
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d87b
test ah, 4
je 0x41d87b
test al, 0x10
je 0x41d87b
mov eax, esi
call fcn.004082fc
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41d881
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x422d24
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_1
test eax, eax
jle 0x422d5d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040761c
jmp 0x422d66
mov eax, ebx
mov edx, esi
call fcn.00407874
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x422d70
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x422d92
movzx eax, word [esp]
jmp 0x422d94
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x423a6c
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 0x423b91
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00423874
mov esi, eax
mov eax, dword [0x688cb4]
cmp byte [eax], 0
je 0x423b39
mov eax, dword [0x688890]
call fcn.0040534c
call fcn.00404ecc
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x423a3c]
call fcn.00409960
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_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x423bac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x423b75
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x6887ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x68bc50]
call fcn.00409cac
push eax
call sub.user32.dll_LoadStringW_1
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 0x423b98
lea eax, [ebp - 4]
mov edx, dword [0x423a3c]
call fcn.00409a84
ret
Function at 0x4247e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4248b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004078bc
lea eax, [ebp - 4]
call fcn.00407a5c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004082fc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4248a0
mov eax, ebx
call fcn.00404d58
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x424899
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004082fc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x424883
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4248c8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x424883
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4248a0
mov eax, dword [ebp - 0x10]
call fcn.00404d74
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4248bd
lea eax, [ebp - 4]
call fcn.00407494
ret

Function at 0x4252c8
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.0040799c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b7f4
mov edi, eax
cmp edi, 0x104
jbe 0x42526f
mov eax, edi
add eax, eax
call fcn.00404d58
mov esi, eax
jmp 0x425271
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b7f4
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4252ac
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 0x425296
mov eax, esp
cmp esi, eax
je 0x4252b9
mov eax, esi
call fcn.00404d74
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 0x4252f4
cmp bl, 0
je 0x4252f0
cmp bl, 0x41
jl 0x4252eb
cmp bl, 0x5a
jg 0x4252eb
or bl, 0x20
xor al, bl
inc esi
jmp 0x4252cf
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x425230

Function at 0x425b68
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_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004083b8
add esp, 0x800
pop ebx
ret
Function at 0x433748
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x43379a
test eax, edx
je 0x43379d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x43375d
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x433783
add ecx, 4
js 0x433773
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x433780
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4337a9
test edx, edx
jne 0x433750
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4a4abc
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a4b5a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4a4b1e
cmp byte [ebx + 0x10], 0
jne 0x4a4b1e
cmp byte [ebx + 0x3c], 0
jne 0x4a4b1e
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4a4b3f
lea edx, [ebp - 4]
mov eax, dword [0x688c14]
call fcn.0040b760
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x47e41c]
call fcn.00423bbc
call fcn.00406b5c
jmp 0x4a4b3f
lea edx, [ebp - 8]
mov eax, dword [0x688c14]
call fcn.0040b760
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x47e41c]
call fcn.00423bbc
call fcn.00406b5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4b61
lea eax, [ebp - 8]
mov edx, 2
call fcn.004074f4
ret

Function at 0x4a4e84
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4a4ed2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004a4a08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a4eeb
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a4ef4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004a4a08
dec esi
jne 0x4a4f16
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4a73e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x68e028
cmp dword [edi], 0
jne 0x4a7460
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x68e024]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x673764
mov ecx, 2
call fcn.00404f1c
mov edx, 0x4a73bc
lea eax, [esi + 5]
call fcn.004a73dc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004a73dc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4a7435
mov dword [0x68e024], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4cc244
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4cc399
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
je 0x4cc36e
mov eax, dword [ebx + 4]
mov dl, 1
call fcn.0041d588
test al, al
je 0x4cc36e
push 0x20
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x47a108]
call fcn.00499f4c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4cc367
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov eax, dword [ebp - 0xc]
call fcn.00499654
sub esi, eax
push esi
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x402b8c]
call fcn.00409960
add esp, 4
mov edx, dword [ebp - 4]
mov ecx, esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.00426428
mov esi, eax
mov dl, 1
mov eax, dword [0x477328]
call fcn.004995f4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4cc34a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409744
sub eax, esi
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.00426a5c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004cc610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc351
mov eax, dword [ebp - 8]
call fcn.004058a8
ret
mov eax, ebx
call fcn.004cc040
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc3a0
lea eax, [ebp - 0x10]
call fcn.00407494
lea eax, [ebp - 4]
mov edx, dword [0x402b8c]
call fcn.00409a84
ret

Function at 0x4cef18
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004ce7b0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004082fc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004ce878
test al, al
jne 0x4cef80
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x688adc]
mov dl, 1
mov eax, dword [0x4cd584]
call fcn.00423cb4
call fcn.00406b5c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4cef8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004082fc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004ce878
test al, al
jne 0x4cefed
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x688f0c]
mov dl, 1
mov eax, dword [0x4cd584]
call fcn.00423cb4
call fcn.00406b5c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004ce7e0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d78c4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4d78ca
ret
Function at 0x4e2694
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e2849
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x4e2825
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x4e2825
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4e265c]
call fcn.00409960
add esp, 4
lea eax, [ebp - 4]
call fcn.0040b110
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x68889c]
push eax
call sub.windowscodecs.dll_WICConvertBitmapSource
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00409744
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x2c
call fcn.004053b0
mov dword [ebp - 0x3c], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], 1
mov word [ebp - 0x2e], 0x20
mov dl, 1
mov eax, dword [0x4d6188]
call fcn.004df180
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor edx, edx
push ebp
push 0x4e27fc
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
mov dl, 7
call fcn.004e0d18
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
push 0
call sub.gdi32.dll_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.004dfe08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e2825
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e2850
lea eax, [ebp - 8]
mov edx, dword [0x4e265c]
call fcn.00409a84
lea eax, [ebp - 4]
call fcn.0040b110
ret

Function at 0x4f0eac
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x675b7c
test edx, edx
jne 0x4f0ecb
xor eax, eax
jmp 0x4f0fe9
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x4f0ee8
push esi
push edx
push eax
call fcn.004f0ff0
add esp, 0xc
jmp 0x4f0fe9
push esi
push edx
push eax
call fcn.004f12b0
add esp, 0xc
jmp 0x4f0fe9
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f2b78
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x432b74]
call fcn.00408cd0
xor eax, eax
push ebp
push 0x4f2cfb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x677c98], 0
jne 0x4f2bcc
mov ecx, dword [0x68866c]
mov dl, 1
mov eax, dword [0x417898]
call fcn.00423c78
call fcn.00406b5c
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.004053b0
mov eax, ebx
call fcn.004080f4
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4f2d0c
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040b110
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4f2c13
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4f2c68
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4f2c61
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.004083f4
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.004083b8
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.0041c4f8
test eax, eax
jne 0x4f2c61
mov ebx, 0x15
jmp 0x4f2c6d
mov ebx, 0x10
jmp 0x4f2c6d
mov ebx, 0x15
xor eax, eax
push ebp
push 0x4f2cb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x688e88]
movzx eax, word [eax]
or ax, 8
call fcn.00405220
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x677c98]
call fcn.004f29ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2cbf
call fcn.00405210
ret