joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404eca
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0x94
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404f3a
push 0x94
push 0
mov eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx], 0x94
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 4
jne 0x404f26
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0xa
jne 0x404f26
xor eax, eax
jmp 0x404f3c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 6
jb 0x404f36
mov eax, 1
jmp 0x404f3c
xor eax, eax
jmp 0x404f3c
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x407293
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ac6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0xffffffff
jne 0x4072f6
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x407358
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp + 8]
call fcn.0040cdc0
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x407340
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
jmp 0x407358
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x140]
push eax
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x10], eax
jmp 0x40730c
cmp dword [ebp - 0x13c], 1
jl 0x407392
mov ecx, dword [ebp - 0x130]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x144], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x144]
jmp 0x4073b1
mov dword [ebp - 0x148], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x408178
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ad81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
mov dword [ebp - 0x164], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040cdc0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x4081da
mov dword [ebp - 0x154], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x154]
jmp 0x4082b7
push 0x44971c
lea ecx, [ebp + 8]
call fcn.00431d84
push 0x140
push 0
lea eax, [ebp - 0x14c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp + 8]
call fcn.0040cdc0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0xffffffff
jne 0x408243
mov dword [ebp - 0x158], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x158]
jmp 0x4082b7
mov edx, dword [ebp - 0x14c]
and edx, 0x10
test edx, edx
je 0x408252
jmp 0x408280
mov eax, dword [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x15c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x15c]
jmp 0x4082b7
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408243
mov dword [ebp - 0x160], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4082d4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x6c], ecx
mov eax, 0x44df50
test eax, eax
je 0x4082ef
mov ecx, 0x44d750
test ecx, ecx
jne 0x4082f4
jmp 0x4083fc
push 0x44df50
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jbe 0x4083fc
push 0x44d750
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jbe 0x4083fc
mov dword [ebp - 4], 0x44df50
mov dword [ebp - 8], 0x44d750
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x4083fc
mov ecx, dword [ebp - 4]
mov dl, byte [ecx]
mov byte [ebp - 0x24], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
movsx ecx, byte [ebp - 0x24]
sub ecx, 0x30
mov dword [ebp - 0x20], ecx
push 0x10
push 0
lea edx, [ebp - 0x1c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x68]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x68], 0x44
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4083a9
jmp 0x4083bb
cmp dword [ebp - 0x20], 0
je 0x4083bb
push 0xffffffffffffffff
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4083d0
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x4083bb
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
test edx, edx
je 0x4083ee
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x4083d9
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40832c
mov esp, ebp
pop ebp
ret
Function at 0x409943
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43aef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
push str.Update
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040cdc0
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x4099b8
lea ecx, [ebp - 0x14]
call fcn.0040cdc0
mov dword [ebp - 0x34], eax
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x449834
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
lea eax, [ebp - 0x20]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
push edx
mov ecx, 0x44f334
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x409a43
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40b039
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x6c]
add eax, 0x70c
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jbe 0x40b15b
push 0
mov ecx, dword [ebp - 0x6c]
add ecx, 0x450
call sub.MFC42.DLL_CWnd::EnableWindow
mov ecx, dword [ebp - 0x6c]
add ecx, 0x70c
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x6c]
add edx, 0xf0c
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40b14b
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ebp - 0x10], al
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
movsx edx, byte [ebp - 0x10]
sub edx, 0x30
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 1
jne 0x40b10a
push 0x10
push 0
lea eax, [ebp - 0x24]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x68]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x68], 0x44
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x40b11f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x40b10a
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
test eax, eax
je 0x40b13d
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40b128
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40b083
push 1
mov ecx, dword [ebp - 0x6c]
add ecx, 0x450
call sub.MFC42.DLL_CWnd::EnableWindow
mov esp, ebp
pop ebp
ret
Function at 0x40c609
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov word [ebp - 0x10], 0x14
mov dword [ebp - 0xa], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 6], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 3
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40c656
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b2fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x770
push edi
mov dword [ebp - 0x77c], ecx
mov word [ebp - 0x218], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x674], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x672]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push str..
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40c71e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CString::CString
jmp 0x40c881
mov edx, 1
test edx, edx
je 0x40c865
mov eax, dword [ebp - 0x46c]
and eax, 0x10
test eax, eax
je 0x40c849
mov ecx, dword [ebp - 0x440]
and ecx, 0xffff
cmp ecx, 0x2e
je 0x40c849
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push 0x449a6c
lea ecx, [ebp - 0x674]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push 0x449a70
lea ecx, [ebp - 0x440]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x40c7dc
push str.share
lea edx, [ebp - 0x440]
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x40c7dc
push str.VVCall
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40c833
lea ecx, [ebp - 0x674]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
add eax, 1
mov dword [ebp - 0x678], eax
push 0
push 0
mov edx, dword [ebp - 0x678]
shl edx, 1
push edx
lea eax, [ebp - 0x778]
push eax
mov ecx, dword [ebp - 0x678]
push ecx
lea edx, [ebp - 0x674]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x778]
push eax
mov ecx, dword [ebp - 0x77c]
call fcn.0040c609
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x674]
push edx
mov ecx, dword [ebp - 0x77c]
call fcn.0040c656
lea eax, [ebp - 0x46c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c860
jmp 0x40c865
jmp 0x40c71e
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x410169
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x6c]
add eax, 0x164
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jbe 0x410273
mov ecx, dword [ebp - 0x6c]
add ecx, 0x164
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x6c]
add edx, 0x964
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x410273
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ebp - 0x24], al
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
movsx edx, byte [ebp - 0x24]
sub edx, 0x30
mov dword [ebp - 0x20], edx
push 0x10
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x68]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x68], 0x44
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x410220
jmp 0x410232
cmp dword [ebp - 0x20], 0
je 0x410232
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x410247
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x410232
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
test eax, eax
je 0x410265
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x410250
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x4101a3
mov esp, ebp
pop ebp
ret
Function at 0x411c30
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x104]
test eax, eax
je 0x411c59
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x104], 0
lea ebp, [esi + 0x108]
xor eax, eax
mov ecx, ebp
lea edi, [esi + 0x110]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x120]
test edi, edi
je 0x411c99
cmp byte [edi], 0
jne 0x411cb5
mov ecx, esi
call fcn.00411f60
lea edx, [esp + 0x18]
push 0x103
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x18]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x411cd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
push ebx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 0x104], eax
test eax, eax
jne 0x411cf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
push eax
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
mov edx, dword [esi + 0x104]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x449de0
push edx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
shr ecx, 0x10
mov word [ebp], cx
mov dx, word [eax + 8]
mov word [esi + 0x10a], dx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
mov word [esi + 0x10c], cx
mov ax, word [eax + 0xc]
mov word [esi + 0x10e], ax
and eax, 0xffff
xor edx, edx
push eax
mov dx, cx
xor eax, eax
mov ax, word [esi + 0x10a]
xor ecx, ecx
mov cx, word [ebp]
push edx
push eax
push ecx
push str._d._d._d._d
lea eax, [esi + 0x110]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push 0x103
push edi
push esi
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0x28
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4

Function at 0x411eb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0x14]
push eax
push str.SoftwareGloballinkGame_s
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x14]
mov dword [esp + 8], 0
push edx
push 1
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x411f4c
mov edx, dword [esp + 0x11c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.path
push ecx
mov dword [esp + 0x24], 0x103
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x10c
ret 8
Function at 0x412157
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jne 0x41216a
xor eax, eax
jmp 0x4121e7
mov ecx, dword [ebp - 8]
call fcn.0041225b
test eax, eax
jne 0x41217a
xor eax, eax
jmp 0x4121e7
mov eax, dword [ebp - 8]
mov byte [eax + 0x38], 0
mov ecx, dword [ebp - 8]
call fcn.0041229b
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 8]
mov dword [edx + 4], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x54], ecx
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x4124a8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4121e2
xor eax, eax
jmp 0x4121e7
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4122e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esp, ebp
pop ebp
ret

Function at 0x4122f7
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret
Function at 0x414610
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bd29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040dba0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call sub.MFC42.DLL_CFile::CFile
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x50], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x54], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x58], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x5c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x60], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], 0xffffffff
cmp dword [ebp + 8], 0
je 0x414771
push 0
push 0x20
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
call dword [eax + 0x28]
test eax, eax
je 0x414771
mov ecx, dword [ebp - 0x10]
call fcn.00414f20
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x40], al
mov ecx, dword [ebp - 0x10]
call fcn.00414fa0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x423035
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
push str.GL_ROOM_REC
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x423061
xor eax, eax
jmp 0x4230b3
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42308a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4230b3
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x32ec]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x42492e
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d6f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
lea eax, [ebp + 8]
push eax
call fcn.00431d2a
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
call fcn.00424dfd
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x424993
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x14]
jmp 0x4249e1
lea ecx, [ebp + 8]
call fcn.0040cdc0
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4249c8
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
jmp 0x4249e1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4