joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4603d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c1f83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004b25df
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x12a8268
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x12a5be8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4c6170]
push eax
mov ecx, edi
call fcn.004b7d58
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004b9459
test eax, eax
je 0x4604ec
mov ecx, dword [esp + 0x3c]
call fcn.004b7d85
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4c6658]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4604b0
push edi
mov ecx, esi
call fcn.004b5343
mov ecx, esi
call fcn.00460650
cmp dword [esp + 0x38], 1
jne 0x4604e5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004b54ad
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x462f20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x462f53
push esi
call fcn.00466030
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x462f4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x462fd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x462fc2
mov eax, dword [esi + 8]
test eax, eax
je 0x462f77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x462fbe
cmp eax, 2
je 0x462fc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x462f6a
cmp eax, 3
je 0x462f9d
cmp eax, 1
jne 0x462f6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x462f6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x462f6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00463000
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x462fe8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00463000
add esp, 4
pop esi
ret
Function at 0x489e50
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c3f00
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x489ff7
mov ecx, dword [0x12c8ff4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x489f4c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00488b70
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004b10e1
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004b0fa8
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x12c74cc
call fcn.004b1016
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00488f30
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004b10e1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004b0fa8
lea ecx, [esp + 0xc]
call fcn.004b14bc
mov ecx, dword [esp + 0xc]
push 0x12c7f0c
push ecx
call fcn.0049f944
add esp, 8
test eax, eax
je 0x489f74
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x489ead
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004b0fa8
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004b0fa8
jmp 0x489ffb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00489bf0
test eax, eax
push 0
je 0x489fdf
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00488290
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x489fc5
cmp eax, 0x64
jg 0x489fb3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [0x4c6354]
mov esi, eax
jmp 0x489f50
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [0x4c6354]
mov esi, eax
jmp 0x489f50
cmp eax, 0x64
jge 0x489f4c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [0x4c6354]
mov esi, eax
jmp 0x489f50
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00488290
mov esi, eax
jmp 0x489f50
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x48a005
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4925f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c42b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004921a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00492220
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00492220
lea ecx, [esi + 0xc]
call fcn.004b0f33
lea ecx, [esi + 0x10]
call fcn.004b0f33
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004937b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004937b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004937b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004b0fa8
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004b0fa8
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x402c50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x610875
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x69301c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
call ebx
cmp eax, 0xffffffff
jne 0x402da2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 3
jne 0x402d8c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jl 0x402da6
call fcn.004a6e1d
mov ecx, eax
test ecx, ecx
je 0x402dba
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x6588c0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00404c40
test al, al
jne 0x402cf0
push 4
push 0x6588c0
lea ecx, [ebp - 0x10]
call fcn.00405050
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004045c0
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
add esp, 0xc
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402d2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call ebx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebx, 0xffffffff
je 0x402d74
test bl, 0x10
jne 0x402d74
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x402d5d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x402d8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 2
je 0x402da6
cmp esi, 3
je 0x402da6
cmp esi, 0x7b
je 0x402da6
cmp esi, 0x35
je 0x402da6
jmp 0x402d5d
test al, 0x10
je 0x402d5d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405000
int3
Function at 0x403080
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x610945
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x69301c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00402c50
mov ebx, dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
or edi, 0xffffffff
mov esi, dword [sym.imp.SHELL32.dll_ILFree]
test eax, eax
je 0x40312b
lea edx, [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004026e0
push dword [eax]
call ebx
mov edx, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x14], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4030f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 8]
call ebx
mov ebx, eax
lea eax, [ebp - 0x1c]
push 0
push eax
push 1
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.SHELL32.dll_SHOpenFolderAndSelectItems]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40311e
push eax
call esi
test ebx, ebx
je 0x403125
push ebx
call esi
cmp dword [ebp - 0x20], 0
jge 0x40317d
push dword [ebp + 8]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
call ebx
test eax, eax
je 0x4031a5
push dword [ebp + 8]
mov ebx, dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
call ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
call ebx
mov ebx, eax
lea eax, [ebp - 0x20]
push 0
push eax
push 1
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.SHELL32.dll_SHOpenFolderAndSelectItems]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403170
push eax
call esi
test ebx, ebx
je 0x403177
push ebx
call esi
cmp dword [ebp - 0x1c], 0
jl 0x403187
mov esi, 1
jmp 0x403210
push 1
push 0
push 0
push dword [ebp + 8]
push 0x658ae8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
neg eax
sbb esi, esi
neg esi
jmp 0x403210
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x4031b2
xor esi, esi
jmp 0x403210
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004026e0
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x4031f0
push ecx
mov esi, esp
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00404800
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.00403080
add esp, 4
mov esi, eax
jmp 0x4031f2
xor esi, esi
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403210
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40322f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404ab9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404aaa
cmp esi, edx
jae 0x404ab9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404a98
cmp esi, edx
jae 0x404ab9
cmp word [esi], 0
je 0x404ab9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x406670
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x610d7d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x69301c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0x11
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0x3f400000
mov dword [esi + 0x10], 0x3e800000
mov dword [esi + 0x14], 0x40100000
mov dword [esi + 0x18], 0x26
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], 0x60
lea ecx, [esi + 0x34]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], ecx
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0xa
mov byte [ebp - 4], 1
mov dword [ecx + 0x18], 0
call fcn.00409380
mov byte [ebp - 4], 2
lea edi, [esi + 0x84]
mov dword [ebp - 0x14], edi
call fcn.004a6e1d
mov ecx, eax
test ecx, ecx
je 0x40690b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 4], eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00406050
mov byte [ebp - 4], 4
lea ebx, [esi + 0x9c]
mov dword [ebp - 0x14], ebx
call fcn.004a6e1d
mov ecx, eax
test ecx, ecx
je 0x40690b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx + 4], eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.00406050
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0xa
mov dword [esi + 0xcc], 0
mov dword [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0
mov dword [esi + 0xdc], 0
mov dword [esi + 0xe0], 0xa
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf8], 0xa
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0
mov dword [esi + 0x104], 0
mov dword [esi + 0x108], 0
mov byte [ebp - 4], 0xa
mov ecx, edi
mov dword [esi + 0x134], 0
mov dword [esi + 0x138], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0xb0], 0
call fcn.00406050
mov dword [esi + 0x98], 0
mov eax, esi
mov dword [esi + 0x11c], 0
mov dword [esi + 0x120], 0x82
mov dword [esi + 0x110], SysReAllocStringLen
mov dword [esi + 0x12c], 0
mov dword [esi + 0x130], 0
mov dword [esi + 0x128], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405000
int3
Function at 0x40bea0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
push esi
mov dword [ebp - 8], eax
call fcn.0040c540
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bedc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x2dc6c0
jg 0x40bf65
test edi, edi
jne 0x40bf08
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 1]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [edi + 2]
push eax
push 1
call fcn.005fc249
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40bf65
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40bf5c
cmp dword [ebp - 4], edi
jne 0x40bf5c
mov ecx, dword [ebp - 8]
push edi
push ebx
call fcn.0040bf80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.005faa7c
add esp, 4
mov eax, 1
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
call fcn.005faa7c
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40e2e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40e2eb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x40e3a7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x65a308]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x65a308]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x65a308]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x65a308]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x65a308]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x65a308]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x65a308]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x65a308]
sub edi, 1
jne 0x40e300
pop edi
test esi, esi
je 0x40e3ca
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x65a308]
sub esi, 1
jne 0x40e3b0
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x40f010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611421
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x69301c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004a6e1d
mov ecx, eax
test ecx, ecx
je 0x40f0e5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
mov dword [ebp - 4], 0
call fcn.004a6e1d
mov ecx, eax
test ecx, ecx
je 0x40f0ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xa
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0xa
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040f190
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405000
push 0x80004005
call fcn.00405000
int3
Function at 0x410d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
test esi, esi
je 0x410dbd
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x410da4
sub edx, ecx
mov ecx, dword [ebp + 0xc]
sar edx, 1
push edx
push esi
call fcn.00405050
mov eax, dword [ebx]
test eax, eax
jne 0x410dcb
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push ecx
xor edi, edi
mov dword [ebp - 4], 1
push edi
lea ecx, [ebp - 4]
push ecx
push edi
push str.sLangFile
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x410e0d
test eax, eax
jne 0x410e7b
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x410e1f
cmp eax, 7
je 0x410e1f
cmp eax, 2
jne 0x410e7b
lea eax, [ecx + 2]
push eax
push 1
call fcn.005fc249
mov esi, eax
add esp, 8
test esi, esi
je 0x410e7b
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push str.sLangFile
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410e72
mov edx, esi
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x410e54
mov ecx, dword [ebp + 0xc]
sub edx, edi
sar edx, 1
push edx
push esi
call fcn.00405050
mov edi, 1
push esi
call fcn.005faa7c
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x410f40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 4]
test eax, eax
je 0x410f69
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x410f9e
push dword [ebx + 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call edi
push dword [ebx + 0x5c]
call edi
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
lea eax, [ebx + 0xc]
push eax
push 0
push ebx
push 0x410fd0
push 0
push 0
call fcn.005fc8dd
add esp, 0x18
mov dword [ebx + 4], eax
test eax, eax
jne 0x410fb0
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x41c430
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0xcc
je 0x41c45a
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x190]
cmp byte [eax + 8], 0
je 0x41c4e3
mov ecx, dword [esi + 0x78]
lea ebx, [esi + 0x78]
nop dword [eax]
cmp ecx, dword [esi + 0x60]
jae 0x41c4b6
mov eax, dword [esi + 8]
mov edi, ecx
test eax, eax
je 0x41c497
mov dword [eax + 4], ecx
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
mov edi, dword [ebx]
add esp, 4
mov eax, dword [esi + 0x194]
push 0
push ebx
push 0
mov eax, dword [eax + 4]
push esi
call eax
mov ecx, dword [ebx]
add esp, 0x10
cmp ecx, edi
je 0x41c4f9
cmp ecx, dword [esi + 0x60]
jb 0x41c475
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
xor ecx, ecx
mov eax, dword [esi + 0x190]
add esp, 8
cmp byte [eax + 8], cl
jne 0x41c470
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x41c431
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0xcc
je 0x41c45a
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x190]
cmp byte [eax + 8], 0
je 0x41c4e3
mov ecx, dword [esi + 0x78]
lea ebx, [esi + 0x78]
nop dword [eax]
cmp ecx, dword [esi + 0x60]
jae 0x41c4b6
mov eax, dword [esi + 8]
mov edi, ecx
test eax, eax
je 0x41c497
mov dword [eax + 4], ecx
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
mov edi, dword [ebx]
add esp, 4
mov eax, dword [esi + 0x194]
push 0
push ebx
push 0
mov eax, dword [eax + 4]
push esi
call eax
mov ecx, dword [ebx]
add esp, 0x10
cmp ecx, edi
je 0x41c4f9
cmp ecx, dword [esi + 0x60]
jb 0x41c475
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
xor ecx, ecx
mov eax, dword [esi + 0x190]
add esp, 8
cmp byte [eax + 8], cl
jne 0x41c470
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret