joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e0149fe
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x2e030292
call fcn.2e02e16c
mov esi, dword [ebp + 8]
xor eax, eax
mov bl, al
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x10], eax
jbe 0x2e014b02
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.2e0148ed
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push esi
call fcn.2e010b76
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014ac0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x2e032941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014ab7
mov eax, dword [ebp - 0x2c]
inc eax
push eax
call fcn.2e003e83
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push esi
push 0
push 0
push 0x2e032941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014aa9
push esi
mov ecx, edi
call fcn.2e010c49
mov bl, 1
push 1
push esi
mov byte [ebp - 4], 0
call fcn.2e003e83
pop ecx
pop ecx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e014b02
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 2
cmp eax, 0x1000
jb 0x2e014af9
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.2e003e83
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.2e003e83
pop ecx
pop ecx
mov al, bl
call fcn.2e02e14a
ret 8

Function at 0x2e014b3c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x2e0302bf
call fcn.2e00153c
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x2e014b76
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014bdc
lea eax, [ebp - 0x14]
mov edi, 0x2e032941
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014bd3
mov eax, dword [ebp - 0x14]
test eax, eax
js 0x2e014bd3
inc eax
push eax
call fcn.2e003e83
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014bc5
mov ecx, dword [ebp + 0xc]
push esi
call fcn.2e010c49
mov bl, 1
or dword [ebp - 4], 0xffffffff
push 1
push esi
call fcn.2e003e83
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.2e001586
ret 8
Function at 0x2e01e341
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x2e030586
call fcn.2e02e16c
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
mov edi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e01e45f
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e01e456
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.2e003e83
mov esi, eax
pop ecx
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x2e01e449
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.2e010c49
push str.IE.HTTP
lea ecx, [ebp - 0x28]
call fcn.2e003e83
test al, al
jne 0x2e01e3fc
push ebx
push str.AppX
lea ecx, [ebp - 0x28]
call fcn.2e003e83
push 1
test eax, eax
pop edx
cmove edi, edx
jmp 0x2e01e3ff
xor edx, edx
inc edx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e01e439
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], dl
cmp eax, 0x1000
jb 0x2e01e430
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.2e003e83
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
push eax
push ecx
call fcn.2e003e83
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
inc ecx
mov byte [ebp - 0x28], bl
or dword [ebp - 4], 0xffffffff
push ecx
push esi
call fcn.2e003e83
pop ecx
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, di
call fcn.2e02e14a
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x3b7f4d58
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x3be97f87
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10005680
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10054820
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10084068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000dab1
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1000ca8f
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov ebx, dword [ebp + 8]
mov dword [edi + 0xc], eax
add esp, 8
mov dword [edi + 0x10], ecx
lea eax, [edi + 0x14]
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], esi
mov dword [ecx], 0
mov ecx, ebx
mov eax, dword [edi + 0x20]
not ecx
and ecx, 1
shl ecx, 2
mov edx, ecx
mov dword [eax], 0
or edx, 2
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, ebx
and al, 2
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, ebx
mov dword [edi + 0x38], 0
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [edi + 0x3c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10006740
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10054990
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10084068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000dab1
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1000ca8f
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10008730
Capabilities:
Check if file exists
Delete file
Terminate process

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0x7d0
call esi
push 0x208
call fcn.1000db12
push 0x208
mov edi, eax
push 0
push edi
call fcn.1000ff20
add esp, 0x10
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x10064bf4
mov ecx, edi
call fcn.100085f0
push 0x10064bfc
mov ecx, edi
call fcn.100085f0
push 0x10064c04
mov ecx, edi
call fcn.100085f0
push 0x100849b0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
call fcn.10007f20
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100087d6
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.1000daac
add esp, 4
push 0x2710
call esi
push 0x4e20
call esi
jmp 0x100087c6
push 0x1388
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10008e00
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, 0x10087080
nop dword [eax]
sub esi, dword [edi + 4]
mov ecx, eax
and ecx, 0x1f
ror esi, cl
xor esi, eax
sub eax, dword [edi]
mov ecx, esi
sub edi, 8
and ecx, 0x1f
ror eax, cl
xor eax, esi
cmp edi, 0x10087020
ja 0x10008e10
sub esi, dword [0x10087024]
sub eax, dword [0x10087020]
pop edi
mov dword [edx + 4], esi
mov dword [edx], eax
pop esi
ret

Function at 0x10008e50
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10084068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov esi, 0xf
mov dword [ebp - 8], edi
nop
mov eax, esi
lea edx, [ebp - 0x14]
and eax, 0xfffffffc
dec esi
add edx, eax
add eax, edi
inc edi
movzx ecx, byte [eax + ebx]
mov eax, dword [edx]
shl eax, 8
add ecx, eax
mov dword [edx], ecx
cmp esi, 0xffffffff
jne 0x10008e70
mov dword [0x10087020], 0xb7e15163
mov eax, 4
nop
mov ecx, dword [eax + 0x1008701c]
sub ecx, 0x61c88647
mov dword [eax + 0x10087020], ecx
add eax, 4
cmp eax, 0x68
jb 0x10008ea0
xor edi, edi
mov dword [ebp - 0x18], 0x4e
xor edx, edx
xor esi, esi
xor ebx, ebx
nop dword [eax]
mov eax, dword [edx*4 + 0x10087020]
add eax, esi
add ebx, eax
lea eax, [edx + 1]
rol ebx, 3
mov dword [edx*4 + 0x10087020], ebx
xor edx, edx
lea ecx, [esi + ebx]
add esi, ebx
add esi, dword [ebp + edi*4 - 0x14]
and ecx, 0x1f
rol esi, cl
mov ecx, 0x1a
mov dword [ebp + edi*4 - 0x14], esi
inc edi
div ecx
and edi, 3
sub dword [ebp - 0x18], 1
jne 0x10008ed0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000da9b
mov esp, ebp
pop ebp
ret

Function at 0x10022830
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100226a6
Function at 0x1002dc00
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10054f8a
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x10b
ja 0x1002ddc5
je case.0x1002dc51.123
lea eax, [esi - 2]
cmp eax, 0xcc
ja case.0x1002dc51.4
movzx eax, byte [eax + 0x1002de5c]
jmp dword [eax*4 + 0x1002de20]
push esi
push edi
lea ecx, [ebp - 0x38]
call fcn.100321f0
push 0x100817fc
lea eax, [ebp - 0x38]
push eax
call fcn.1000f3a7
push esi
push edi
lea ecx, [ebp - 0x38]
call fcn.10032450
push 0x100818ac
lea eax, [ebp - 0x38]
push eax
call fcn.1000f3a7
push esi
push edi
lea ecx, [ebp - 0x38]
call fcn.10032540
push 0x10081548
lea eax, [ebp - 0x38]
push eax
call fcn.1000f3a7
push esi
push edi
lea ecx, [ebp - 0x38]
call fcn.10032190
push 0x100817b4
lea eax, [ebp - 0x38]
push eax
call fcn.1000f3a7
push esi
push edi
lea ecx, [ebp - 0x38]
call fcn.10032250
push 0x10081864
lea eax, [ebp - 0x38]
push eax
call fcn.1000f3a7
push esi
push edi
lea ecx, [ebp - 0x38]
call fcn.10032100
push 0x100818bc
lea eax, [ebp - 0x38]
push eax
call fcn.1000f3a7
push esi
push edi
lea ecx, [ebp - 0x38]
call fcn.10032360
push 0x100815bc
lea eax, [ebp - 0x38]
push eax
call fcn.1000f3a7
push str.sharing_violation
lea ecx, [ebp - 0x24]
call fcn.10003600
mov dword [ebp - 4], 0
push esi
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x64]
call fcn.100324e0
push 0x10081558
lea eax, [ebp - 0x64]
push eax
call fcn.1000f3a7
push str.lock_violation
lea ecx, [ebp - 0x24]
call fcn.10003600
mov dword [ebp - 4], 1
jmp 0x1002dd14
push str.EOF_reached
lea ecx, [ebp - 0x24]
call fcn.10003600
push esi
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x64]
call fcn.10032390
push 0x100815bc
jmp 0x1002dd27
push str.disk_is_full
lea ecx, [ebp - 0x24]
call fcn.10003600
push esi
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x64]
call fcn.10032130
push 0x100818bc
jmp 0x1002dd27
push str.negative_seek
lea ecx, [ebp - 0x24]
call fcn.10003600
mov dword [ebp - 4], 4
jmp 0x1002dd14
push esi
push edi
lea ecx, [ebp - 0x64]
call fcn.100325c0
push 0x10081854
jmp 0x1002dd27
cmp esi, 0x781
je case.0x1002dc51.3
cmp esi, 0x1779
je 0x1002ddf2
push esi
push edi
lea ecx, [ebp - 0x90]
call fcn.100324b0
push 0x10081558
lea eax, [ebp - 0x90]
jmp 0x1002dd2a
push 0x1779
push edi
lea ecx, [ebp - 0x64]
call fcn.10032620
push 0x1008180c
jmp 0x1002dd27
push esi
push edi
lea ecx, [ebp - 0x64]
call fcn.100323f0
push 0x100815cc
jmp 0x1002dd27

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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x1002dfc7
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x1002dfb4
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002dfdc
shr eax, 4
and al, 1
pop esi
ret
push ecx
push 0xa1
mov edx, str.e:publiclzudppoco_develop_foundation_src_file_win32u.cpp
mov ecx, str.__path.empty__
call fcn.100353a0
lea ecx, [esi + 4]
call fcn.1002dc00
int3
Function at 0x1002dff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x1002e016
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x1002e004
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002e02b
not al
and al, 1
pop esi
ret
push ecx
push 0x89
mov edx, str.e:publiclzudppoco_develop_foundation_src_file_win32u.cpp
mov ecx, str.__path.empty__
call fcn.100353a0
lea ecx, [esi + 4]
call fcn.1002dc00
int3

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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x1002e073
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x1002e054
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002e06f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1002e085
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
push ecx
push 0x76
mov edx, str.e:publiclzudppoco_develop_foundation_src_file_win32u.cpp
mov ecx, str.__path.empty__
call fcn.100353a0
lea ecx, [esi + 4]
call fcn.1002dc00
int3

Function at 0x100333f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005567e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
push edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x100334dd
xor ecx, ecx
mov dword [ebp - 0x24], edi
mov edx, 2
mov dword [ebp - 0x20], edi
mul edx
mov byte [ebp - 0x18], 1
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000db12
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
push ebx
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x100334d1
cmp eax, edi
ja 0x100334d1
mov edx, esi
mov ecx, ebx
call fcn.100354f0
cmp dword [esi + 0x14], 0x10
mov eax, esi
mov ecx, dword [esi + 0x10]
jb 0x100334a2
mov eax, dword [esi]
cmp byte [eax + ecx - 1], 0x5c
je 0x100334b5
push 0x1007c6d4
mov ecx, esi
call fcn.10003310
push ebx
call fcn.1000daac
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.1000afc0
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x2c]
call fcn.10003600
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x58]
call fcn.10030fa0
push 0x10081f00
lea eax, [ebp - 0x58]
push eax
call fcn.1000f3a7
int3
Function at 0x40d588
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a428]
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.00408d3c
mov dword [ebp - 0x14], eax
cmp dword [0x436478], esi
jne 0x40d67b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d608
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d75b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d75b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d75b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x436478], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43647c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x436480], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436488], eax
test eax, eax
je 0x40d678
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436484], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d693
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6b5
push 4
pop eax
jmp 0x40d75d
cmp dword [ebp - 0x14], esi
je 0x40d6b5
push dword [0x436478]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d69a
mov eax, dword [0x436484]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d713
cmp dword [0x436488], edi
je 0x40d713
push eax
call ebx
push dword [0x436488]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d713
test eax, eax
je 0x40d713
call ecx
test eax, eax
je 0x40d708
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 0x40d708
test byte [ebp - 8], 1
jne 0x40d713
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d743
mov eax, dword [0x43647c]
cmp eax, edi
je 0x40d740
push eax
call ebx
test eax, eax
je 0x40d740
call eax
mov esi, eax
test esi, esi
je 0x40d740
mov eax, dword [0x436480]
cmp eax, edi
je 0x40d740
push eax
call ebx
test eax, eax
je 0x40d740
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x436478]
call ebx
test eax, eax
je 0x40d75b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d75d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040f0
mov esp, ebp
pop ebp
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x1002aaee
pop dword [ebp - 4]
mov eax, 0xd7df3d51
sub eax, 0xc7dc9263
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xb1165934
add dword [ebp - 0x14], 0x9d3bec17
mov dword [ebp - 0x10], 0x741f3bf9
add dword [ebp - 0x10], 0xbe14104c
mov dword [ebp - 0xc], 0x3470cf14
add dword [ebp - 0xc], 0x17db751a
mov dword [ebp - 8], 0xee6db7dc
sub dword [ebp - 8], 0xee6db7dc
lea eax, [ebp - 0x14]
push eax
mov eax, 0x754fd335
add eax, 0x9ab2ed03
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xd1244636
sub dword [ebp - 0x14], 0x5cb1dce0
mov dword [ebp - 0x10], 0x6cb55efc
add dword [ebp - 0x10], 0xd4b70279
mov dword [ebp - 0xc], 0xbafeb2f1
sub dword [ebp - 0xc], 0x578f4685
mov dword [ebp - 8], 0xf5cda652
add dword [ebp - 8], 0xa3259ae
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x383c8
push 0
call eax
mov ecx, 0x4f13
xor esi, esi
add esi, eax
mov edi, 0x10039600
add edi, dword [ebp - 4]
mov edx, 0xf091ba23
sub edx, 0xa922959f
mov ebx, dword [edi]
xor ebx, edx
mov dword [esi], ebx
add esi, 4
add edi, 0xcdb0ab44
sub edi, 0xcdb0ab40
loop 0x1002ac01
add eax, 0x49a29b48
add eax, 0xb65e93d7
xor ebx, ebx
add ebx, eax
add eax, 0x6c7c9f66
sub eax, 0x6c7c9f61
mov ecx, 0xcb15beee
sub ecx, 0xbb15beee
add ecx, dword [ebp - 4]
call ebx
leave
ret