joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407a53
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x78
mov eax, 0x41a1c9
call fcn.0040d60c
push 0x44
pop edi
xor esi, esi
push edi
lea eax, [ebp - 0x84]
push esi
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], esi
call fcn.0040deb0
push 0x10
lea eax, [ebp - 0x40]
push esi
push eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x58], esi
mov word [ebp - 0x54], si
call fcn.0040deb0
add esp, 0x18
push 0x41c79c
lea ecx, [ebp - 0x30]
call fcn.0040144f
mov ebx, eax
mov edi, 0x41c798
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040144f
mov dword [ebp - 0x18], eax
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0040144f
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 5
call fcn.0040304d
push dword [ebp - 0x18]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040304d
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 7
call fcn.0040304d
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 8
call fcn.0040304d
mov ecx, dword [ebp - 0x1c]
add esp, 0x30
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00401189
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x84]
push eax
push edi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407b90
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x14]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x407b99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401189
lea ecx, [edi - 0x10]
call fcn.00401189
mov eax, dword [ebp - 0x14]
call fcn.0040d6ab
ret 0x10

Function at 0x407c09
Capabilities:
Access the windows event log

Disassembly:
mov ecx, dword [ecx]
xor eax, eax
cmp ecx, eax
je 0x407c2c
push eax
lea edx, [esp + 0xc]
push edx
push eax
push 1
push eax
push 0x20000001
push eax
push dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
ret 8
Function at 0x407cfb
Capabilities:
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4234b0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov edx, dword [ebp + 0x9c]
mov eax, dword [ebp + 0x98]
mov eax, dword [eax]
push esi
mov ecx, 0x100
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push edx
push eax
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x407d57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp + 0x8c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040d5fd
add ebp, 0x90
leave
ret 0xc

Function at 0x4081de
Capabilities:
Query environment variable

Disassembly:
push 4
mov eax, 0x41a1ef
call fcn.0040d60c
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
mov edi, eax
cmp edi, ebx
jbe 0x40823a
lea ebx, [edi + 1]
push ebx
call fcn.0040e3f5
push ebx
push 0
push eax
mov dword [ebp - 0x10], eax
call fcn.0040deb0
add esp, 0x10
push edi
push dword [ebp - 0x10]
push dword [ebp + 8]
call esi
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.004013e6
push dword [ebp - 0x10]
call fcn.0040d037
xor ebx, ebx
pop ecx
inc ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401189
mov eax, ebx
call fcn.0040d6ab
ret 8

Function at 0x409572
Capabilities:
Create directory

Disassembly:
push 4
mov eax, 0x41a26f
call fcn.0040d60c
mov ebx, ecx
and dword [ebp - 4], 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x4095f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
cmp edi, 0xb7
sete al
mov esi, eax
test esi, esi
jne 0x4095f5
push 0x424648
lea ecx, [ebp - 0x10]
call fcn.0040128c
push edi
lea eax, [ebp - 0x10]
push str.Failed_to_create_ASE_Packager_script_directory._Error_code__d
push eax
mov byte [ebp - 4], 1
call fcn.004093df
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push ecx
mov dword [ebp + 0xc], esp
mov ecx, esp
push eax
call fcn.00401a72
mov ecx, ebx
call fcn.00408d55
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401189
mov eax, esi
call fcn.0040d6ab
ret 8

Function at 0x409caf
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x41a377
call fcn.0040d60c
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp + 8]
push 0x424648
mov dword [ebp - 4], ebx
call fcn.0040128c
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call esi
mov edi, eax
cmp edi, ebx
jbe 0x409d13
lea ebx, [edi + 1]
push ebx
call fcn.0040e3f5
push ebx
push 0
push eax
mov dword [ebp - 0x10], eax
call fcn.0040deb0
add esp, 0x10
push dword [ebp - 0x10]
push edi
call esi
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
call fcn.004013e6
mov eax, dword [ebp + 8]
call fcn.0040d6ab
ret 4
Function at 0x40b33e
Capabilities:
Get disk information

Disassembly:
push 0xc
mov eax, 0x41a6a2
call fcn.0040d60c
mov dword [ebp - 0x18], ecx
and dword [ebp - 4], 0
push 2
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00408ee9
mov edi, 0x41b3ac
push edi
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00407d71
mov ecx, dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
add ecx, 0xfffffff0
inc esi
mov byte [ebp - 4], 0
call fcn.00401189
test esi, esi
jne 0x40b3f4
push 0x424648
lea ecx, [ebp - 0x10]
call fcn.0040128c
push esi
push edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004088d0
cmp eax, 0xffffffff
je 0x40b3d0
inc eax
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00408ee9
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00403108
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401189
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ecx, ecx
cmp eax, 4
sete cl
mov byte [ebp - 4], 0
mov esi, ecx
lea ecx, [edi - 0x10]
call fcn.00401189
test esi, esi
je 0x40b42a
push str.Could_not_unpack_the_ASE_Packager_contents_on_a_network_drive
lea ecx, [ebp - 0x10]
call fcn.0040144f
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push ecx
mov dword [ebp + 0xc], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 4
call fcn.00401a72
mov ecx, dword [ebp - 0x18]
call fcn.00408d55
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401189
mov eax, esi
call fcn.0040d6ab
ret 8
Function at 0x40b43f
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x41a6fd
call fcn.0040d60c
mov dword [ebp - 0x2c], ecx
xor ebx, ebx
push ebx
mov esi, 0x41b3ac
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.004088d0
mov edi, eax
cmp edi, 0xffffffff
je 0x40b5ad
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.00408ee9
mov byte [ebp - 4], 1
inc ebx
cmp edi, 0xffffffff
je 0x40b59c
lea ebx, [edi + 1]
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.004088d0
push 0x424648
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0040128c
cmp dword [ebp - 0x14], 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
je 0x40b4e7
mov eax, dword [ebp - 0x14]
sub eax, edi
dec eax
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.00408e6c
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00403108
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401189
mov edi, dword [ebp - 0x14]
jmp 0x40b51a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
sub eax, edi
dec eax
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
call fcn.00408e6c
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00403108
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401189
or edi, 0xffffffff
push esi
lea ecx, [ebp - 0x28]
call fcn.0040144f
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 5
call fcn.0040304d
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040960a
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00401189
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
test ebx, ebx
jne 0x40b581
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
mov dword [ebp - 0x14], eax
test ebx, ebx
je 0x40b585
and dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401189
test ebx, ebx
jne 0x40b482
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401189
jmp 0x40b5b4
mov dword [ebp - 0x14], 3
test ebx, ebx
jne 0x40b602
push 0x424648
lea ecx, [ebp - 0x18]
call fcn.0040128c
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push str.Failed_to_create_ASE_Packager_directory.Error_code__d
push eax
mov byte [ebp - 4], 7
call fcn.004093df
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push ecx
mov dword [ebp + 0xc], esp
mov ecx, esp
push eax
call fcn.00401a72
mov ecx, dword [ebp - 0x2c]
call fcn.00408d55
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401189
mov eax, ebx
call fcn.0040d6ab
ret 8
Function at 0x40c2db
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4234b0]
xor eax, ebp
mov dword [ebp + 0x194], eax
test byte [0x424628], 1
mov eax, dword [ebp + 0x1a0]
mov dword [ebp - 0x80], eax
jne 0x40c31f
or dword [0x424628], 1
push str.www.systweak.com
call fcn.0040d150
pop ecx
mov dword [0x424624], eax
push ebx
push esi
push edi
mov esi, 0x101
push esi
xor edi, edi
lea eax, [ebp + 0x90]
push edi
push eax
call fcn.0040deb0
push esi
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.0040deb0
add esp, 0x18
xor eax, eax
lea ecx, [esi - 1]
mov byte [ebp + eax + 0x90], al
inc eax
cmp eax, ecx
jb 0x40c34a
xor eax, eax
xor esi, esi
cmp dword [ebp + 0x1ac], edi
je 0x40c381
cmp eax, dword [ebp + 0x1ac]
jne 0x40c36c
xor eax, eax
mov edx, dword [ebp + 0x1a8]
mov dl, byte [eax + edx]
inc eax
mov byte [ebp + esi - 0x74], dl
inc esi
cmp esi, ecx
jb 0x40c362
jmp 0x40c39b
cmp eax, dword [0x424624]
jne 0x40c38b
xor eax, eax
mov dl, byte [eax + str.www.systweak.com]
inc eax
mov byte [ebp + esi - 0x74], dl
inc esi
cmp esi, ecx
jb 0x40c381
mov dword [ebp - 0x78], edi
mov ecx, 0xff
movzx eax, byte [ebp + edi - 0x74]
lea esi, [ebp + edi + 0x90]
mov dl, byte [esi]
movzx ebx, dl
add ebx, dword [ebp - 0x78]
add eax, ebx
and eax, ecx
mov dword [ebp - 0x78], eax
lea eax, [ebp + eax + 0x90]
mov bl, byte [eax]
inc edi
cmp edi, 0x100
mov byte [esi], bl
mov byte [eax], dl
jb 0x40c3a3
xor edx, edx
cmp dword [ebp + 0x1a4], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], edx
jbe 0x40c430
inc edx
and edx, ecx
lea esi, [ebp + edx + 0x90]
mov al, byte [esi]
movzx ebx, al
add ebx, dword [ebp - 0x78]
and ebx, ecx
mov edi, ebx
mov dword [ebp - 0x78], edi
lea edi, [ebp + edi + 0x90]
mov bl, byte [edi]
mov byte [esi], bl
mov ebx, dword [ebp - 0x7c]
mov byte [edi], al
mov edi, dword [ebp - 0x80]
add edi, ebx
movzx ebx, byte [esi]
add eax, ebx
and eax, ecx
mov al, byte [ebp + eax + 0x90]
xor byte [edi], al
inc dword [ebp - 0x7c]
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x1a4]
jb 0x40c3e4
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d5fd
add ebp, 0x198
leave
ret 0x10
Function at 0x40cdf8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4234b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040cd37
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040deb0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40ce47
cmp dword [ebp - 0x1c], 5
jb 0x40ce5f
jmp 0x40ce5b
cmp dword [ebp - 0x10], 1
jne 0x40ce5f
cmp dword [ebp - 0x1c], 4
ja 0x40ce5b
jne 0x40ce5f
cmp dword [ebp - 0x18], 0
jbe 0x40ce5f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41cf9c
call fcn.0040cc01
test eax, eax
jge 0x40ce80
mov byte [0x424620], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040d5fd
add ebp, 0x78
leave
ret

Function at 0x40d032
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4246cc], 0
push esi
jne 0x40cfa5
call fcn.0040ced0
test eax, eax
je 0x40cfe8
mov eax, dword [0x4246cc]
cmp eax, 1
jne 0x40cfc6
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40cfe8
pop esi
ret
push eax
call dword [0x4246d4]
test eax, eax
jne 0x40d030
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40cfec
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4246cc]
call dword [0x4246d4]
mov edi, eax
test edi, edi
je 0x40d013
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40d02f
lea edi, [esi + 0xff0]
push esi
push dword [0x4246cc]
call dword [0x4246d0]
add esi, 0x10
cmp esi, edi
jb 0x40d019
mov eax, esi
pop edi
pop esi
ret
jmp 0x40cf92

Function at 0x40d5fd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4234b0]
jne 0x40d607
repz ret
jmp fcn.004116dc
Function at 0x41253b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x423a68]
je 0x412556
inc edi
cmp edi, 0x17
jb 0x412547
cmp edi, 0x17
jae 0x4126d6
push ebp
push 3
call fcn.00417d54
cmp eax, 1
pop ecx
je 0x4126a2
push 3
call fcn.00417d54
test eax, eax
pop ecx
jne 0x41258a
cmp dword [0x423900], 1
je 0x4126a2
cmp ebx, 0xfc
je 0x4126d5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x424be8
push ebp
call fcn.004178bf
add esp, 0xc
test eax, eax
je 0x4125c0
push esi
push esi
push esi
push esi
push esi
call fcn.0040ff23
add esp, 0x14
push 0x104
mov esi, 0x424c01
push esi
push 0
mov byte [0x424d05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412604
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004178bf
add esp, 0xc
test eax, eax
je 0x412604
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040ff23
add esp, 0x14
push esi
call fcn.0040d150
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x412649
push esi
call fcn.0040d150
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x424efc
push 0x41d65c
sub ecx, eax
push ecx
push eax
call fcn.00417ca1
add esp, 0x14
test eax, eax
je 0x412649
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040ff23
add esp, 0x14
jmp 0x41264b
xor esi, esi
push 0x41d658
push ebx
push ebp
call fcn.00417c30
add esp, 0xc
test eax, eax
je 0x41266b
push esi
push esi
push esi
push esi
push esi
call fcn.0040ff23
add esp, 0x14
push dword [edi*8 + 0x423a6c]
push ebx
push ebp
call fcn.00417c30
add esp, 0xc
test eax, eax
je 0x41268d
push esi
push esi
push esi
push esi
push esi
call fcn.0040ff23
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00417a73
add esp, 0xc
jmp 0x4126d5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4126d5
cmp ebp, 0xffffffff
je 0x4126d5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x423a6c]
push dword [esi]
call fcn.0040d150
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x417a73
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00411119
xor ebx, ebx
cmp dword [0x425180], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x417b49
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x417c29
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41e018
push edi
call esi
cmp eax, ebx
je 0x417c29
push eax
call fcn.004110ab
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x425180], eax
call esi
push eax
call fcn.004110ab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x425184], eax
call esi
push eax
call fcn.004110ab
mov dword [0x425188], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040eca1
test eax, eax
pop ecx
pop ecx
je 0x417b17
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ff23
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x417b49
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004110ab
cmp eax, ebx
pop ecx
mov dword [0x425190], eax
je 0x417b49
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004110ab
pop ecx
mov dword [0x42518c], eax
mov eax, dword [0x42518c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x417bce
cmp dword [0x425190], ecx
je 0x417bce
push eax
call fcn.00411122
push dword [0x425190]
mov esi, eax
call fcn.00411122
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x417bce
cmp edi, ebx
je 0x417bce
call esi
cmp eax, ebx
je 0x417b9b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417b9b
test byte [ebp - 0x18], 1
jne 0x417bce
lea eax, [ebp - 0x10]
push eax
call fcn.0040ecd8
test eax, eax
pop ecx
je 0x417bb6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ff23
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x417bc5
or dword [ebp + 0x10], 0x200000
jmp 0x417c09
or dword [ebp + 0x10], 0x40000
jmp 0x417c09
mov eax, dword [0x425184]
cmp eax, dword [ebp - 8]
je 0x417c09
push eax
call fcn.00411122
cmp eax, ebx
pop ecx
je 0x417c09
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x417c09
mov eax, dword [0x425188]
cmp eax, dword [ebp - 8]
je 0x417c09
push eax
call fcn.00411122
cmp eax, ebx
pop ecx
je 0x417c09
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x425180]
call fcn.00411122
cmp eax, ebx
pop ecx
je 0x417c29
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417c2b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40508e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
jmp 0x405094
jmp 0x405097
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x405155
test ecx, ecx
je 0x405155
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x405155
test ebx, ebx
je 0x405155
mov ebx, eax
add ebx, edx
je 0x405155
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x405155
cmp dword [edx + eax + 0x14], 0
je 0x405155
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x405155
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x405145
test dl, dl
je 0x405141
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x405145
add edi, 2
add esi, 2
test dl, dl
jne 0x405125
xor eax, eax
jmp 0x40514a
sbb eax, eax
or eax, 1
test eax, eax
je 0x405161
inc ebp
cmp ebp, dword [esp + 4]
jb 0x405112
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4223b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x498a8b
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.0048dbf7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x422432
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048bb0a
mov eax, dword [eax]
push 0x4c2c60
push eax
call fcn.0047cb84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048de82
test bl, bl
je 0x422432
push 0x4c2c60
lea ecx, [esp + 0xc]
call fcn.0048e212
push 0x4c2c6c
lea ecx, [esp + 0xc]
call fcn.0048e212
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 0x42246e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048de82
jmp 0x422539
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 0x4224f2
lea edx, [esp + 0x7c]
push 0x4c2c68
push edx
call fcn.0047cb84
add esp, 8
test eax, eax
je 0x4224f2
lea eax, [esp + 0x7c]
push 0x4c2c64
push eax
call fcn.0047cb84
add esp, 8
test eax, eax
je 0x4224f2
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 0x422482
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.0048de82
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 0x422d40
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 0x422da2
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