joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45e064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x437b0c
cmp byte [esi + 0x3d], 0
je 0x437b0c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x437afa
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x437ac1
sub eax, 1
je 0x437ac5
sub eax, 2
jne 0x437afa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448e2b
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x437ae3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x437afa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448e2b
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448e2b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00448e2b
mov esp, ebp
pop ebp
ret
Function at 0x438510
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1390
call fcn.004490b0
mov eax, dword [0x45e064]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, 1
push esi
mov esi, ecx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x1388], edx
nop
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [ebp + eax*4 - 0x1388], edx
inc eax
cmp eax, 0x270
jb 0x438540
lea eax, [ebp - 0x138c]
mov dword [ebp - 0x138c], 0x270
mov dword [ebp - 0x1390], eax
lea ecx, [esi + 8]
lea eax, [ebp - 0x1390]
push eax
call fcn.00436e00
lea eax, [ebp - 0x138c]
mov dword [ebp - 0x1390], eax
lea ecx, [esi + 0x78]
lea eax, [ebp - 0x1390]
push eax
call fcn.00436e00
lea eax, [ebp - 0x138c]
mov dword [ebp - 0x1390], eax
lea ecx, [esi + 0xe8]
lea eax, [ebp - 0x1390]
push eax
call fcn.00436e00
lea eax, [ebp - 0x138c]
mov dword [ebp - 0x1390], eax
lea ecx, [esi + 0x158]
lea eax, [ebp - 0x1390]
push eax
call fcn.00436e00
lea eax, [ebp - 0x138c]
mov dword [ebp - 0x1390], eax
lea ecx, [esi + 0x1c8]
lea eax, [ebp - 0x1390]
push eax
call fcn.00436e00
lea eax, [ebp - 0x138c]
mov dword [ebp - 0x1390], eax
lea ecx, [esi + 0x238]
lea eax, [ebp - 0x1390]
push eax
call fcn.00436e00
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00448e2b
mov esp, ebp
pop ebp
ret 4
Function at 0x439140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x439161
jl 0x439157
test esi, esi
jne 0x439161
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x439178
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
pop ebp
ret 0xc
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x4391b4
cmp eax, dword [ebp + 0xc]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
mov edi, dword [ebp + 8]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add edi, esi
add esp, 0xc
mov dword [ebp + 8], edi
mov ecx, ebx
mov edi, dword [ebp + 0xc]
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x439228
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x4391dc
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x439216
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x439228
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4391f0
test ecx, ecx
je 0x439228
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
pop ebp
ret 0xc
Function at 0x439240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x439265
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x4392d0
jg 0x43928b
test esi, esi
je 0x4392d0
test ecx, ecx
jl 0x43930a
jg 0x439295
test eax, eax
je 0x43930a
cmp edi, ecx
jg 0x4392a5
jl 0x43929f
cmp esi, eax
jae 0x4392a5
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [ebp + 8]
test edi, edi
jl 0x4392f7
jg 0x4392dd
test esi, esi
je 0x4392f7
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x4392f7
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
jmp 0x4392dd

Function at 0x43baa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x43bac0
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 4
Function at 0x43f1b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b396
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x45e064]
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, ecx
xor eax, eax
cmp dword [ebp + 8], 1
mov dword [ebp - 0x60], eax
jne 0x43f1ec
cmp byte [ebp + 0xc], al
je 0x43f235
xorps xmm0, xmm0
mov dword [ebp - 0x18], 4
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], 0x706c6568
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
mov dword [ebp - 0x60], 1
call fcn.0043f970
test al, al
jne 0x43f230
mov byte [ebp - 0x59], al
mov eax, dword [ebp - 0x60]
jmp 0x43f239
mov eax, 1
mov byte [ebp - 0x59], 1
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x43f27a
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x43f27a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43f270
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43f270
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00448e01
add esp, 8
cmp byte [ebp - 0x59], 0
je 0x43f2b2
mov esi, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00446300
push eax
push esi
mov dword [ebp - 4], 1
call fcn.0042f680
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00431bd0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
cmp byte [ebp + 0xc], 0
jne 0x43f31a
mov esi, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea eax, [ebp - 0x58]
push eax
mov ecx, edi
call fcn.0043f840
push eax
push esi
mov dword [ebp - 4], 2
call fcn.0042f680
add esp, 8
mov ecx, eax
push 0x43af80
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x40]
push eax
call fcn.00446300
push eax
push esi
mov byte [ebp - 4], 3
call fcn.0042f680
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00431bd0
lea ecx, [ebp - 0x58]
call fcn.00431bd0
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
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.00448e2b
mov esp, ebp
pop ebp
ret 8
Function at 0x440b20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, dword [ebp + 0x14]
je 0x440b85
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp + 0x10], eax
push edi
nop dword [eax + eax]
mov edx, dword [ebx]
mov ecx, esi
shld ecx, eax, 6
xor edi, edi
sub edx, 0x61c88647
shl eax, 6
add edx, eax
mov eax, dword [ebp + 0x10]
adc edi, ecx
mov ecx, eax
shrd ecx, esi, 2
shr esi, 2
add edx, ecx
adc edi, esi
mov esi, dword [ebp - 4]
xor eax, edx
xor esi, edi
add ebx, 4
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], esi
cmp ebx, dword [ebp + 0x14]
jne 0x440b40
pop edi
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449cab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x449cea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x449cea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x449cea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x449cea
cmp dword [ecx + 0x74], 0xe
jbe 0x449cea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401179
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c30c1]
push ebx
push esi
push edi
mov esi, ecx
push 0x8000
push esi
mov edi, edx
mov byte [ebp - 1], al
call fcn.00426483
pop ecx
push eax
call fcn.004262b5
pop ecx
pop ecx
push 0xb
mov ecx, edi
mov ebx, eax
call fcn.00404d65
test al, al
jne 0x475896
lea ecx, [ebp - 0x18]
call fcn.00412746
mov ecx, edi
call fcn.004121ab
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.00401351
push dword [ebp - 0x18]
push 0x4b0e1c
push esi
call fcn.0042667c
add esp, 0xc
cmp byte [ebp - 1], 0
mov dword [ebp - 8], eax
jne 0x4758b6
lea ecx, [ebp - 0x18]
call fcn.004125d5
mov edi, dword [ebp - 8]
push esi
call fcn.00426841
pop ecx
cmp ebx, 0xffffffff
je 0x4758cd
push ebx
push esi
call fcn.00426483
pop ecx
push eax
call fcn.004262b5
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push esi
mov ecx, edi
call fcn.0044e3e2
push eax
push 1
call fcn.0044e39f
push eax
call fcn.004265fe
add esp, 0x10
mov edi, eax
jmp 0x4011f9
mov ecx, edi
call fcn.004121ab
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
jmp 0x4011ee
push 0x4000
jmp 0x40120a
Function at 0x402518
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x402550
push edi
push 0
push 0x4b10ac
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x476742
pop edi
pop esi
pop ebx
leave
ret
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40254f
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
test edi, edi
je 0x40254f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
je 0x40254f
mov ecx, dword [ebx]
push 0
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
mov ecx, dword [eax]
push edx
push edx
push edx
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
jmp 0x40254f

Function at 0x40292d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x4767ec
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042736e
add esp, 0x10
leave
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x402953
Function at 0x412810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x412884
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0x412847
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
je 0x412857
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
inc edi
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx - 1], al
inc dword [esi + 0xc]
cmp edi, ebx
jb 0x412827
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebx
pop ebp
ret 8
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x412847
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x412847
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x41282f
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.004029e6
jmp 0x41281e
Function at 0x4160f1
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20030
call fcn.004333f0
push ebx
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040e4fe
lea eax, [ebp - 0x1002c]
push eax
xor ebx, ebx
push 0x7fff
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
lea eax, [ebp - 7]
push eax
push dword [ebp + 8]
call fcn.0040327c
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
jne 0x4728f1
mov eax, dword [0x4c3130]
test eax, eax
je 0x416235
xor edi, edi
inc edi
mov esi, 0x4c4100
cmp eax, edi
je 0x472909
lea eax, [ebp - 6]
push eax
push ecx
push 0x4c3130
push 0x4c3148
mov ecx, esi
call fcn.0040235d
test al, al
je 0x41623e
mov al, byte [0x4c4100]
mov byte [0x4c3134], al
mov al, byte [0x4c4101]
mov byte [ebp - 5], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2002c]
push eax
push 0x7fff
push dword [0x4c3148]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
push dword [ebp - 0xc]
mov ecx, 0x4c3120
call fcn.00412228
mov bl, byte [ebp - 6]
push dword [0x4c3130]
push 0x4c3148
call fcn.00416a48
test eax, eax
jne 0x472928
cmp byte [ebp - 5], 1
je 0x472947
call fcn.00416761
call fcn.00416472
cmp byte [0x4c3134], 0
mov ebx, 0x4c3708
jne 0x4161f7
mov ecx, ebx
call fcn.0041636f
push edi
mov ecx, 0x4c3160
call fcn.00407070
cmp byte [0x4c3134], 0
jne 0x416212
mov ecx, ebx
call fcn.0041630b
mov ecx, esi
call fcn.00416246
lea eax, [ebp - 0x1002c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
lea ecx, [ebp - 0x2c]
call fcn.0040e281
pop edi
pop esi
pop ebx
leave
ret 4
or dword [0x4c30bc], 0xffffffff
jmp 0x416219
mov dword [0x4c30bc], edi
jmp 0x416219
push 0x10
push 0x4b4abc
push str.This_is_a_third_party_compiled_AutoIt_script.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x416226
push 0xffffffffffffffff
push dword [0x4c3138]
mov ecx, esi
push edi
call fcn.00445e5c
mov al, byte [0x4c30c2]
mov byte [0x4c4102], al
jmp 0x4161b6
mov ecx, esi
call fcn.00416246
lea eax, [ebp - 0x1002c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov dword [0x4c30bc], edi
jmp 0x416226
call fcn.0043ec26
test al, al
jne 0x4161d8
cmp byte [ebp - 7], al
jne 0x4161d8
lea ecx, [ebp - 0x2c]
call fcn.004023b1
push 0x49fab4
lea ecx, [ebp - 0x1c]
call fcn.00405039
lea ecx, [ebp - 0x1c]
test bl, bl
je 0x47299e
mov edi, 0x4b4af0
push edi
call fcn.004157c5
push 0x4c3148
lea ecx, [ebp - 0x1c]
call fcn.00415844
push edi
lea ecx, [ebp - 0x1c]
call fcn.004157c5
push 1
jmp 0x4729a7
push dword [ebp + 8]
call fcn.004157c5
push edi
lea eax, [ebp - 0x1002c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push 0x4b4af4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x1c]
call fcn.0040e281
jmp 0x416212
Function at 0x41fe0b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4757a5
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4757bd
or eax, eax
jmp 0x41fe2a
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 8]
jmp 0x41fe2a
Function at 0x422500
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp ebx, esi
jne 0x475120
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 4
push edi
xor edi, edi
test esi, esi
jne 0x475135
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x475149
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x475224
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
push 1
push edi
push dword [ebp + 8]
call esi
push 1
push dword [ebp - 4]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x475200
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 8]
test eax, eax
je 0x475205
push 4
jmp 0x475202
push 3
pop ebx
jmp 0x475208
mov ebx, dword [ebp - 0xc]
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call esi
push 0
push edi
push dword [ebp + 8]
call esi
push 0
push dword [ebp - 4]
push edi
call esi
jmp 0x475227
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x42251e
Function at 0x437470
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bcdc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [section..data]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0042ba5e
mov dword [ebp - 0x14], eax
cmp dword [0x4c3048], edi
jne 0x437561
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4374ee
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x437641
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x437641
push 0x49da60
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x437641
push eax
call ebx
push 0x49da6c
push esi
mov dword [0x4c3048], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4c304c], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4c3050], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x4c3058], eax
test eax, eax
je 0x43755e
push 0x49daac
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x4c3054], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x437586
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x437579
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x43759b
push 4
pop eax
jmp 0x437643
cmp dword [ebp - 0x14], edi
je 0x43759b
push dword [0x4c3048]
call dword [0x4bc004]
push 3
jmp 0x437580
mov eax, dword [0x4c3054]
mov ebx, dword [0x4bc004]
cmp eax, esi
je 0x4375f9
cmp dword [0x4c3058], esi
je 0x4375f9
push eax
call ebx
push dword [0x4c3058]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4375f9
test eax, eax
je 0x4375f9
call ecx
test eax, eax
je 0x4375ee
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 0x4375ee
test byte [ebp - 8], 1
jne 0x4375f9
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x437629
mov eax, dword [0x4c304c]
cmp eax, esi
je 0x437626
push eax
call ebx
test eax, eax
je 0x437626
call eax
mov edi, eax
test edi, edi
je 0x437626
mov eax, dword [0x4c3050]
cmp eax, esi
je 0x437626
push eax
call ebx
test eax, eax
je 0x437626
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4c3048]
call ebx
test eax, eax
je 0x437641
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x437643
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e25c
leave
ret