joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434a90
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov esi, ecx
push 2
push eax
mov word [esi], 0
mov byte [esi + 2], al
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
mov byte [esi + 2], al
call edi
test al, 0xfe
je 0x434ac0
or byte [esi], 0x18
push 0x12
call edi
test al, 0xfe
je 0x434acb
or byte [esi], 6
push 0x11
call edi
test al, 0xfe
je 0x434ad6
or byte [esi], 1
push 0x14
call edi
test al, 1
je 0x434aef
mov al, byte [esi + 2]
or al, 0x20
cmp al, 0x61
jl 0x434aef
cmp al, 0x7a
jg 0x434aef
xor word [esi], 0x18
mov al, byte [esi + 2]
mov cl, al
and cl, 0xdf
cmp cl, 0x41
jb 0x434b24
cmp cl, 0x5a
ja 0x434b24
test byte [esi], 0x18
je 0x434b15
and eax, 0xdf
pop edi
mov byte [esi + 2], al
mov eax, esi
pop esi
ret 4
movsx eax, al
or al, 0x20
pop edi
mov byte [esi + 2], al
mov eax, esi
pop esi
ret 4
test byte [esi], 0x18
je case.0x434b44.60
movsx eax, al
add eax, 0xffffffd9
cmp eax, 0x39
ja case.0x434b44.60
xor ecx, ecx
mov cl, byte [eax + 0x434c8c]
jmp dword [ecx*4 + 0x434c34]
mov byte [esi + 2], 0x7e
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x21
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x40
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x23
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x24
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x25
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x5e
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x26
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x2a
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x28
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x29
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x5f
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x2b
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x7c
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x7b
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x7d
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x3a
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x22
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x3c
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x3e
mov eax, esi
pop edi
pop esi
ret 4
mov byte [esi + 2], 0x3f
mov eax, esi
pop edi
pop esi
ret 4
Function at 0x43b6e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x461860
cmp edx, dword [eax]
je 0x43b70b
add eax, 8
inc ecx
cmp eax, 0x4618f0
jl 0x43b6fc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x461860]
jne 0x43b839
mov eax, dword [0x473824]
cmp eax, 1
je 0x43b813
test eax, eax
jne 0x43b73c
cmp dword [0x46112c], 1
je 0x43b813
cmp edx, 0xfc
je 0x43b839
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43b773
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00439a70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00439b60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43b7b6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00439b60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45fd74
push edi
call fcn.0043e4f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00439a70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00439a80
lea eax, [ebp - 0xa0]
push 0x457fac
push eax
call fcn.00439a80
push dword [esi + 0x461864]
lea eax, [ebp - 0xa0]
push eax
call fcn.00439a80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0043e45f
add esp, 0x2c
pop edi
jmp 0x43b839
lea eax, [ebp + 8]
lea esi, [esi + 0x461864]
push 0
push eax
push dword [esi]
call fcn.00439b60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x445780
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00437d90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x44584b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x44584b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4457fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x445809
or bh, 8
and edi, 0x8000000
je 0x445824
mov eax, dword [0x4754bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x44584b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x445c4b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x445c6f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x445c8a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x44d30c
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 0x44d33a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44d358
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044d272
jmp 0x44d358
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44d358
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0044d272
test edi, edi
mov eax, edi
jne 0x44d342
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10001852
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x100026c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10001852
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10005db0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001d77f
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10075008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 0
push 0x10005d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10005df3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
call fcn.1001071d
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, eax
push 0x10076688
push 0x10005690
movups xmmword [eax], xmm0
call fcn.10008000
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x10076820]
mov dword [ebp - 0x10], eax
cmp dword [0x10076824], ecx
je 0x10005e4a
mov dword [ecx], eax
mov eax, dword [0x10076820]
add eax, 4
mov dword [0x10076820], eax
jmp 0x10005e59
lea eax, [ebp - 0x10]
push eax
push ecx
call fcn.10008250
mov eax, dword [0x10076820]
mov eax, dword [eax - 4]
cmp byte [eax + 0xc], 0
jne 0x10005e76
push 0
push 0x100250f0
push 0x100254e8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push 0
push 0
push 0x10005bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10005ea0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10006bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10075008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10076658]
push ebx
mov ebx, dword [ebp + 8]
push esi
cmp dword [eax + 0x18], 0xffffffff
push edi
mov dword [ebp - 0x10], eax
je 0x10006c8d
mov edi, dword [ebp + 0xc]
lea eax, [edi + 8]
push eax
mov dword [ebp - 0xc], eax
call fcn.10010bbc
mov esi, eax
add esp, 4
test esi, esi
je 0x10006c8d
mov dword [esi], 0xa11ce
lea eax, [esi + 8]
mov dword [esi + 4], edi
test edi, edi
je 0x10006c44
test eax, eax
je 0x10006c34
push edi
test ebx, ebx
je 0x10006c29
push ebx
push eax
call fcn.10013ab0
add esp, 0xc
jmp 0x10006c44
push 0
push eax
call fcn.10011e60
add esp, 0xc
call fcn.100142ac
mov dword [eax], 0x16
call fcn.100141d2
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], 0
push esi
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x18]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call fcn.10010718
add esp, 4
test edi, edi
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010707
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10010707
mov esp, ebp
pop ebp
ret 8
Function at 0x10006cb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001d858
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10075008]
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 ecx, ecx
mov esi, dword [0x10076658]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x10006d9a
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ecx
mov byte [ebp - 0x24], cl
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
push ecx
push 8
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
push ecx
push eax
call ebx
test eax, eax
je 0x10006d97
push dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call edi
cmp dword [ebp - 0x2c], 0xa11ce
jne 0x10006d97
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
mov ecx, eax
call fcn.10005f20
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push dword [esi + 0x18]
call ebx
test eax, eax
je 0x10006d97
push dword [esi + 0x18]
call edi
mov esi, dword [ebp - 0x1c]
mov edx, esi
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10006d77
mov ecx, dword [ebp - 0x30]
sub edx, edi
sar edx, 1
push edx
push esi
call fcn.10004cb0
mov ecx, dword [ebp - 0x1c]
mov bl, 1
jmp 0x10006d9c
mov ecx, dword [ebp - 0x1c]
xor bl, bl
test ecx, ecx
je 0x10006dc9
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10006dbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006de9
push edx
push ecx
call fcn.10010bae
add esp, 8
mov al, bl
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.10010707
mov esp, ebp
pop ebp
ret 4
call fcn.100141e2
int3
Function at 0x100074c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10075008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10007557
push 0
lea ecx, [ebp - 8]
mov byte [ebp - 0xc], 0
push ecx
push 8
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], 0
push ecx
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007557
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebp - 0x14], 0xa11ce
jne 0x10007557
push ebx
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.10005f20
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007557
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010707
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.10010707
mov esp, ebp
pop ebp
ret 4

Function at 0x10007570
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10075008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
mov edi, ecx
push eax
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [edi + 0x14], 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0xc
jb 0x100075cc
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 1
push 0xff
push 0
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007630
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x10007630
push 0
push 0
push esi
push 0x10007650
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10007630
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.10007570
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010707
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.10010707
mov esp, ebp
pop ebp
ret
Function at 0x10008000
Capabilities:
Allocate or change rwx memory
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10075008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
push edi
lea ecx, [esi + 8]
mov byte [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], eax
call fcn.10007de0
xor al, al
cmp dword [esi + 4], 0
mov byte [ebp - 9], al
jne 0x10008078
mov edi, dword [esi + 8]
xor eax, eax
nop word [eax + eax]
mov cl, byte [edi + eax - 5]
cmp cl, 0x90
je 0x1000805e
cmp cl, 0xcc
jne 0x10008099
inc eax
cmp eax, 5
jb 0x10008050
mov al, 1
mov dl, al
mov byte [ebp - 9], al
mov ecx, edi
call fcn.10007e80
mov dword [esi + 4], eax
mov al, byte [ebp - 9]
mov ecx, dword [esi + 4]
test al, al
je 0x1000809d
cmp ecx, 2
jae 0x100080a2
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010707
mov esp, ebp
pop ebp
ret 0x10
xor al, al
jmp 0x10008066
cmp ecx, 5
jb 0x10008084
push 0x40
push 0x1000
lea eax, [ecx + 5]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
test eax, eax
je 0x10008084
mov eax, dword [esi + 4]
mov ebx, 5
mov dl, byte [ebp - 9]
mov edi, 2
mov ecx, dword [esi + 8]
test dl, dl
cmove edi, ebx
lea ebx, [eax + 5]
cmove ebx, eax
lea eax, [ecx - 5]
mov dword [ebp - 0x10], ebx
cmove eax, ecx
lea ecx, [ebp - 8]
push ecx
push 0x40
push ebx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10008084
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi]
mov dword [ecx], eax
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
push dword [esi + 8]
call fcn.10001860
mov ecx, dword [esi]
add esp, 8
mov eax, dword [esi + 4]
mov byte [ecx + eax], 0xe9
mov ecx, dword [esi + 8]
mov edx, dword [esi]
sub ecx, edx
mov eax, dword [esi + 4]
sub ecx, 5
cmp byte [ebp - 9], 0
mov dword [eax + edx + 1], ecx
mov eax, dword [esi + 8]
je 0x1000814e
mov byte [eax - 5], 0xe9
mov ecx, dword [esi + 8]
mov eax, dword [ebp + 8]
sub eax, ecx
mov dword [ecx - 4], eax
mov ecx, 0xf9eb
mov eax, dword [esi + 8]
mov word [eax], cx
jmp 0x1000815f
mov byte [eax], 0xe9
mov ecx, dword [esi + 8]
mov eax, dword [ebp + 8]
sub eax, ecx
sub eax, 5
mov dword [ecx + 1], eax
cmp edi, dword [esi + 4]
jae 0x10008171
mov eax, dword [esi + 8]
mov byte [edi + eax], 0x90
inc edi
cmp edi, dword [esi + 4]
jb 0x10008164
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov eax, esi
je 0x10008086
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0xc], 1
xor ecx, ebp
pop esi
pop ebx
call fcn.10010707
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405a3c
Capabilities:
Encode data using xor

Disassembly:
int1
add eax, 0x5d7157ec
add eax, 0x37f21678
mov ebx, esi
adc esp, ecx
pop esi
mov word [edi + 0x7a0bbd22], gs
xlatb
mov bh, 0x5d
xor ah, bh
push ds
test eax, 0xb8ea18f9
fidiv word [0x33d7c87c]
mov eax, dword [0x99e69d45]
clc
test dword [esi - 0x776cbe1c], eax
jne 0x405a2b
mov dword [0xb531a76e], eax
shr esp, cl
in al, dx
and dword [edx], edi
xor byte [ecx - 0x44], dl
xor ebx, dword [esi]
push esp
js 0x405a7c
add esi, dword [ebx]
pop edx
in eax, dx
mov eax, 0x2384a6d8
jbe 0x405ace
cdq
xor dword [0xa137dd9], 0xffffffdb
or bl, bl
imul esi, eax, 0x3c
and dl, byte [ecx - 0x35]
popal
in eax, dx
mov ch, 0x24
je 0x405a25
rcr bl, 1
ljmp 0xefb4
push es
mov bh, 0x8d
insb byte es:[edi], dx
adc dh, byte [ebp - 0x14]
call 0x5fb3c0fc
xlatb
in eax, 0xf6
adc edi, ecx
scasd eax, dword es:[edi]
invalid

Function at 0x4061e8
Capabilities:
Encode data using xor

Disassembly:
loopne 0x40616c
push es
adc al, 0x58
sub ch, byte [ecx - 0xe]
movsd dword es:[edi], dword [esi]
jo 0x40620d
xchg esp, eax
or dl, byte [eax - 0x77e8120c]
insd dword es:[edi], dx
invalid
xlatb
xor eax, 0xd91c3ad9
stosb byte es:[edi], al
out 0x27, al
inc eax
push edx
jns 0x40622d
lds ebx, [edi + 0xf229199]
sti
cli
das
jg 0x406236
imul eax, esp, 0x52
sub dword [ebx + esi*4 - 0x5f], edx
jae 0x4061fc
sal dword [edi - 0x44169fc8], 1
mov eax, 0xbcaac223
add dh, byte [edx]
sti
sub al, byte [esi + 0x73213ed2]
mov eax, esi
ja 0x4061d4
pushal
jmp 0xc2641ace
adc cl, dh
inc eax
add esp, dword [edx + 0x3c209714]
enter 0x71bc, 0xfffffffffffffffa
mov esp, 0x3fd18055
mov esp, 0x55bcfa71
adc cl, 0x3f
invalid
retf

Function at 0x409244
Capabilities:
Encode data using xor

Disassembly:
enter 0x73d3, 0x6c
xchg esi, eax
mov ss, word [esi - 0x29]
std
jmp 0x620018bd
leave
xchg ecx, eax
xchg byte [ebp - 0x59dcc1e1], bh
das
sub eax, dword [ebx + 0x75]
jne 0x4091d3
out dx, eax
push esi
and eax, 0x3b5e6ceb
lodsd eax, dword gs:[esi]
cmp al, 0x57
das
call 0x74519e73
sub al, 0xb0
adc eax, 0x91724e92
invalid
inc edx
jb 0x4091f2
les esp, [ecx + ebp*8 - 0x6c8a1d0b]
push 0xd9af937b
out dx, eax
imul ebx, dword [eax - 0x56], 0x34e063de
and eax, 0xa5266739
aad 0x6f
mov ch, 0x7b
sub dh, byte [ebx - 0x40b2d6d5]
inc edi
jmp 0xe5fc9b0e
Function at 0x40ae1c
Capabilities:
Encode data using xor

Disassembly:
mov dl, 9
adc ebp, dword [esi + 0x7a]
sbb edi, dword [edx + edi*2]
and eax, 0x64b77504
loop 0x40ae9a
fdivr qword [edi + 0x75]
out dx, al
jl 0x40ae55
jne 0x40ae1e
xor ecx, dword [edi]
cdq
pop ebx
and esi, eax
cmc
pop edi
and eax, 0x913487ef
mov ebx, dword [edi]
push edx
jae 0x40ae2c
ret 0xfa8c
mov edx, esi
push 0x33dd672a
dec esi
push edx
aaa
mov esi, 0x9c66393e
cmp dword [esi - 0x64], esp
cwde
sbb dword [esi], edx
mov cl, byte [edx - 6]
rcl dh, cl
fidiv word [ebx]
jne 0x40ae95
pushal
xor dword [edi - 0x67405bfd], edi
mov dl, 0xac
jns 0x40ae9b
push ss
invalid
lahf
adc al, al
frstor dword [eax - 0x17]
jmp 0x7887976c
int 0xe8
inc esi
js 0x40af03
mov edi, 0xc448dbe7
push edx
jno 0x40ae49
sub al, 0xf1
cmp dword [edx - 0x1e], esi
mov esp, 0x52f7adcf
pop esp
mov esp, 0x14f7e313
lahf
cmc
xchg esi, eax
out dx, eax
push esp
int3
mov dh, 1
imul edx, edx, 0xffffff81
and edi, dword [ecx + 0x4a]
mov edi, dword [0xf4a09547]
lahf
nop
jg 0x40af59
cld
invalid
test dl, cl
cli
push ss
dec ebp
xchg ecx, eax
inc ebp
ret 0x1efa

Function at 0x40b0a0
Capabilities:
Encode data using xor

Disassembly:
xchg dword [0x1d913fbc], edi
lds edx, [ebp + esi*2 + 0x6cb81ccd]
dec edi
jae 0x40b065
enter 0x6596, 0x4e
enter 0xffffffffffffc389, 0xffffffffffffffc8
sbb dword [edx + 0x4c44b7ed], 0x9b6996c5
imul ebx, edi, 0xf471cc92
jl 0x40b0cd
out dx, al
add esp, 0xafe3f9d9
jo 0x40b049
xchg ecx, eax
adc dword [ebp + 0x4648c31f], esp
sti
stc
sahf
and byte [edx], dh
int1
dec esp
scasb al, byte es:[edi]
dec edx
mov esp, 0x9ba2a331
insb byte es:[edi], dx
inc esi
or ebx, dword [ecx]
retf

Function at 0x40fb30
Capabilities:
Encode data using xor

Disassembly:
add byte [0x5020e9f3], 0x10
cmp ch, bh
test byte [ebx], 0x5c
test dword [eax], edi
adc byte [esi], dh
adc byte [esi], ch
sbb byte [ebp + 0x45], ah
sar dh, cl
std
add edx, dword [esi]
xor dl, ch
das
xchg byte [edi + 0x76], dh
mov byte [ebp + 0x5e], bh
jbe 0x40faa6
jge 0x40fb7e
mov esi, 0xcb69d75e
jge 0x40fb7f
cdq
test al, 0xcc
cmp byte [ebp - 0x5e], 0xf4
mov byte [0xbc748aa9], al
mov dh, byte [esp + edi*4 - 0x32]
mov dh, byte [esp + edi*4 - 0x32]
xchg edi, eax
push 0xa
inc ecx
ja 0x40fb04
xchg esi, eax
push ecx
cmp dword [edi + 0xe2ed74f], edx
les edi, [edx]
cmpsb byte [esi], byte es:[edi]
in eax, dx
cmpsb byte gs:[esi], byte es:[edi]
jmp 0x40fb1c
retf
pop ecx
invalid