joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b00
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
mov ebx, dword [edi + 0x88]
test ebx, ebx
jne 0x401b1a
mov ebx, 4
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401b40
push str.PatchProcess._cannnot_allocate_buffer.
call fcn.00404040
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov esi, dword [edi + 0x80]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
add esi, edx
push ebx
push ebp
push esi
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x401b7e
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x40]
push edx
push edi
push ebp
call fcn.00404180
add esp, 0xc
mov byte [esp + 0x3c], al
test al, al
je 0x401bf1
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x14]
push 0x1c
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push 0x40
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x401bec
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401bf1
mov byte [esp + 0x3c], 0
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov al, byte [esp + 0x40]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x401cb0
Capabilities:
Create process on windows
Create thread
Get common file path
Resume thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14c
mov dword [0x412ab4], eax
push ebx
push esi
call fcn.00401660
mov esi, eax
test esi, esi
jne 0x401cd7
pop esi
xor al, al
pop ebx
add esp, 0x14c
ret
mov al, byte [0x40872c]
push edi
test al, 0x48
jne 0x401cef
mov al, byte [0x411b30]
mov edi, 0x411b30
test al, al
jne 0x401cf6
mov edi, dword [esp + 0x160]
test edi, edi
jne 0x401cff
mov edi, 0x412ad4
push esi
call fcn.00401920
mov ebx, eax
mov al, byte [0x40872c]
add esp, 4
test al, 1
je 0x401d31
lea ecx, [esp + 0x50]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x50]
push edi
push edx
push str._s__s
jmp 0x401d38
push edi
push esi
push str.__s___s
push 0x4085d8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 0x10
rep stosd dword es:[edi], eax
mov dword [0x412890], eax
lea ecx, [esp + 0xc]
mov dword [0x412894], eax
push 0x412890
mov dword [0x412898], eax
push ecx
push eax
push eax
push 0x24
push eax
push eax
push eax
push 0x4085d8
push esi
mov dword [esp + 0x34], 0x44
mov dword [0x41289c], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x401daf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateProcess_failed.
call fcn.00404040
add esp, 4
xor al, al
pop esi
pop ebx
add esp, 0x14c
ret
lea edx, [esp + 0x4c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x4c]
push eax
call fcn.00404040
push esi
call fcn.00404040
push 0x4085d8
call fcn.00404040
mov ecx, dword [0x412898]
add esp, 0xc
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401e25
push str.OpenProcess_failed.
call fcn.00404040
mov edx, dword [0x412894]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edx
call esi
mov eax, dword [0x412890]
push eax
call esi
pop esi
xor al, al
pop ebx
add esp, 0x14c
ret
push ebx
push esi
call fcn.00401c10
add esp, 8
test al, al
jne 0x401e63
push str.unpatch_failed.
call fcn.00404040
mov ecx, dword [0x412894]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [0x412890]
push edx
call esi
pop esi
xor al, al
pop ebx
add esp, 0x14c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x412894]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [0x412890]
push ecx
push 0
push 0x401860
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov al, 1
pop esi
pop ebx
add esp, 0x14c
ret
Function at 0x401ea0
Capabilities:
Delete file
Terminate process

Disassembly:
mov eax, dword [0x412890]
sub esp, 0x400
push ebx
xor bl, bl
test eax, eax
je 0x401ed3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov bl, 1
mov dword [0x412890], eax
mov dword [0x412894], eax
mov dword [0x412898], eax
mov dword [0x41289c], eax
test byte [0x40872c], 0x40
jne 0x401f34
mov al, byte [0x4128a0]
test al, al
je 0x401f34
push esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4128a0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x4128a0
lea ecx, [esp + 0x14]
push str.DeleteFile__s__d___d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x1c]
push edx
call fcn.00404040
add esp, 0x18
test esi, esi
pop esi
je 0x401f34
mov byte [0x4128a0], 0
mov al, bl
pop ebx
add esp, 0x400
ret

Function at 0x4020b0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [0x412acc]
sub esp, 0x100
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push eax
push str.c_nCount_d
push ecx
call ebx
lea edx, [esp + 0x14]
push edx
call fcn.00404040
mov eax, dword [0x412acc]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x40211d
push edi
mov edi, 0x4083d8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
push esi
lea edx, [esp + 0x18]
push str.__d____X___X
push edx
call ebx
lea eax, [esp + 0x20]
push eax
call fcn.00404040
mov eax, dword [0x412acc]
add esp, 0x18
inc esi
add edi, 8
cmp esi, eax
jl 0x4020ee
pop edi
push 0
push 0x401f60
call dword [sym.imp.USER32.dll_EnumWindows]
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x402140
Capabilities:
Enumerate gui resources

Disassembly:
push 2
push 0x401f60
call dword [sym.imp.USER32.dll_EnumWindows]
ret

Function at 0x402150
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x4086f0
call fcn.00404880
add esp, 4
mov ecx, dword [0x4086f0]
mov edx, dword [0x4086f4]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x4086f8]
mov dword [eax + 4], edx
mov edx, dword [0x4086fc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.004046e0
add esp, 0x14
test eax, eax
jne 0x402197
xor al, al
pop esi
ret
mov eax, dword [esp + 8]
push 0x3080000
push 0
push eax
push 0
call fcn.004043c0
mov esi, eax
add esp, 0x10
cmp esi, 1
je 0x4021b9
cmp esi, 0xa
jne 0x4021ea
push 4
push 0x4081bc
push 0x411c30
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4021ea
push 1
push 0
push 0
push 0x412030
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
sete al
pop esi
ret
Function at 0x4023f0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov al, byte [0x40872c]
sub esp, 0x1a4
push ebx
mov bl, 0x20
test bl, al
je 0x40241e
call fcn.00402280
test al, al
jne 0x402414
call fcn.004022c0
test al, al
je 0x40241e
mov al, 1
pop ebx
add esp, 0x1a4
ret
mov al, byte [0x412ad0]
test al, al
je 0x402431
mov al, 1
pop ebx
add esp, 0x1a4
ret
push edi
push str.DoOpgDlg2
call fcn.00404040
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x40872c]
add esp, 4
test al, 2
pop edi
je 0x402472
lea eax, [esp + 4]
push eax
call fcn.00402640
push 0
call fcn.00402680
add esp, 8
push esi
call fcn.00401f40
lea ecx, [esp + 0xa4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov al, byte [0x40872c]
test bl, al
mov byte [0x412ad0], 1
je 0x4024c5
push 0x412870
push 0x412830
push 0x4086e0
call fcn.004041e0
add esp, 8
push eax
call fcn.00402380
add esp, 8
jmp 0x4024d2
push 0x4086f0
call fcn.00402310
add esp, 4
lea edx, [esp + 0xa4]
mov bl, al
push edx
mov byte [0x412ad0], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.004020b0
test byte [0x40872c], 2
je 0x402504
lea eax, [esp + 8]
push eax
call fcn.00402680
add esp, 4
test esi, esi
je 0x402538
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x40252b
push str.SetForegroundWindow___succeeded.
call fcn.00404040
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x1a4
ret
push str.SetForegroundWindow___failed.
call fcn.00404040
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x1a4
ret

Function at 0x402570
Capabilities:
Create process on windows
Create thread

Disassembly:
sub esp, 0x15c
push esi
push edi
lea eax, [esp + 0x5c]
push 0x4129a8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x5c]
push 0x408264
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x5c]
push 0
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [0x412898]
push eax
push str._sd__x__x
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0x10
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 8]
mov dword [esp + 8], ecx
lea eax, [esp + 0x18]
mov dword [esp + 0xc], ecx
push edx
mov dword [esp + 0x14], ecx
push eax
push ecx
push ecx
push 0x20
push ecx
push ecx
mov dword [esp + 0x30], ecx
push ecx
lea ecx, [esp + 0x7c]
push ecx
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
jne 0x40261a
xor al, al
add esp, 0x15c
ret
mov edx, dword [esp]
push edx
push 0
push 0x402550
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov al, 1
add esp, 0x15c
ret
Function at 0x4026a0
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x54
test edx, edx
jne 0x4026b0
mov edx, 0x4129a8
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop edi
add esp, 0x54
ret

Function at 0x4028f0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push 0x408270
call fcn.00404040
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll_strtoul]
lea eax, [esp + 0xc]
push 0x10
add ecx, 3
push eax
push ecx
mov dword [esp + 0x18], 0
call esi
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x402984
mov eax, dword [esp + 8]
lea edx, [esp + 8]
push 0x10
push edx
push eax
call esi
add esp, 0xc
test eax, eax
je 0x402984
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 0x1f0fff
call edi
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push ebx
push 0
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
je 0x40297c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebp
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
pop esi
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x402a10
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x412b40
push 0x412adc
push 0x80
mov dword [0x412ba4], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x402a51
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0x414
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop esi
ret
Function at 0x404040
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
mov eax, dword [0x4082a0]
sub esp, 0xc
push ebx
xor ebx, ebx
cmp eax, 0xffffffff
push esi
jne 0x4040b1
lea eax, [esp + 8]
mov dword [0x4082a0], ebx
push eax
push 0x20019
push ebx
push str.SoftwarePaltiosoftWrapping
push 0x80000002
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4040b1
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push 0x4082a0
push edx
push ebx
push str.logging
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x4040b1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4082a0], ebx
je 0x40411e
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push str.launch3.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40411e
push edi
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push ebx
push eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
lea ecx, [esp + 0xc]
push ebx
push ecx
push 2
push 0x4082a4
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x404130
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
je 0x40413e
xor eax, eax
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
je 0x40414e
xor eax, eax
ret
xor eax, eax
xor edx, edx
mov ax, word [ecx + 0x14]
mov dx, word [ecx + 6]
push esi
lea esi, [eax + ecx + 0x18]
mov eax, dword [ecx + 0x54]
test edx, edx
jle 0x404173
lea ecx, [esi + 0x10]
mov esi, dword [ecx]
add ecx, 0x28
add eax, esi
dec edx
jne 0x404169
pop esi
ret
Function at 0x404280
Capabilities:
Get file size
Parse pe header

Disassembly:
push ecx
mov cl, byte [esp + 0x14]
push ebx
push ebp
push esi
test cl, cl
mov dword [esp + 0xc], 0
mov eax, 0x80000000
mov esi, 2
mov ebp, 4
je 0x4042af
mov esi, ebp
mov eax, 0xc0000000
mov ebp, 0xf001f
push 0
push 0x10000000
push 3
push 0
push 1
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x4042de
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push esi
push 0
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x40430f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x404396
push 0
push 0
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x40432f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x40438b
cmp word [esi], 0x5a4d
je 0x404340
mov dword [esp + 0x10], 0xb
jmp 0x40438b
mov ecx, dword [esi + 0x3c]
mov ebp, esi
add ebp, ecx
cmp dword [ebp], 0x4550
je 0x40435a
mov dword [esp + 0x10], 0xb
jmp 0x40438b
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x58]
mov dword [edx], ecx
mov eax, dword [esi + 0x3c]
add eax, 0xf8
sub edi, eax
lea ecx, [esi + eax]
push ecx
push edi
call fcn.00404890
mov edx, dword [esp + 0x28]
mov cl, byte [esp + 0x2c]
add esp, 8
test cl, cl
mov dword [edx], eax
je 0x40438b
mov dword [ebp + 0x58], eax
test esi, esi
je 0x404396
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test ebx, ebx
je 0x4043a4
push ebx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x404890
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x413670]
test eax, eax
jne 0x40489e
call fcn.004048e0
mov ecx, dword [esp + 4]
or eax, 0xffffffff
dec ecx
js 0x4048da
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
mov bl, byte [ecx]
mov edx, eax
shr edx, 0x18
xor dl, bl
inc ecx
mov byte [esp + 0xc], dl
mov edx, dword [esp + 0xc]
and edx, 0xff
shl eax, 8
mov edx, dword [edx*4 + 0x413270]
xor eax, edx
dec esi
jne 0x4048b1
pop esi
pop ebx
not eax
ret

Function at 0x4048e0
Capabilities:
Hash data using crc32b

Disassembly:
push ecx
push ebx
mov ebx, 1
push esi
mov dword [0x413670], ebx
xor edx, edx
mov ecx, 0x413270
mov eax, edx
mov esi, 8
shl eax, 0x18
test eax, 0x80000000
je 0x40490f
add eax, eax
xor eax, 0x4c11db7
jmp 0x404911
shl eax, 1
dec esi
jne 0x4048ff
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x413670
jb 0x4048f5
xor ecx, ecx
mov eax, 0x413070
mov dword [esp + 8], ecx
mov edx, 8
test byte [esp + 8], bl
je 0x40494c
mov si, word [esp + 8]
shr si, 1
xor esi, 0x8408
mov dword [esp + 8], esi
jmp 0x404951
shr word [esp + 8], 1
dec edx
jne 0x404932
mov dx, word [esp + 8]
inc ecx
mov word [eax], dx
add eax, 2
cmp eax, 0x413270
jb 0x404929
pop esi
pop ebx
pop ecx
ret
Function at 0x404970
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x413670]
test eax, eax
jne 0x40497e
call fcn.004048e0
mov ecx, dword [esp + 4]
mov eax, pe_overlay
dec ecx
js 0x4049ba
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx]
xor ebx, ebx
xor dl, al
mov bl, ah
mov byte [esp + 0xc], dl
inc ecx
mov edx, dword [esp + 0xc]
and edx, 0xff
mov ax, word [edx*2 + 0x413070]
xor ax, bx
dec esi
jne 0x404993
pop esi
pop ebx
not eax
ret

Function at 0x4049c0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4059cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
push ebx
push esi
lea ecx, [esp + 8]
call fcn.00405180
mov eax, dword [esp + 0x848]
xor esi, esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x83c], esi
call fcn.00405190
mov ebx, dword [esp + 0x840]
cmp ebx, esi
jle 0x404a2a
push edi
mov edi, dword [esp + 0x848]
lea ecx, [esp + 0xc]
call fcn.00405230
mov dl, byte [esi + edi]
xor dl, al
mov byte [esi + edi], dl
inc esi
cmp esi, ebx
jl 0x404a13
pop edi
lea ecx, [esp + 8]
mov dword [esp + 0x838], 0xffffffff
call fcn.00403120
mov ecx, dword [esp + 0x830]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x834
ret

Function at 0x404b00
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push ebx
lea eax, [esp + 0x10]
push esi
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
xor bl, bl
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404b6b
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
mov esi, dword [esp + 0x10]
push 1
push 0
push 0x40646c
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x404b60
mov bl, 1
test esi, esi
je 0x404b6b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
pop ecx
ret

Function at 0x404b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edx, dword [esp + 0x10]
mov ecx, 0x41
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push ecx
push edx
xor bl, bl
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404bfd
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push esi
push ecx
push 0
push 0x40646c
push edi
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404bf2
mov edx, dword [esp + 0x14]
mov bl, 1
mov byte [edx + esi], al
test edi, edi
je 0x404bfd
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
pop ebx
ret
Function at 0x4050c0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call fcn.00405020
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
mov ebp, 1
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x405159
push ebx
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x408364
push ebx
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40513c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
xor ebp, ebp
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x405190
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ecx, ecx
mov ebx, 0x11
lea edi, [esi + 4]
mov edx, 0x20
imul eax, eax, 0x5d588b65
inc eax
mov ebp, eax
shr ecx, 1
and ebp, 0x80000000
or ecx, ebp
dec edx
jne 0x4051a9
mov dword [edi], ecx
add edi, 4
dec ebx
jne 0x4051a4
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 4]
shl eax, 0x17
shr ecx, 9
xor eax, ecx
mov ecx, dword [esi + 0x40]
xor eax, ecx
mov ecx, 0x1f8
mov dword [esi + 0x44], eax
lea eax, [esi + 8]
mov edx, dword [eax - 4]
mov edi, dword [eax]
mov ebx, dword [eax + 0x3c]
add eax, 4
shl edx, 0x17
shr edi, 9
xor edx, edi
xor edx, ebx
dec ecx
mov dword [eax + 0x3c], edx
jne 0x4051e5
mov ecx, esi
call fcn.00405260
mov ecx, esi
call fcn.00405260
mov ecx, esi
call fcn.00405260
mov dword [esi], 0x208
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x405260
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
lea eax, [ecx + 4]
mov edx, 0x20
mov esi, dword [eax + 0x7a4]
mov edi, dword [eax]
xor edi, esi
mov dword [eax], edi
add eax, 4
dec edx
jne 0x40526a
lea eax, [ecx + 0x84]
mov ecx, 0x1e9
mov edx, dword [eax - 0x80]
mov edi, dword [eax]
xor edi, edx
mov dword [eax], edi
add eax, 4
dec ecx
jne 0x405287
pop edi
pop esi
ret