joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c20
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x800
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
xor esi, esi
cmp esi, 0x97f
jge 0x403c47
push 0
push 0
push 0
push 0
push 0
push 0
call edi
cmp esi, 0x160d5c2
jg 0x403c58
inc esi
cmp esi, 0x33cd5b9
jl 0x403c31
cmp dword [0x5e1294], 0x400
jne 0x403ce3
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lcreat]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll__hwrite]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LocalShrink]
push 0
lea eax, [esp + 0x10]
push eax
push 0x4031e0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push 0
call fcn.00404ad1
push 0
push 0
call fcn.0040506e
push 0
call fcn.00405009
push 0
call fcn.004052df
push 0
push 0
push 0
call fcn.004051a5
push 0
call fcn.00405353
add esp, 0x24
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
call edi
call ebx
cmp esi, 0x12e8a06
jg 0x403d06
inc esi
cmp esi, 0x30375
jl 0x403cf1
mov ecx, dword [0x43e794]
mov dword [0x5e1294], ecx
call fcn.004038a0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, 0x2ec37
mov ebx, 0x51f
cmp dword [0x5e1294], ebx
jne 0x403d38
lea edx, [esp + 0xc]
push edx
push 0
call esi
dec edi
jne 0x403d27
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x800
ret 0x10

Function at 0x4088e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43bd88]
jne 0x4088ee
repz ret
jmp fcn.0040a4d8
Function at 0x408a59
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43bd88]
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.00406d82
and dword [ebp - 0x14], 0
cmp dword [0x453028], 0
mov dword [ebp - 0x18], eax
jne 0x408b0c
push 0x402228
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408bb4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40221c
push ebx
call edi
test eax, eax
je 0x408bb4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40220c
push ebx
mov dword [0x453028], eax
call edi
push eax
call esi
push 0x4021f8
push ebx
mov dword [0x45302c], eax
call edi
push eax
call esi
push 0x4021dc
push ebx
mov dword [0x453030], eax
call edi
push eax
call esi
mov dword [0x453038], eax
test eax, eax
je 0x408b0c
push 0x4021c4
push ebx
call edi
push eax
call esi
mov dword [0x453034], eax
mov eax, dword [0x453034]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408b65
cmp dword [0x453038], ecx
je 0x408b65
push eax
call esi
push dword [0x453038]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408b65
test ebx, ebx
je 0x408b65
call edi
test eax, eax
je 0x408b5c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408b5c
test byte [ebp - 8], 1
jne 0x408b65
or dword [ebp + 0x10], 0x200000
jmp 0x408b98
mov eax, dword [0x45302c]
cmp eax, dword [ebp - 0x18]
je 0x408b98
push eax
call esi
test eax, eax
je 0x408b98
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408b98
mov eax, dword [0x453030]
cmp eax, dword [ebp - 0x18]
je 0x408b98
push eax
call esi
test eax, eax
je 0x408b98
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x453028]
call esi
test eax, eax
je 0x408bb4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408bb6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004088e4
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x3b5131f9
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x35b312dc
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42589c]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401080
test eax, eax
je 0x401060
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
call fcn.004059fa
int3

Function at 0x4015e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
call fcn.004030b0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
sets cl
mov dword [0x427bfc], ecx
test ecx, ecx
je 0x40160a
call fcn.00401690
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00402210
cmp dword [0x427bfc], 0
je 0x40166a
push str._n_______________________________n
push dword [0x427bf8]
call fcn.00406803
push str._Shutting_down_output__n
push dword [0x427bf8]
call fcn.00406803
push str._______________________________n
push dword [0x427bf8]
call fcn.00406803
push dword [0x427bf8]
call fcn.004064b7
add esp, 0x1c
push dword [0x427bf8]
call fcn.004069fb
add esp, 4
cmp dword [0x427bf4], 0
jne 0x40167b
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401000
int3

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

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401739
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x427bfc], 0
je 0x401732
push esi
push str._____s_doesnt_exist_n
push dword [0x427bf8]
call fcn.00406803
add esp, 0xc
mov eax, 1
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401779
test al, 0x10
je 0x401779
cmp dword [0x427bfc], 0
je 0x401766
push esi
push str._____s_is_a_directory_n
push dword [0x427bf8]
call fcn.00406803
add esp, 0xc
mov ecx, esi
call fcn.004017b0
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
pop esi
ret
cmp dword [0x427bfc], 0
je 0x401796
push esi
push str._____s_is_a_file_n
push dword [0x427bf8]
call fcn.00406803
add esp, 0xc
mov ecx, esi
call fcn.00401830
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
pop esi
ret
Function at 0x4017b0
Capabilities:
Check for time delay via gettickcount
Delete directory

Disassembly:
push ebx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp dword [0x427bfc], 0
je 0x401820
push eax
push str.____RemoveDirectory_took__d_ticks
push dword [0x427bf8]
call fcn.00406803
add esp, 0xc
test esi, esi
jne 0x40180d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._and_returned_error__d._n
push dword [0x427bf8]
call fcn.00406803
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret
push 0x422910
push dword [0x427bf8]
call fcn.00406803
add esp, 8
mov eax, esi
pop esi
pop ebx
ret

Function at 0x401830
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp dword [0x427bfc], 0
je 0x4018a0
push eax
push str.____RemoveFile_took__d_ticks
push dword [0x427bf8]
call fcn.00406803
add esp, 0xc
test esi, esi
jne 0x40188d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._and_returned_error__d._n
push dword [0x427bf8]
call fcn.00406803
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret
push 0x422910
push dword [0x427bf8]
call fcn.00406803
add esp, 8
mov eax, esi
pop esi
pop ebx
ret
Function at 0x401e00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42589c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x426890]
mov eax, ebx
imul eax, eax, 0x258
push eax
call fcn.004061fc
add esp, 4
mov dword [ebp - 0x230], eax
test eax, eax
jne 0x401e61
cmp dword [0x427bfc], eax
je 0x401e50
push str._nCouldnt_create_the_file_vector__n
push dword [0x427bf8]
call fcn.00406803
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040517b
mov esp, ebp
pop ebp
ret
cmp dword [0x427bfc], 0
je 0x401e83
push str._nGetting_files_to_delete_from_the_environment:_n
push dword [0x427bf8]
call fcn.00406803
mov eax, dword [ebp - 0x230]
add esp, 8
push edi
xor edi, edi
test ebx, ebx
jle 0x401f43
push esi
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22a]
push eax
call fcn.00408090
push edi
push str.name
lea eax, [ebp - 0x24]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x22c]
push 0x104
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x401f3c
push 0x12c
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [0x427bfc], 0
je 0x401f16
push esi
lea eax, [ebp - 0x24]
push eax
push str.___s___s_n
push dword [0x427bf8]
call fcn.00406803
add esp, 0x10
inc edi
add esi, 0x258
cmp edi, ebx
jl 0x401e91
mov eax, dword [ebp - 0x230]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040517b
mov esp, ebp
pop ebp
ret
mov dword [0x426890], edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x230]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040517b
mov esp, ebp
pop ebp
ret

Function at 0x401f60
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push esi
push 0x104
mov esi, ecx
push esi
push str.filepath
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x401f91
cmp eax, 0x104
jae 0x401f91
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401fb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x427bfc], 0
je 0x401fad
push str.Getting_files_to_remove_from_environment_n
push dword [0x427bf8]
call fcn.00406803
add esp, 8
xor eax, eax
pop esi
ret
cmp dword [0x427bfc], 0
je 0x401fcd
push str.Getting_files_to_remove_from_file_n
push dword [0x427bf8]
call fcn.00406803
add esp, 8
mov eax, esi
pop esi
ret
Function at 0x401fe0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42589c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x426880]
cmp eax, 0xffffffff
jne 0x402061
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408090
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str.numfiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x40205c
lea eax, [ebp - 0x20c]
push eax
call fcn.0040537e
add esp, 4
mov dword [0x426880], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040517b
mov esp, ebp
pop ebp
ret
mov eax, dword [0x426880]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040517b
mov esp, ebp
pop ebp
ret

Function at 0x402070
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42589c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, 1
call fcn.00408090
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str.loops
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x4020f3
lea eax, [ebp - 0x20c]
push eax
call fcn.0040537e
add esp, 4
cmp dword [0x427bfc], 0
mov esi, eax
je 0x402112
push str.Using_loop_value_passed_in_from_environment._n
push dword [0x427bf8]
call fcn.00406803
add esp, 8
cmp dword [0x427bfc], 0
je 0x402110
push esi
push str.loops___d_n
push dword [0x427bf8]
call fcn.00406803
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040517b
mov esp, ebp
pop ebp
ret

Function at 0x402130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42589c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, 3
call fcn.00408090
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str.delay
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x4021b3
lea eax, [ebp - 0x20c]
push eax
call fcn.0040537e
add esp, 4
cmp dword [0x427bfc], 0
mov esi, eax
je 0x4021e0
push str.Using_delay_value_passed_in_from_environment._n
push dword [0x427bf8]
call fcn.00406803
add esp, 8
cmp dword [0x427bfc], 0
je 0x4021e0
push esi
push str.delay___d_seconds_n
push dword [0x427bf8]
call fcn.00406803
push str.Delaying..._n
push dword [0x427bf8]
call fcn.00406803
add esp, 0x14
test esi, esi
jle 0x4021fd
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4021f0
push 0x3e8
call edi
dec esi
test esi, esi
jg 0x4021f0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040517b
mov esp, ebp
pop ebp
ret
Function at 0x402210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x427bfc], 0
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
je 0x402239
push str.About_to_create_the_thread..
push dword [0x427bf8]
call fcn.00406803
add esp, 8
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x402300
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [0x427bfc]
test eax, eax
je 0x402275
push str.I_Created_the_thread..
push dword [0x427bf8]
call fcn.00406803
mov eax, dword [0x427bfc]
add esp, 8
test esi, esi
jne 0x402295
test eax, eax
je 0x4022ef
push str.Uh_oh.._were_in_trouble..
push dword [0x427bf8]
call fcn.00406803
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4022c7
cmp dword [0x427bfc], 0
je 0x4022be
push str.Uninstallation_timed_out.__Closing_thread_and_window..
push dword [0x427bf8]
call fcn.00406803
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4022e3
cmp dword [0x427bfc], 0
je 0x4022e3
push str.Uninstallation_completed_normally..
push dword [0x427bf8]
call fcn.00406803
add esp, 8
cmp esi, 0xffffffff
je 0x4022ef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415ea0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040cc99
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x415ed8
xor eax, eax
jmp 0x415f04
cmp esi, dword [ebp - 4]
je 0x415f01
cmp dword [ebp + 0xc], 0
je 0x415f01
push dword [edi + 0x9c]
call fcn.00415aae
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040a0c8
pop ecx
pop ecx
cmp esi, eax
je 0x415ed4
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4164f6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42589c]
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
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.00409c35
mov dword [ebp - 0x14], eax
cmp dword [0x427b94], edi
jne 0x4165e7
push 0x800
push edi
push 0x421ef4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x416574
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4166c7
push 0x421ef4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4166c7
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4166c7
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x427b94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x427b98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x427b9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x427ba4], eax
test eax, eax
je 0x4165e4
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x427ba0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41660c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4165ff
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x416621
push 4
pop eax
jmp 0x4166c9
cmp dword [ebp - 0x14], edi
je 0x416621
push dword [0x427b94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416606
mov eax, dword [0x427ba0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41667f
cmp dword [0x427ba4], esi
je 0x41667f
push eax
call ebx
push dword [0x427ba4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41667f
test eax, eax
je 0x41667f
call ecx
test eax, eax
je 0x416674
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 0x416674
test byte [ebp - 8], 1
jne 0x41667f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4166af
mov eax, dword [0x427b98]
cmp eax, esi
je 0x4166ac
push eax
call ebx
test eax, eax
je 0x4166ac
call eax
mov edi, eax
test edi, edi
je 0x4166ac
mov eax, dword [0x427b9c]
cmp eax, esi
je 0x4166ac
push eax
call ebx
test eax, eax
je 0x4166ac
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x427b94]
call ebx
test eax, eax
je 0x4166c7
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4166c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040517b
leave
ret
Function at 0x40a150
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f1fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00473d13
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a1d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00471bed
mov eax, dword [eax]
push 0xa31c98
push eax
call fcn.00464854
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00473f9e
test bl, bl
je 0x40a1d2
push 0xa31c98
lea ecx, [esp + 0xc]
call fcn.0047432e
push 0xa31ca4
lea ecx, [esp + 0xc]
call fcn.0047432e
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40a20e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00473f9e
jmp 0x40a2d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a292
lea edx, [esp + 0x7c]
push 0xa31ca0
push edx
call fcn.00464854
add esp, 8
test eax, eax
je 0x40a292
lea eax, [esp + 0x7c]
push 0xa31c9c
push eax
call fcn.00464854
add esp, 8
test eax, eax
je 0x40a292
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a222
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00473f9e
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40aae0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40ab42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40ab50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f27b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xa3d1e0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40ac88
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40abb6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00473f9e
xor eax, eax
jmp 0x40acff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004740db
push esi
lea ecx, [esp + 0xc]
call fcn.0047436a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40acdd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040aae0
test eax, eax
jne 0x40acdd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040aae0
test eax, eax
jne 0x40acdd
lea eax, [esp + 0x14]
push 0xa31cb4
push eax
call fcn.004658d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40acbc
lea ecx, [esp + 0x14]
push 0xa31cb0
push ecx
call fcn.00465850
mov esi, eax
add esp, 8
test esi, esi
jne 0x40acbc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40acbf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047408b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40abce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00473f9e
xor eax, eax
jmp 0x40acff
mov byte [esi], 0
push 0xa31cac
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00473f9e
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4