joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d86
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [ecx + 0x24]
push ebx
push esi
lea esi, [ecx + 0x24]
xor ebx, ebx
push edi
cmp dword [eax - 8], ebx
jne 0x408e1b
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push 0x7c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x2f7]
mov byte [ebp - 0x2f8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x104]
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x104]
mov ecx, esi
push eax
call fcn.004049dd
lea eax, [ebp - 0x2f8]
push eax
push 0x40
push 0x40fd30
call fcn.0040582c
mov edi, eax
add esp, 0xc
cmp edi, ebx
jne 0x408e0b
xor eax, eax
jmp 0x408e12
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
mov ecx, esi
call fcn.00404aae
mov eax, dword [esi]
mov edi, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
jl 0x408e33
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x408e43
mov eax, dword [0x413050]
mov ecx, edi
mov dword [edi], eax
push dword [esi]
call fcn.004049dd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x409b45
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
mov esi, 0x41368c
push edi
push esi
lea ecx, [ebp - 8]
call fcn.0040487d
xor ebx, ebx
push ebx
push ebx
push ebx
push 4
pop edi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push 0x84000100
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x409ba4
mov ecx, dword [ebp + 8]
push esi
call fcn.0040487d
lea ecx, [ebp - 8]
call fcn.00404851
mov eax, dword [ebp + 8]
jmp 0x409c8a
lea ecx, [ebp - 0x14]
push ebx
push ecx
lea ecx, [ebp - 4]
push ecx
push 0x20000005
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x409bc9
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
jbe 0x409c48
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x417]
mov byte [ebp - 0x418], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x418]
push 0x3e8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x409c3f
cmp dword [ebp + 0xc], ebx
je 0x409c48
lea eax, [ebp - 0x418]
test eax, eax
je 0x409c22
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x418]
push ecx
push eax
lea ecx, [ebp - 8]
call fcn.00404aae
mov eax, dword [ebp + 0xc]
add dword [ebp - 0x10], eax
sub dword [ebp - 4], eax
jne 0x409bce
jmp 0x409c48
push esi
lea ecx, [ebp - 8]
call fcn.004049dd
push dword [ebp - 0xc]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x18]
call esi
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 8]
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0xc]
jl 0x409c71
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x409c80
mov eax, dword [0x413050]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.004049dd
lea ecx, [ebp - 8]
call fcn.00404851
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40add8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [eax + 4], 0x113
mov esi, ecx
jne 0x40aead
lea edi, [eax + 8]
mov eax, dword [esi + 8]
cmp eax, dword [edi]
jne 0x40ae5c
mov ecx, dword [0x413664]
call fcn.004090e2
test al, al
je 0x40ae5c
lea eax, [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
xor edi, edi
push dword [ebp + 8]
mov dword [esi + 4], edi
mov ecx, dword [0x413664]
call fcn.004092b2
push dword [esi + 8]
push edi
call dword [sym.imp.USER32.dll_KillTimer]
push dword [ebp + 8]
mov ecx, esi
call fcn.0040aeb6
mov ecx, dword [0x413664]
push edi
call fcn.004093d9
imul eax, eax, 0x3e8
push eax
push edi
push edi
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 8], eax
jmp 0x40aea9
lea ebx, [esi + 0xc]
lea eax, [ebp + 8]
push edi
push eax
mov ecx, ebx
call fcn.0040bfe0
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x10]
je 0x40aead
push dword [eax + 0x10]
xor edi, edi
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push edi
call dword [sym.imp.USER32.dll_KillTimer]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, ebx
push eax
call fcn.0040bccb
mov al, 1
jmp 0x40aeaf
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c01a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.004019a0
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push dword [ebp + 0xc]
push ebx
call esi
push 0xf0
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp eax, ecx
mov dword [ebp - 4], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], ecx
je 0x40c072
push eax
push ebx
call esi
push eax
mov dword [ebp - 4], eax
call edi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x40c0c2
push dword [ebp + 8]
push ebx
call esi
push eax
mov dword [ebp + 8], eax
call edi
push dword [ebp + 0xc]
mov esi, eax
push esi
call fcn.0040c0e1
pop ecx
mov edi, eax
pop ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
cmp edi, esi
mov dword [ebp - 8], eax
je 0x40c0b9
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
pop ebx
je 0x40c0da
cmp dword [ebp - 0xc], 0
je 0x40c0da
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
leave
ret 0x14

Function at 0x40c484
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
neg esi
lea eax, [ecx - 0x48]
sbb esi, esi
and esi, eax
cmp byte [ecx + 0x1c], 0
je 0x40c4c7
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x40c4b8
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40c4cd
cmp dword [ebp + 0xc], 0
jne 0x40c4c7
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x40c4e4
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x48]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0x10]
push eax
call fcn.0040c788
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x40cf75
Capabilities:
Accept command line arguments

Disassembly:
push esi
mov esi, ecx
push edi
push dword [esi + 8]
push dword [esi + 4]
call fcn.0040d102
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x40cf94
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
push edi
call sub.MSVCRT.dll_strlen
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [esi + 0x10], eax
test eax, eax
pop ecx
je 0x40cfba
push edi
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov ecx, esi
call fcn.0040cff4
pop edi
pop esi
ret 4
Function at 0x40d31d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jle 0x40d34c
push esi
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jle 0x40d345
mov eax, dword [ebp + 0x10]
lea esi, [edi + eax]
mov eax, dword [ebp + 8]
mov dl, byte [esi]
add eax, ecx
xor byte [eax], dl
inc ecx
cmp ecx, dword [ebp + 0xc]
jl 0x40d336
inc edi
cmp edi, dword [ebp + 0x14]
jl 0x40d329
pop esi
pop edi
pop ebp
ret

Function at 0x40d6f1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], 0x413438
mov eax, dword [ebp - 8]
mov esi, dword [eax]
sub esi, dword [ebp + 0x10]
add esi, dword [ebp + 8]
mov al, byte [esi + 1]
mov bl, byte [esi]
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, bl
push 2
add ecx, 0xfffffffe
pop edi
cmp ecx, edi
jle 0x40d737
mov dl, byte [edi + esi]
xor dl, al
xor dl, byte [ebp - 1]
mov byte [edi + esi], dl
inc edi
inc edi
cmp edi, ecx
jl 0x40d726
add dword [ebp - 8], 4
mov byte [esi + 1], al
cmp dword [ebp - 8], 0x413560
jl 0x40d700
pop edi
pop esi
mov al, 1
pop ebx
leave
ret

Function at 0x40d782
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push eax
push 0x40d79f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
ret

Function at 0x40d9e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x40da11
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 8]
push 1
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp ebx, edi
pop esi
je 0x40da3e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
call fcn.00404851
lea ecx, [ebp + 0x10]
call fcn.00404851
lea ecx, [ebp + 0x14]
call fcn.00404851
pop edi
pop ebx
leave
ret

Function at 0x40dc22
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x2000000
push 3
push edi
push 5
push SysReAllocString
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x40dc5c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40dc5f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push edi
push 0x41368c
call fcn.004049dd
push dword [ebp + 8]
call fcn.0040dc22
mov edi, eax
pop ecx
cmp edi, 0xffffffff
je 0x40dcea
xor ebx, ebx
push ebx
push 0x2000000
push 3
push ebx
push 5
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40dcea
lea eax, [edi + 1]
push esi
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40dcdc
lea eax, [ebp - 4]
push ebx
push eax
push edi
push esi
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0xc]
push esi
mov byte [esi + edi], bl
call fcn.004049dd
push esi
call fcn.0040eb76
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
jmp 0x40dcec
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x40dcf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0x2000000
push 3
push 0
push 5
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40dd1a
xor al, al
jmp 0x40dd41
push ebx
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0x10]
and dword [ebp + 8], 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
pop ebp
ret

Function at 0x40dd44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40dd6e
xor al, al
jmp 0x40dd8c
lea eax, [ebp + 8]
push esi
push eax
mov dword [ebp + 8], esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebp
ret
Function at 0x40df70
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410ba0
push 0x40ec70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
push ebx
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0x40], bl
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x3f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x80], bl
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], ebx
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40e033
lea eax, [ebp - 0x84]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40e033
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40e033
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
push eax
push 2
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x40e052
push 0x41368c
mov ecx, dword [ebp + 8]
call fcn.0040487d
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
pop ecx
pop ecx
jmp 0x40e0f4
mov byte [ebp - 0x278], bl
push 0x7c
pop ecx
xor eax, eax
lea edi, [ebp - 0x277]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, byte [ebp - 0x31]
push eax
movzx eax, byte [ebp - 0x32]
push eax
movzx eax, byte [ebp - 0x33]
push eax
movzx eax, byte [ebp - 0x34]
push eax
movzx eax, byte [ebp - 0x35]
push eax
movzx eax, byte [ebp - 0x36]
push eax
movzx eax, byte [ebp - 0x37]
push eax
movzx eax, byte [ebp - 0x38]
push eax
movzx eax, byte [ebp - 0x39]
push eax
movzx eax, byte [ebp - 0x3a]
push eax
movzx eax, byte [ebp - 0x3b]
push eax
movzx eax, byte [ebp - 0x3c]
push eax
movzx eax, byte [ebp - 0x3d]
push eax
movzx eax, byte [ebp - 0x3e]
push eax
movzx eax, byte [ebp - 0x3f]
push eax
movzx eax, byte [ebp - 0x40]
push eax
lea eax, [ebp - 0x278]
push eax
push 0x82
push 0x410ab4
call fcn.0040582c
add esp, 0xc
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x48
or dword [ebp - 4], 0xffffffff
call fcn.0040e108
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040487d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e1ef
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov al, byte [ebp + 0xb]
push esi
push edi
mov byte [ebp - 0x10], al
push 0x4f
xor eax, eax
pop ecx
lea edi, [ebp - 0x14c]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e26f
lea eax, [ebp - 0x124]
lea ecx, [ebp + 0xc]
push eax
call fcn.0040487d
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3fa
lea ecx, [ebp + 0xc]
call fcn.00404851
lea eax, [ebp - 0x150]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e233
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040e392
lea ecx, [ebp - 0x10]
call fcn.00406e36
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x4075d3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004064c5
and dword [ebp - 4], 0
cmp dword [0x4172a0], 0
mov ebx, eax
jne 0x407684
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407735
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407735
push eax
call fcn.00406453
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4172a0], eax
call esi
push eax
call fcn.00406453
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4172a4], eax
call esi
push eax
call fcn.00406453
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4172a8], eax
call esi
push eax
call fcn.00406453
pop ecx
mov dword [0x4172b0], eax
test eax, eax
je 0x407684
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406453
pop ecx
mov dword [0x4172ac], eax
mov eax, dword [0x4172ac]
cmp eax, ebx
je 0x4076dc
cmp dword [0x4172b0], ebx
je 0x4076dc
push eax
call fcn.004064ce
push dword [0x4172b0]
mov esi, eax
call fcn.004064ce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4076dc
test edi, edi
je 0x4076dc
call esi
test eax, eax
je 0x4076d3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4076d3
test byte [ebp - 0xc], 1
jne 0x4076dc
or dword [ebp + 0x10], 0x200000
jmp 0x407715
mov eax, dword [0x4172a4]
cmp eax, ebx
je 0x407715
push eax
call fcn.004064ce
pop ecx
test eax, eax
je 0x407715
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407715
mov eax, dword [0x4172a8]
cmp eax, ebx
je 0x407715
push eax
call fcn.004064ce
pop ecx
test eax, eax
je 0x407715
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4172a0]
call fcn.004064ce
pop ecx
test eax, eax
je 0x407735
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407737
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40943e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411a08]
jne 0x409448
repz ret
jmp fcn.0040ab65
Function at 0x404950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41f6d0
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x427260]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x30]
push 0x423678
xor edi, edi
lea ecx, [esp + 0x20]
call fcn.004058c0
test eax, eax
jne 0x4049a7
cmp dword [esp + 0x34], 8
jb 0x404a8b
mov eax, dword [esp + 0x20]
push eax
jmp 0x404a83
cmp dword [esp + 0x34], 8
mov ecx, dword [esp + 0x20]
jae 0x4049b6
lea ecx, [esp + 0x20]
lea edx, [esp + 8]
push edx
call fcn.004050f0
lea eax, [esp + 8]
push eax
mov byte [esp + 0x18], 1
call fcn.00405220
mov edx, dword [esp + 8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4049f1
xor ecx, ecx
lea eax, [esp + 8]
call fcn.00405e70
mov edx, dword [esp + 8]
push 0
push edx
call fcn.0040e97a
add esp, 8
cmp eax, 0xffffffff
je 0x404a52
cmp eax, 2
je 0x404a52
mov byte [esp + 0x14], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x34], 8
jb 0x404a3f
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040e0e2
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret
mov byte [esp + 0x14], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404a77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x34], 8
jb 0x404a8b
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040e0e2
add esp, 4
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret

Function at 0x4068b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x41f248
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x427260]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00405660
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406906
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [esp + 0x14]
call fcn.00406af0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00405660
cmp dword [esp + 0x24], 8
jb 0x40694e
mov edx, dword [esp + 0x10]
push edx
call fcn.0040e0e2
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret