joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409112
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xd4
mov eax, 0x421951
call fcn.0040dd6e
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe0], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xd8]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x28]
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xd4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, str.SourceWtSystemWin32RegistryKey.cpp
cmp eax, ebx
jge 0x4091f5
lea eax, [esi + 8]
push eax
mov edx, str.RegQueryInfoKey_failure_reading_registry_key_info_
lea ecx, [ebp - 0x64]
call fcn.004047fc
mov byte [ebp - 4], 1
push 0x422e30
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00404958
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004014d0
push str.WT::System::Win32::CRegistryKey::EnumerateSubKeyNames
push 0x176
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0040461e
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.004049d4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xcc]
call fcn.0040406d
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, dword [ebp - 0xd4]
add eax, 2
and eax, 0xfffffffe
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], ebx
cmp dword [ebp - 0xd8], ebx
jbe 0x409325
jmp 0x409221
mov eax, dword [ebp - 0xd4]
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xdc], eax
call fcn.00405c8d
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40923d
lea eax, [ebp - 0x2c]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xdc]
push ecx
push eax
push dword [ebp - 0xd0]
push dword [esi + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jge 0x4092d5
lea eax, [esi + 8]
push eax
mov edx, str.RegEnumKeyExW_failure_reading_registry_names_
lea ecx, [ebp - 0x64]
call fcn.004047fc
mov byte [ebp - 4], 5
push 0x422e30
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00404958
mov byte [ebp - 4], 7
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004014d0
push str.WT::System::Win32::CRegistryKey::EnumerateSubKeyNames
push 0x187
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0040461e
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xcc]
call fcn.004049d4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xcc]
call fcn.0040406d
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov ecx, dword [ebp - 0xdc]
cmp ecx, ebx
je 0x4092fe
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4092eb
lea eax, [ebp - 0x2c]
cmp word [eax + ecx*2 - 2], bx
jne 0x4092fe
dec ecx
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401520
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0x2c]
push eax
call fcn.004090ac
inc dword [ebp - 0xd0]
mov eax, dword [ebp - 0xd0]
cmp eax, dword [ebp - 0xd8]
jb 0x40921b
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004014d0
call fcn.0040ddf1
ret 4
Function at 0x40933c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x409344
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409357
test al, 0x10
je 0x409357
mov al, 1
ret
xor al, al
ret

Function at 0x40a84b
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x421a79
call fcn.0040dd6e
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x40a942
cmp byte [esi + 0x4a], bl
je 0x40a942
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x40a887
xor al, al
jmp 0x40a944
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0040a611
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40a8e5
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x40a8ea
dec eax
je 0x40a8ee
dec eax
dec eax
je 0x40a93e
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401480
mov al, bl
jmp 0x40a944
mov edx, dword [ebp - 0x2c]
jmp 0x40a8b0
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40a8fa
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x40a920
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40a90d
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00411580
add esp, 0x10
cmp edi, eax
jne 0x40a8d3
cmp byte [esi + 0x4a], 0
je 0x40a93e
test edi, edi
jne 0x40a8a2
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00405c07
jmp 0x40a8a2
mov bl, 1
jmp 0x40a8d5
mov al, 1
call fcn.0040ddf1
ret

Function at 0x40d7e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a6a8]
jne 0x40d7f2
repz ret
jmp fcn.0041364c
Function at 0x41d06c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a6a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004130ef
and dword [ebp - 0x14], 0
cmp dword [0x42cc44], 0
mov dword [ebp - 0x18], eax
jne 0x41d11f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41d1c7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x426094
push ebx
call edi
test eax, eax
je 0x41d1c7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42cc44], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42cc48], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42cc4c], eax
call edi
push eax
call esi
mov dword [0x42cc54], eax
test eax, eax
je 0x41d11f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42cc50], eax
mov eax, dword [0x42cc50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41d178
cmp dword [0x42cc54], ecx
je 0x41d178
push eax
call esi
push dword [0x42cc54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41d178
test ebx, ebx
je 0x41d178
call edi
test eax, eax
je 0x41d16f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41d16f
test byte [ebp - 8], 1
jne 0x41d178
or dword [ebp + 0x10], 0x200000
jmp 0x41d1ab
mov eax, dword [0x42cc48]
cmp eax, dword [ebp - 0x18]
je 0x41d1ab
push eax
call esi
test eax, eax
je 0x41d1ab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41d1ab
mov eax, dword [0x42cc4c]
cmp eax, dword [ebp - 0x18]
je 0x41d1ab
push eax
call esi
test eax, eax
je 0x41d1ab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42cc44]
call esi
test eax, eax
je 0x41d1c7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41d1c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d7e8
leave
ret
Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0xa
mov edi, eax
push 0x65
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401201
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x401201
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x401201
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test eax, eax
je 0x4011f8
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 4
mov edi, dword [ebx + eax]
mov eax, dword [esi + 8]
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [esi]
call fcn.0040dc50
add esp, 8
test eax, eax
je 0x401201
mov dword [esi], eax
xor ecx, ecx
mov eax, dword [esi + 8]
mov edx, 4
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [esi + 4]
call fcn.0040dc50
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x401201
mov eax, dword [ebp - 4]
mov edx, dword [esi + 8]
add eax, 4
mov dword [esi + 4], ecx
mov dword [ebp - 8], edx
add eax, ebx
je 0x4011d7
test edi, edi
je 0x4011d7
push edi
call fcn.0040dc76
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x401201
mov ecx, dword [ebp - 4]
add ecx, 4
push edi
add ecx, ebx
push ecx
push eax
call fcn.0040c790
mov eax, dword [esi]
add esp, 0xc
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + edx*4], ecx
mov eax, dword [esi + 4]
mov dword [eax + edx*4], edi
jmp 0x4011e7
mov eax, dword [esi]
mov dword [eax + edx*4], 0
mov dword [ecx + edx*4], 0
inc dword [esi + 8]
add ebx, 4
add ebx, edi
cmp ebx, dword [ebp - 0x10]
jb 0x401135
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x521844], 0
push ebx
push esi
push edi
je 0x403208
cmp word [0x522b48], 0
je 0x403208
call fcn.00405630
call fcn.004018e0
mov esi, dword [0x521840]
mov eax, 0x40
movzx ecx, word [0x522b48]
mov edi, 2
mov word [0x522b4c], ax
push 4
lea eax, [esi + esi*4]
cdq
sub eax, edx
sar eax, 1
cdq
idiv ecx
xor ecx, ecx
mov dword [0x521e68], eax
mov eax, 0x51eb851f
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [0x522d68], eax
mov eax, dword [0x520480]
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040dc81
add esp, 8
mov dword [0x5203cc], eax
test eax, eax
je 0x403208
mov ebx, dword [0x520480]
mov esi, dword [0x521840]
mov dword [0x5203c8], 0
mov dword [0x520404], 0xffff
mov dword [0x520424], 0xffff
mov dword [0x520444], 0xffff
mov dword [0x520464], 0xffff
call fcn.00401430
push 0x30000
mov eax, 4
mov dword [0x5203d4], ebx
mov word [ebp - 0x10], ax
lea eax, [esi*4]
push 0
push 0x401410
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push 0x5203f4
mov dword [ebp - 0xe], 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0x20001
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
jne 0x403203
push eax
push 4
push 3
push eax
call dword [sym.imp.KERNEL32.DLL_CreateSemaphoreW]
mov dword [0x5203dc], eax
test eax, eax
je 0x403203
mov esi, 0x5203e4
movzx eax, word [ebp - 0x10]
push eax
push ebx
call fcn.0040dc81
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x403203
add esi, 4
cmp esi, 0x5203f4
jl 0x403143
push 0x80
push 0
push 0x5203f8
call fcn.0040bd10
add esp, 0xc
mov esi, 0x5203f8
mov edi, 0x5203e4
mov eax, dword [edi]
mov dword [esi], eax
movzx eax, word [ebp - 0x10]
push 0x20
imul eax, ebx
push esi
push dword [0x5203f4]
mov dword [esi + 0x10], 1
mov dword [esi + 4], eax
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
test eax, eax
jne 0x403203
add edi, 4
add esi, 0x20
cmp edi, 0x5203f4
jl 0x403184
mov byte [0x5203d1], al
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x401210
push 0
push 0
mov dword [0x5203d8], 1
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x52047c], eax
test eax, eax
je 0x403203
pop edi
pop esi
mov byte [0x521e6c], 0
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040add9
mov esp, ebp
pop ebp
ret
call fcn.00401430
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040add9
mov esp, ebp
pop ebp
ret
Function at 0x4056b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test byte [ecx + 8], 8
push ebx
push esi
push edi
mov ebx, edx
jne 0x405778
mov edx, dword [ecx + 0xc]
or edx, dword [ecx + 0x10]
cmp byte [0x522d64], 0
je 0x4056d9
mov eax, dword [ecx + 0x18]
or eax, dword [ecx + 0x14]
or edx, eax
test edx, edx
jne 0x405732
movzx edi, word [ecx + 0x3e]
mov eax, ebx
mul dword [ecx + 0x40]
movzx esi, ax
add esi, edi
mov edi, esi
movzx ebx, si
mov esi, dword [ecx + 0x28]
shr edi, 0x10
shrd eax, edx, 0x10
add edi, eax
add edi, dword [ecx + 0x34]
cmp edi, esi
jl 0x40571b
mov al, byte [ecx + 8]
test al, 3
je 0x405729
mov edx, dword [ecx + 0x30]
nop dword [eax]
sub edi, edx
xor al, 4
cmp edi, esi
jge 0x405710
mov byte [ecx + 8], al
shl ebx, 0x10
mov dword [ecx + 0x3c], ebx
mov dword [ecx + 0x34], edi
pop edi
pop esi
pop ebx
pop ebp
ret
mov byte [ecx + 8], 8
pop edi
pop esi
pop ebx
pop ebp
ret
cmp byte [0x522d64], 0
je 0x405756
mov eax, dword [ecx + 0x14]
cmp eax, dword [ecx + 0x18]
jne 0x405752
mov eax, dword [ecx + 0x1c]
cmp eax, dword [ecx + 0x20]
jne 0x405752
mov edx, 1
jmp 0x405761
xor edx, edx
jmp 0x405761
mov eax, dword [ecx + 0xc]
xor edx, edx
cmp eax, dword [ecx + 0x10]
sete dl
mov eax, dword [ecx + 0x38]
push dword [ebp + 8]
push ebx
lea eax, [eax + edx*8]
mov eax, dword [eax*4 + 0x453b88]
push ecx
call eax
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40a520
Capabilities:
Copy file
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x67c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x678], eax
mov eax, dword [0x52062c]
push ebx
push esi
push edi
push 0
mov dword [esp + 0x18], eax
xor eax, eax
push 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov word [esp + 0x70], ax
lea eax, [esp + 0x70]
push 0
mov dword [esp + 0x38], eax
mov eax, dword [0x5205dc]
push eax
push 0
push eax
push str._ls.dll_c_ls.dll_cAll_.dll_files_c.dll_c
lea eax, [esp + 0x28c]
mov dword [esp + 0x2c], 0x58
push 0x104
push eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0x1800
mov dword [esp + 0x54], 0x104
call fcn.00408ae0
add esp, 0x24
mov dword [esp + 0x28], 1
lea eax, [esp + 0x270]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x40a711
push 0
push 0
push 0xf0
push dword [0x520604]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
cmp eax, 1
jne 0x40a666
push esi
push str._ls.bak
lea eax, [esp + 0x480]
push 0x104
push eax
call fcn.00408ae0
add esp, 0x10
lea eax, [esp + 0x478]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a6f9
push 0
push 0
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x40a733
push 0
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x40a72c
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push 0xffffffffffffffff
push eax
push 0x37
push 0x457830
push 0x4577c0
push 0x4577f8
push 0x457868
push ebx
call fcn.00401010
mov dword [esp + 0xc], eax
push ebx
test eax, eax
jne 0x40a726
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push edi
call esi
push 0x10
push str.pATCH_
push str.Patch_failed._Make_sure_you_select_the_correct_file.
push dword [0x52062c]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x678]
xor ecx, esp
call fcn.0040add9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0xc], 0
je 0x40a6f9
mov ecx, dword [esp + 0x684]
pop edi
pop esi
pop ebx
xor ecx, esp
mov byte [0x5203d0], 1
call fcn.0040add9
mov esp, ebp
pop ebp
ret
Function at 0x40b606
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x40b645
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b645
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b645
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b645
cmp dword [ecx + 0x74], 0xe
jbe 0x40b645
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4156ba
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x415757
push ebx
push esi
call fcn.00415683
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00415617
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415704
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415756
push edi
push eax
call fcn.004113d5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415724
call fcn.0041139b
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415755
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415617
add esp, 0x20
test eax, eax
jne 0x415743
push edi
call fcn.0041139b
jmp 0x41574b
push ebx
call fcn.0041139b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x416413
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420278
push 0x420270
push str.FlsAlloc
push 0x1f
call fcn.0041632f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416447
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e1e8]
call esi
jmp 0x41644d
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x416491
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420288
push 0x420280
push str.FlsGetValue
push 0x21
call fcn.0041632f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4164c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e1e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]

Function at 0x4164d0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420290
push 0x420288
push str.FlsSetValue
push 0x22
call fcn.0041632f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41650a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e1e8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsSetValue]

Function at 0x41bfa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41bfcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41bfcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4723da
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4723da
lcall 0x5de5, 0x8b10c483
jmp fcn.0161a408
Function at 0x401550
Capabilities:
Create thread
Enumerate process modules
Inject dll
Inject thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00402f80
mov eax, dword [0x41f080]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push 0x1000
push dword [esi + 0x10]
mov byte [ebp - 0x1005], al
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 0x1014], edi
test edi, edi
jne 0x4015a0
lea esi, [eax - 2]
jmp 0x40168a
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x4015aa
mov eax, dword [esi]
push 0
push dword [esi + 0x10]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4015cb
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4015d5
mov esi, 0xfffffffd
jmp 0x40168a
push str.LoadLibraryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4015ed
lea esi, [eax - 4]
jmp 0x40168a
lea ecx, [ebp - 0x1010]
push ecx
push 4
push edi
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x401611
lea esi, [eax - 5]
jmp 0x40168a
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x100c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40163c
cmp dword [ebp - 0x100c], 0
jne 0x401643
mov esi, 0xfffffffa
jmp 0x40168a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1010]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call sub.KERNEL32.dll_K32EnumProcessModules
mov ecx, dword [ebp - 0x1010]
xor eax, eax
test ecx, ecx
je 0x401685
mov edx, dword [ebp - 0x100c]
mov edi, dword [ebp + eax*4 - 0x1004]
cmp edi, edx
je 0x4016b1
inc eax
cmp eax, ecx
jb 0x401675
mov esi, 0xfffffff9
push 0x8000
push 0
push dword [ebp - 0x1014]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f6d
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x401685
cmp dword [esi + 0x14], 0xf
jbe 0x4016bd
mov esi, dword [esi]
push 1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
jne 0x4016d5
mov esi, 0xfffffff8
jmp 0x40168a
push str.apploader_entry_point
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x4016ce
movzx eax, byte [ebp - 0x1005]
sub ecx, esi
push 0
push 4
push eax
add ecx, edi
push ecx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x401711
lea esi, [eax - 9]
jmp 0x40168a
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x40168a