joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4126a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.00418b0c
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.00418b0c
mov esp, ebp
pop ebp
ret 8

Function at 0x412700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.00418b0c
lea ecx, [eax + eax + 2]
mov esi, esp
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.00418b0c
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.00418b0c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4157a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xf0]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shl ecx, 1
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.00418b0c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41580b
mov eax, dword [ebp - 0x14]
jmp 0x415858
cmp dword [ebp - 0x20], 1
je 0x41581e
cmp dword [ebp - 0x20], 2
je 0x41581e
mov eax, 0xd
jmp 0x415858
cmp dword [ebp + 0xc], 0
je 0x41584c
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x415845
mov eax, dword [ebp - 0x2c]
shr eax, 1
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
je 0x41584c
mov eax, 0xd
jmp 0x415858
mov eax, dword [ebp - 0x2c]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x415880]
call fcn.00418b2f
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xf0
cmp ebp, esp
call fcn.00418b0c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x417890
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x427480]
push esi
push edi
mov dword [esp + 0x21c], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x1c]
push 0x41ef70
push edx
mov word [eax + 2], si
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push 0x41ef6c
push str.Replaced
push str.AutoRepair
mov word [esp + 0x24], si
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
mov ecx, dword [esp + 0x220]
add esp, 4
call fcn.004186c1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417950
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x427480]
push esi
push edi
mov dword [esp + 0x21c], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x1c]
push 0x41ef70
push edx
mov word [eax + 2], si
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push 0x41ef6c
push str.Restored
push str.AutoRepair
mov word [esp + 0x24], si
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
mov ecx, dword [esp + 0x220]
add esp, 4
call fcn.004186c1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417a10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x427480]
push edi
mov dword [esp + 0x21c], eax
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x1c]
push 0x41ef70
push edx
mov word [eax + 2], 0
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
push 5
lea edx, [esp + 0xc]
push edx
push 0x41ef6c
xor eax, eax
push str.CrashTimes
mov dword [esp + 0x1a], eax
push str.AutoRepair
mov word [esp + 0x1c], 0
mov dword [esp + 0x22], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 4]
push eax
call dword [sym.imp.MSVCR71.dll__wtoi]
xor ecx, ecx
add esp, 4
cmp eax, 3
setge cl
mov eax, ecx
mov ecx, dword [esp + 0x21c]
call fcn.004186c1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x417ae0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
mov eax, dword [0x427480]
push esi
push edi
mov dword [esp + 0x234], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x28], si
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x28]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x34]
push 0x41ef70
push edx
mov word [eax + 2], si
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea eax, [esp + 0x28]
push eax
push 8
lea ecx, [esp + 0x18]
push ecx
push str.ReplaceTime
push str.AutoRepair
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
je 0x417bbe
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
sub ecx, esi
sbb eax, edx
cmp eax, 0x580
jl 0x417bbe
jg 0x417ba7
cmp ecx, 0x28e44000
jbe 0x417bbe
mov eax, 1
mov ecx, dword [esp + 0x234]
call fcn.004186c1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x234]
xor eax, eax
call fcn.004186c1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417be0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x427480]
push esi
push edi
mov dword [esp + 0x424], eax
call fcn.00417890
test eax, eax
jne 0x417c15
mov ecx, dword [esp + 0x424]
call fcn.004186c1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00417a10
test eax, eax
jne 0x417cda
call fcn.00417ae0
test eax, eax
jne 0x417cda
xor esi, esi
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x218], si
mov ecx, 0x81
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...ServerConfig.ini
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x218]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push 0x41ef6c
push str.Restore
push str.ServerConfig
mov word [esp + 0x24], si
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x424]
call fcn.004186c1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x424]
mov eax, 1
call fcn.004186c1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417e70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa10
mov eax, dword [0x427480]
push esi
push edi
mov dword [esp + 0xa14], eax
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 8]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xd
lea edx, [esp + 0x14]
push str.TDPRepair.exe
push edx
mov word [eax + 2], 0
call dword [sym.imp.MSVCR71.dll_wcsncat]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 0x18
test eax, eax
je 0x417f05
mov eax, dword [ebp + 8]
push esi
push eax
lea ecx, [esp + 0x218]
push str.__dir_s___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x417f1f
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x214]
push str.__dir_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push str.xlbughandler.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x417f4f
push str._XL_AddCrashProcess_12
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417f4f
push 2
lea ecx, [esp + 0x214]
push ecx
lea edx, [esp + 0x10]
push edx
call eax
call fcn.00417890
test eax, eax
je 0x417f71
call fcn.00417950
test eax, eax
jne 0x417f71
push eax
push eax
push 0x417d00
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
mov ecx, dword [esp + 0xa14]
call fcn.004186c1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417f90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x427480]
mov dword [esp + 0x410], eax
call fcn.00417950
test eax, eax
jne 0x418003
call fcn.00417be0
test eax, eax
je 0x41801b
push 0x104
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str..TDPRepair.exe
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push 0
push 0
lea ecx, [esp + 0x214]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
mov ecx, dword [esp + 0x410]
call fcn.004186c1
add esp, 0x414
ret
mov ecx, dword [esp + 0x410]
xor eax, eax
call fcn.004186c1
add esp, 0x414
ret
Function at 0x418890
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x41f2b0
call fcn.00418638
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x4188d0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4188d0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4188e8
cmp eax, 0x20b
je 0x4188d5
mov dword [ebp - 0x1c], edi
jmp 0x4188fc
cmp dword [ecx + 0x84], 0xe
jbe 0x4188d0
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4188f6
cmp dword [ecx + 0x74], 0xe
jbe 0x4188d0
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4279c0], 0xffffffff
or dword [0x4279c4], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x42793c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x427938]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4279bc], eax
call fcn.00418c1a
call fcn.00418cba
cmp dword [0x4274a0], edi
jne 0x41895c
push fcn.00418cba
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00418ca8
push 0x42705c
push 0x427058
call sub.MSVCR71.dll__initterm
push 0x418c5e
call fcn.004186f5
mov eax, dword [0x427934]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x427930]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x4189b0
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x427054
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x4189da
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x418a94
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x418a49
cmp ax, di
je 0x4189f0
cmp dword [ebp - 0x20], edi
jne 0x418a49
mov ax, word [esi]
cmp ax, di
je 0x418a05
cmp ax, 0x20
ja 0x418a05
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4189f0
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x418a21
movzx eax, word [ebp - 0x54]
jmp 0x418a24
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.004094d8
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x418a41
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x418a8e
cmp ax, 0x22
jne 0x418a5a
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x4189da
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00418673
ret
Function at 0x4197b4
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x41f830
call fcn.00418638
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x419820
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x4197f8
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x419826
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x4197f0
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4197f0
mov al, 1
jmp 0x4197f2
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.00418673
ret
Function at 0x419928
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
mov ebx, 0x10000
jbe 0x41994b
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x41994e
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x419961
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x419968
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x4279a0]
test eax, eax
mov ecx, dword [0x42799c]
jne 0x419982
test ecx, ecx
je 0x419997
mov eax, ecx
mov dword [0x4279a0], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x419997
cmp edx, dword [ebp - 4]
jb 0x419997
cmp edx, dword [ebp - 8]
jbe 0x419a6b
mov eax, ecx
test ecx, ecx
jmp 0x4199bb
test eax, eax
je 0x4199b6
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4199b6
cmp ecx, dword [ebp - 4]
jb 0x4199b6
cmp ecx, dword [ebp - 8]
jbe 0x419a6b
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x4279a0], eax
jne 0x41999d
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x419b06
cmp edi, 0x70000000
jb 0x4199eb
cmp edi, 0x80000000
ja 0x4199eb
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419b06
cmp dword [ebp - 0x30], ebx
jne 0x419a0a
cmp dword [ebp - 0x34], ebx
jae 0x419a1d
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x4199d6
jmp 0x419b06
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x4279a0], eax
je 0x419b06
mov ecx, dword [0x42799c]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x42799c], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x419a5d
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x419b0b
cmp esi, dword [ebp - 8]
ja 0x419b0b
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x419b0d
cmp esi, 0x70000000
jb 0x419aaf
cmp esi, 0x80000000
ja 0x419aaf
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419b0b
cmp dword [ebp - 0x14], ebx
jne 0x419afd
cmp dword [ebp - 0x18], ebx
jb 0x419afd
mov ecx, esi
and ecx, 0xffff
je 0x419ae1
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x4279a0], eax
jne 0x419a39
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x419a9a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419b33
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x41f840
call fcn.00418638
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419b8e
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x419b8a
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x419b8a
cmp word [eax + 0x14], 0
jne 0x419b7f
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x419b90
mov eax, ecx
jmp 0x419b79
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.00418673
ret

Function at 0x419ba8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x4279a8], edi
jne 0x419bcb
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4279a8
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x419bd2
mov eax, 0x10dd
jmp 0x419c16
push esi
mov esi, dword [0x42799c]
mov dword [0x4279a4], edi
mov dword [0x4279b8], edi
mov dword [0x4279b4], edi
mov dword [0x4279ac], edi
mov dword [0x4279b0], edi
jmp 0x419c0f
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x419bf9
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x419c19
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4279a8], eax
je 0x419c2f
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x4279b8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x419c7a
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x419c6b
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x419c6b
call fcn.00419b12
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x419c3e
mov dword [0x4279b8], ebx
call fcn.00419901
mov esi, dword [0x4279b4]
cmp esi, ebx
je 0x419ca7
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x419c8f
pop edi
pop esi
mov dword [0x4279b4], ebx
mov dword [0x4279a8], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x419efa
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x4279ac]
test eax, eax
jne 0x419f6a
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x419f16
xor eax, eax
jmp 0x419f69
push esi
push 8
call fcn.004185de
mov esi, eax
test esi, esi
pop ecx
jne 0x419f2a
push 8
pop edi
jmp 0x419f45
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x419f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
and dword [0x4279b0], 0
mov dword [0x4279ac], edi
mov eax, edi
jmp 0x419f68
mov eax, dword [0x4279b4]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x4279b4], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x41a1aa
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4279a8], eax
je 0x41a1c6
mov eax, 0x10dd
jmp 0x41a2a2
mov eax, dword [0x4279ac]
test eax, eax
jne 0x41a2a2
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x41a1e3
push 6
pop eax
jmp 0x41a2a1
cmp dword [edi], 0
push ebx
push esi
jne 0x41a1f7
push 6
pop eax
mov dword [0x4279ac], eax
jmp 0x41a299
push 0x18
call fcn.004185de
mov esi, eax
test esi, esi
pop ecx
jne 0x41a20a
push 8
pop edi
jmp 0x41a283
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.00419b96
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x41a278
cmp ecx, 0x17
ja 0x41a278
cmp dword [edi + 0x1c], eax
jne 0x41a278
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41a24e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41a283
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x4279b8]
mov dword [esi], eax
mov dword [0x4279b8], esi
xor eax, eax
jmp 0x41a29f
cmp dword [0x4279a4], edx
push 9
pop edi
jne 0x41a289
mov dword [0x4279ac], edi
test esi, esi
je 0x41a294
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x4279b0], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x401910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
shr eax, 3
mov dword [ebp - 4], eax
test eax, eax
je 0x4019d3
lea edx, [ecx + eax*8 - 8]
push esi
mov dword [ebp - 8], edx
push edi
lea ecx, [ecx]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov edx, dword [0x5700e0]
add edx, dword [0x5700e4]
mov esi, 0x20
add edx, dword [0x5700dc]
add edx, dword [0x5700d8]
mov dword [ebp - 0xc], edx
shl edx, 5
dec esi
mov dword [ebp - 0x10], esi
mov esi, ecx
shr esi, 5
add esi, dword [0x5700e4]
mov edi, ecx
shl edi, 4
add edi, dword [0x5700e0]
xor esi, edi
lea edi, [edx + ecx]
xor esi, edi
sub eax, esi
mov esi, eax
shr esi, 5
add esi, dword [0x5700dc]
mov edi, eax
shl edi, 4
add edi, dword [0x5700d8]
xor esi, edi
lea edi, [edx + eax]
sub edx, dword [ebp - 0xc]
xor esi, edi
sub ecx, esi
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x401958
mov esi, dword [0x5700dc]
mov edx, dword [ebp - 8]
xor esi, ecx
mov dword [edx], esi
mov ecx, dword [0x5700dc]
xor ecx, eax
mov eax, dword [ebp - 4]
dec eax
mov dword [edx + 4], ecx
sub edx, 8
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
test eax, eax
jne 0x401930
pop edi
pop esi
xor eax, eax
mov esp, ebp
pop ebp
ret