joyce8/EMBER2024-capa huggingface dataset:
Function at 0xce7f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xcfc9fb
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 0xce8002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00cebdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xce8002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00ce36e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00cec20b
push 0x10
call fcn.00cec1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xce7fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00cd81c0
jmp 0xce7fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00ce7b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xce7ff0
mov ecx, edi
call fcn.00cd82c0
push edi
call fcn.00cec1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xce8021
inc ebx
cmp ebx, 0x20
jb 0xce7f3e
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 0xce9250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcfd808
push 0xced288
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 0xce9329
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 0xce9329
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.00cec1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xce9329
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 0xce9329
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 0xce932c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00ce9351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xce9d20
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 0xce9d58
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 0xce9d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xce9d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xce9d94
push eax
push esi
call fcn.00cec20b
add esp, 8
pop esi
ret 0x10

Function at 0xce9da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
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 0xce9e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xce9e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd02320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00cebdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xce9dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xce9e30
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 0xce9ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xce9eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd02320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00cebdff
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 0xce9eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xce9e6a
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 0xcea000
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 0xcea131
push esi
call fcn.00ced145
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.00cdc080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xcea131
push 0
push ebp
call fcn.00cdc3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00cdc260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xcea08b
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.00cdc2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xcea121
push 0xd02918
push edi
call fcn.00ceb3f0
push eax
push ebx
push esi
call fcn.00ce9f60
push 0xd028f8
push edi
call fcn.00ceb3f0
push eax
push ebx
push esi
call fcn.00ce9f60
push 0xd028d8
push edi
call fcn.00ceb3f0
push eax
push ebx
push esi
call fcn.00ce9f60
push 0xd028c0
push edi
call fcn.00ceb3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ce9f60
push 0xd028a0
push edi
call fcn.00ceb3f0
push eax
push ebx
push esi
call fcn.00ce9f60
push 0xd02888
push edi
call fcn.00ceb3f0
push eax
push ebx
push esi
call fcn.00ce9f60
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 0xceb1b0
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.00ceb140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ceb140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ceb140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ceb140
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 0xcebbfa
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 0xcebc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcfd87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xcebc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xcebc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x41199c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4119d5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403bfc
jmp 0x4119de
mov eax, ebx
mov edx, esi
call fcn.00403b60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4119e8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x411a09
mov al, byte [esp]
jmp 0x411a0b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4120a0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x411f08
mov eax, dword [0x445084]
cmp byte [eax], 0
je 0x41211c
mov eax, dword [0x444fe0]
call fcn.00402ab4
call fcn.0040298c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00410e70
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x412164
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x412152
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x444fc0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x446660]
call fcn.0040495c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x412b40
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x412ba4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403d60
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00410d38
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412bab
lea eax, [ebp - 0xc]
call fcn.00403b0c
ret
Function at 0x424bc4
Capabilities:
Read file on windows

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
push 4
push 0x1000
mov eax, dword [ebx + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp], eax
push 0
push 0
call fcn.00402b74
fild qword [ebx + 0x58]
fmulp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [esp + 0x18]
call fcn.00406208
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edx
push eax
mov eax, dword [ebx + 0x50]
dec eax
xor edx, edx
not eax
not edx
and eax, dword [esp]
and edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_SetFilePointerEx
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_ReadFile
push 0x8000
push 0
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_VirtualFree_1
add esp, 0x10
pop ebx
ret
Function at 0x42e7bc
Capabilities:
Create process on windows

Disassembly:
push ebx
mov bl, byte [0x446c44]
xor bl, 1
test bl, bl
je 0x42e806
push 0x50044
mov eax, dword [0x446c50]
call fcn.00403fa8
push eax
push 0x42e80c
mov eax, dword [0x4468a8]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_MessageBoxA_2
cmp eax, 6
jne 0x42e806
push 5
push 0
push 0
push 0x42e870
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, ebx
pop ebx
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
nop
mov ebx, 0x408ecc
mov ecx, 0x6f056e45
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x555e54af
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x7813166c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
je 0x7813167e
xor eax, eax
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x7813167b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x781316b0
cmp eax, 0x20b
jne 0x7813167b
xor eax, eax
cmp dword [ecx + 0x84], 0xe
jbe 0x781316c1
cmp dword [ecx + 0xf8], eax
jmp 0x781316be
xor eax, eax
cmp dword [ecx + 0x74], 0xe
jbe 0x781316c1
cmp dword [ecx + 0xe8], eax
setne al
ret

Function at 0x78131aca
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 + 0x781bf018]
je 0x78131ae5
inc edi
cmp edi, 0x17
jb 0x78131ad6
cmp edi, 0x17
jae 0x78131c65
push ebp
push 3
call sym.MSVCR80.dll__set_error_mode
cmp eax, 1
pop ecx
je 0x78131c31
push 3
call sym.MSVCR80.dll__set_error_mode
test eax, eax
pop ecx
jne 0x78131b19
cmp dword [0x781c3b34], 1
je 0x78131c31
cmp ebx, 0xfc
je 0x78131c64
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x781c3808
push ebp
call sym.MSVCR80.dll_strcpy_s
add esp, 0xc
test eax, eax
je 0x78131b4f
push esi
push esi
push esi
push esi
push esi
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
push 0x104
mov esi, 0x781c3821
push esi
push 0
mov byte [0x781c3925], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x78131b93
push 0x781948c8
push 0x2fb
push esi
call sym.MSVCR80.dll_strcpy_s
add esp, 0xc
test eax, eax
je 0x78131b93
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
push esi
call sym.MSVCR80.dll_strlen
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x78131bd8
push esi
call sym.MSVCR80.dll_strlen
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x781c3b1c
push 0x781948c4
sub ecx, eax
push ecx
push eax
call sym.MSVCR80.dll_strncpy_s
add esp, 0x14
test eax, eax
je 0x78131bd8
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
jmp 0x78131bda
xor esi, esi
push 0x781948c0
push ebx
push ebp
call sym.MSVCR80.dll_strcat_s
add esp, 0xc
test eax, eax
je 0x78131bfa
push esi
push esi
push esi
push esi
push esi
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
push dword [edi*8 + 0x781bf01c]
push ebx
push ebp
call sym.MSVCR80.dll_strcat_s
add esp, 0xc
test eax, eax
je 0x78131c1c
push esi
push esi
push esi
push esi
push esi
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.781396ce
add esp, 0xc
jmp 0x78131c64
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x78131c64
cmp ebp, 0xffffffff
je 0x78131c64
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x781bf01c]
push dword [esi]
call sym.MSVCR80.dll_strlen
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 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.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x78139884
mov esi, dword [sym.imp.KERNEL32.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.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x7813b730
mov esi, dword [sym.imp.KERNEL32.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