joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103cb90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x1068857
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x103cc59
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x103cc70]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x103cc70]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x103cc70]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x103cc70]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x103cc70]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x103cc70]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x103cc70]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x103cc70]
inc edx
sub edi, 8
dec esi
jne 0x103cbbe
pop ebx
test edi, edi
jne 0x103ea5c
pop edi
not eax
pop esi
pop ebp
ret 0xc
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x103cc70]
inc edx
dec edi
jne 0x103ea5c
jmp 0x103cc61
xor eax, eax
jmp 0x103cc65
Function at 0x103f0ca
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x10d11b8
call fcn.01001f95
xor ebx, ebx
inc ebx
mov esi, 0x10f5620
test byte [0x10f52f4], bl
jne 0x103f106
or dword [0x10f52f4], ebx
and dword [ebp - 4], 0
mov ecx, esi
call fcn.0100ad56
push 0x1050754
call fcn.0100bfd5
or dword [ebp - 4], 0xffffffff
pop ecx
cmp dword [0x10f5628], 0
mov dword [ebp - 0x10], ebx
jne 0x103f14b
mov eax, 0x105
mov ebx, eax
push eax
mov ecx, esi
call fcn.0101d69e
test eax, eax
je 0x10579b1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov ecx, esi
test edi, edi
je 0x10579e9
cmp edi, ebx
ja 0x10579a2
push edi
call fcn.0101d6f2
mov eax, dword [ebp + 8]
mov ecx, dword [0x10f5624]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
call fcn.01001fcf
ret 4
push 0
mov ebx, edi
call fcn.0101d6f2
push edi
jmp 0x103f11a
mov dword [ebp - 0x10], 0x8007000e
mov eax, dword [0x10f52cc]
cmp eax, 0x10f52cc
je 0x103f14b
cmp byte [eax + 0x19], 2
jb 0x103f14b
push 0x102f7d0
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f7c2
jmp 0x103f14b
push 0
call fcn.0101d6f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1057a04
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
mov eax, dword [0x10f52cc]
cmp eax, 0x10f52cc
je 0x103f14b
cmp byte [eax + 0x19], 2
jb 0x103f14b
push 0x102f7d0
push 0x13
jmp 0x10579d9

Function at 0x103f166
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 4
mov eax, 0x10d1210
call fcn.01001f95
mov ebx, dword [ebp + 8]
mov byte [ebp - 0xd], 0
test ebx, ebx
je 0x103f1c5
mov eax, dword [0x10f52cc]
mov edi, 0x10f52cc
mov esi, 0x102f7d0
cmp eax, edi
je 0x103f19a
cmp byte [eax + 0x19], 4
jae 0x1057a51
push ebx
lea ecx, [ebp + 0xb]
call fcn.0102f8c7
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1057a65
mov byte [ebp - 0xd], 1
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0xb], 0
jne 0x1057aa1
mov al, byte [ebp - 0xd]
call fcn.01001fcf
ret 4
push ebx
push esi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f7e8
jmp 0x103f19a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x103f1b7
mov ecx, dword [0x10f52cc]
cmp ecx, edi
je 0x103f1b7
cmp byte [ecx + 0x19], 2
jb 0x103f1b7
push eax
push ebx
push esi
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010701d4
jmp 0x103f1b7
push 0
call fcn.0102f8ea
jmp 0x103f1c5
Function at 0x103fb0e
Capabilities:
Terminate process

Disassembly:
test byte [ebp - 0x40], 1
je 0x103fcc3
movzx ecx, word [ebp - 0x3c]
push ecx
push eax
push ebx
push 0x1000000
call fcn.0103ff1e
mov dword [0x10f53a0], eax
cmp dword [0x10f5394], ebx
jne 0x1065072
push eax
call dword [sym.imp.msvcrt.dll_exit]
nop
nop
nop
nop
nop
call fcn.0103f775
push 0x5c
push 0x103fc80
call fcn.0100a4f0
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, 0x10f561c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x1064ff4
xor esi, esi
inc esi
mov eax, dword [0x10f53f4]
cmp eax, esi
je 0x1065013
mov eax, dword [0x10f53f4]
test eax, eax
jne 0x103fcb8
mov dword [0x10f53f4], esi
push 0x103fc7c
push 0x103fc70
call fcn.0103fdfb
pop ecx
pop ecx
test eax, eax
jne 0x1065095
mov eax, dword [0x10f53f4]
cmp eax, esi
jne 0x103fbc1
push 0x103fc6c
push 0x103fc08
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10f53f4], 2
cmp dword [ebp - 0x20], ebx
jne 0x103fbce
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10f9c18], ebx
jne 0x1065020
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1065095
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x103fe1f
cmp cx, 0x22
je 0x103fca8
inc eax
inc eax
jmp 0x103fbe9
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x103fc03
mov dword [0x10fd6ec], esi
jmp 0x103fb9d
push 0xa
pop ecx
jmp 0x100c0fa
cmp cx, bx
je 0x103fe2d
cmp dword [ebp - 0x1c], ebx
jne 0x103fbf9
movzx ecx, word [eax]
cmp cx, bx
je 0x100c0ec
cmp cx, 0x20
ja 0x100c0ec
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x103fe2d
cmp eax, esi
jne 0x1065003
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x103fb64
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x103fb50
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x103fb9d
push 0x10f9c18
call fcn.010c83db
pop ecx
test eax, eax
je 0x103fbda
push ebx
push 2
push ebx
call dword [0x10f9c18]
jmp 0x103fbda
cmp dword [0x10fd6ec], ebx
jne 0x1065080
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10f53a0]
jmp 0x10650a1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100a4dc
ret
Function at 0x10406fa
Capabilities:
Query environment variable

Disassembly:
push 0x14
mov eax, 0x10dc668
call fcn.01001f95
mov edi, dword [ebp + 8]
push 0x25
mov ecx, edi
call sub.MFC42u.dll_CString::Find
cmp eax, 0xffffffff
jne 0x1057294
mov eax, dword [edi]
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x20]
lea esi, [eax + eax]
call fcn.0100ad56
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x20]
call fcn.0101d69e
test eax, eax
je 0x10572b2
mov ecx, dword [edi]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jbe 0x105729c
cmp ebx, esi
ja 0x105729c
push ebx
lea ecx, [ebp - 0x20]
call fcn.0101d6f2
push dword [ebp - 0x1c]
push edi
call fcn.01040794
mov esi, eax
test esi, esi
jl 0x10572be
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0100a77d
mov eax, esi
call fcn.01001fcf
ret 4
xor eax, eax
inc eax
jmp 0x1040787
push 0
lea ecx, [ebp - 0x20]
call fcn.0101d6f2
test esi, esi
je 0x10572e5
mov esi, ebx
push ebx
jmp 0x1040730
mov eax, dword [0x10f52cc]
mov esi, 0x8007000e
jmp 0x1057308
mov eax, dword [0x10f52cc]
cmp eax, 0x10f52cc
je 0x1057300
cmp byte [eax + 0x19], 2
jb 0x1057300
push esi
push 0x106b628
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010a4e26
jmp 0x10572fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10572f9
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x10f52cc]
test esi, esi
jge 0x1040779
cmp eax, 0x10f52cc
je 0x1040779
cmp byte [eax + 0x19], 2
jb 0x1040779
mov edi, dword [edi]
push esi
push edi
push 0x106b628
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010701d4
jmp 0x1040779

Function at 0x1041a24
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov dword [ebp - 4], ecx
mov eax, dword [0x10f52cc]
mov edi, 0x10f52cc
cmp eax, edi
je 0x1041a46
cmp byte [eax + 0x19], 5
jae 0x105a479
cmp dword [ebp + 8], 3
ja 0x105a495
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1041aa0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x105a4be
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push 0x43
push 0
push 0
add eax, 0x19
push 0
shl eax, 4
mov dword [eax + ecx], esi
push 0
push dword [sym.imp.MFC42u.dll_CWndconstCWnd::wndTop]
mov ecx, esi
call sub.MFC42u.dll_CWnd::SetWindowPos
push 5
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop edi
leave
ret 0xc
cmp eax, edi
jne 0x105a4c8
jmp 0x1041a9a
push 0x100c4b0
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f7c2
mov eax, dword [0x10f52cc]
jmp 0x1041a46
cmp eax, edi
je 0x1041a9b
cmp byte [eax + 0x19], 2
jb 0x1041a9b
push 0x100c4b0
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f7c2
jmp 0x1041a9b
mov eax, dword [0x10f52cc]
jmp 0x1041aa0
cmp byte [eax + 0x19], 2
jb 0x1041a9a
push 0x100c4b0
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f7c2
jmp 0x1041a9a
Function at 0x1048ad6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10f5384], 0
push esi
jne 0x1048aed
call fcn.01048b11
test eax, eax
je 0x1064f57
mov eax, dword [0x10f5384]
cmp eax, 1
je 0x1064f29
push eax
call dword [0x10f538c]
test eax, eax
je 0x1064f40
pop esi
ret
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1064f57
pop esi
ret
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 0x1064f5b
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10f5384]
call dword [0x10f538c]
mov edi, eax
test edi, edi
je 0x1064f80
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1064f9c
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10f5384]
call dword [0x10f5388]
add edi, 0x10
cmp edi, esi
jb 0x1064f88
mov eax, edi
pop edi
jmp 0x1048b0a
Function at 0x1049a6d
Capabilities:
Get graphical window text

Disassembly:
push 0x14
mov eax, 0x10e0e39
call fcn.0100c4d0
mov esi, ecx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
lea eax, [edi + edi + 2]
call fcn.01027ccc
mov dword [ebp - 0x1c], esp
inc edi
push edi
push dword [ebp - 0x1c]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x100a5fc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1049ace
mov eax, dword [ebx]
test eax, eax
jne 0x1062105
push dword [ebp - 0x14]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ecx, ecx
mov edi, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
cmp edi, ecx
je 0x1049af0
cmp dword [ebp - 0x14], ecx
jne 0x1062110
mov dword [ebp - 0x14], ecx
mov eax, dword [esi + 4]
push ecx
push 0x100ca88
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x1c]
call fcn.01049b87
test eax, eax
jl 0x1062143
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
push 0x1049c64
push edi
call dword [eax]
test eax, eax
jl 0x106216d
push dword [ebp - 0x20]
push 0xffffffffffffffeb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x1062179
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [edi]
push edi
mov byte [ebp - 4], 0
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x10621aa
xor eax, eax
lea esp, [ebp - 0x30]
call fcn.0100c50d
ret 0x10
movzx eax, word [eax]
mov dword [ebp - 0x14], eax
jmp 0x1049ace
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebx]
push dword [ebp - 0x14]
inc ecx
inc ecx
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x18]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor ecx, ecx
jmp 0x1049af0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test eax, eax
je 0x1062154
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1062165
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or eax, 0xffffffff
jmp 0x1049b77
mov eax, dword [edi]
push edi
mov byte [ebp - 4], 0
call dword [eax + 8]
jmp 0x1062154
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push eax
call edi
mov ebx, 0x10000
test ebx, eax
je 0x10621a2
push 0xffffffffffffffec
push dword [esi + 4]
call edi
or eax, ebx
push eax
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edi, dword [ebp - 0x14]
jmp 0x1049b53
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1049b75
Function at 0x104e976
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x228
mov eax, 0x10d32b0
call fcn.0100c4d0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x22c]
call sub.MFC42u.dll_CString::CString
xor esi, esi
push 0x5c
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], esi
call sub.MFC42u.dll_CString::ReverseFind
cmp eax, 0xffffffff
je 0x104ea22
cmp eax, 3
jl 0x1059333
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x22c]
call sub.MFC42u.dll_CString::Left
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0x220]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [ebp - 0x224]
call fcn.0100a3e5
lea eax, [ebp - 0x224]
push eax
mov ecx, 0x10f54b0
call fcn.0104ea3e
lea ecx, [ebp - 0x220]
push ecx
mov ecx, eax
call fcn.0100c7c5
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x224]
inc bl
call fcn.0100a3e5
test bl, bl
jne 0x1059339
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.0100a3e5
call fcn.0100c50d
ret 4
inc eax
jmp 0x104e9b4
lea eax, [ebp - 0x228]
push eax
push 3
push esi
push 0x1059448
push 0x80000001
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x104ea22
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
mov esi, 0x105941c
push esi
push dword [ebp - 0x228]
xor edi, edi
inc edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x230], 8
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov ebx, 0x1059414
test eax, eax
jne 0x10593bb
cmp dword [ebp - 0x224], edi
jne 0x10593bb
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
push edi
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x10593ed
push 8
push ebx
push edi
push 0
push esi
push dword [ebp - 0x228]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
lea eax, [ebp - 0x234]
push eax
push 0x64
push 2
push 0x1059400
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push dword [ebp - 0x228]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x104ea22
Function at 0x106fa78
Capabilities:
Query environment variable

Disassembly:
push 0x14
mov eax, 0x10dc668
call fcn.01001f95
mov edi, dword [ebp + 8]
push 0x25
mov ecx, edi
call fcn.0104384f
cmp eax, 0xffffffff
je 0x106fa9d
xor eax, eax
inc eax
jmp 0x106fb53
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x20]
lea esi, [eax + eax]
call fcn.0100ad56
and dword [ebp - 4], 0
push esi
jmp 0x106fad9
mov ecx, dword [edi + 4]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jbe 0x106fac8
cmp ebx, esi
jbe 0x106faec
push 0
lea ecx, [ebp - 0x20]
call fcn.0101d6f2
test esi, esi
je 0x106fb02
mov esi, ebx
push ebx
lea ecx, [ebp - 0x20]
call fcn.0101d69e
test eax, eax
jne 0x106fab2
mov esi, 0x8007000e
jmp 0x106fb1c
push ebx
lea ecx, [ebp - 0x20]
call fcn.0101d6f2
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.010c942a
jmp 0x106fb16
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x106fb16
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jge 0x106fb45
mov eax, dword [0x10f52cc]
cmp eax, 0x10f52cc
je 0x106fb45
cmp byte [eax + 0x19], 2
jb 0x106fb45
mov edi, dword [edi + 4]
push esi
push edi
push 0x106b628
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010701d4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0100a77d
mov eax, esi
call fcn.01001fcf
ret 4
Function at 0x1076943
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10f52d8]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x10fd55c], 1
push ebx
push esi
push edi
jne 0x1076972
or dword [0x10fd55c], 1
call fcn.010768e2
mov dword [0x10fd558], eax
push 4
pop eax
call fcn.01027cdf
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1076994
xor eax, eax
jmp 0x1076a51
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x10fd430]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x107698d
cmp eax, 1
je 0x1076a32
mov dword [ebp - 8], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x107698d
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
test dword [ebp - 0x1c], ebx
je 0x10769db
test dword [ebp - 0x18], 0x100
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
je 0x1076a0d
xor eax, eax
inc eax
jmp 0x1076a51
cmp edi, eax
jb 0x107698d
cmp eax, esi
jae 0x1076a1c
mov dword [ebp - 8], esi
push 4
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10fd430]
jmp 0x1076a35
mov dword [ebp - 8], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0x10]
push ecx
inc eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01002492
leave
ret
Function at 0x107f204
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push 8
mov eax, 0x10e6d0c
call fcn.01001f95
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_]
mov ecx, dword [ebp + 8]
push 0x107f378
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::SetFunctionName_unsigned_short_int_const__]
mov esi, dword [ebp + 0x18]
or dword [esi], 0xffffffff
mov edi, dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x107f27c
test al, 1
je 0x107f27c
cmp byte [ebp + 0x14], bl
je 0x107f269
push dword [edi]
mov ecx, dword [ebp - 0x10]
push dword [esi]
push ebx
call fcn.0107f195
mov ecx, dword [ebp + 8]
push 0x80070005
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_long_int_]
jmp 0x107f34f
mov eax, dword [edi]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x107f2d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push eax
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromWin32_long_int_]
mov ecx, dword [ebp + 8]
call dword [sym.imp.mmcbase.DLL_public:_bool___thiscall_mmcerror::SC::IsError_void_const]
test al, al
jne 0x107f2c6
mov ecx, dword [ebp + 8]
push 0x8000ffff
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_long_int_]
cmp byte [ebp + 0x14], bl
je 0x107f34f
push dword [edi]
push ebx
push 1
jmp 0x107f347
cmp byte [ebp + 0x10], bl
je 0x107f34f
push ebx
lea ecx, [ebp + 0x18]
push ecx
push 2
lea ecx, [ebp + 0x10]
push ecx
push eax
mov dword [ebp + 0x10], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x107f2fe
cmp dword [ebp + 0x18], 2
je 0x107f34f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push eax
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromWin32_long_int_]
mov ecx, dword [ebp + 8]
call dword [sym.imp.mmcbase.DLL_public:_bool___thiscall_mmcerror::SC::IsError_void_const]
test al, al
jne 0x107f329
mov ecx, dword [ebp + 8]
push 0x8000ffff
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_long_int_]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], bl
je 0x107f34f
push dword [edi]
push dword [esi]
push 2
mov ecx, dword [ebp - 0x10]
call fcn.0107f195
mov ecx, dword [ebp + 8]
call dword [sym.imp.mmcbase.DLL_public:_bool___thiscall_mmcerror::SC::IsError_void_const]
test al, al
je 0x107f36d
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x107f36d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
mov eax, dword [ebp + 8]
call fcn.01001fcf
ret 0x14
Function at 0x1083aba
Capabilities:
Write file on windows

Disassembly:
push 0x28
mov eax, 0x10d5787
call fcn.0100c4d0
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x24]
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_]
push 0x1083bb0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::SetFunctionName_unsigned_short_int_const__]
mov edi, dword [ebp + 0xc]
push 0x80070057
push edi
lea eax, [ebp - 0x34]
push eax
call fcn.0100a3ae
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_class_mmcerror::SC_const__]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mmcbase.DLL_public:_bool___thiscall_mmcerror::SC::operator_bool_void_const]
test al, al
je 0x1083b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
mov al, bl
lea esp, [ebp - 0x44]
call fcn.0100c50d
ret 0xc
cmp dword [ebp + 0x10], ebx
je 0x1083b57
cmp edi, ebx
je 0x1083ba3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1083b44
sub eax, edx
sar eax, 1
lea esi, [eax + eax]
jmp 0x1083b91
cmp edi, ebx
je 0x1083ba3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.01027ccc
mov eax, esp
push esi
push edi
push eax
call sub.MFC42u.dll_AfxW2AHelper
mov edi, eax
cmp edi, ebx
je 0x1083ba3
push edi
call dword [sym.imp.msvcrt.dll__mbslen]
push eax
push edi
call dword [sym.imp.msvcrt.dll__mbsnbcnt]
add esp, 0xc
mov esi, eax
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1083ba5
xor esi, esi
cmp dword [ebp - 0x14], esi
sete bl
jmp 0x1083b1c