joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008a90
Capabilities:
Check if file exists
Create thread
Get file attributes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [0x1002d744], al
call esi
shr eax, 0xf
and al, 1
mov byte [0x1002d745], al
mov ax, word [0x1002d97a]
test ax, ax
js 0x10008c9a
push edi
movzx edi, word [0x1002d978]
mov ecx, 0x1002e78c
movzx eax, ax
push eax
call fcn.10005220
shl edi, 5
mov eax, dword [eax + 0x24]
add edi, dword [eax + 0x10]
mov eax, dword [edi + 4]
test eax, eax
je 0x10008c3e
cmp word [eax], 0
jne 0x10008b05
cmp dword [0x1002d830], 0
je 0x10008c3e
push ebx
push 0x208
push 0
push 0x1002d538
call fcn.10012240
push dword [edi + 4]
call fcn.1000ec60
mov esi, eax
push esi
mov dword [ebp - 4], esi
call fcn.1000ecc0
push 0x8000
push 0x208
push 0x1002d538
push esi
push dword [0x1002d794]
call fcn.10004050
push 0
call fcn.10015f2a
mov ebx, eax
mov ecx, edx
mov eax, dword [0x1002e35c]
add esp, 0x2c
cdq
sub ebx, eax
mov eax, dword [0x1002e360]
sbb ecx, edx
cdq
cmp ecx, edx
jl 0x10008b8b
jg 0x10008b6d
cmp ebx, eax
jbe 0x10008b8b
push 0x1002d840
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10008c3d
push 1
call fcn.100085f0
add esp, 4
cmp dword [0x1002d830], 0
jle 0x10008c58
mov ebx, dword [edi + 8]
test ebx, 0x20000000
je 0x10008c0c
mov eax, dword [edi + 4]
test ebx, 0x10000
je 0x10008bec
push eax
push dword [0x1002d794]
call fcn.10004320
push 0x8000
push 0x208
mov esi, eax
push 0x1002d538
push esi
push dword [0x1002d794]
call fcn.10004050
mov ecx, dword [0x1002d790]
add esp, 0x1c
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x14]
mov esi, dword [ebp - 4]
jmp 0x10008c0f
push 0x8000
push 0x208
push 0x1002d538
push eax
push dword [0x1002d794]
call fcn.10004050
add esp, 0x14
jmp 0x10008c0f
mov ebx, dword [ebp - 8]
and ebx, 0x40000100
cmp ebx, 0x40000100
je 0x10008c44
push 0x7f88
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [0x1002d790]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x1002d830], 0
jle 0x10008c58
test dword [edi + 8], 0x20000000
mov eax, esi
je 0x10008c5b
mov eax, dword [edi + 4]
push eax
call fcn.1000ec60
add esp, 4
mov dword [0x1002d530], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x10008d00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1002d790]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x1002d830], 3
jne 0x10008ce2
cmp byte [0x1002d83c], 0
je 0x10008c3f
push dword [0x1002b02c]
call fcn.1000ec60
add esp, 4
mov dword [0x1002d530], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x10008d00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x1000aa10
jmp 0x10008ccc
Function at 0x1000c970
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x1000c9df
push 2
push str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.1000b050
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x1000cab3
push 0x27
push str.FB0F57E0_09D0_11D2_9ADC_7CEC09C10000
push 1
push 0
push str.FastFolders_Shell_Extension
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1000cab3
test esi, esi
je 0x1000c9df
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push 0x800
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.APPID
push eax
push 1
push 0x65
push dword [0x1002d510]
mov dword [ebp - 0x10], 0x10023c68
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.1000c380
mov edi, eax
test edi, edi
js 0x1000caa2
mov esi, dword [0x1002b008]
xor edi, edi
mov eax, dword [0x1002b00c]
push ebx
cmp esi, eax
jae 0x1000ca78
nop dword [eax + eax]
mov ebx, dword [esi]
test ebx, ebx
je 0x1000ca6d
mov eax, dword [ebx + 4]
push 1
call eax
mov edi, eax
test edi, edi
js 0x1000ca89
mov eax, dword [ebx + 0x18]
push 1
call eax
push eax
push dword [ebx]
call fcn.10007f70
mov edi, eax
test edi, edi
js 0x1000ca89
mov eax, dword [0x1002b00c]
add esi, 4
cmp esi, eax
jb 0x1000ca40
test edi, edi
js 0x1000ca89
push 0
push dword [0x1002b004]
call fcn.10008330
mov edi, eax
test edi, edi
pop ebx
js 0x1000caa2
mov eax, dword [0x1002d778]
test eax, eax
je 0x1000caa2
push dword [0x1002ec84]
call eax
add esp, 4
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1000cabe
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80070005
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000cad0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x1000cb2a
push 2
push str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.1000b050
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x1000cb1f
push str.FB0F57E0_09D0_11D2_9ADC_7CEC09C10000
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test esi, esi
je 0x1000cb2a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov edi, eax
push 0x800
mov dword [ebp - 4], edi
call ebx
mov ecx, dword [0x1002d77c]
test ecx, ecx
je 0x1000cb58
call ecx
mov esi, eax
test esi, esi
js 0x1000cbf5
mov edi, dword [0x1002b008]
xor esi, esi
mov eax, dword [0x1002b00c]
cmp edi, eax
jae 0x1000cba8
nop dword [eax]
mov ebx, dword [edi]
test ebx, ebx
je 0x1000cb9d
mov eax, dword [ebx + 0x18]
push 0
call eax
push eax
push dword [ebx]
call fcn.10007f70
mov esi, eax
test esi, esi
js 0x1000cbb7
mov eax, dword [ebx + 4]
push 0
call eax
mov esi, eax
test esi, esi
js 0x1000cbb7
mov eax, dword [0x1002b00c]
add edi, 4
cmp edi, eax
jb 0x1000cb70
test esi, esi
js 0x1000cbb7
push 0
push dword [0x1002b004]
call fcn.100084f0
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov edi, dword [ebp - 4]
test esi, esi
js 0x1000cbf5
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.APPID
push eax
push 0
push 0x65
push dword [0x1002d510]
mov dword [ebp - 0x10], 0x10023c68
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.1000c380
mov esi, eax
push edi
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d4d0
Capabilities:
Log keystrokes via polling

Disassembly:
push edi
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x8000
test di, ax
jne 0x1000d4f4
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
jne 0x1000d4f4
xor al, al
pop edi
ret
mov al, 1
pop edi
ret
Function at 0xde8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xde81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xde807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xde806a
add dl, dl
jne 0xde8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xde80dc
xor eax, eax
add dl, dl
jne 0xde8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xde817d
add dl, dl
jne 0xde80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xde80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xde80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xde80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xde80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xde8075
mov eax, 1
add dl, dl
jne 0xde80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xde80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xde80e1
sub eax, ebx
mov ebx, 1
jne 0xde8128
mov ecx, 1
add dl, dl
jne 0xde810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xde8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xde8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xde8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xde813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xde814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xde8136
cmp eax, 0x7d00
jae 0xde816d
cmp eax, 0x500
jb 0xde8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xde8075
cmp eax, 0x7f
ja 0xde8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xde8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xde819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xde8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401250
Capabilities:
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x4c]
sub esp, 0xa4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x404470
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x404320
call sym._CoCreateInstance_20
sub esp, 0x14
test eax, eax
js 0x401371
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp - 0x4c]
xor ebx, ebx
mov word [ebp - 0x48], dx
xor edx, edx
mov word [ebp - 0x38], cx
mov word [ebp - 0x18], dx
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax]
mov word [ebp - 0x28], bx
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0x10], ecx
call dword [edx + 0x28]
sub esp, 0x44
test eax, eax
js 0x401368
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x1c]
mov ebx, eax
mov eax, dword [ebp - 0x4c]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x18]
sub esp, 4
test ebx, ebx
js 0x401378
mov ebx, dword [ebp - 4]
leave
ret
test byte [0x403000], 1
jne 0x4013b0
xor eax, eax
jmp 0x40135e
test byte [0x403000], 1
je 0x401371
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.GetFolder_failed:__08lx_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x40135e
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Connect_failed:__08lx_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x40135e
Function at 0x402570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4025cb
cmp byte [esi + ebx - 1], 0xa
je 0x40259f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x406084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x406094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402ce0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x406094]
movzx eax, al
bt eax, esi
jae 0x402d40
mov ecx, dword [0x406084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402be6
test byte [0x403018], 8
jne 0x402c80
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x403028], 8
jne 0x402c30
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402bb5
cmp esi, 3
jbe 0x402bf0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x405554]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402bb5
mov ecx, dword [0x406094]
test ecx, ecx
je 0x402d20
mov dword [esp], 0x403028
call dword [0x406094]
test al, 8
je 0x402b8c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x402b8c
mov ebx, dword [0x406094]
test ebx, ebx
je 0x402d00
mov dword [esp], 0x403018
call dword [0x406094]
test al, 8
je 0x402b79
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x402b7f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x402b40
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x402c8a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x402c3e
mov eax, 0xffffffff
jmp 0x402be6
Function at 0x402ea0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x100053a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x404
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x200
push esi
push 0
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
je 0x10005487
push 0
push 0
push 0
push 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10005480
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
test eax, eax
je 0x10005477
lea esi, [eax + 0x4e]
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
xor ebx, ebx
lea edi, [edi + eax*2]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
je 0x10005468
mov ecx, esi
test bl, 1
jne 0x10005453
mov al, byte [esi]
inc esi
mov byte [ebx + edi], al
jmp 0x10005457
mov byte [ebx + edi], 0
push ecx
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
add eax, eax
cmp ebx, eax
jb 0x10005446
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100054a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x10], edx
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], ebx
call fcn.10007ce0
jmp loc.10016000
Function at 0x40149b
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5d0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5d4]
mov dword [ebp - 0x30], eax
call fcn.00401494
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5d8]
add edi, 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5dc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
pop esi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0x2d39d0c]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401524
push 0x418248
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d39d0c]
add eax, dword [ebp - 0x20]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d39d08]
mov dword [ebp - 0x1c], 0xedeb2e40
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp ecx, 0x3eb
mov dword [0x2d39d08], eax
mov eax, dword [0x2d39c60]
cmove eax, dword [ebp - 0x1c]
mov dword [0x2d39c60], eax
lea eax, [edi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [0x2d39d04], 0xf4ea3dee
call fcn.00401471
mov ecx, dword [ebp - 0x10]
xor ecx, eax
sub ebx, ecx
mov dword [ebp - 0x10], ecx
mov eax, ebx
mov dword [ebp - 0x2c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4014ec
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4015f4
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2d39d0c]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d39c64]
test esi, esi
je 0x401637
cmp eax, 0x959
jne 0x401623
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.0040149b
add edi, 8
dec esi
je 0x401637
mov eax, dword [0x2d39d0c]
jmp 0x40160a
pop edi
pop esi
ret 4
Function at 0x40d039
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a36c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404f15
mov dword [ebp - 0x14], eax
cmp dword [0x4403c0], esi
jne 0x40d12c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d0b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d20c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d20c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d20c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4403c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4403c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4403c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4403d0], eax
test eax, eax
je 0x40d129
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4403cc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d151
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d144
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d166
push 4
pop eax
jmp 0x40d20e
cmp dword [ebp - 0x14], esi
je 0x40d166
push dword [0x4403c0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d14b
mov eax, dword [0x4403cc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d1c4
cmp dword [0x4403d0], edi
je 0x40d1c4
push eax
call ebx
push dword [0x4403d0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d1c4
test eax, eax
je 0x40d1c4
call ecx
test eax, eax
je 0x40d1b9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d1b9
test byte [ebp - 8], 1
jne 0x40d1c4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d1f4
mov eax, dword [0x4403c4]
cmp eax, edi
je 0x40d1f1
push eax
call ebx
test eax, eax
je 0x40d1f1
call eax
mov esi, eax
test esi, esi
je 0x40d1f1
mov eax, dword [0x4403c8]
cmp eax, edi
je 0x40d1f1
push eax
call ebx
test eax, eax
je 0x40d1f1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4403c0]
call ebx
test eax, eax
je 0x40d20c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d20e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041fb
mov esp, ebp
pop ebp
ret