joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437c94
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x403ab6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x402c30
mov edx, dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrCopy
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaStrCopy
push 2
pop edi
lea eax, [ebp - 0x50]
push eax
push 0x3c01
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x50], edi
call sub.MSVBVM60.DLL_rtcStringVar
lea eax, [ebp - 0x60]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push edi
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
push dword [ebp - 0x28]
lea eax, [ebp - 0x40]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
push 0x3c00
push dword [ebp - 0x20]
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
push 0x409cd0
lea eax, [ebp - 0x38]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
push dword [ebp - 0x34]
lea eax, [ebp - 0x24]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
push dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
push dword [ebp - 0x40]
lea eax, [ebp - 0x28]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push 5
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x18
push dword [ebp - 0x20]
call fcn.004201ae
mov edx, eax
lea ecx, [ebp - 0x1c]
call sub.MSVBVM60.DLL___vbaStrMove
push esi
push 0xffffffffffffffff
push 1
push 0x40a1f4
push 0x40acc0
push dword [ebp - 0x1c]
call sub.MSVBVM60.DLL_rtcReplace
mov edx, eax
lea ecx, [ebp - 0x1c]
call sub.MSVBVM60.DLL___vbaStrMove
push 0x437e75
jmp 0x437e54
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
Function at 0x4380a3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x403ab6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x402c50
mov edx, dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x64], esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrCopy
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrCopy
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaStrCopy
push 2
mov dword [ebp - 0x4c], esi
pop esi
lea eax, [ebp - 0x54]
push eax
push 0x401
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x54], esi
call sub.MSVBVM60.DLL_rtcStringVar
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
push dword [ebp - 0x28]
lea eax, [ebp - 0x44]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
push 0x400
push dword [ebp - 0x20]
lea eax, [ebp - 0x40]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x38]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
push dword [ebp - 0x38]
lea eax, [ebp - 0x24]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
push dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
push dword [ebp - 0x40]
lea eax, [ebp - 0x20]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
push dword [ebp - 0x44]
lea eax, [ebp - 0x28]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push 5
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x18
push dword [ebp - 0x20]
call fcn.004201ae
mov edx, eax
lea ecx, [ebp - 0x1c]
call sub.MSVBVM60.DLL___vbaStrMove
push 0x438283
jmp 0x43825a
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
Function at 0x446420
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x403ab6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x403668
mov edx, dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
call sub.MSVBVM60.DLL___vbaStrCopy
push dword [ebp - 0x14]
push 0x40f564
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
push esi
push 0x40f550
lea eax, [ebp - 0x20]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
push 0x40f530
lea eax, [ebp - 0x1c]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
call sub.KERNEL32.DLL_GetPrivateProfileIntA
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 4
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x14
push 0x4464f2
jmp 0x4464e9
lea ecx, [ebp - 0x14]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
Function at 0x41c2b1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c308
lea eax, [ebp - 8]
push eax
push 0x4d7a00
push 0
push 0
push 0x4adb18
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c2ff
mov byte [0x4d9a04], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x41ce2a
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x52]
push edi
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
call fcn.0041c685
test al, al
je 0x41ce50
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x50], ax
jmp 0x41cec9
mov ax, word [esp + 0xc]
test ax, ax
jne 0x41ce6c
cmp dword [esi + 0x4c], 4
jne 0x41ce6c
mov ecx, esi
lea edi, [esi + 0x50]
call fcn.0041cbc3
jmp 0x41ce6f
lea edi, [esi + 0x50]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c685
test al, al
je 0x41ce84
mov byte [esi + 0xd], 1
jmp 0x41cec9
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c685
test al, al
jne 0x41cec9
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c685
test al, al
jne 0x41cec9
call fcn.00446b93
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c685
test al, al
jne 0x41cec9
mov ax, word [esi + 0x54]
mov word [edi], ax
pop edi
pop esi
ret 4
Function at 0x41e68e
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4d9a80]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41e6be
push 0
push dword [0x4d9a80]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d9a88]
mov ecx, dword [eax + 0x298]
push 0
call fcn.0043f75b
ret

Function at 0x41e6bf
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [0x4d9a80]
call esi
lea eax, [ebp - 0x6c]
push eax
xor ebx, ebx
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 8], eax
call fcn.00435dd2
cmp dword [eax], 1
je 0x41e729
cmp dword [eax + 4], ebx
je 0x41e77e
push ebx
push 0x4ae0b8
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41e77e
lea eax, [ebp - 0x3c]
push eax
push edi
mov dword [ebp - 4], 0x46
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
sub esi, ebx
mov eax, esi
cdq
idiv dword [ebp - 4]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x4d9a80]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x420300
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x100c]
mov eax, 0x100c
call fcn.00465b20
push 0xffffffffffffffff
push 0x4a1157
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x202c
call fcn.00465b20
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x1008], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x1018]
or dword [ebp - 0x18], 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x4203b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0x1020], bl
je 0x420394
cmp eax, 0x20
je 0x42038d
cmp eax, 0x21
jne 0x420394
xor eax, eax
jmp 0x4204bf
cmp eax, ebx
jle 0x4203a4
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x4203b7
mov dword [ebp - 0x30], eax
push 0x4c64a0
lea eax, [ebp - 0x30]
push eax
call fcn.004647da
mov esi, 0x2800
push esi
call fcn.004447d5
pop ecx
mov edi, eax
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0x101c]
push dword [ebp + 0x1014]
call fcn.00443cfb
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x42041e
push 0x1004
push ebx
push eax
lea ecx, [ebp - 0x203c]
call fcn.0041f8e0
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.00465b50
add esp, 0xc
push 0x4c6490
lea eax, [ebp - 0x1038]
jmp 0x4203b1
cmp dword [ebp - 0x14], ebx
je 0x420491
push ebx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x420461
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42044f
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x420461
mov dword [ebp - 0x24], eax
push 0x4c64a0
lea eax, [ebp - 0x24]
jmp 0x4203b1
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x14]
je 0x420491
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42047f
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x420491
mov dword [ebp - 0x34], eax
push 0x4c64a0
lea eax, [ebp - 0x34]
jmp 0x4203b1
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x1c], eax
cmp eax, ebx
ja 0x4203cf
mov byte [ebp - 4], bl
push edi
call fcn.00463f2b
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0xffffffff
je 0x4204bc
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1008]
xor ecx, ebp
call fcn.004646c1
add ebp, 0x100c
leave
ret
Function at 0x44063f
Capabilities:
Read file on windows

Disassembly:
push 0xc
mov eax, 0x4a705e
call fcn.004646d0
mov esi, ecx
mov dword [ebp - 0x18], esi
or dword [esi + 0x220], 0xffffffff
xor edi, edi
lea eax, [esi + 0x228]
mov dword [esi], 0x4b2674
mov dword [esi + 0x20c], edi
mov dword [esi + 0x210], edi
mov byte [esi + 0x214], 1
mov byte [esi + 0x215], 1
mov byte [esi + 0x216], 1
mov dword [esi + 0x21c], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
push ebx
call fcn.004405ab
pop ecx
pop ecx
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [esi + 0x218], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20c], eax
cmp eax, 0xffffffff
jne 0x4406e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x21c], eax
jmp 0x4407ea
push 0x2e
mov dword [esi + 0x210], 1
call fcn.00465977
push 0x2e
push edi
push eax
mov dword [esi + 0x224], eax
call fcn.00465a60
add esp, 0x10
push edi
push edi
push dword [esi + 0x218]
mov ecx, esi
push dword [esi + 0x20c]
call fcn.0043fb00
test eax, eax
je 0x4407ea
push edi
lea eax, [ebp - 0x14]
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x4407ea
cmp dword [ebp - 0x14], edi
je 0x4407ea
mov ecx, esi
call fcn.0043fae8
test eax, eax
je 0x440770
mov eax, dword [esi + 0x224]
movzx eax, word [eax + 0xe]
cmp ax, di
jne 0x4407df
push edi
push ebx
call fcn.004405ab
pop ecx
pop ecx
cmp eax, dword [esi + 0x218]
jbe 0x440787
mov dword [esi + 0x218], eax
push edi
push edi
push dword [esi + 0x218]
mov ecx, esi
push dword [esi + 0x20c]
call fcn.0043fb00
test eax, eax
je 0x4407ea
push edi
lea eax, [ebp - 0x10]
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x4407ea
cmp dword [ebp - 0x14], edi
je 0x4407ea
mov ecx, esi
call fcn.0043fae8
test eax, eax
je 0x4407ea
mov eax, dword [esi + 0x224]
movzx eax, word [eax + 0xe]
cmp ax, di
je 0x4407ea
movzx eax, ax
push eax
mov ecx, esi
call fcn.0043ffbe
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004647a8
ret 4
Function at 0x4034c0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404d10
test esi, esi
jne 0x4034f6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404e00
jmp 0x403514
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033c4
mov edi, eax
test esi, esi
je 0x403514
cmp dword [ebx], 0
je 0x403514
dec esi
jmp 0x4034fd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403cf4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x466020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d8c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403d6c
xor eax, eax
push ebp
push 0x403d65
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403da8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d6c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x466020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x466020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404b90
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46904c], 0
je 0x404bf1
cmp word [0x469220], 0xd7b2
jne 0x404bb9
cmp dword [0x469228], 0
jbe 0x404bb9
mov eax, 0x46921c
call dword [0x469238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404c18
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46602c], 0
jne 0x404c0d
push 0
push 0x466758
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4065c0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406643
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406643
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40680c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4066cc
xor eax, eax
push ebp
push 0x4066c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004063fc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4066aa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40682c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4066aa
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066cc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4067e6
cmp byte [ebp - 0xd], 0
jne 0x406713
cmp byte [ebp - 0x12], 0
je 0x4067e6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40672c
dec ebx
cmp byte [ebx], 0x2e
je 0x40673b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40672b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4067e6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406778
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4067e6
cmp byte [ebp - 0xd], 0
je 0x4067e6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4067e6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret