joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409d20
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbaab
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov edx, dword [ebp + 0xc]
mov ecx, reloc.WS2_32.dll_bind
mov edi, dword [ebp + 0x10]
cmp eax, 1
jne 0x409d6a
mov ecx, accept
jmp 0x409d7e
cmp eax, 2
jne 0x409d76
mov ecx, reloc.WS2_32.dll_accept
jmp 0x409d7e
cmp eax, 3
mov ebx, ecx
cmove ecx, ebx
cmp dword [ebp + 0x14], 0x40
lea eax, [ebp - 0x240]
push eax
mov eax, 0x20119
mov dword [ebp - 0x240], esi
mov ebx, 0x20019
cmovne eax, ebx
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409db2
xor eax, eax
jmp 0x409eeb
push 0x209
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 0x208
push 0
push eax
call fcn.004a3390
add esp, 0xc
mov dword [ebp - 0x224], 1
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push edi
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409ed8
lea esi, [eax + 1]
cmp dword [ebp + 0x18], eax
je 0x409ed8
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00409c70
push esi
push 0
push 0x4d0dcc
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0
call fcn.0040a4f0
push dword [ebp - 0x22c]
inc eax
lea ecx, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.0040a9a0
push eax
lea ecx, [ebp - 0x23c]
call fcn.00404350
lea ecx, [ebp - 0x258]
call fcn.00401720
push esi
push 0
push 0x4d0dcc
lea ecx, [ebp - 0x23c]
call fcn.0040a4f0
push eax
push 0
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040a9a0
push eax
lea ecx, [ebp - 0x23c]
call fcn.00404350
lea ecx, [ebp - 0x258]
call fcn.00401720
cmp dword [ebp - 0x228], 0x10
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [ebp - 0x23c]
mov esi, eax
call fcn.00401720
mov ecx, dword [ebp - 0x240]
test ecx, ecx
je 0x409ee9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
Function at 0x409f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
push edi
xor edi, edi
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], edi
jb 0x409f4e
mov eax, dword [esi]
jmp 0x409f50
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, reloc.WS2_32.dll_bind
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x409f69
mov ecx, accept
jmp 0x409f7b
cmp eax, 2
jne 0x409f75
mov ecx, reloc.WS2_32.dll_accept
jmp 0x409f7b
cmp eax, 3
cmove ecx, ecx
cmp dword [ebp + 0x14], 0x40
lea eax, [ebp - 0x424]
push eax
mov eax, 0x20119
mov dword [ebp - 0x428], 0x20019
cmovne eax, dword [ebp - 0x428]
push eax
push 0
push edx
push ecx
mov dword [ebp - 0x424], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409fc4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
push 0x412
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 0x208
push 0
push eax
call fcn.004a3390
add esp, 0xc
mov dword [ebp - 0x420], 1
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push ebx
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a053
cmp word [ebp - 0x418], di
jne 0x40a023
xor ecx, ecx
jmp 0x40a03f
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a030
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x418]
mov ecx, esi
push eax
call fcn.004033f0
mov edi, 1
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x40a064
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
Function at 0x40aa30
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10f8
call fcn.004a1a00
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10f8], eax
cmp dword [esi + 0x14], 8
jb 0x40aa62
mov eax, dword [esi]
jmp 0x40aa64
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ac33
test al, 0x10
jne 0x40ac33
cmp dword [esi + 0x14], 8
jb 0x40aa84
mov esi, dword [esi]
push ebx
push 0
push 0
push 3
push 0
push 1
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ac14
lea eax, [ebp - 0x10f4]
push eax
call fcn.0040c1c0
push 0x1000
lea eax, [ebp - 0x1054]
push 0
push eax
call fcn.004a3390
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x10
nop
test edi, edi
je 0x40aae1
push 0
push edi
call ebx
test eax, eax
je 0x40abb1
push 0
lea eax, [ebp - 0x1058]
push eax
push 0x1000
lea eax, [ebp - 0x1054]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ab2b
mov eax, dword [ebp - 0x1058]
test eax, eax
je 0x40ab2b
push eax
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x10f4]
push eax
call fcn.0040c200
add esp, 0xc
cmp dword [ebp - 0x1058], 0
ja 0x40aad0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x10f4]
mov dword [ebp - 0xb], 0
xorps xmm0, xmm0
mov word [ebp - 7], 0
push eax
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 5], 0
call fcn.0040c110
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004a3390
push 0x3f
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c2d0
add esp, 0x20
cmp byte [ebp - 0x54], 0
jne 0x40abd4
mov esi, dword [ebp - 0x10f8]
lea eax, [ebp - 0x54]
xor ecx, ecx
push ecx
push eax
mov ecx, esi
call fcn.00406aa0
xor eax, eax
cmp dword [esi + 0x10], eax
pop ebx
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10f8]
push 0x4d0dc8
call fcn.004043d0
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40abe0
mov esi, dword [ebp - 0x10f8]
lea eax, [ebp - 0x54]
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00406aa0
xor eax, eax
cmp dword [esi + 0x10], eax
pop ebx
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10f8]
xor eax, eax
pop ebx
pop edi
cmp dword [esi + 0x10], eax
pop esi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
Function at 0x40ac50
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10f8
call fcn.004a1a00
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10f8], eax
cmp dword [esi + 0x14], 0x10
jb 0x40ac82
mov eax, dword [esi]
jmp 0x40ac84
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ae53
test al, 0x10
jne 0x40ae53
cmp dword [esi + 0x14], 0x10
jb 0x40aca4
mov esi, dword [esi]
push ebx
push 0
push 0
push 3
push 0
push 1
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ae34
lea eax, [ebp - 0x10f4]
push eax
call fcn.0040c1c0
push 0x1000
lea eax, [ebp - 0x1054]
push 0
push eax
call fcn.004a3390
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x10
nop
test edi, edi
je 0x40ad01
push 0
push edi
call ebx
test eax, eax
je 0x40add1
push 0
lea eax, [ebp - 0x1058]
push eax
push 0x1000
lea eax, [ebp - 0x1054]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ad4b
mov eax, dword [ebp - 0x1058]
test eax, eax
je 0x40ad4b
push eax
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x10f4]
push eax
call fcn.0040c200
add esp, 0xc
cmp dword [ebp - 0x1058], 0
ja 0x40acf0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x10f4]
mov dword [ebp - 0xb], 0
xorps xmm0, xmm0
mov word [ebp - 7], 0
push eax
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 5], 0
call fcn.0040c110
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004a3390
push 0x3f
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c2d0
add esp, 0x20
cmp byte [ebp - 0x54], 0
jne 0x40adf4
mov esi, dword [ebp - 0x10f8]
lea eax, [ebp - 0x54]
xor ecx, ecx
push ecx
push eax
mov ecx, esi
call fcn.00406aa0
xor eax, eax
cmp dword [esi + 0x10], eax
pop ebx
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10f8]
push 0x4d0dc8
call fcn.004043d0
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ae00
mov esi, dword [ebp - 0x10f8]
lea eax, [ebp - 0x54]
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00406aa0
xor eax, eax
cmp dword [esi + 0x10], eax
pop ebx
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10f8]
xor eax, eax
pop ebx
pop edi
cmp dword [esi + 0x10], eax
pop esi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
Function at 0x40b980
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x13c]
push 0x124
push 0
push eax
mov dword [ebp - 0x140], 0x128
call fcn.004a3390
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40ba0c
lea eax, [ebp - 0x140]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40ba05
nop dword [eax]
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004a7640
add esp, 8
test eax, eax
je 0x40ba1e
lea eax, [ebp - 0x140]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40b9e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
cmp dword [ebp + 0xc], 0
je 0x40bab6
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
push 0x4d0fec
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x138]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
Function at 0x40bad0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
jne 0x40bb00
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
push edi
push 0x228
lea eax, [ebp - 0x240]
mov dword [ebp - 0x244], 0x22c
push 0
push eax
call fcn.004a3390
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bb44
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x244]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40bc1e
nop dword [eax]
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.004aad31
add esp, 8
test eax, eax
je 0x40bb8a
lea eax, [ebp - 0x244]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40bb60
jmp 0x40bc1e
cmp dword [ebp + 0xc], 0
mov ebx, 1
je 0x40bc1e
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
push 0x4d0fec
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x23c]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a10e1
mov esp, ebp
pop ebp
ret

Function at 0x40c1c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
pop ebp
ret
Function at 0x40cae0
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str.GetNativeSystemInfo
push str.kernel32.dll
movaps xmmword [ebp - 0x40], xmm0
movaps xmmword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cb38
lea ecx, [ebp - 0x40]
push ecx
call eax
jmp 0x40cb42
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x40]
cmp ax, 6
je 0x40cb6a
cmp ax, 0xa
je 0x40cb6a
cmp ax, 9
je 0x40cb6a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x40d190
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbd4a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0049fcf8
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x40d250
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004a4f5d
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x4f4d50
push eax
call fcn.004a29c5
push edi
push esi
call fcn.004a036f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret 4
Function at 0x4122f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004ac77a
mov ebx, dword [ebp + 0x10]
add esp, 4
mov eax, ebx
sub eax, 0x113
je 0x412469
sub eax, 0x6d6
je 0x41243e
sub eax, 1
jne 0x412445
test esi, esi
je 0x412480
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub eax, 0x6a94b199
cmp dword [ebp + 0x14], eax
jne 0x412480
movaps xmm0, xmmword [str.CheckRemoteDebug]
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov word [ebp - 0x14], ax
mov byte [ebp - 0x2e], al
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], 0
push eax
mov dword [ebp - 0x2c], 0x65004b
mov dword [ebp - 0x28], 0x6e0072
mov dword [ebp - 0x24], 0x6c0065
mov dword [ebp - 0x20], 0x320033
mov dword [ebp - 0x1c], 0x64002e
mov dword [ebp - 0x18], 0x6c006c
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0x50726567
mov dword [ebp - 0x34], 0x65736572
mov word [ebp - 0x30], 0x746e
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4123e1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x4c], 0
jne 0x41241f
call fcn.004ac759
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0xa
jge 0x41241f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x74697845
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xc], 0x636f7250
push eax
mov dword [ebp - 8], 0x737365
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x412434
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
jmp 0x412480
mov ecx, edi
call fcn.004126d0
push esi
push dword [ebp + 0x14]
push ebx
push dword [ebp - 0x4c]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0x14]
cmp esi, 0x64
jne 0x412478
mov ecx, edi
call fcn.004124a0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a10e1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4124a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc298
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x28]
mov dword [ebp - 0x18], 1
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
mov dword [ebp - 4], 0
test eax, 0xfffffffc
je 0x4125a0
mov dl, byte [ebp - 0x14]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
mov byte [ebp - 0x14], dl
lea edx, [ebp - 0x14]
push edx
mov edx, eax
sub edx, ecx
sar edx, 2
push edx
push eax
push ecx
call fcn.00412020
mov eax, dword [ebx + 0x1c]
add esp, 0x10
mov eax, dword [eax]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
jb 0x412550
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
cmp eax, edi
jbe 0x412585
mov eax, dword [ebx + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub eax, 0x6a94b199
push eax
push 0x7ea
push dword [ebx + 0xc]
call esi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
lea edx, [eax + 4]
sub ecx, edx
push ecx
push edx
push eax
call fcn.004a4260
add esp, 0xc
add dword [ebx + 0x20], 0xfffffffc
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
test eax, 0xfffffffc
je 0x4125a0
push 0
push 0
push 0x7e9
push dword [ebx + 0xc]
call esi
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret