joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40105b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x821004]
jne 0x401065
repz ret
jmp fcn.00401708

Function at 0x406eba
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x821004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404664
and dword [ebp - 0x14], 0
cmp dword [0x823a50], 0
mov dword [ebp - 0x18], eax
jne 0x406f6d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407015
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407015
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x823a50], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x823a54], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x823a58], eax
call edi
push eax
call esi
mov dword [0x823a60], eax
test eax, eax
je 0x406f6d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x823a5c], eax
mov eax, dword [0x823a5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406fc6
cmp dword [0x823a60], ecx
je 0x406fc6
push eax
call esi
push dword [0x823a60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406fc6
test ebx, ebx
je 0x406fc6
call edi
test eax, eax
je 0x406fbd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406fbd
test byte [ebp - 8], 1
jne 0x406fc6
or dword [ebp + 0x10], 0x200000
jmp 0x406ff9
mov eax, dword [0x823a54]
cmp eax, dword [ebp - 0x18]
je 0x406ff9
push eax
call esi
test eax, eax
je 0x406ff9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406ff9
mov eax, dword [0x823a58]
cmp eax, dword [ebp - 0x18]
je 0x406ff9
push eax
call esi
test eax, eax
je 0x406ff9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x823a50]
call esi
test eax, eax
je 0x407015
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407017
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040105b
leave
ret
Function at 0x409c70
Capabilities:
Set console window title

Disassembly:
sub esp, 0xc0c
mov eax, dword [0x821004]
xor eax, esp
mov dword [esp + 0xc08], eax
mov eax, dword [0x2f47f24]
push ebx
mov ebx, dword [0x2f47c4c]
push edi
mov edi, eax
cmp eax, 0x5dd
jne 0x409cbc
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
mov eax, dword [0x2f47f24]
push esi
mov esi, dword [0x821ed0]
cmp eax, 0x930
jne 0x409cd7
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2f47f24]
mov dword [0x2f47c48], esi
pop esi
cmp eax, 0x114e
jne 0x409d00
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [0x2f47f24]
cmp eax, 0x2f
jne 0x409d32
push 0
lea eax, [esp + 0x414]
push eax
push 0
push str.Giy_zusud_huhapilovaf_sarusamuyul
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
push 0
lea ecx, [esp + 0x14]
push ecx
push str.Sugivoyayuj_yiwicohawufufa_xalumapacib_musihobifuv_juj
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push edi
push ebx
call fcn.00409b60
mov ecx, dword [esp + 0xc18]
add esp, 8
pop edi
pop ebx
xor ecx, esp
call fcn.0040105b
add esp, 0xc0c
ret
Function at 0x4057af
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42d830], 0x44
push eax
xor eax, eax
push 0x42d830
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x4057ea
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405b7c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42cc30
push esi
call fcn.00405fa8
push esi
call fcn.00405b2f
mov edi, eax
test edi, edi
jne 0x405b9d
xor eax, eax
jmp 0x405bef
push edi
call fcn.0040620a
test byte [0x430ff8], 0x80
je 0x405bb6
mov al, byte [edi]
test al, al
je 0x405b99
cmp al, 0x5c
je 0x405b99
sub edi, esi
jmp 0x405bce
call fcn.00406450
test eax, eax
je 0x405bc8
test byte [eax], 0x10
je 0x405b99
push esi
call fcn.00405ae2
push esi
call sub.KERNEL32.DLL_lstrlenA
cmp eax, edi
push esi
jg 0x405bba
call fcn.00405a9b
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c60
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405c7c
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret 4

Function at 0x405c7f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
ret 0xc

Function at 0x405cae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
jne 0x405cf2
test edi, edi
jne 0x405cb9
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405cec
Function at 0x405cf6
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00406477
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405d1a
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e53
mov ebx, dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
mov dword [0x42d9b8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42d9b8
je 0x405d5e
push 1
push 0
push esi
call fcn.00405c7f
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e59
cmp eax, edi
jg 0x405e59
mov esi, 0x42d430
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e59
cmp eax, edi
jg 0x405e59
push esi
push ebp
push str._s_s_r_n
push 0x42d030
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x430ff0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405fca
push 4
push 0xc0000000
push esi
call fcn.00405c7f
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405e53
push 0
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405e4c
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x405e4c
cmp edi, dword [esp + 0x18]
jne 0x405e4c
push str._Rename__r_n
push esi
call fcn.00405bf4
test eax, eax
jne 0x405e60
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405fa8
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42d030
push eax
call fcn.00405c40
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc dword [0x431070]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aad8
push eax
call fcn.00405bf4
test eax, eax
je 0x405e17
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e87
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e7c
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405e19
Function at 0x4062a3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4062c8
mov eax, dword [0x40a8a8]
cmp eax, 0xffffffff
je 0x4062bf
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [0x40a8a8], 0xffffffff
jmp 0x40633b
cmp dword [0x42f760], ebx
je 0x40633b
cmp byte [0x42f360], bl
je 0x406307
cmp dword [0x40a8a8], 0xffffffff
jne 0x406310
push 4
push 0x40000000
push 0x42f360
call fcn.00405c7f
cmp eax, 0xffffffff
mov dword [0x40a8a8], eax
je 0x40633b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp dword [0x40a8a8], 0xffffffff
je 0x40633b
push esi
mov esi, 0x42ff80
push 0x40aaf0
push esi
call sub.KERNEL32.DLL_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.DLL_lstrlenA
push eax
push esi
push dword [0x40a8a8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064e3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ddbc], 0
push esi
jne 0x40651a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4064f4
mov dword [ecx*4 + 0x42ddb8], eax
inc ecx
cmp ecx, 0x100
jl 0x4064ef
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40654b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ddb8]
xor eax, esi
inc ecx
dec edx
jne 0x40652d
pop edi
not eax
pop esi
ret 0xc
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x48f130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x74000]
push edi
or ebp, 0xffffffff
jmp 0x48f152
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48f159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48f148
mov eax, 1
add ebx, ebx
jne 0x48f16b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48f160
jne 0x48f17c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48f160
xor ecx, ecx
sub eax, 3
jb 0x48f190
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48f202
mov ebp, eax
add ebx, ebx
jne 0x48f19b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x48f1a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x48f1cc
inc ecx
add ebx, ebx
jne 0x48f1b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48f1ad
jne 0x48f1c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48f1ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48f1ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48f1dd
jmp 0x48f14e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48f1ec
add edi, ecx
jmp 0x48f14e
pop esi
mov edi, esi
mov ecx, 0x1a9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48f20a
cmp byte [edi], 6
jne 0x48f20a
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 0x48f20f
lea edi, [esi + 0x8d000]
mov eax, dword [edi]
or eax, eax
je 0x48f287
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f11c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48f23c
mov ecx, edi
jns 0x48f26b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8f124]
or eax, eax
je 0x48f281
mov dword [ebx], eax
add ebx, 4
jmp 0x48f259
call dword [esi + 0x8f120]
mov ebp, dword [esi + 0x8f128]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x48f2bb
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Encode data using xor
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x5a
push eax
lea ecx, [ebp - 0x5e]
push ecx
mov dword [ebp - 0x84], 0x3a0043
mov dword [ebp - 0x80], 0x57005c
mov dword [ebp - 0x7c], 0x6e0069
mov dword [ebp - 0x78], 0x6f0064
mov dword [ebp - 0x74], 0x730077
mov dword [ebp - 0x70], 0x72005c
mov dword [ebp - 0x6c], 0x6b0065
mov dword [ebp - 0x68], 0x63002e
mov dword [ebp - 0x64], 0x740072
mov word [ebp - 0x60], ax
call fcn.10004780
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov edi, eax
lea eax, [ebp - 0x49c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov cl, 0x62
test esi, esi
je 0x100010da
lea esp, [esp]
xor byte [eax + edi], cl
inc eax
dec cl
cmp eax, esi
jb 0x100010d0
push 0x40
push 0x3000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
mov ebx, eax
push edi
push ebx
call fcn.10004be0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 0xc
push 1
push 0
call esi
push eax
call dword [sym.imp.dbghelp.dll_SymInitialize]
push 0
push ebx
lea ecx, [ebp - 0x498]
push ecx
push str..log
push str.C:Windows
call esi
push eax
call dword [sym.imp.dbghelp.dll_EnumDirTreeW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10001157
mov esp, ebp
pop ebp
ret

Function at 0x10001157
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001161
repz ret
jmp fcn.100013e3
Function at 0x10004f4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100014e9
and dword [ebp - 0x14], 0
cmp dword [0x1000a784], 0
mov dword [ebp - 0x18], eax
jne 0x10004fff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100050a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100050a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000a784], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000a788], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000a78c], eax
call edi
push eax
call esi
mov dword [0x1000a794], eax
test eax, eax
je 0x10004fff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000a790], eax
mov eax, dword [0x1000a790]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10005058
cmp dword [0x1000a794], ecx
je 0x10005058
push eax
call esi
push dword [0x1000a794]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10005058
test ebx, ebx
je 0x10005058
call edi
test eax, eax
je 0x1000504f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000504f
test byte [ebp - 8], 1
jne 0x10005058
or dword [ebp + 0x10], 0x200000
jmp 0x1000508b
mov eax, dword [0x1000a788]
cmp eax, dword [ebp - 0x18]
je 0x1000508b
push eax
call esi
test eax, eax
je 0x1000508b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000508b
mov eax, dword [0x1000a78c]
cmp eax, dword [ebp - 0x18]
je 0x1000508b
push eax
call esi
test eax, eax
je 0x1000508b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000a784]
call esi
test eax, eax
je 0x100050a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100050a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001157
leave
ret
Function at 0x4845a1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x53966c]
cmp eax, 0xffffffff
jne 0x4846ad
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa45540
call sub.msvcrt.dll_memset
mov dword [0xa45540], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa45584
call sub.msvcrt.dll_memset
mov dword [esp + 0x24], 0xa45584
mov dword [esp + 0x20], 0xa45540
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.cmd.exe__c_ver
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
setne al
test al, al
je 0x4846a3
mov eax, dword [0xa45584]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [0xa45584]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa45588]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0x53966c], 1
jmp 0x4846ad
mov dword [0x53966c], 0
mov eax, dword [0x53966c]
leave
ret
Function at 0x49569a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00495296
test eax, eax
sete al
test al, al
je 0x4956c6
mov eax, 0xfffffffe
mov edx, 0xffffffff
jmp 0x495779
mov edx, dword [0x6aaddc]
mov eax, dword [ebp + 8]
shl eax, 3
mov ecx, eax
shl ecx, 4
mov edi, ecx
sub edi, eax
mov eax, edi
add eax, edx
mov dword [0xa3484c], eax
mov eax, dword [0xa3484c]
movzx eax, byte [eax + 0x70]
test al, al
je 0x4956fd
mov eax, 0xfffffffc
mov edx, 0xffffffff
jmp 0x495779
mov eax, dword [0x6aadd8]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa34850], eax
mov edi, 0xa34858
mov eax, dword [0xa34850]
mov eax, dword [eax]
mov dword [esp + 4], 0xa3485c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [edi], eax
mov eax, dword [0xa34858]
mov edx, dword [0xa3485c]
mov ebx, eax
and bh, 0xff
mov esi, edx
and esi, 0
mov eax, ebx
xor eax, 0xffffffff
or eax, esi
test eax, eax
jne 0x49576e
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
setne al
test al, al
je 0x49576e
mov eax, 0xfffffffd
mov edx, 0xffffffff
jmp 0x495779
mov eax, dword [0xa34858]
mov edx, dword [0xa3485c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret