joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4120f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestPoisonArea.exe_gMozillaPoisonSize], eax
call fcn.0040ea31
pop ecx
mov ecx, dword [sym.TestPoisonArea.exe_gMozillaPoisonSize]
mov dword [sym.TestPoisonArea.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x412128
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestPoisonArea.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x401350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401369
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4013a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4013a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401390
cmp esi, eax
jb 0x4013aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401560
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x20006
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401581
xor eax, eax
pop esi
pop ecx
ret
test esi, esi
je 0x4015b2
cmp byte [esi], 0
je 0x4015b2
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401590
sub eax, edx
add eax, 1
push eax
mov eax, dword [esp + 8]
push esi
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4015be
mov ecx, dword [esp + 4]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
add esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4015e0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
cmp dword [0x44f0f4], 0
jne 0x40167c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401620
push 0x10
push str.Shutdown_error
push 0x43ca0c
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40167c
push 0x10
push str.Shutdown_error
push 0x43c9cc
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x14
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4016a3
push 0x10
push str.Shutdown_error
push 0x43c9bc
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x14
ret
mov eax, 1
add esp, 0x14
ret
Function at 0x402720
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x439128
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44dc54]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041317f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402761
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x40278b
push esi
lea ecx, [esp + 0x14]
call fcn.00402500
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 2
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4027e9
lea edx, [esp + 0xc]
push edx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4027e9
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x2c]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
neg esi
sbb esi, esi
push ecx
add esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40283c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x405610
Capabilities:
Check os version

Disassembly:
push esi
push 0x114
mov esi, ecx
push 0
push esi
call fcn.00423a10
add esp, 0xc
push esi
mov dword [esi], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esi + 0x10]
cmp eax, 2
sete cl
cmp eax, 2
mov byte [esi + 0x114], cl
jne 0x40565b
mov ecx, dword [esi + 4]
cmp ecx, 5
ja 0x405654
jne 0x40565b
cmp dword [esi + 8], 1
jb 0x40565b
mov ecx, 1
jmp 0x40565d
xor ecx, ecx
cmp eax, 2
mov byte [esi + 0x115], cl
jne 0x40567d
cmp dword [esi + 4], 6
jbe 0x40567d
mov eax, 1
mov byte [esi + 0x116], al
mov eax, esi
pop esi
ret
xor eax, eax
mov byte [esi + 0x116], al
mov eax, esi
pop esi
ret

Function at 0x405ca0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x44dc54]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x405ce6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004237e7
add esp, 0x108
ret
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.004058a0
add esp, 0x18
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004237e7
add esp, 0x108
ret

Function at 0x406e80
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x439378
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x44dc54]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x406ed9
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
mov edi, dword [esp + 0x30]
xor esi, esi
test edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
je 0x406ef9
push edi
lea ecx, [esp + 0x14]
call fcn.00406d80
mov esi, dword [esp + 0x14]
test esi, esi
je 0x406f34
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x406f48
test edi, edi
jle 0x406f23
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x406f23
mov word [eax], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00406e00
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
push 0xffffffffffffffff
push esi
mov esi, dword [esp + 0x34]
push edi
lea edx, [esp + 0x18]
push esi
push edx
mov dword [esp + 0x20], 0
call fcn.004245eb
mov eax, esi
add esp, 0x14
lea edx, [eax + 2]
jmp 0x406f70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406f70
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
call fcn.00406e00
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x4079fa
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407a52
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x43ccea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407a45
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x407a54
xor eax, eax
pop esi
leave
ret 4

Function at 0x408154
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x44dc54]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x408191
push 0x43d948
push 4
push eax
call fcn.00424210
push eax
call fcn.004012a0
add esp, 0x10
jmp 0x4081a3
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40820e
push edi
call fcn.00425ca3
mov edi, dword [eax]
call fcn.00425ca3
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00425c49
add esp, 0x18
mov ebx, eax
call fcn.00425ca3
cmp dword [eax], 0
je 0x4081ee
call fcn.00425ca3
push dword [eax]
call fcn.004080df
pop ecx
jmp 0x4081f5
call fcn.00425ca3
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40820e
cmp ebx, esi
jae 0x40820e
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x408210
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004237e7
leave
ret
Function at 0x40b11a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40b160
call fcn.0040c742
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40b160
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40b1a3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40b18c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40b18c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40b1a0
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4118a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4118e8
call fcn.0040c742
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4118e8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x411903
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041145f
test ebx, ebx
mov esi, eax
je 0x411901
test edi, edi
je 0x411901
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x413bfc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x413c2a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x413c48
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00413b66
jmp 0x413c48
mov eax, dword [esi + 0x14]
test eax, eax
je 0x413c48
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00413b66
test edi, edi
mov eax, edi
jne 0x413c32
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x450db8]
test ecx, ecx
je 0x413d0b
jmp 0x413bfb
ret 8

Function at 0x4237e7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44dc54]
jne 0x4237f1
repz ret
jmp fcn.0042a93c
Function at 0x424683
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4246b0
call fcn.00425cb6
mov dword [eax], esi
call fcn.00425ca3
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042ac69
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x42468c
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4246df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425cc9
pop ecx
call fcn.00425ca3
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x424706
test al, 1
je 0x424706
test byte [esp + 0xc], 2
je 0x424706
call fcn.00425cb6
mov dword [eax], 5
call fcn.00425ca3
mov dword [eax], 0xd
jmp 0x4246d6
xor eax, eax
pop esi
ret

Function at 0x424d44
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x424d71
call fcn.00425cb6
mov dword [eax], esi
call fcn.00425ca3
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042ac69
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x424d4d
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x424da0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425cc9
pop ecx
call fcn.00425ca3
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x424dc7
test al, 1
je 0x424dc7
test byte [esp + 0xc], 2
je 0x424dc7
call fcn.00425cb6
mov dword [eax], 5
call fcn.00425ca3
mov dword [eax], 0xd
jmp 0x424d97
xor eax, eax
pop esi
ret
Function at 0x4288e7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44ddf0]
je 0x428902
inc edi
cmp edi, 0x17
jb 0x4288f3
cmp edi, 0x17
jae 0x428a82
push ebp
push 3
call fcn.004321af
cmp eax, 1
pop ecx
je 0x428a4e
push 3
call fcn.004321af
test eax, eax
pop ecx
jne 0x428936
cmp dword [0x44dc34], 1
je 0x428a4e
cmp ebx, 0xfc
je 0x428a81
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x451118
push ebp
call fcn.00423cac
add esp, 0xc
test eax, eax
je 0x42896c
push esi
push esi
push esi
push esi
push esi
call fcn.0042ab6d
add esp, 0x14
push 0x104
mov esi, 0x451131
push esi
push 0
mov byte [0x451235], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4289b0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00423cac
add esp, 0xc
test eax, eax
je 0x4289b0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042ab6d
add esp, 0x14
push esi
call fcn.0042baa0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4289f5
push esi
call fcn.0042baa0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45142c
push 0x440d24
sub ecx, eax
push ecx
push eax
call fcn.004240f6
add esp, 0x14
test eax, eax
je 0x4289f5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042ab6d
add esp, 0x14
jmp 0x4289f7
xor esi, esi
push 0x440d20
push ebx
push ebp
call fcn.00424085
add esp, 0xc
test eax, eax
je 0x428a17
push esi
push esi
push esi
push esi
push esi
call fcn.0042ab6d
add esp, 0x14
push dword [edi*8 + 0x44ddf4]
push ebx
push ebp
call fcn.00424085
add esp, 0xc
test eax, eax
je 0x428a39
push esi
push esi
push esi
push esi
push esi
call fcn.0042ab6d
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00431ff2
add esp, 0xc
jmp 0x428a81
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x428a81
cmp ebp, 0xffffffff
je 0x428a81
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44ddf4]
push dword [esi]
call fcn.0042baa0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x431ff2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00429497
xor ebx, ebx
cmp dword [0x451c28], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4320c8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4321a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x441070
push edi
call esi
cmp eax, ebx
je 0x4321a8
push eax
call fcn.00429429
mov dword [esp], 0x441060
push edi
mov dword [0x451c28], eax
call esi
push eax
call fcn.00429429
mov dword [esp], 0x44104c
push edi
mov dword [0x451c2c], eax
call esi
push eax
call fcn.00429429
mov dword [0x451c30], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042563d
test eax, eax
pop ecx
pop ecx
je 0x432096
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ab6d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4320c8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00429429
cmp eax, ebx
pop ecx
mov dword [0x451c38], eax
je 0x4320c8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00429429
pop ecx
mov dword [0x451c34], eax
mov eax, dword [0x451c34]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43214d
cmp dword [0x451c38], ecx
je 0x43214d
push eax
call fcn.004294a0
push dword [0x451c38]
mov esi, eax
call fcn.004294a0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43214d
cmp edi, ebx
je 0x43214d
call esi
cmp eax, ebx
je 0x43211a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43211a
test byte [ebp - 0x18], 1
jne 0x43214d
lea eax, [ebp - 0x10]
push eax
call fcn.00425674
test eax, eax
pop ecx
je 0x432135
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ab6d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x432144
or dword [ebp + 0x10], 0x200000
jmp 0x432188
or dword [ebp + 0x10], 0x40000
jmp 0x432188
mov eax, dword [0x451c2c]
cmp eax, dword [ebp - 8]
je 0x432188
push eax
call fcn.004294a0
cmp eax, ebx
pop ecx
je 0x432188
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x432188
mov eax, dword [0x451c30]
cmp eax, dword [ebp - 8]
je 0x432188
push eax
call fcn.004294a0
cmp eax, ebx
pop ecx
je 0x432188
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x451c28]
call fcn.004294a0
cmp eax, ebx
pop ecx
je 0x4321a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4321aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438ba4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44dc54]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00438b39
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00423a10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x438bf3
cmp dword [ebp - 0x1c], 5
jb 0x438c0b
jmp 0x438c07
cmp dword [ebp - 0x10], 1
jne 0x438c0b
cmp dword [ebp - 0x1c], 4
ja 0x438c07
jne 0x438c0b
cmp dword [ebp - 0x18], 0
jbe 0x438c0b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x442960
call fcn.00438a2a
test eax, eax
jge 0x438c2c
mov byte [0x44f040], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004237e7
add ebp, 0x78
leave
ret
Function at 0x401330
Capabilities:
Access peb ldr_data
Check mutex on windows
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4ee1bc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53bd24]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esi], vtable.CEudRunable.0
mov byte [esi + 4], bl
mov dword [esp + 0x20], ebx
mov dword [esi], vtable.CEudDownload.0
xor eax, eax
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], ebx
mov word [esi + 0xc], ax
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push ebx
push ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
push ebx
mov byte [esi + 0x40], bl
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x3c], eax
call ebp
cmp eax, 0xb7
sete cl
mov byte [esi + 0x40], cl
lea edx, [esi + 0x44]
push edx
mov byte [esp + 0x24], 2
call fcn.00402900
push ebx
push ebx
push ebx
mov byte [esi + 0x64], bl
call edi
mov dword [esi + 0x60], eax
call ebp
cmp eax, 0xb7
sete al
mov byte [esi + 0x64], al
push 4
mov byte [esp + 0x24], 4
lea edi, [esi + 0x68]
call fcn.004cfcd6
add esp, 4
cmp eax, ebx
je 0x4013f1
mov dword [eax], edi
jmp 0x4013f3
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4