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

Disassembly:
push 0x60
mov eax, 0x10825b1
call fcn.010020dc
mov esi, ecx
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x6c]
push 0x101e070
push eax
call fcn.01014ed6
push 0x101e058
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0101f1bf
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.01012f94
push 0x100219c
mov ecx, esi
call fcn.01014fd3
test eax, eax
je 0x1049acb
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x2c]
call fcn.01014e3a
mov edi, 0x101e034
push edi
lea ecx, [ebp - 0x50]
call fcn.010142c5
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
lea ebx, [esi + 0x48]
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.010215a9
mov eax, dword [eax]
push 0
push 1
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
call fcn.01012f94
mov eax, dword [esi + 0x4c]
cmp dword [ebp - 0x30], eax
jne 0x1049ad2
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jb 0x1049b10
push eax
push 0x80000001
mov ecx, esi
call fcn.01021581
mov esi, eax
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.01012f94
mov eax, esi
call fcn.01002119
ret
xor esi, esi
jmp 0x1021568
push edi
lea ecx, [ebp - 0x50]
call fcn.010142c5
lea eax, [ebp - 0x50]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.01075550
cmp dword [eax + 0x18], 8
jb 0x1049af5
mov eax, dword [eax + 4]
jmp 0x1049af8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.01012f94
jmp 0x102154c
lea eax, [ebp - 0x28]
jmp 0x1021559

Function at 0x10231d1
Capabilities:
Get geographical location

Disassembly:
push 0x20c
mov eax, 0x107ab30
call fcn.010020dc
mov esi, 0xac
push esi
xor edi, edi
lea eax, [ebp - 0x168]
push edi
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x214]
push edi
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0xbc]
push edi
push eax
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add esp, 0x24
push 0x56
lea eax, [ebp - 0x168]
push eax
push 0x1001
mov edi, 0x400
push edi
call esi
test eax, eax
je 0x10232ee
push 0x56
lea eax, [ebp - 0x214]
push eax
push 0x1002
push edi
call esi
test eax, eax
je 0x10232ee
push 0x56
lea eax, [ebp - 0xbc]
push eax
push 0x1004
push edi
call esi
test eax, eax
je 0x10411e8
lea ecx, [ebp - 0x218]
call sub.MFC42u.dll_CString::CString_1
and dword [ebp - 4], 0
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x218]
call fcn.01004090
push 0x1023304
lea ecx, [ebp - 0x218]
call sub.MFC42u.dll_CString::operator_1
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x218]
call sub.MFC42u.dll_CString::operator_1
push 0x1023300
lea ecx, [ebp - 0x218]
call sub.MFC42u.dll_CString::operator_1
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x218]
call sub.MFC42u.dll_CString::operator_1
push dword [ebp - 0x218]
push 0
call dword [sym.imp.msvcrt.dll__wsetlocale]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x218]
call fcn.010027d6
call fcn.01002119
ret
test eax, eax
je 0x10232ee
jmp 0x102326a
push 0x56
lea eax, [ebp - 0xbc]
push eax
push 0xb
push edi
call esi
jmp 0x10232f4
Function at 0x102626d
Capabilities:
Terminate process

Disassembly:
test byte [ebp - 0x40], 1
jne 0x1045b54
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01027410
mov dword [0x108a2a4], eax
cmp dword [0x108a298], ebx
jne 0x1045b9d
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov dword [ecx], eax
jmp 0x1014828
mov dword [eax], edx
mov dword [edx + 4], eax
pop ebp
ret 4
call fcn.01024b67
push 0x5c
push 0x1026490
call fcn.0102e8a8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x108b3bc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x1045b06
xor esi, esi
inc esi
mov eax, dword [0x108a2bc]
cmp eax, esi
je 0x1045b25
mov eax, dword [0x108a2bc]
test eax, eax
jne 0x10264c7
mov dword [0x108a2bc], esi
push 0x102648c
push 0x1026480
call fcn.01026244
pop ecx
pop ecx
test eax, eax
jne 0x1045bc0
mov eax, dword [0x108a2bc]
cmp eax, esi
jne 0x1026320
push 0x102647c
push 0x1026368
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x108a2bc], 2
cmp dword [ebp - 0x20], ebx
jne 0x102632d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x108e5e4], ebx
jne 0x1045b32
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1045bc0
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x10264b8
cmp cx, 0x22
je 0x1045b5d
inc eax
inc eax
jmp 0x1026348
cmp cx, bx
je 0x10264d2
cmp dword [ebp - 0x1c], ebx
je 0x10264d2
jmp 0x1026358
mov dword [0x108ef28], esi
jmp 0x10262fc
movzx ecx, word [eax]
cmp cx, bx
je 0x10147b8
cmp cx, 0x20
ja 0x10147b8
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10264d2
cmp eax, esi
jne 0x1045b15
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10262c3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10262af
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10262fc
push 0x108e5e4
call fcn.0106cc49
pop ecx
test eax, eax
je 0x1026339
push ebx
push 2
push ebx
call dword [0x108e5e4]
jmp 0x1026339
movzx ecx, word [ebp - 0x3c]
jmp 0x10147c5
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x1026362
cmp dword [0x108ef28], ebx
jne 0x1045bab
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x108a2a4]
jmp 0x1045bcc
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0102e894
ret
Function at 0x102beae
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc0
mov eax, 0x107e238
call fcn.0100208c
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
cmp ecx, eax
je 0x102bef5
xor ebx, ebx
lea esi, [ecx + 0x10]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
cmp esi, ebx
jne 0x104434c
lea ecx, [ebp - 0x18]
call fcn.01014a7d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
cmp ecx, dword [eax + 4]
jne 0x102bece
call fcn.01002061
ret 4
cmp dword [esi + 0x18], 8
jb 0x1044357
mov eax, dword [esi + 4]
jmp 0x104435a
lea eax, [esi + 4]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x104443a
cmp dword [esi + 0x34], 8
jb 0x1044388
mov eax, dword [esi + 0x20]
jmp 0x104438b
lea eax, [esi + 0x20]
lea ecx, [ebp - 0x14]
push ecx
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x104443a
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010067e4
cmp dword [esi + 0x34], 8
pop ecx
mov edi, eax
jb 0x10443cc
mov esi, dword [esi + 0x20]
jmp 0x10443cf
add esi, 0x20
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1044433
push edi
lea ecx, [ebp - 0x48]
call fcn.010142c5
push 1
push 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], ebx
call fcn.01068229
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.01012f94
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0xcc]
push eax
call fcn.0106f598
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.01067fa6
push edi
call fcn.01006809
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x102bee2
Function at 0x102f10f
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x108a1e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x224], ecx
mov ecx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x238], ecx
mov ecx, dword [ebp + 0x20]
push edi
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp + 0x24]
push eax
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x234], ecx
call fcn.0102f46e
xor edi, edi
mov dword [ebp - 0x220], eax
cmp dword [0x108b34c], edi
jne 0x102f1a5
push dword [ebp - 0x238]
mov edx, dword [ebp - 0x224]
push dword [ebp - 0x230]
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.0102f587
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], edi
je 0x102f28e
cmp esi, edi
je 0x102f1c9
cmp word [esi], di
je 0x102f1c9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102f1c9
xor edi, edi
inc edi
push ebx
push dword [ebp + 0x28]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x234]
push dword [ebp - 0x22c]
push edi
push dword [ebp - 0x230]
push eax
push esi
call fcn.0102f2aa
mov dword [ebp - 0x220], eax
test eax, eax
je 0x1043a40
push edi
push esi
push dword [ebp - 0x228]
lea ecx, [ebp - 0x20c]
call fcn.0102f39b
mov dword [ebp - 0x220], eax
test eax, eax
je 0x1043a40
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0x28]
mov esi, 0x1011f98
push dword [ebp - 0x234]
lea edi, [ebp - 0x21c]
push dword [ebp - 0x22c]
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x238]
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x228]
movsd dword es:[edi], dword [esi]
call fcn.01012d56
push eax
mov ecx, ebx
call fcn.01015a4d
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
call fcn.0102e962
push dword [ebp - 0x228]
mov ecx, 0x108b32c
call fcn.01004090
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100207a
leave
ret 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x102f28e
Function at 0x102fcf7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 8]
mov esi, ecx
mov byte [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x102fd50
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CFile::CFile
push 0
push 0x20
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CFile::Open
test eax, eax
je 0x102fd48
push 0
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x102fd48
mov byte [esi + 0xc], 1
lea ecx, [ebp - 0x10]
call fcn.0101621c
pop esi
leave
ret 4

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

Disassembly:
push 0x24
mov eax, 0x1078e84
call fcn.01002370
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor edi, edi
cmp byte [esi + 0xc], 0
mov dword [ebp - 4], edi
je 0x102fe13
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x102fe13
mov ebx, dword [esi + 8]
mov dword [ebp - 0x14], edi
test bl, 0x10
jne 0x103df4d
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x103df6a
mov esi, ebx
xor esi, dword [ebp - 0x18]
mov eax, 0x4000
test eax, esi
jne 0x103df89
lea ecx, [ebp - 0x30]
call sub.MFC42u.dll_CFile::CFile
push edi
push 0x12
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CFile::Open
cmp eax, edi
je 0x102fe07
cmp dword [ebp - 0x14], edi
jne 0x102fdfb
push edi
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x103dfaa
test esi, 0x800
jne 0x103dfc9
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0101621c
call fcn.01002061
ret 4
test al, 0x10
jne 0x102fd9e
and ebx, 0xffffffef
mov dword [ebp - 0x14], 1
or ebx, 0x80
jmp 0x102fd9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x103df7e
and eax, 0xffff
or eax, 0x80070000
push eax
call sub.MFC42u.dll_AfxThrowOleException
jmp 0x102fdb0
test eax, ebx
je 0x103df9b
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x102fdc2
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
jmp 0x102fdc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x103dfbe
and eax, 0xffff
or eax, 0x80070000
push eax
call sub.MFC42u.dll_AfxThrowOleException
jmp 0x102fdfb
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push 2
lea eax, [ebp + 8]
push eax
shr ebx, 0xb
push 0x9c040
push dword [ebp - 0x2c]
and ebx, 1
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x102fe07
Function at 0x103d2a7
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebx
push edi
mov ebx, ecx
call fcn.01009fc1
xor edi, edi
mov dword [0x108a364], edi
mov dword [0x108a360], edi
cmp dword [0x108cf00], edi
jne 0x103fd1b
push esi
mov esi, dword [0x108a1d4]
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call sub.MFC42u.dll_CWnd::FromHandle
cmp eax, ebx
je 0x103fd2f
cmp dword [esi + 0x20], edi
jne 0x103fd2f
cmp dword [esi + 0x14], edi
jne 0x103d342
mov eax, dword [0x108a1d4]
mov eax, dword [eax + 0x40]
cmp eax, 0x259
je 0x103d342
cmp eax, 0x25a
je 0x103d342
cmp eax, 0x25b
je 0x103d342
mov eax, dword [esi]
push 5
mov ecx, esi
call dword [eax + 0x68]
test al, al
jne 0x103d342
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
xor edi, edi
inc edi
push edi
call esi
test ax, ax
jge 0x103fd7d
mov dword [0x108a240], edi
pop esi
pop edi
pop ebx
jmp fcn.01008445
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x40]
jmp 0x103d31f
test ax, ax
jl 0x103d334
jmp 0x103d33a
mov ecx, ebx
call fcn.0105150a
pop edi
mov dword [0x108a240], 1
pop ebx
ret
xor ecx, ecx
push ecx
xor eax, eax
push eax
push edi
push 0x400
mov ecx, ebx
call fcn.0100a640
push 0x7f16
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [0x108a1d4]
mov eax, dword [ecx]
call dword [eax + 0x84]
test eax, eax
je 0x103fd6e
mov ecx, ebx
call fcn.01051535
mov dword [0x108a240], 1
jmp 0x103d31f
push 2
call esi
jmp 0x103d34c

Function at 0x104e345
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0xe
xor esi, esi
push 0x400
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0x2e
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp dword [eax - 8], esi
je 0x104e3e3
push edi
push dword [ebp - 4]
mov ecx, ebx
call sub.MFC42u.dll_CString::Find
push 1
mov ecx, ebx
mov edi, eax
call sub.MFC42u.dll_CString::GetBuffer
mov ebx, dword [sym.imp.msvcrt.dll__wtoi]
push eax
mov dword [ebp + 8], eax
call ebx
imul eax, eax, 0x3e8
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x104e3e2
mov eax, dword [ebp + 8]
lea esi, [eax + edi*2 + 2]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov dword [ebp + 8], esi
call edi
cmp eax, 2
jle 0x104e3c5
xor eax, eax
mov word [esi + 4], ax
push esi
call ebx
pop ecx
push dword [ebp + 8]
mov esi, eax
imul esi, esi, 0xa
call edi
push 2
pop ecx
cmp eax, ecx
jge 0x104e3e2
sub ecx, eax
imul esi, esi, 0xa
dec ecx
jne 0x104e3dc
pop edi
mov eax, dword [ebp - 8]
add eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x104e5b2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, 5
xor edx, edx
mov ecx, 0x3e8
div ecx
push esi
push edi
push 0xa
pop ecx
push 2
mov dword [ebp + 0xc], 0x2e
mov edi, eax
mov eax, edx
xor edx, edx
div ecx
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [ebp + 8]
push 0x18
call sub.MFC42u.dll_CString::GetBufferSetLength
test esi, esi
je 0x104e615
push esi
lea ecx, [ebp + 0xc]
push ecx
push edi
push 0x104e640
push 0x18
push eax
call fcn.01005cb4
add esp, 0x18
jmp 0x104e626
push edi
push 0x104e638
push 0x18
push eax
call fcn.01005cb4
add esp, 0x10
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
call sub.MFC42u.dll_CString::ReleaseBuffer
pop edi
pop esi
pop ebp
ret 8
Function at 0x1064b9b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x28
push edi
call fcn.01064582
xor edi, edi
cmp eax, edi
jne 0x1064c62
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 8]
push 0x1064aff
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1064bef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1064c68
call fcn.0106faff
pop ecx
pop ecx
call fcn.01063a18
jmp 0x1064c62
push ebx
push esi
xor ebx, ebx
mov esi, 0x108af60
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
mov ecx, esi
test eax, eax
je 0x1064c1a
call sub.MFC42u.dll_CWinThread::PumpMessage
mov ecx, esi
call sub.MFC42u.dll_CCmdTarget::RestoreWaitCursor
jmp 0x1064bf8
push ebx
call fcn.01006750
inc ebx
test eax, eax
jne 0x1064bf8
push 4
push 0x4ff
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
test eax, eax
jne 0x1064bf8
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x1069c3b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [esi + 0x14]
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ebx, ebx
test eax, eax
setne bl
mov dword [ebp - 4], eax
test ebx, ebx
je 0x1069d50
push 0
push esi
push eax
movzx eax, word [esi + 8]
push eax
mov eax, dword [edi + 8]
push 0
push dword [eax]
mov eax, dword [edi + 0x10]
push dword [eax]
call dword [sym.imp.GDI32.dll_GetDIBits]
mov ebx, eax
test ebx, ebx
je 0x1069d50
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov dword [ebp + 0xc], eax
cmp ebx, edi
je 0x1069d32
mov ecx, dword [esi]
mov ebx, dword [esi + 0x14]
mov eax, 0x4d42
mov word [ebp - 0x18], ax
mov eax, dword [esi + 0x20]
shl eax, 2
lea edx, [eax + ecx]
lea eax, [eax + ecx + 0xe]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xe], eax
lea eax, [ebp - 8]
push eax
push 0xe
lea edx, [edx + ebx + 0xe]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x16], edx
xor edx, edx
mov word [ebp - 0x12], dx
mov word [ebp - 0x10], dx
call edi
mov ebx, eax
test ebx, ebx
je 0x1069d32
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x20]
lea eax, [eax*4 + 0x28]
push eax
push esi
push dword [ebp + 0xc]
call edi
mov ebx, eax
test ebx, ebx
je 0x1069d32
mov esi, dword [esi + 0x14]
push 0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
call edi
mov ebx, eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x1069d50
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1069d4e
test ebx, ebx
je 0x1069d4e
xor ebx, ebx
inc ebx
jmp 0x1069d50
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x1069d5f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x107406c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0x43c
mov eax, 0x1081fc6
call fcn.010020dc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x428], ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 4], ebx
mov edi, ecx
mov dword [ebp - 0x42c], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x100219c
mov ecx, esi
call fcn.010142c5
push ebx
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10741b9
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.010142f1
push 0x10741c8
mov ecx, esi
call fcn.0101f20b
lea eax, [edi + 0x1c]
push eax
mov ecx, esi
mov dword [ebp - 0x424], eax
call fcn.01014e20
push 0x10741c4
mov ecx, esi
call fcn.0101f20b
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x1074125
mov eax, dword [edi]
jmp 0x1074127
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x107414b
cmp dword [esi + 0x18], 8
jb 0x107413d
mov eax, dword [edi]
jmp 0x107413f
mov eax, edi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp eax, ebx
jne 0x1074193
mov eax, dword [ebp - 0x424]
cmp dword [eax + 0x18], 8
jb 0x107415c
mov eax, dword [eax + 4]
jmp 0x107415f
add eax, 4
cmp dword [esi + 0x18], 8
jb 0x1074167
mov edi, dword [edi]
lea ecx, [ebp - 0x420]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x100219c
mov ecx, esi
call fcn.010142f1
lea eax, [ebp - 0x420]
push eax
mov ecx, esi
call fcn.0101f20b
jmp 0x10741b9
lea ecx, [ebp - 0x448]
call fcn.0101ca24
xor edi, edi
inc edi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0101de5a
push ebx
push edi
lea ecx, [ebp - 0x448]
call fcn.01012f94
mov eax, esi
call fcn.01002119
ret 4