joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40313e
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x46a7e0
sub esp, 8
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push 0x566a74
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x46a83b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.AcquireOptions
push ecx
mov dword [esp + 0x20], 0x74
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret 4

Function at 0x4031ed
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x456570
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
test eax, eax
push edi
mov ebp, ecx
jne 0x45658a
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret 4
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4565b3
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 1
jge 0x4565d4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
cmp edi, 0x200000
jle 0x4565ef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret 4
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x456612
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
ret 4
lea eax, [esp + 0x14]
push 0
push eax
push edi
push ebx
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x45664a
cmp dword [esp + 0x14], 0x1b
jae 0x45664a
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
ret 4
mov ecx, str.JASC
mov dword [ebp + 8], 0
mov edx, dword [ebx]
cmp edx, dword [ecx]
jne 0x45667f
push ebx
mov ecx, ebp
call fcn.00402d33
push ebx
mov esi, eax
mov dword [ebp + 8], 1
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov ecx, dword [ebx]
mov eax, str.RIFF
cmp ecx, dword [eax]
jne 0x4566f7
lea eax, [ebx + 8]
mov ecx, 2
mov edi, str.PAL_data
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x4566c2
push ebx
mov ecx, ebp
call fcn.00402a9a
push ebx
mov esi, eax
mov dword [ebp + 8], 0
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov esi, eax
mov ecx, 2
mov edi, str.PAL_plth
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x4566f7
push ebx
mov ecx, ebp
call fcn.00403256
push ebx
mov esi, eax
mov dword [ebp + 8], 2
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
push ebx
mov esi, 0xfffffffb
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x424010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
jmp 0x40b1e0
push 0xffffffffffffffff
push 0x5251cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
push 0x80
mov dword [esp + 0xc], esi
mov dword [esi + 0xc], vtable.Table_class_AdobeFilterPlugin_.0
call sub.MFC42.DLL_operatornew
xor edi, edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], 0x1f
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], 0x40
mov dword [esi + 0xc], vtable.STable_class_AdobeFilterPlugin_.0
push 0x80
mov dword [esp + 0x1c], edi
mov dword [esi + 0x28], vtable.Table_class_CString_.0
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x14]
add esp, 8
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x1f
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0x40
mov dword [esi], vtable.AdobePlugInManager.0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, 0x566740
jmp 0x4010c8

Function at 0x42b850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
push ebx
push esi
mov esi, dword [esp + 0x3c]
push edi
lea edi, [esp + 0x14]
cmp byte [esi], 0
je 0x42b883
mov ebx, dword [sym.imp.MSVCRT.dll_isdigit]
movsx eax, byte [esi]
push eax
call ebx
add esp, 4
test eax, eax
je 0x42b87b
mov cl, byte [esi]
mov byte [edi], cl
inc edi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x42b869
mov byte [edi], 0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x12
je 0x42b8a0
pop edi
pop esi
pop ebx
add esp, 0x30
ret
lea edx, [esp + 0x14]
push ebp
push edx
call dword [sym.imp.MSVCRT.dll__strrev]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll__atoi64]
lea ecx, [esp + 0x18]
push 7
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
call fcn.0042b980
lea edx, [esp + 0x20]
push 0x1b
push edx
mov esi, eax
call fcn.0042b980
mov edi, dword [esp + 0x6c]
push 0xa
mov dword [edi], eax
lea eax, [esp + 0x2c]
push eax
call fcn.0042b980
mov ebx, dword [esp + 0x70]
lea ecx, [esp + 0x30]
push 7
push ecx
mov dword [ebx], eax
call fcn.0042b980
mov ebp, dword [esp + 0x74]
lea edx, [esp + 0x38]
push 7
push edx
mov dword [ebp], eax
call fcn.0042b980
mov ecx, eax
mov eax, dword [esp + 0x78]
add esp, 0x30
mov dword [eax], ecx
mov eax, dword [ebp]
mov ebp, dword [ebx]
mov ebx, dword [edi]
add eax, ebp
pop ebp
add eax, ebx
pop edi
add eax, ecx
mov ecx, 0x7f
cdq
idiv ecx
xor eax, eax
cmp esi, edx
pop esi
sete al
pop ebx
add esp, 0x30
ret
Function at 0x463d50
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x22c]
lea eax, [esp + 0x14]
push edi
lea ecx, [esp + 0x124]
push eax
push ecx
push 0
push esi
mov dword [esp + 0x28], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x463e5e
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [esp + 0x234]
push eax
lea eax, [esp + 0x128]
push eax
push 1
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x1c]
xor edi, edi
push 0x105
push ecx
push edi
push esi
call ebx
test eax, eax
jne 0x463e5e
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x463e47
lea ecx, [esp + 0x1c]
push str.open
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x463e0a
lea edx, [esp + 0x1c]
push str.edit
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x463e3c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.00463d50
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x1c]
inc edi
push 0x105
push eax
push edi
push esi
call ebx
test eax, eax
je 0x463dce
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
Function at 0x46e94a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46e9a0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x538774
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46e993
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x46e9a2
xor eax, eax
pop esi
leave
ret 4
Function at 0x46ee20
Capabilities:
Create process on windows
Get graphical window text
Hide graphical window

Disassembly:
mov ax, word [esp + 4]
sub esp, 0x20
cmp ax, 1
push ebp
push esi
push edi
mov esi, ecx
jne 0x46ee85
mov eax, dword [esi + 0x90]
test eax, eax
jne 0x46ef21
mov eax, dword [esi + 0x84]
push 0x19d7
push eax
mov dword [esi + 0x90], 1
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0xa
push 0xa
mov edi, eax
push 0xffffffffffffffd8
push 0xffffffffffffffd8
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x46ef21
cmp ax, 0x400
jne 0x46ef21
mov edx, dword [esi + 0x84]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
lea ecx, [esp + 0x10]
push 0x20
push ecx
push 0x19d7
push edx
call ebp
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, dword [esi + 0x48]
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x46eee1
test cl, cl
je 0x46eedd
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x46eee1
add eax, 2
add edi, 2
test cl, cl
jne 0x46eeb9
xor eax, eax
jmp 0x46eee6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
jne 0x46ef21
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0xc]
push esi
push 0x470de0
push eax
push 0x1966
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edx, dword [esi + 0x84]
push 0x5688a4
push 0x19d7
push edx
call ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esp + 0x34]
and eax, 0xffff
sub eax, 0x19d1
je 0x46ef69
dec eax
je 0x46ef3f
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret 8
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x84]
push 5
push 0
push 0
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x20
ret 8
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x84]
push edx
push 0xf
push eax
push ecx
call fcn.0046e9a7
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x20
ret 8
Function at 0x46f0b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x168
lea eax, [esp]
push ebx
push esi
mov esi, dword [esp + 0x174]
push edi
push eax
push 0x558a64
push esi
call dword [sym.imp.USER32.dll_GetClassInfoA]
xor edi, edi
test eax, eax
jne 0x46f11a
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 8
push ecx
mov dword [esp + 0x14], 0x46f1d0
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0x558a64
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x5688f0]
mov ebx, dword [sym.imp.USER32.dll_LoadCursorA]
cmp eax, edi
jne 0x46f176
lea edx, [esp + 0x70]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x70]
push str.winhlp32.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
je 0x46f16f
push 0x6a
push esi
call ebx
cmp eax, edi
je 0x46f16f
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x5688f0], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x5688f4], edi
jne 0x46f18b
push 0x7f00
push edi
call ebx
mov dword [0x5688f4], eax
mov eax, dword [0x5688f8]
cmp eax, edi
pop edi
pop esi
pop ebx
jne 0x46f1c2
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
lea edx, [esp + 0x28]
push edx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [esp + 0x28]
mov byte [esp + 0x3d], 1
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [0x5688f8], eax
mov eax, 1
add esp, 0x168
ret

Function at 0x471190
Capabilities:
Set registry value

Disassembly:
sub esp, 0x30
mov edx, dword [esp + 0x34]
lea eax, [esp]
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push 0x20006
push 0
push 0x5688a4
push 0
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4711ff
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0xc], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 4]
push 0x2c
push edx
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x30
ret
Function at 0x4713b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
lea eax, [esp + 0x38]
push esi
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4713eb
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push esi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop esi
add esp, 0x34
ret
push edi
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, 0x2c
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
lea edx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x40]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
je 0x471450
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop esi
add esp, 0x34
ret
mov eax, dword [esp + 0x14]
cmp eax, 6
mov esi, eax
je 0x471460
cmp eax, 2
jne 0x471468
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x48]
cmp eax, 0xa
je 0x471475
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowPlacement]
mov eax, esi
pop esi
add esp, 0x34
ret

Function at 0x471680
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x568970]
sub esp, 0x114
test eax, eax
jne 0x47175d
push esi
push edi
mov ecx, 6
xor eax, eax
mov edi, 0x568958
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
rep stosd dword es:[edi], eax
mov dword [0x568958], eax
lea eax, [esp + 0x1c]
push 0x100
push eax
push 0x12
push 0x400
call esi
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
lea ecx, [esp + 0x1c]
push ecx
call edi
add esp, 4
lea edx, [esp + 0x1c]
mov dword [0x56895c], eax
push 0x100
push edx
push 0x10
push 0x400
call esi
lea eax, [esp + 0x1c]
push eax
call edi
add esp, 4
mov dword [0x568960], eax
push 0xa
push 0x56894c
push 0xe
push 0x400
call esi
push 0xa
push 0x568940
push 0xf
push 0x400
mov dword [0x568964], 0x56894c
call esi
lea ecx, [esp + 0x1c]
push 0x100
push ecx
push 0x1010
push 0x400
mov dword [0x568968], 0x568940
call esi
lea edx, [esp + 0x1c]
push edx
call edi
add esp, 4
mov dword [0x56896c], eax
mov dword [0x568970], 1
pop edi
pop esi
mov eax, dword [esp + 0x118]
lea ecx, [esp]
push eax
push 0x551684
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x128]
add esp, 0xc
lea ecx, [esp]
push edx
push eax
push 0x568958
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
add esp, 0x114
ret
Function at 0x471c00
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push esi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x471c2f
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x471c43
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x471c61
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0xc]
mov dword [edi], eax
mov dword [edi + 4], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x472ef0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1004
call fcn.004feaf0
mov ecx, dword [esp + 0x1008]
lea eax, [esp + 0x100c]
push esi
push eax
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0xc
lea eax, [esp + 8]
push 0x5540dc
push eax
call esi
push 0
lea ecx, [esp + 8]
push 0
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x472f59
pop esi
add esp, 0x1004
ret
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push edx
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop esi
add esp, 0x1004
ret
Function at 0x473970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x128
push ebx
push ebp
mov ebp, dword [esp + 0x138]
push esi
cmp byte [ebp], 0
setne bl
test bl, bl
je 0x4739fe
lea eax, [esp + 0x2c]
push 0
push eax
push 0x105
push ebp
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dl, byte [esp + eax + 0x2b]
lea ecx, [esp + eax + 0x2c]
cmp dl, 0x5c
jne 0x4739c5
cmp eax, 1
jle 0x4739c5
cmp byte [ecx - 2], 0x3a
je 0x4739c5
mov byte [ecx - 1], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x2c]
push edx
call esi
cmp eax, 0xffffffff
jne 0x4739fe
push edi
mov edi, dword [sym.imp.MSVCRT.dll__mbsrchr]
lea eax, [esp + 0x30]
push 0x5c
push eax
call edi
add esp, 8
test eax, eax
je 0x4739fd
lea ecx, [esp + 0x30]
mov byte [eax], 0
push ecx
call esi
cmp eax, 0xffffffff
je 0x4739de
pop edi
mov ecx, dword [esp + 0x144]
xor esi, esi
mov edx, dword [esp + 0x138]
mov eax, dword [esp + 0x140]
neg ecx
sbb ecx, ecx
mov dword [esp + 0xc], edx
and ecx, 0xfffffe00
mov dword [esp + 0x18], eax
add ecx, 0x200
lea edx, [esp + 0x2c]
or ecx, 0x41
lea eax, [esp + 0xc]
neg bl
sbb ebx, ebx
push eax
and ebx, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x4738d0
mov dword [esp + 0x28], ebx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
cmp eax, esi
je 0x473a78
push ebp
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x128
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
Function at 0x4758d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov al, byte [esp + 0xc]
sub esp, 0x458
test al, al
jne 0x4758e6
mov byte [esp + 0x464], 0x5f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push esi
mov esi, dword [esp + 0x468]
push edi
lea eax, [esp + 0x11c]
push esi
push eax
call ebx
mov edi, dword [sym.imp.MSVCRT.dll__mbsrchr]
lea ecx, [esp + 0x11c]
push 0x5c
push ecx
call edi
add esp, 8
test eax, eax
jne 0x47592e
lea edx, [esp + 0x11c]
push 0x3a
push edx
call edi
add esp, 8
test eax, eax
je 0x475937
push eax
call dword [sym.imp.USER32.dll_CharNextA]
jmp 0x47593e
lea eax, [esp + 0x11c]
mov ecx, eax
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x18], eax
call ebx
push 0x2e
push esi
call edi
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x47595f
mov ebx, 0x5688a4
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x478]
test eax, eax
je 0x4759b2
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x224]
push eax
push 0x558c2c
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x328]
lea eax, [esp + 0x224]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x475a64
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4759c9
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x475a64
lea edx, [esp + 0x14]
push 0x2e
push edx
call edi
mov edi, eax
add esp, 8
test edi, edi
jne 0x4759ea
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [esp + eax + 0x14]
lea esi, [edi - 1]
lea ecx, [esp + 0x14]
cmp esi, ecx
jbe 0x475a0f
movsx edx, byte [esi]
push edx
call dword [sym.imp.MSVCRT.dll_isdigit]
add esp, 4
test eax, eax
je 0x475a0f
dec esi
lea eax, [esp + 0x14]
cmp esi, eax
ja 0x4759f5
mov cl, byte [esi]
mov dl, byte [esp + 0x474]
cmp cl, dl
mov eax, 1
jne 0x475a30
lea edx, [esi + 1]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
jmp 0x475a32
mov esi, edi
inc eax
push ebx
push eax
movsx eax, byte [esp + 0x47c]
push eax
push str._c_d_s
push esi
call ebp
mov edx, dword [esp + 0x24]
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.MSVCRT.dll__mbsrchr]
jmp 0x475965
mov ecx, dword [esp + 0x470]
lea eax, [esp + 0x11c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x458
ret

Function at 0x4760a0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
push 0xa
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
movsx ecx, byte [esp + 4]
mov esi, dword [esp + 0x14]
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
je 0x4760d3
mov byte [eax], 0x2e
push esi
call dword [sym.imp.MSVCRT.dll_atof]
add esp, 4
pop esi
add esp, 0xc
ret
Function at 0x476360
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x476389
xor eax, eax
add esp, 8
ret
mov ecx, dword [esp]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
push esi
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push ebx
push ecx
mov dword [esp + 0x34], 0
call ebp
mov esi, eax
test esi, esi
jne 0x47642a
mov edx, dword [esp + 0x1c]
push edi
inc edx
push edx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x14]
add esp, 4
mov edi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push esi
push ebx
push edx
call ebp
test eax, eax
mov dword [esp + 0x24], eax
jne 0x47641c
mov eax, dword [esp + 0x20]
mov esi, edi
mov byte [edi + eax], 0
mov al, byte [edi]
test al, al
je 0x47641c
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push 0
push 0x143
push ebx
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x476401
push edi
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x28]
add esp, 4
pop edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret

Function at 0x476760
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.004feaf0
mov ecx, dword [esp + 0x1004]
lea eax, [esp + 0x1008]
push eax
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1000
ret

Function at 0x476850
Capabilities:
Create process on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f02
push 0
call edi
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
push 1
push 0
push 0
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor edx, edx
cmp eax, 0x1f
setg dl
test esi, esi
mov ebp, edx
je 0x4768a0
mov eax, esi
push eax
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
push 0x7f00
push 0
call edi
push eax
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret