joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40327d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.00401458
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.004027aa
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004027aa
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.0040115e
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4033a4
xor eax, eax
jmp 0x4033fd
test al, 0x10
je 0x4033b5
push 0x10
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or eax, 0xffffffff
jmp 0x4033fd
mov eax, dword [0x4197f4]
test eax, eax
jne 0x4033c7
push esi
call fcn.0040335a
pop ecx
jmp 0x4033fd
cmp eax, 2
jne 0x4033fa
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4033be
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_CompareFileTime]
test eax, eax
jl 0x4033be
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x4036f1
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00402771
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x403722
push esi
lea ecx, [ebp - 0x18]
call fcn.00401172
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403736
cmp ax, 0x2f
jne 0x40373f
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403765
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403758
cmp ax, 0x5c
je 0x403758
dec esi
test esi, esi
jg 0x403743
test esi, esi
je 0x403814
and word [edi + esi*2], 0
push edi
call fcn.00401b75
test eax, eax
pop ecx
je 0x403754
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
jne 0x40379c
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00403387
test eax, eax
pop ecx
pop ecx
je 0x40379c
xor esi, esi
jmp 0x403839
push edi
call fcn.00401b75
test eax, eax
pop ecx
jne 0x4037b6
push edi
push 0xc
push 1
call fcn.00408dbf
add esp, 0xc
jmp 0x403795
cmp esi, ebx
jge 0x403808
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4037ee
jmp 0x4037ed
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x4037f4
cmp ax, 0x2f
je 0x4037f4
inc esi
cmp word [edi + esi*2], cx
jne 0x4037dd
push edi
mov word [edi + esi*2], cx
call fcn.00401b75
test eax, eax
pop ecx
je 0x4037a7
cmp esi, dword [ebp - 4]
jl 0x4037ba
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403859
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403844
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403844
cmp ax, 0x7a
ja 0x403844
cmp word [ecx + 2], 0x3a
jne 0x403844
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403859
push ecx
push 0xc
push 1
call fcn.00408dbf
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404545
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00401458
push 2
mov ecx, esi
call fcn.004027aa
mov edi, dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
and word [ecx], 0
and dword [esi + 4], 0
test eax, eax
jbe 0x404598
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.004027aa
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.0040115e
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.004027aa
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.0040115e
and word [edi + eax*2], 0
add esp, 0x10
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4045ed
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x4045a8
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4045f4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x4193b4], esi
jle 0x404648
mov eax, dword [0x4193b8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.0040133e
lea eax, [ebp - 0xc]
push eax
call fcn.004041f8
mov eax, dword [0x4193b8]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x4193b4]
pop ecx
jl 0x404605
pop esi
leave
ret
Function at 0x404f67
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.00401458
lea ecx, [ebp - 0x18]
call fcn.00401458
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x404fb8
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x404fc5
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00404a97
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401370
cmp dword [ebp - 8], edi
jne 0x404ffa
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40503a
test dword [ebp + 0xc], 0x10000
jne 0x405028
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
jmp 0x404fec
xor ebx, ebx
jmp 0x405031
Function at 0x405304
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x4054b6
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x40532e
cmp ax, 0x2f
jne 0x4054b6
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
jne 0x4054b6
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404545
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405480
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401458
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401370
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.004027c2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401429
mov esi, 0x41679c
push esi
lea ecx, [ebp - 0x1c]
call fcn.004027c2
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.004027c2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401429
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004027c2
push edi
lea ecx, [ebp - 0x1c]
call fcn.004027c2
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401429
push esi
lea ecx, [ebp - 0x1c]
call fcn.004027c2
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402b20
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, ebx
pop edi
je 0x405491
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x405491
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4054bc
push dword [ebp - 0x28]
call fcn.00402ff3
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4054bd
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x408a1c
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.004071bd
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.004071da
push 1
inc edi
push edi
mov ecx, esi
call fcn.004071da
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407823
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004086eb
mov ecx, esi
mov edi, eax
call fcn.00407b90
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40c8ae
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c8d4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40c8d4
xor al, al
jmp 0x40c8f4
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00413790
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x430001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x3a90049f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, str.Xo
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x6f1816cd
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x422e44
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x422e4a
ret

Function at 0x4396a8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x439859
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404d90
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x439870
call fcn.004049ec
mov eax, ebx
call fcn.00420cec
mov edi, eax
dec edi
test edi, edi
jl 0x439760
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00420cc0
mov edx, dword [0x431e2c]
call fcn.00403a68
test al, al
je 0x43975c
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.00420cc0
lea edx, [ebp - 0x14]
call fcn.004408f4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404d90
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a60
inc esi
dec edi
jne 0x43970e
mov al, byte [0x439874]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x439880
mov eax, dword [ebp - 0xc]
call fcn.0040e1d8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404778
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.004408f4
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x439870
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.004408f4
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x439870
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x439870
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x43988c
call fcn.0040a21c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439860
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404704
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404704
lea eax, [ebp - 0x14]
call fcn.004046e0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404704
ret
Function at 0x46f4d4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
cmp eax, dword [ebp - 0x24]
jge 0x46f506
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.0046f3e8
mov dword [ebp - 0x1c], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x19], al
lea ecx, [ebp - 0x10]
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004b6f24
test al, al
je 0x46f601
mov edx, dword [ebp - 0x2c]
xor eax, eax
call fcn.0042b344
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 0x24]
call fcn.0042b280
dec eax
pop edx
sub eax, edx
jl 0x46f601
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
imul dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x30]
xor eax, eax
call fcn.0042b344
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 0x28]
call fcn.0042b280
mov edi, eax
dec edi
pop eax
sub edi, eax
jl 0x46f5f5
inc edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
lea ecx, [eax + edx*4]
xor eax, eax
mov al, byte [ecx + 2]
xor edx, edx
mov dl, byte [ebp - 0x1a]
sub eax, edx
mov esi, ebx
and esi, 0xff
imul esi
push ecx
mov ecx, 0x64
cdq
idiv ecx
pop ecx
sub byte [ecx + 2], al
xor eax, eax
mov al, byte [ecx + 1]
xor edx, edx
mov dl, byte [ebp - 0x1b]
sub eax, edx
imul esi
push ecx
mov ecx, 0x64
cdq
idiv ecx
pop ecx
sub byte [ecx + 1], al
xor eax, eax
mov al, byte [ecx]
xor edx, edx
mov dl, byte [ebp - 0x1c]
sub eax, edx
imul esi
mov esi, 0x64
cdq
idiv esi
sub byte [ecx], al
mov al, byte [ebp - 0x19]
mov byte [ecx + 3], al
inc dword [ebp - 0x14]
dec edi
jne 0x46f58b
inc dword [ebp - 0x18]
dec dword [ebp - 0x20]
jne 0x46f558
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4774f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, 0x52bd7c
test esi, esi
jne 0x47750a
xor eax, eax
jmp 0x47760c
cmp dword [ebp], 0
jne 0x477515
call fcn.00477480
xor ebx, 0xffffffff
cmp edi, 8
jb 0x4775e5
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jae 0x477521
test edi, edi
jbe 0x477607
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
ja 0x4775e9
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x51271c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor ebx, ebx
pushal
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
jne 0x512776
cmp word [eax], 0x4550
je 0x512755
cmp eax, dword [ebp - 0x10]
je 0x512776
inc eax
jmp 0x512746
add eax, 4
cmp word [eax], 0x8664
jne 0x512768
mov dword [ebp - 4], 1
jmp 0x512776
cmp word [eax], 0x14c
jne 0x512776
mov dword [ebp - 4], 2
popal
mov eax, dword [ebp - 4]
sub eax, 1
jb 0x512786
je 0x51278a
dec eax
je 0x51278e
jmp 0x512790
mov bl, 1
jmp 0x512790
mov bl, 3
jmp 0x512790
mov bl, 4
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x27c833df
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2923105
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x403340
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp + 0x1c], eax
jmp 0x4033f2
imul edx, eax, 0x1c
add eax, 1
lea edx, [ebx + edx + 0x18]
mov ecx, dword [edx]
mov esi, dword [edx + 4]
mov edi, dword [edx + 8]
mov ebp, dword [edx + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov dword [ebx + 0x701c], esi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x7030], edx
cdq
mov dword [ebx + 0x7018], ecx
shr edx, 0x16
mov ecx, dword [esp + 0x14]
add eax, edx
mov dword [ebx + 0x7020], edi
mov dword [ebx + 0x7028], ecx
and eax, 0x3ff
mov ecx, dword [esp + 0x10]
sub eax, edx
mov dword [ebx + 0x7024], ebp
mov dword [ebx + 0x702c], ecx
mov dword [ebx + 0x7034], eax
mov dword [esp], ebx
call sym._LeaveCriticalSection_4
sub esp, 4
cmp esi, 0x102
je 0x4034c0
cmp esi, 0x100
je 0x403520
cmp esi, 0x101
je 0x403540
mov ebx, dword [0x55d0d0]
mov dword [esp], ebx
call sym._EnterCriticalSection_4
mov eax, dword [ebx + 0x7034]
sub esp, 4
cmp dword [ebx + 0x7038], eax
jne 0x403350
mov dword [esp], ebx
call sym._LeaveCriticalSection_4
mov eax, dword [0x55d0c0]
sub esp, 4
or eax, dword [0x55d0bc]
jne 0x40344e
cmp dword [0x55d0c4], 0xfe
jle 0x403470
mov dword [esp], 1
call method.ege.ege_sleep_long_
mov eax, dword [0x55d0c0]
test eax, eax
je 0x4033f2
mov eax, dword [esp + 0x1c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
mov ecx, dword [0x55d518]
call method.ege::egeControlBase.draw_ege::IMAGE_
mov eax, 0x55d040
sub esp, 4
call method.ege.graphupdate_ege::_graph_setting_
mov dword [esp + 4], 0x55d518
mov dword [esp], 0x55d040
call method.ege.guiupdate_ege::_graph_setting__ege::egeControlBase_
mov dword [esp], 1
call method.ege.ege_sleep_long_
mov edx, dword [0x55d0c0]
test edx, edx
je 0x4033f2
jmp 0x40344e
movzx ebx, di
mov esi, 4
mov dword [esp], 0x11
call sym._GetKeyState_4
sub esp, 4
test ax, ax
js 0x403550
mov dword [0x55d15c], 0
mov ebp, 0x100
xor edi, edi
mov dword [esp], 0x10
call sym._GetKeyState_4
sub esp, 4
test ax, ax
js 0x403580
mov dword [0x55d158], 0
mov eax, dword [esp + 0x1c]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], edi
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
and ebp, 0x40000000
movzx ebx, di
jne 0x403531
or ebx, 0x80000
movzx ebx, bx
mov esi, 1
jmp 0x4034c8
movzx ebx, di
mov esi, 2
jmp 0x4034c8
cmp dword [0x55d15c], 1
sbb ebp, ebp
and ebp, 0xfffffe00
add ebp, 0x300
cmp dword [0x55d15c], 1
sbb edi, edi
not edi
and edi, 0x200
jmp 0x4034ed
mov ecx, dword [0x55d158]
test ecx, ecx
je 0x40350b
mov edi, ebp
jmp 0x40350b