joyce8/EMBER2024-capa huggingface dataset:
Function at 0x781348a9
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp._CKERNEL.dll_GetEnvironmentVariableA]
xor ebx, ebx
push ebx
push ebx
mov ebp, str.__MSVCRT_HEAP_SELECT
push ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x781349fb
push esi
push ebx
call dword [sym.imp._CKERNEL.dll_GetProcessHeap]
push eax
call dword [sym.imp._CKERNEL.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x781349f9
push esi
push ebx
push ebp
call edi
test eax, eax
mov ebp, dword [sym.imp._CKERNEL.dll_HeapFree]
jbe 0x781349ed
cmp eax, esi
ja 0x781349ed
cmp byte [ebx], 0
mov ecx, ebx
je 0x78134923
mov al, byte [ecx]
cmp al, 0x61
jl 0x7813491d
cmp al, 0x7a
jg 0x7813491d
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x7813490f
push 0x16
push ebx
push str.__GLOBAL_HEAP_SELECTED
call sym.MSVCR80.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x7813493b
mov edi, ebx
jmp 0x78134996
push 0x105
push 8
call dword [sym.imp._CKERNEL.dll_GetProcessHeap]
push eax
call dword [sym.imp._CKERNEL.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x781349ed
push 3
push esi
push 0
call dword [sym.imp._CKERNEL.dll_GetModuleFileNameA]
cmp byte [esi], 0
mov ecx, esi
je 0x7813497f
mov al, byte [ecx]
cmp al, 0x61
jl 0x78134979
cmp al, 0x7a
jg 0x78134979
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x7813496b
push esi
push ebx
call sym.MSVCR80.dll_strstr
pop ecx
pop ecx
push esi
push 0
mov edi, eax
call dword [sym.imp._CKERNEL.dll_GetProcessHeap]
push eax
call ebp
test edi, edi
je 0x781349ed
push 0x2c
push edi
call sym.MSVCR80.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x781349ed
inc eax
cmp byte [eax], 0x20
je 0x781349a8
mov cl, byte [eax]
xor esi, esi
cmp cl, 0x30
jl 0x781349ed
cmp cl, 0x39
jg 0x781349ce
imul esi, esi, 0xa
movsx ecx, cl
inc eax
lea esi, [esi + ecx - 0x30]
mov cl, byte [eax]
cmp cl, 0x30
jge 0x781349b7
cmp esi, 2
je 0x781349dd
cmp esi, 3
je 0x781349dd
cmp esi, 1
jne 0x781349ed
push ebx
push 0
call dword [sym.imp._CKERNEL.dll_GetProcessHeap]
push eax
call ebp
mov eax, esi
jmp 0x78134a5b
push ebx
push 0
call dword [sym.imp._CKERNEL.dll_GetProcessHeap]
push eax
call ebp
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
call sym.MSVCR80.dll__get_osplatform
test eax, eax
pop ecx
je 0x78134a17
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
lea eax, [esp + 0x14]
push eax
call sym.MSVCR80.dll__get_winmajor
test eax, eax
pop ecx
je 0x78134a33
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
cmp dword [esp + 0x10], 2
jne 0x78134a46
cmp dword [esp + 0x14], 5
jb 0x78134a46
xor eax, eax
inc eax
jmp 0x78134a5b
lea eax, [esp + 0x18]
push eax
call fcn.7813487c
cmp byte [esp + 0x1c], 6
pop ecx
sbb eax, eax
add eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x781396ce
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call sym.MSVCR80.dll__encoded_null
xor ebx, ebx
cmp dword [0x781c4054], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x781397a4
push 0x78194ebc
call dword [sym.imp._CKERNEL.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x78139884
mov esi, dword [sym.imp._CKERNEL.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x78139884
push eax
call sym.MSVCR80.dll__encode_pointer
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x781c4054], eax
call esi
push eax
call sym.MSVCR80.dll__encode_pointer
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x781c4058], eax
call esi
push eax
call sym.MSVCR80.dll__encode_pointer
mov dword [0x781c405c], eax
lea eax, [ebp - 0xc]
push eax
call sym.MSVCR80.dll__get_osplatform
test eax, eax
pop ecx
pop ecx
je 0x78139772
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x781397a4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call sym.MSVCR80.dll__encode_pointer
cmp eax, ebx
pop ecx
mov dword [0x781c4064], eax
je 0x781397a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call sym.MSVCR80.dll__encode_pointer
pop ecx
mov dword [0x781c4060], eax
mov eax, dword [0x781c4060]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x78139829
cmp dword [0x781c4064], ecx
je 0x78139829
push eax
call sym.MSVCR80.dll__decode_pointer
push dword [0x781c4064]
mov esi, eax
call sym.MSVCR80.dll__decode_pointer
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x78139829
cmp edi, ebx
je 0x78139829
call esi
cmp eax, ebx
je 0x781397f6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x781397f6
test byte [ebp - 0x18], 1
jne 0x78139829
lea eax, [ebp - 0x10]
push eax
call sym.MSVCR80.dll__get_winmajor
test eax, eax
pop ecx
je 0x78139811
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x78139820
or dword [ebp + 0x10], 0x200000
jmp 0x78139864
or dword [ebp + 0x10], 0x40000
jmp 0x78139864
mov eax, dword [0x781c4058]
cmp eax, dword [ebp - 8]
je 0x78139864
push eax
call sym.MSVCR80.dll__decode_pointer
cmp eax, ebx
pop ecx
je 0x78139864
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x78139864
mov eax, dword [0x781c405c]
cmp eax, dword [ebp - 8]
je 0x78139864
push eax
call sym.MSVCR80.dll__decode_pointer
cmp eax, ebx
pop ecx
je 0x78139864
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x781c4054]
call sym.MSVCR80.dll__decode_pointer
cmp eax, ebx
pop ecx
je 0x78139884
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x78139886
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x78139a71
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x781c19e0]
jne 0x78139a7b
repz ret
jmp sym.MSVCR80.dll___report_gsfailure
Function at 0x7813b57a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call sym.MSVCR80.dll__encoded_null
xor ebx, ebx
cmp dword [0x781c40a0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x7813b650
push str.USER32.DLL
call dword [sym.imp._CKERNEL.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x7813b730
mov esi, dword [sym.imp._CKERNEL.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x7813b730
push eax
call sym.MSVCR80.dll__encode_pointer
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x781c40a0], eax
call esi
push eax
call sym.MSVCR80.dll__encode_pointer
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x781c40a4], eax
call esi
push eax
call sym.MSVCR80.dll__encode_pointer
mov dword [0x781c40a8], eax
lea eax, [ebp - 0xc]
push eax
call sym.MSVCR80.dll__get_osplatform
test eax, eax
pop ecx
pop ecx
je 0x7813b61e
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x7813b650
push str.GetUserObjectInformationW
push edi
call esi
push eax
call sym.MSVCR80.dll__encode_pointer
cmp eax, ebx
pop ecx
mov dword [0x781c40b0], eax
je 0x7813b650
push str.GetProcessWindowStation
push edi
call esi
push eax
call sym.MSVCR80.dll__encode_pointer
pop ecx
mov dword [0x781c40ac], eax
mov eax, dword [0x781c40ac]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x7813b6d5
cmp dword [0x781c40b0], ecx
je 0x7813b6d5
push eax
call sym.MSVCR80.dll__decode_pointer
push dword [0x781c40b0]
mov esi, eax
call sym.MSVCR80.dll__decode_pointer
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x7813b6d5
cmp edi, ebx
je 0x7813b6d5
call esi
cmp eax, ebx
je 0x7813b6a2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x7813b6a2
test byte [ebp - 0x18], 1
jne 0x7813b6d5
lea eax, [ebp - 0x10]
push eax
call sym.MSVCR80.dll__get_winmajor
test eax, eax
pop ecx
je 0x7813b6bd
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x7813b6cc
or dword [ebp + 0x10], 0x200000
jmp 0x7813b710
or dword [ebp + 0x10], 0x40000
jmp 0x7813b710
mov eax, dword [0x781c40a4]
cmp eax, dword [ebp - 8]
je 0x7813b710
push eax
call sym.MSVCR80.dll__decode_pointer
cmp eax, ebx
pop ecx
je 0x7813b710
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x7813b710
mov eax, dword [0x781c40a8]
cmp eax, dword [ebp - 8]
je 0x7813b710
push eax
call sym.MSVCR80.dll__decode_pointer
cmp eax, ebx
pop ecx
je 0x7813b710
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x781c40a0]
call sym.MSVCR80.dll__decode_pointer
cmp eax, ebx
pop ecx
je 0x7813b730
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x7813b732
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x78154808
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154835
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__invalid_parameter
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78154811
push dword [esp + 8]
call dword [sym.imp._CKERNEL.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154864
call dword [sym.imp._CKERNEL.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x7815488b
test al, 1
je 0x7815488b
test byte [esp + 0xc], 2
je 0x7815488b
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x7815485b
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154b5a
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__invalid_parameter
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp._CKERNEL.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154b78
call dword [sym.imp._CKERNEL.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78154b55
test byte [esp + 0xc], 0x80
je 0x78154b84
and eax, 0xfffffffe
jmp 0x78154b87
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp._CKERNEL.dll_SetFileAttributesA]
test eax, eax
je 0x78154b69
xor eax, eax
pop esi
ret
Function at 0x78155d67
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155d94
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__invalid_parameter
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78155d70
push dword [esp + 8]
call dword [sym.imp._CKERNEL.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155dc3
call dword [sym.imp._CKERNEL.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x78155dea
test al, 1
je 0x78155dea
test byte [esp + 0xc], 2
je 0x78155dea
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x78155dba
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155f61
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__invalid_parameter
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp._CKERNEL.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155f7f
call dword [sym.imp._CKERNEL.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78155f5c
test byte [esp + 0xc], 0x80
je 0x78155f8b
and eax, 0xfffffffe
jmp 0x78155f8e
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp._CKERNEL.dll_SetFileAttributesW]
test eax, eax
je 0x78155f70
xor eax, eax
pop esi
ret
Function at 0x404a03
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
mov esi, esp
sub esp, 0x44
mov eax, esp
mov edx, eax
add edx, 0x44
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x404a14
push 0x412017
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [esp], eax
cmp dword [esp], 0
je 0x404b14
push 0x412021
push dword [esp + 4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 4], eax
push 0x41202f
push dword [esp + 4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 8], eax
push 0x412042
push dword [esp + 4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 0xc], eax
push 0x412055
push dword [esp + 4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 0x10], eax
push 0x41206a
push dword [esp + 4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 0x14], eax
push 0x41207c
push dword [esp + 4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 0x18], eax
push 0x412095
push dword [esp + 4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 0x1c], eax
push 0x4120ae
push dword [esp + 4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 0x20], eax
push 0x4120c3
push dword [esp + 4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x415258], eax
push 0x1000
push 0
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [esp + 0x24], eax
push 0x1000
push 0
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [esp + 0x28], eax
push 0x1000
push 0
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [esp + 0x2c], eax
push 0x4120d3
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x404b71
push 0x4120e0
push dword [esp + 0x34]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 0x34], eax
push 0x4120f9
push dword [esp + 0x34]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 0x38], eax
push 0x412107
push dword [esp + 0x34]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 0x3c], eax
push 0x412114
push dword [esp + 0x34]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 0x40], eax
xor eax, eax
add esp, 0x44
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret
Function at 0x40ba00
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
push dword [esp + 0x20]
pop dword [0x4122fc]
mov esi, esp
sub esp, 0x24
mov eax, esp
mov edx, eax
add edx, 0x24
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x40ba1b
mov edx, dword [esi + 0x18]
lea ecx, [esp]
call fcn.0040b7c1
mov eax, dword [esi + 0x1c]
mov byte [esp + 4], al
mov byte [esp + 5], 1
mov dword [esp + 6], 0x80000000
mov dword [esp + 0xa], 0
mov dword [esp + 0xe], 0
mov dword [esp + 0x12], 0
push dword [0x4122fc]
mov eax, 0x800
call fcn.0040b24b
lea ecx, [esp + 0x1a]
pop edx
call fcn.0040b754
mov edx, 0x412300
lea ecx, [esp + 0x1a]
call fcn.0040b7a0
push 0
push 0
push 0
movsx eax, byte [esp + 0x10]
push eax
push 0x412301
call sub.WININET.dll_InternetOpenA
mov dword [esp + 0xa], eax
push 0
push dword [esp + 0xa]
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x1e]
call sub.WININET.dll_InternetOpenUrlA
mov dword [esp + 0xe], eax
mov eax, 1
call fcn.004161c0
lea eax, [esp + 0x12]
push eax
mov eax, dword [esp + 0x1a]
call fcn.0040aff7
push eax
mov eax, dword [esp + 0x1e]
push eax
push dword [esp + 0x1a]
call sub.WININET.dll_InternetReadFile
mov ebx, dword [esp + 0x12]
cmp ebx, 0
jne 0x40bb05
mov byte [esp + 5], 0
jmp 0x40bb32
mov edx, dword [esp + 0x1a]
push dword [0x4122fc]
call fcn.0040b800
push dword [0x4122fc]
push dword [esp + 0x1a]
mov eax, dword [esp + 0x22]
call fcn.0040afba
pop eax
lea ecx, [esp + 0x1e]
pop edx
call fcn.0040b754
mov ebx, dword [esp + 0x1e]
add ebx, dword [esp + 0x12]
mov dword [esp + 0x1e], ebx
movsx ebx, byte [esp + 5]
cmp ebx, 0
jne 0x40bace
push dword [esp + 0xe]
call sub.WININET.dll_InternetCloseHandle
push dword [esp + 0xa]
call sub.WININET.dll_InternetCloseHandle
mov edx, dword [esp + 0x1a]
push dword [0x4122fc]
call fcn.0040b800
pop eax
jmp 0x40bb74
mov edx, dword [esp + 0x16]
call fcn.0040b820
mov edx, dword [esp + 0x1a]
call fcn.0040b820
mov edx, dword [esp]
call fcn.0040b820
add esp, 0x24
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 8

Function at 0x40bba0
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
push dword [esp + 0x18]
pop dword [0x4122fc]
mov esi, esp
sub esp, 4
mov eax, esp
mov edx, eax
add edx, 4
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x40bbbb
push dword [0x4122fc]
mov eax, 0x1f4
call fcn.0040b24b
lea ecx, [esp + 4]
pop edx
call fcn.0040b754
mov eax, dword [esp]
push eax
push 0x226
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov edx, dword [esp]
push dword [0x4122fc]
call fcn.0040b800
pop eax
jmp 0x40bc09
mov edx, dword [esp]
call fcn.0040b820
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret
Function at 0x40df8e
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x40dfa8
push dword [ebp + 8]
push 0x40df20
call sub.USER32.dll_EnumWindows
jmp 0x40dfdf
mov edi, dword [0x414250]
jmp 0x40dfdb
mov esi, dword [edi]
call sub.KERNEL32.DLL_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x40dfd9
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x414250
call fcn.00410940
add esp, 8
mov edi, esi
or edi, edi
jne 0x40dfb0
pop edi
pop esi
pop ebp
ret 4

Function at 0x40e140
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
or esi, esi
je 0x40e218
mov dword [ebp - 0x40], esi
push esi
call sub.CRTDLL.dll_strlen
pop ecx
lea edi, [eax + esi - 1]
jmp 0x40e16a
dec edi
cmp edi, esi
jbe 0x40e173
cmp byte [edi], 0x5c
jne 0x40e169
cmp edi, esi
jbe 0x40e1a9
mov byte [edi], 0
push esi
lea eax, [ebp - 0x240]
push eax
call sub.CRTDLL.dll_strcpy
push 0x414266
lea eax, [ebp - 0x240]
push eax
call sub.CRTDLL.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x240]
mov dword [ebp - 0x40], eax
mov byte [edi], 0x5c
jmp 0x40e1ad
and dword [ebp - 0x40], 0
mov eax, dword [ebp + 0x10]
or eax, eax
je 0x40e1bc
cmp byte [eax], 0
je 0x40e1bc
mov dword [ebp - 0x40], eax
xor edi, edi
inc edi
test byte [ebp + 0x14], 2
je 0x40e1c7
xor edi, edi
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x20], edi
lea eax, [0x414261]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
mov ebx, eax
or eax, eax
je 0x40e218
cmp dword [ebp - 4], 0
je 0x40e218
test byte [ebp + 0x14], 1
je 0x40e215
push 0xffffffffffffffff
push dword [ebp - 4]
call sub.KERNEL32.DLL_WaitForSingleObject
mov ebx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40f580
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 9
call sub.USER32.dll_GetKeyState
mov ebx, eax
movsx ebx, bx
test bl, 0x80
je 0x40f5fa
push 0x11
call sub.USER32.dll_GetKeyState
mov ebx, eax
movsx ebx, bx
test bl, 0x80
jne 0x40f5fa
push 0x10
call sub.USER32.dll_GetKeyState
mov ebx, eax
movsx ebx, bx
test bl, 0x80
jne 0x40f5fa
push 0x12
call sub.USER32.dll_GetKeyState
mov ebx, eax
movsx ebx, bx
test bl, 0x80
jne 0x40f5fa
call sub.USER32.dll_GetFocus
push 5
lea ebx, [ebp - 5]
push ebx
push eax
call sub.USER32.dll_GetClassNameA
push 4
push 0x414320
lea eax, [ebp - 5]
push eax
call sub.CRTDLL.dll_strncmp
add esp, 0xc
or eax, eax
jne 0x40f5fa
jmp 0x40f640
mov edi, dword [0x415c58]
jmp 0x40f60e
cmp dword [edi + 8], esi
jne 0x40f60c
mov eax, dword [edi + 0x14]
jmp 0x40f640
mov edi, dword [edi]
or edi, edi
jne 0x40f602
jmp 0x40f636
mov ebx, edi
shl ebx, 4
mov edx, dword [0x415c14]
cmp dword [edx + ebx], esi
jne 0x40f635
mov ebx, edi
shl ebx, 4
mov edx, dword [0x415c14]
mov eax, dword [ebx + edx + 0xc]
jmp 0x40f640
inc edi
cmp edi, dword [0x415c10]
jl 0x40f614
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x49da82
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x49dace
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x49dac8
mov ecx, dword [0x4dd848]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x49dabc
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49daa1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x49daca
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x49f653
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x49f6bf
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x49f708
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004b8b00
add esp, 8
test eax, eax
jne 0x49f706
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x49f70a
jmp 0x49f6b6
xor eax, eax
mov esp, ebp
pop ebp
ret