joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d12d
Capabilities:
Hash data via wincrypt

Disassembly:
push 0x10
mov eax, 0x4a7c32
call fcn.004a0640
mov dword [ebp - 0x14], edx
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.0046cea5
mov esi, eax
test esi, esi
jns 0x46d15e
mov edx, 0x238
jmp 0x46d1b2
cmp dword [ebp + 8], 0
jbe 0x46d19c
push 0
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x46d18d
mov ecx, dword [ebp + 4]
mov edx, 0x1fd
push 0x41bb40
call fcn.004239fe
mov esi, eax
jmp 0x46d18f
xor esi, esi
test esi, esi
js 0x46d1c2
add ebx, dword [ebp + 0xc]
inc edi
cmp edi, dword [ebp + 8]
jb 0x46d164
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0046cf01
mov esi, eax
test esi, esi
jns 0x46d1c9
mov edx, 0x240
mov ecx, dword [ebp + 4]
push esi
push 0x41bb40
call fcn.004239e1
jmp 0x46d1cb
mov edx, 0x23d
jmp 0x46d1b2
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.0046ce51
mov eax, esi
call fcn.004a05e0
ret 0xc

Function at 0x46e472
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x28], ebx
je 0x46e503
lea eax, [esp + 0xf]
mov byte [esp + 0xf], bl
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
call fcn.0046e552
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x46e4bc
mov dword [edi + 0x2c], ebx
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4d06a8]
call esi
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x46e4d6
mov dword [edi + 0x28], ebx
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4d06a8]
call esi
cmp byte [esp + 0xf], bl
je 0x46e50c
cmp byte [edi + 0x30], bl
je 0x46e50c
cmp byte [edi + 0x31], bl
je 0x46e50c
cmp dword [edi + 0x14], 8
jb 0x46e4ee
mov edi, dword [edi]
push edi
push 0x41be6c
push 3
push 0x4b70d0
call fcn.00499e19
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x46e516
mov eax, dword [edi]
push eax
push 0x41be94
push 1
push 0x4b70d0
call fcn.00499e19
add esp, 0x10
cmp dword [edi + 0x14], 8
jb 0x46e533
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46e503
mov ecx, dword [ebp + 4]
mov edx, 0x466
push 0x41bb40
call fcn.004239fe
jmp 0x46e505
Function at 0x471a13
Capabilities:
Create thread

Disassembly:
push 0x64
mov eax, 0x4a82ec
call fcn.004a0700
mov esi, edx
mov bl, cl
push 0x41c8a8
push 4
push 0x4b70d0
lea ecx, [ebp - 0x70]
call fcn.0049a11d
xor edi, edi
mov eax, 0x418210
mov dword [ebp - 4], edi
test bl, bl
jne 0x471a4a
mov eax, 0x41821c
push eax
push 0x41c8dc
push 3
push 0x4b70d0
call fcn.00499e19
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x48], bl
push esi
call fcn.00463505
push 0x30
mov byte [ebp - 4], 2
call fcn.0049d5bc
mov esi, eax
pop ecx
mov dword [ebp - 0x58], esi
mov byte [ebp - 4], 3
lea ecx, [esi + 8]
mov dword [ebp - 0x4c], esi
mov al, byte [ebp - 0x48]
mov byte [esi], al
lea eax, [ebp - 0x40]
push eax
call fcn.00463505
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 4
push eax
push edi
push esi
push 0x471f00
push edi
push edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x54], eax
test eax, eax
je 0x471b02
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.004255b0
lea ecx, [ebp - 0x54]
call fcn.0042ca63
cmp dword [ebp - 0x50], 0
je 0x471af4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov ecx, dword [ebp + 4]
mov edx, 0x838
push 0x41bb40
call fcn.0042cd47
mov eax, 0x471af4
ret
lea ecx, [ebp - 0x70]
call fcn.0049a17f
call fcn.004a0620
ret
push 6
pop ecx
mov dword [ebp - 0x50], edi
call fcn.00483cc3
int3

Function at 0x478701
Capabilities:
Create process on windows

Disassembly:
push 0x1c
mov eax, 0x4a8841
call fcn.004a0680
mov esi, ecx
push 0xc
xor eax, eax
mov dword [ebp - 0x14], 7
xor edi, edi
mov word [ebp - 0x28], ax
push 0x41d780
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edi
call fcn.004262aa
mov dword [ebp - 4], edi
sub esi, 1
je 0x47875c
sub esi, 1
je 0x478755
sub esi, 1
je 0x47874e
sub esi, 1
jne 0x478769
push 0x41d948
jmp 0x478761
push 0x41d928
jmp 0x478761
push 0x41d908
jmp 0x478761
push 0x41d8e0
lea ecx, [ebp - 0x28]
call fcn.0044adcf
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x478775
mov eax, dword [ebp - 0x28]
push 1
push edi
push edi
push eax
push 0x415be8
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x28]
call fcn.004258b7
call fcn.004a0600
ret

Function at 0x478794
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push 0x41d800
push 0x415be8
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x4787ac
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push 0x41d82c
push 0x415be8
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x47c835
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4a6243
call fcn.004a0640
mov esi, ecx
push 8
call fcn.0049d5bc
mov edx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov dword [edx], ebx
mov dword [edx + 4], ebx
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push eax
push 0x47cbb0
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x47c89a
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00457344
mov eax, esi
call fcn.004a05e0
ret 4
push 6
pop ecx
mov dword [edi], ebx
call fcn.00483cc3
int3

Function at 0x481915
Capabilities:
Create process on windows

Disassembly:
push 0x7c
mov eax, 0x4a948e
call fcn.004a0680
mov edi, ecx
call fcn.00481b0f
xor esi, esi
test al, al
jne 0x481948
push 1
push esi
push esi
push 0x41e598
push 0x415be8
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x481a4e
push 7
pop ebx
push ebx
xor eax, eax
mov dword [ebp - 0x60], esi
push 0x41e588
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], ebx
mov word [ebp - 0x70], ax
call fcn.004262aa
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x58]
push esi
xor eax, eax
mov dword [ebp - 0x48], esi
push 0x415ba4
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x58], ax
call fcn.004262aa
mov byte [ebp - 4], 1
sub edi, 1
je 0x4819a1
sub edi, 1
jne 0x481a09
push 0x28
push 0x41e718
lea ecx, [ebp - 0x58]
call fcn.004262aa
jmp 0x481a09
push 0x20
push 0x41e6b8
lea ecx, [ebp - 0x58]
call fcn.004262aa
push esi
push esi
lea ecx, [ebp - 0x16]
call fcn.0047203d
push ecx
lea ecx, [ebp - 0x16]
push ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.00436a7b
mov byte [ebp - 4], 2
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
jb 0x4819e1
mov eax, dword [ebp - 0x88]
push dword [ebp - 0x78]
lea ecx, [ebp - 0x58]
push eax
call fcn.00427590
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.004258b7
push 0x41e684
lea ecx, [ebp - 0x58]
call fcn.0044adcf
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
jb 0x481a15
mov eax, dword [ebp - 0x58]
push dword [ebp - 0x48]
lea ecx, [ebp - 0x70]
push eax
call fcn.00427590
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
jb 0x481a2d
mov eax, dword [ebp - 0x70]
push 1
push esi
push esi
push eax
push 0x415be8
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x58]
call fcn.004258b7
lea ecx, [ebp - 0x70]
call fcn.004258b7
call fcn.004a0600
ret
Function at 0x481a54
Capabilities:
Check if file exists
Create directory
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4cd4c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
mov edi, ecx
push eax
push 0x41e6fc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
and esi, 0x7ff8ffa9
add esi, 0x80070057
test eax, eax
je 0x481aff
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00426037
push 0x41e770
mov ecx, edi
call fcn.0044adcf
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x481abe
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x481aff
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x481ad3
mov eax, dword [edi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [edi + 0x14], 8
jb 0x481ae6
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0049d0f0
leave
ret
Function at 0x4828e3
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x4a965b
call fcn.004a0680
mov ebx, ecx
and dword [ebp - 0x30], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x30]
push eax
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x48291c
mov eax, dword [esi]
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4d06a8]
call esi
mov ecx, dword [ebp + 0xc]
mov edx, edi
call fcn.0044f18c
mov edi, eax
test edi, edi
jns 0x482933
mov edx, 0x192
jmp 0x482959
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x34]
and dword [ebp - 0x34], 0
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4d06a8]
call esi
mov edi, eax
test edi, edi
jns 0x482969
mov edx, 0x196
mov ecx, dword [ebp + 4]
push edi
push 0x41eab8
call fcn.004239e1
jmp 0x4829d8
or dword [ebp - 0x2c], 0xffffffff
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
call fcn.00482a7f
mov ecx, dword [ebp + 4]
mov edi, eax
mov esi, dword [ebp - 0x2c]
test edi, edi
jns 0x482a01
push edi
push 0x41eab8
mov edx, 0x19b
call fcn.00424e1a
push 0x41edbc
push 2
push 0x4b70f0
call fcn.00499e19
add esp, 0xc
test edi, edi
jns 0x4829c4
mov edx, 0x19e
mov ecx, dword [ebp + 4]
push edi
push 0x41eab8
call fcn.004239e1
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp esi, 0xffffffff
je 0x4829d8
test esi, esi
je 0x4829d8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4829f7
and dword [ebp - 0x30], 0
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4d06a8]
call esi
mov eax, edi
call fcn.004a0600
ret 8
cmp esi, 0xffffffff
je 0x482996
test esi, esi
je 0x482996
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
and dword [ebp - 0x38], 0
push 0
push eax
push edi
push dword [ebp - 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x38], edi
jne 0x482a5c
push 0x41ee48
push 4
push 0x4b70f0
call fcn.00499e19
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
call fcn.00482b65
push eax
lea ecx, [ebx + 0x58]
call fcn.00425f83
lea ecx, [ebp - 0x28]
call fcn.004258b7
xor edi, edi
jmp 0x4829c4
push 0x41ee1c
push 2
push 0x4b70f0
call fcn.00499e19
add esp, 0xc
mov edi, 0x80004005
mov edx, 0x1b4
jmp 0x4829b3

Function at 0x483752
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push esi
push 0
push 2
push dword [ebp + 8]
mov dword [ebp - 4], 0x208
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x483780
xor ecx, ecx
mov word [esi], cx
pop esi
test eax, eax
jle 0x48378d
movzx eax, ax
or eax, 0x80070000
leave
ret 0x10
Function at 0x4837e7
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x28], al
je 0x48384a
push edi
xor edi, edi
mov byte [esi + 0x28], al
cmp dword [esi + 0x2c], edi
je 0x48382f
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x20
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x30]
mov dword [esi + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, byte [esi + 0x28]
test al, al
je 0x483849
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4838c0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2c], eax
pop edi
pop esi
leave
ret 4

Function at 0x4884bd
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov ecx, 0x811c9dc5
cmp dword [ebp + 8], esi
jbe 0x4884e2
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc esi
cmp esi, dword [ebp + 8]
jb 0x4884d0
mov eax, ecx
pop esi
leave
ret

Function at 0x48857d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push 2
pop ebx
push ebx
push eax
push 0x22
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll____lc_locale_name_func]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
cmp word [ebp - 4], 0x30
je 0x4885c0
xor ebx, ebx
cmp word [ebp - 4], 0x31
jne 0x4885b4
inc ebx
jmp 0x4885c0
cmp word [ebp - 4], 0x32
setne bl
dec ebx
and ebx, 3
mov eax, ebx
pop ebx
leave
ret
Function at 0x499946
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4cd4c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
jne 0x499973
test esi, esi
je 0x49996c
mov dword [esi], 6
xor al, al
jmp 0x499a4e
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4999fb
push ebx
lea ecx, [ebp - 0x18]
call fcn.0044e3bd
lea eax, [ebp - 0x18]
push eax
push 0xa
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4999fb
push ebx
lea ecx, [ebp - 0x14]
call fcn.0044e3bd
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x4999fb
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4999fb
xor eax, eax
inc eax
jmp 0x4999fd
mov al, bl
test esi, esi
je 0x499a0f
test al, al
jne 0x499a0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esi], ebx
cmp dword [ebp - 0x10], 0
je 0x499a1e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
setne bl
test eax, eax
je 0x499a38
cmp eax, 0xffffffff
je 0x499a38
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x499a4b
cmp ecx, 0xffffffff
je 0x499a4b
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0049d0f0
leave
ret
Function at 0x49c039
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x444
mov eax, 0x4ab014
call fcn.004a0680
lea eax, [ebp - 0x450]
mov dword [ebp - 0x450], 4
push eax
lea eax, [ebp - 0x44c]
xor ebx, ebx
push eax
push ebx
push 0x10
push 0x41fce0
push 0x41fcf0
push SysReAllocStringLen
mov dword [ebp - 0x44c], ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x49c08f
cmp dword [ebp - 0x44c], ebx
setne al
jmp 0x49c091
mov al, bl
test al, al
je 0x49c18a
cmp dword [0x4cd500], 0xffffffff
jne 0x49c18a
xor eax, eax
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x448]
mov dword [ebp - 4], ebx
push eax
call fcn.0049c190
test eax, eax
jns 0x49c0e8
mov ecx, dword [ebp + 4]
push eax
push 0x41fd60
push 0x28
pop edx
call fcn.00424e1a
jmp 0x49c17f
cmp dword [ebp - 0x438], 0
je 0x49c17f
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [ebp - 0x434], 8
lea ecx, [ebp - 0x448]
jb 0x49c117
mov ecx, dword [ebp - 0x448]
movzx eax, word [ebp - 0x424]
push eax
movzx eax, word [ebp - 0x426]
push eax
movzx eax, word [ebp - 0x428]
push eax
movzx eax, word [ebp - 0x42a]
push eax
movzx eax, word [ebp - 0x42e]
push eax
push ecx
push 0x41fdb0
lea eax, [ebp - 0x420]
push 0x208
push eax
call fcn.0042285b
add esp, 0x24
test eax, eax
js 0x49c17f
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4cd500], eax
lea ecx, [ebp - 0x448]
call fcn.004258b7
call fcn.004a0600
ret

Function at 0x49c508
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
movzx eax, byte [ebp + 0xc]
mov esi, edx
push ebx
push 0xf003f
push eax
push ebx
push ebx
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 4], ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x49c55b
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 4
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x49c55b
mov bl, 1
cmp dword [ebp - 4], 0
je 0x49c56a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x49c5a8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x228
mov eax, 0x4ab077
call fcn.004a0680
mov esi, edx
xor ecx, ecx
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x230], ax
mov dword [ebp - 4], ecx
mov bl, cl
mov dword [ebp - 0x234], ecx
push 0x208
push ecx
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
call fcn.004a2490
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.00442bc5
push eax
push 0x20019
xor edi, edi
push edi
push 0x418148
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x49c689
xor eax, eax
mov edi, 0x41d704
push eax
push eax
push eax
push eax
push edi
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49c689
push ecx
lea eax, [ebp - 0x218]
mov edx, 0x415ba4
push eax
push ecx
mov ecx, dword [ebp - 0x234]
push edi
call fcn.00483752
test eax, eax
js 0x49c689
lea ecx, [ebp - 0x218]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x49c665
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004262aa
mov bl, 1
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00425f83
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x234], eax
je 0x49c6b0
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x230]
call fcn.004258b7
mov al, bl
call fcn.004a0600
ret 4

Function at 0x49c8c4
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4cd4c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x10], 0
push esi
jne 0x49c8fa
mov esi, 0x80004005
push esi
push 0x41fed8
push 0x74
mov ecx, dword [ebp + 4]
pop edx
call fcn.004239e1
mov eax, esi
jmp 0x49c965
xor eax, eax
mov byte [ecx + 4], al
cmp byte [ecx + 0x14], al
je 0x49c90a
mov eax, dword [ecx + 0xc]
cdq
jmp 0x49c90c
mov edx, eax
push edx
push eax
push dword [ecx + 0x10]
lea eax, [ebp - 0x210]
push 0x41fe78
push 0x104
push eax
call fcn.0042285b
mov esi, eax
add esp, 0x18
test esi, esi
jns 0x49c93a
push esi
push 0x41fed8
push 0x7d
jmp 0x49c8ed
lea eax, [ebp - 0x210]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x49c963
mov ecx, dword [ebp + 4]
push eax
push 0x41fed8
push 0x7f
pop edx
call fcn.00442c6f
jmp 0x49c965
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049d0f0
leave
ret
Function at 0x49c972
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x49c996
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x49c9df
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
mov esi, ebx
neg esi
and esi, edi
lea ecx, [ebx - 1]
mov eax, ecx
and ecx, dword [ebp - 4]
and eax, edi
dec ecx
add eax, ebx
add eax, ecx
div ebx
xor edx, edx
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x49c9dd
xor eax, eax
lock or dword [esi], eax
add esi, ebx
sub ecx, 1
jne 0x49c9d1
pop esi
pop ebx
pop edi
leave
ret

Function at 0x49d127
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x49d164
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x49d15d
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x49d169
add edx, 0x28
cmp edx, esi
jne 0x49d14e
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x49d166

Function at 0x4a0490
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4a04ce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4a04c6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4a04d0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4a04b6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a05a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4a05d1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4a05d1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4a05d1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x356061a2
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x6c015de7
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219