joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7807b323
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
push 2
lea eax, [ebp - 4]
push eax
push 0x22
call dword [sym.imp.MSVCR100.dll____lc_handle_func]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 4], 0x30
pop edi
jne 0x7807b359
push 2
pop eax
leave
ret
xor eax, eax
cmp word [ebp - 4], 0x31
jne 0x7807b365
inc eax
leave
ret
cmp word [ebp - 4], 0x32
setne al
dec eax
and eax, 3
leave
ret

Function at 0x78083717
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x780af0d0]
jne 0x78083721
repz ret
jmp fcn.78083dc8
Function at 0x5e9a7e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e9a99
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124aecbe]
pop edx
test eax, eax
je 0x5e9b6b
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e9b5a
test dword [ebp - 0x2a8], 1
jne 0x5e9b5a
and dword [ebp - 0x2a8], 0x100
jne 0x5e9b5a
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2adc]
pop edx
pop esi
test eax, eax
je 0x5e9afd
jmp 0x5e9b5a
cmp word [esi], 0x5a4d
jne 0x5e9b5a
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e9b5a
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2c68]
pop edx
test eax, eax
je 0x5e9b5a
lea eax, [ebp - 0x28c]
push eax
call fcn.005e99da
test eax, eax
jne 0x5e9b53
jmp 0x5e9b5a
mov eax, esi
jmp 0x5e9b6b
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e9a99
pop esi
leave
ret 4
Function at 0x425090
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
jmp 0x4250aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4250b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4250a0
mov eax, 1
add ebx, ebx
jne 0x4250c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4250b8
jne 0x4250d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4250b8
xor ecx, ecx
sub eax, 3
jb 0x4250e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42515a
mov ebp, eax
add ebx, ebx
jne 0x4250f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x425100
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x425124
inc ecx
add ebx, ebx
jne 0x425110
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x425105
jne 0x425121
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425105
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x425144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x425135
jmp 0x4250a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x425144
add edi, ecx
jmp 0x4250a6
pop esi
mov edi, esi
mov ecx, 0x3f5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x425162
cmp byte [edi], 1
jne 0x425162
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x425167
lea edi, [esi + 0x23000]
mov eax, dword [edi]
or eax, eax
je 0x4251d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25b60]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25bc4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x425194
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x25bc8]
or eax, eax
je 0x4251d0
mov dword [ebx], eax
add ebx, 4
jmp 0x4251b1
call dword [esi + 0x25bd8]
mov ebp, dword [esi + 0x25bcc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42520a
sub esp, 0xffffff80
jmp 0x407a5c
Function at 0x40abd0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40e538
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41401c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
jne 0x40ac14
mov eax, dword [esp + 0x2c]
push ecx
push ecx
push ecx
push eax
lea eax, [ecx + 2]
call fcn.0040c310
xor al, al
jmp 0x40ada0
mov ebx, dword [esp + 0x2c]
mov edi, ebx
call fcn.0040a300
push 2
or eax, 0xffffffff
push 0
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call sub.MSVCR90.dll_fseek
push esi
call sub.MSVCR90.dll_ftell
push 0
push 0
push esi
mov edi, eax
call sub.MSVCR90.dll_fseek
add esp, 0x1c
test edi, edi
jg 0x40ac63
push 0
push 0
push 0
push ebx
mov eax, 0xd
call fcn.0040c310
xor al, al
jmp 0x40ada0
mov dword [esp + 0x18], 0x414620
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x28], 0
call fcn.00409a40
lea edx, [edi + 1]
push edx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
push esi
push 1
mov ebp, eax
push edi
push ebp
mov byte [ebp], 0
call sub.MSVCR90.dll_fread
add esp, 0x14
cmp eax, 1
je 0x40acd3
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0
push 0
push 0
push ebx
mov eax, 2
call fcn.0040c310
mov eax, dword [esp + 0x18]
cmp eax, 0x414620
je 0x40accc
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor al, al
jmp 0x40ada0
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x40ad3d
mov cl, byte [esi]
cmp cl, 0xa
jne 0x40acfd
mov ecx, esi
sub ecx, eax
inc ecx
push ecx
push eax
lea ebx, [esp + 0x20]
call fcn.00409be0
inc esi
mov eax, esi
jmp 0x40ad38
cmp cl, 0xd
jne 0x40ad37
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x40ad15
push ecx
push eax
lea ebx, [esp + 0x20]
call fcn.00409be0
push 1
lea edx, [esp + 0x18]
push edx
lea ebx, [esp + 0x20]
mov byte [esp + 0x1c], 0xa
call fcn.00409be0
cmp byte [esi + 1], 0xa
jne 0x40acf8
add esi, 2
mov eax, esi
jmp 0x40ad38
inc esi
cmp byte [esi], 0
jne 0x40ace1
sub esi, eax
je 0x40ad4c
push esi
push eax
lea ebx, [esp + 0x20]
call fcn.00409be0
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov eax, dword [edi]
mov edx, dword [eax + 8]
add esp, 4
push 0
push 0
lea ecx, [esi + 8]
push ecx
mov ecx, edi
call edx
cmp byte [edi + 0x2c], 0
je 0x40ad8d
cmp esi, 0x414620
je 0x40accc
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor al, al
jmp 0x40ada0
cmp esi, 0x414620
je 0x40ad9e
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x40d3eb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41401c]
jne 0x40d3f5
repz ret
jmp fcn.0040d7e4
Function at 0x404b40
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419028
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4231e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x404b7f
mov eax, dword [esi]
jmp 0x404b81
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push 0xffffffffffffffff
push 0x41a5c0
mov ecx, esi
call fcn.00404e70
push eax
push 0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00404ef0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [ebp - 0x14], 8
jb 0x404bc9
push dword [ebp - 0x28]
call fcn.00407821
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x404bd9
push dword [esi]
call fcn.00407821
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408024
mov esp, ebp
pop ebp
ret
Function at 0x404c10
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419066
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x4231e0]
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 edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], 0
mov word [ebp - 0x43c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404e1e
cmp eax, 0x105
jae 0x404e1e
lea eax, [ebp - 0x424]
push eax
push 0
push 0x41a5c8
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x404e1e
mov esi, dword [ebp - 0x42c]
cmp esi, 0x200
ja 0x404d04
mov ecx, dword [ebp - 0x428]
cmp ecx, 0x200
je 0x404d04
jae 0x404ce8
push esi
push 0x200
lea ecx, [ebp - 0x43c]
call fcn.00401560
mov ecx, dword [ebp - 0x428]
cmp ecx, 8
mov dword [ebp - 0x42c], esi
lea eax, [ebp - 0x43c]
cmovae eax, dword [ebp - 0x43c]
xor ecx, ecx
mov word [eax + esi*2], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp word [ebp - 0x21c], 0
jne 0x404d20
xor ecx, ecx
jmp 0x404d3f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404d30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00401c60
push 3
push 0x41a5d0
lea ecx, [ebp - 0x43c]
call fcn.00402e20
lea eax, [ebp - 0x454]
push esi
push eax
call fcn.00403040
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.00402d00
cmp dword [ebp - 0x440], 8
mov byte [ebp - 4], 0
jb 0x404da3
push dword [ebp - 0x454]
call fcn.00407821
add esp, 4
cmp dword [ebp - 0x428], 8
lea eax, [ebp - 0x43c]
push 0
cmovae eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404df3
call ebx
cmp eax, 0xb7
jne 0x404dd3
inc esi
jmp 0x404d12
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x43c]
mov word [edi], ax
call fcn.004035e0
jmp 0x404e43
push str.lrunner.exe
lea ecx, [ebp - 0x43c]
call fcn.00402dd0
lea eax, [ebp - 0x43c]
mov ecx, edi
push eax
call fcn.00402340
lea ecx, [ebp - 0x43c]
call fcn.004035e0
jmp 0x404e43
lea eax, [ebp - 0x43c]
mov ecx, edi
push eax
call fcn.00402340
cmp dword [ebp - 0x428], 8
jb 0x404e43
push dword [ebp - 0x43c]
call fcn.00407821
add esp, 4
mov eax, edi
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.00408024
mov esp, ebp
pop ebp
ret
Function at 0x4066e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4191d0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4231e0]
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 dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004065c0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x406728
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x14], 8
mov dword [ebp - 4], 0
jb 0x40675e
push dword [ebp - 0x28]
call fcn.00407821
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x40677b
xor al, al
jmp 0x4067f3
mov dword [ebp - 0x2c], eax
xor bl, bl
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4067e6
cmp dword [ebp - 0x2c], 0
jne 0x4067e6
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406f70
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x3c]
mov edi, dword [ebp - 0x4c]
sub eax, edi
push 0
push ecx
push eax
push edi
push esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4067d9
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
push dword [ebp - 0x30]
push edi
call fcn.00406820
mov bl, al
test edi, edi
je 0x4067e6
push edi
call fcn.00407821
add esp, 4
test esi, esi
je 0x4067f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.00408024
mov esp, ebp
pop ebp
ret 4
Function at 0x406d00
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419250
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4231e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
push eax
push 0
push 1
push dword [ebp + 0x10]
mov dword [ebp - 0x4c], 0
push dword [ebp + 0xc]
mov dword [ebp - 0x44], 0
call esi
test eax, eax
jne 0x406d67
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], eax
mov word [edi], ax
jmp 0x406e80
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x406d91
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [ebp + eax*2 - 0x28], cx
jmp 0x406d9c
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00403af0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x44]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x406dcd
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x406ded
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x406dfa
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403af0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
push dword [ebp - 0x44]
mov byte [ebp - 4], 1
push edx
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x48]
push ecx
push eax
call fcn.00406c80
add esp, 0x14
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00402340
cmp dword [ebp - 0x2c], 8
jb 0x406e5b
push dword [ebp - 0x40]
call fcn.00407821
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x406e80
push dword [ebp - 0x28]
call fcn.00407821
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408024
mov esp, ebp
pop ebp
ret
Function at 0x40fc8f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4231e0]
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.0040c06f
mov dword [ebp - 0x14], eax
cmp dword [0x425060], esi
jne 0x40fd82
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40fd0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40fe62
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40fe62
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fe62
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x425060], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x425064], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x425068], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425070], eax
test eax, eax
je 0x40fd7f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42506c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40fda7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40fd9a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40fdbc
push 4
pop eax
jmp 0x40fe64
cmp dword [ebp - 0x14], esi
je 0x40fdbc
push dword [0x425060]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40fda1
mov eax, dword [0x42506c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40fe1a
cmp dword [0x425070], edi
je 0x40fe1a
push eax
call ebx
push dword [0x425070]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40fe1a
test eax, eax
je 0x40fe1a
call ecx
test eax, eax
je 0x40fe0f
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 0x40fe0f
test byte [ebp - 8], 1
jne 0x40fe1a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40fe4a
mov eax, dword [0x425064]
cmp eax, edi
je 0x40fe47
push eax
call ebx
test eax, eax
je 0x40fe47
call eax
mov esi, eax
test esi, esi
je 0x40fe47
mov eax, dword [0x425068]
cmp eax, edi
je 0x40fe47
push eax
call ebx
test eax, eax
je 0x40fe47
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x425060]
call ebx
test eax, eax
je 0x40fe62
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40fe64
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408024
mov esp, ebp
pop ebp
ret
Function at 0xef15f4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push str.NtSuspendProcess
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtResumeProcess
push dword [ebp + 8]
mov dword [0xf1eb08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [ebp + 8]
mov dword [0xf1eb0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationProcess
push dword [ebp + 8]
mov dword [0xf1eb10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [ebp + 8]
mov dword [0xf1eb14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationThread
push dword [ebp + 8]
mov dword [0xf1eb18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCompareTokens
push dword [ebp + 8]
mov dword [0xf1eb1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryObject
push dword [ebp + 8]
mov dword [0xf1eb20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationFile
push dword [ebp + 8]
mov dword [0xf1eb24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryDirectoryFile
push dword [ebp + 8]
mov dword [0xf1eb28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationFile
push dword [ebp + 8]
mov dword [0xf1eb2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push dword [ebp + 8]
mov dword [0xf1eb30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCaptureStackBackTrace
push dword [ebp + 8]
mov dword [0xf1eb34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0xf1eb38], eax
mov eax, 0xf1eb08
pop ebp
ret 4

Function at 0xef277f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0xf1d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x28], 0x33323130
mov ecx, dword [edx]
mov dword [ebp - 0x24], 0x37363534
mov dword [ebp - 0x20], 0x42413938
mov eax, dword [esi]
mov dword [ebp - 0x1c], 0x46454443
mov dword [ebp - 0x18], 0x4a494847
mov dword [ebp - 0x14], 0x4e4d4c4b
movzx eax, byte [eax]
shr eax, 4
mov dword [ebp - 0x10], 0x5251504f
mov dword [ebp - 0xc], 0x56555453
mov dword [ebp - 8], 0x5a595857
mov al, byte [ebp + eax - 0x28]
mov byte [ecx], al
inc dword [edx]
mov eax, dword [esi]
mov ecx, dword [edx]
mov dword [ebp - 0x28], 0x33323130
mov dword [ebp - 0x24], 0x37363534
movzx eax, byte [eax]
and eax, 0xf
mov dword [ebp - 0x20], 0x42413938
mov dword [ebp - 0x1c], 0x46454443
mov dword [ebp - 0x18], 0x4a494847
mov dword [ebp - 0x14], 0x4e4d4c4b
mov dword [ebp - 0x10], 0x5251504f
mov dword [ebp - 0xc], 0x56555453
mov dword [ebp - 8], 0x5a595857
mov al, byte [ebp + eax - 0x28]
mov byte [ecx], al
inc dword [edx]
mov ecx, dword [ebp - 4]
inc dword [esi]
xor ecx, ebp
pop esi
call fcn.00efdec2
leave
ret
Function at 0xef305f
Capabilities:
Parse pe header

Disassembly:
push 0x74
mov eax, 0xf10553
call fcn.00f100e8
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x34]
push eax
push edx
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
jne 0xef3099
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00ef1040
jmp 0xef31db
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x14]
and dword [edi + 0x44], 0
mov ebx, 0x104
push edi
push ebx
mov edx, eax
mov dword [ebp - 0x40], eax
mov dword [edi + 0x40], eax
call fcn.00ef2fc7
pop ecx
pop ecx
jmp 0xef30cc
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x14]
add ebx, ebx
push edi
push ebx
call fcn.00ef2fc7
pop ecx
pop ecx
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00ef1040
or dword [ebp - 4], 0xffffffff
cmp eax, 0x7a
je 0xef30bb
test esi, esi
je 0xef30e7
mov ecx, esi
jmp 0xef308f
mov edx, dword [ebp - 0x34]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0xef31d6
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0xef31d6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xef31d6
mov eax, dword [ecx + 0x50]
and dword [edi + 0x4c], 0
mov dword [edi + 0x48], eax
cmp dword [ecx + 0x74], 6
jbe 0xef31cb
cmp dword [ecx + 0xac], 0x1c
jb 0xef31cf
mov eax, dword [ecx + 0xa8]
cmp dword [eax + edx + 0x10], 0x1c
jb 0xef31cf
mov ebx, dword [eax + edx + 0x14]
add ebx, edx
cmp dword [ebx], 0x53445352
jne 0xef31d6
lea eax, [edi + 0x20]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], eax
call fcn.00ef16f7
push 7
pop ecx
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebx + 4]
lea ecx, [ebp - 0x4c]
call fcn.00ef2708
mov edx, eax
lea ecx, [ebp - 0x80]
call fcn.00ef2ef3
push 0x24
pop edx
movzx ecx, byte [eax + 0x24]
sub edx, ecx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
js 0xef319c
cmp edx, ecx
jb 0xef319c
mov edx, ecx
mov ecx, dword [ebp - 0x30]
push 0
push 0
push edx
push eax
lea edx, [ebp - 0x2c]
call fcn.00ef93fe
lea ecx, [ebp - 0x30]
call fcn.00ef71fa
add esp, 8
mov ecx, dword [eax]
lea edx, [eax + 4]
push dword [edx + 4]
push dword [ebx + 0x14]
call fcn.00ef94bb
add esp, 0x10
xor eax, eax
jmp 0xef31db
mov eax, 0x8000005c
jmp 0xef31db
mov eax, 0x8000005a
call fcn.00f10097
ret