joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40150b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4153cc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x7ff
lea eax, [ebp - 0x803]
push 0
push eax
mov byte [ebp - 0x804], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [0x4154bc], 0
jne 0x4015ba
push str.DEPLOY_TRACE_NATIVE
call dword [sym.imp.MSVCR100.dll_getenv]
pop ecx
test eax, eax
je 0x4015ba
push esi
call fcn.004014d2
mov esi, eax
test esi, esi
je 0x4015b9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
push 0x40e36c
push esi
push str._s_s_s__ld.trace
mov eax, 0x800
push eax
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.MSVCR100.dll__snprintf_s]
push esi
call dword [sym.imp.MSVCR100.dll_free]
lea eax, [ebp - 0x804]
push 0x40e384
push eax
call fcn.004014ac
add esp, 0x2c
mov dword [0x4154c0], eax
test eax, eax
je 0x4015b9
mov dword [0x4154bc], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040bcaf
leave
ret

Function at 0x401e6d
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR100.dll__mbslen]
push esi
push 0x40e6cc
call ebp
lea esi, [eax + 0x105]
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x401ede
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push ebx
push dword [esp + 0x1c]
call edi
mov esi, eax
test esi, esi
jne 0x401ee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x401ed2
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401eb7
mov esi, str.JavaLow
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
push dword [esp + 0x18]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call dword [sym.imp.MSVCR100.dll_free]
xor eax, eax
inc eax
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
cmp esi, 0x104
jbe 0x401eb4
push 0x40e6d8
call ebp
lea eax, [eax + esi + 1]
push eax
push ebx
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 0xc
xor ebx, ebx
push esi
push ebx
push dword [esp + 0x1c]
call edi
test eax, eax
jne 0x401eb4
push ebx
call dword [sym.imp.MSVCR100.dll_free]
xor eax, eax
jmp 0x401edc
Function at 0x4022e6
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4153cc]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
mov ebx, dword [ebp + 0x19c]
push esi
push 0x103
lea eax, [ebp + 0x8d]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x80], ebx
mov byte [ebp + 0x8c], 0
call sub.MSVCR100.dll_memset
lea eax, [ebp + 0x8c]
push 0
push eax
mov ecx, esi
call fcn.00401852
add esp, 0x14
test eax, eax
jne 0x402353
push esi
push str.Error_during_getting_jre_home..._jp2launcherpath__s_n
call fcn.004015ed
pop ecx
pop ecx
xor eax, eax
jmp 0x40240b
mov esi, dword [sym.imp.MSVCR100.dll__snprintf]
push edi
lea eax, [ebp + 0x8c]
push eax
push eax
push eax
push str._Xbootclasspath_a:__slibdeploy.jar____slibjavaws.jar____slibplugin.jar_
push 0x410
mov edi, 0x415be8
push edi
call esi
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
mov ecx, ebx
mov dword [ebp - 0x7c], edi
call fcn.00402f8c
lea eax, [ebp + 0x8c]
push eax
push str._Djava.class.path__sclasses_
mov ebx, 0x208
push ebx
mov edi, 0x4159e0
push edi
call esi
mov ecx, dword [ebp - 0x80]
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], edi
call fcn.00402f8c
mov edi, 0x104
push edi
lea eax, [ebp - 0x78]
push eax
push 0x40e5ac
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4023f8
cmp eax, edi
jae 0x4023f8
lea eax, [ebp - 0x78]
push eax
push 0x40e620
push 0x40e638
push ebx
mov edi, 0x4157d8
push edi
call esi
mov ecx, dword [ebp - 0x80]
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], edi
call fcn.00402f8c
push dword [ebp - 0x80]
lea ecx, [ebp + 0x8c]
call fcn.00402083
pop ecx
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp + 0x190]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bcaf
add ebp, 0x194
leave
ret
Function at 0x4058a9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4153cc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x416005], 0
je 0x4058cc
mov al, byte [0x416004]
jmp 0x40591d
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x40590f
cmp dword [ebp - 0x94], 6
jb 0x40590f
mov al, 1
jmp 0x405911
xor al, al
mov byte [0x416004], al
mov byte [0x416005], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bcaf
leave
ret

Function at 0x405ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4153cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x7ff
lea eax, [ebp - 0x803]
push ebx
push eax
mov byte [ebp - 0x804], bl
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x80c], eax
mov edi, 0x20019
cmp byte [ebp + 0x10], bl
je 0x405f0e
mov edi, 0x20119
push 0x40f680
push str.SOFTWAREJavaSoftJava_Plug_in
push 0x40f6ac
lea eax, [ebp - 0x804]
push 0x800
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x14
lea eax, [ebp - 0x808]
push eax
push edi
push ebx
lea eax, [ebp - 0x804]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405f55
xor al, al
jmp 0x405fae
lea eax, [ebp - 0x80c]
push eax
push esi
push ebx
push 2
push 0x40f6b4
push ebx
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
push dword [ebp - 0x808]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x405f51
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405f89
sub eax, edx
add eax, 5
cmp eax, dword [ebp + 0xc]
ja 0x405f51
dec esi
mov al, byte [esi + 1]
inc esi
cmp al, bl
jne 0x405f9b
mov edi, esi
mov esi, str._bin
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bcaf
leave
ret
Function at 0x406c61
Capabilities:
Query environment variable

Disassembly:
push 0x28
mov eax, 0x40d249
call fcn.0040bded
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
push eax
call fcn.004053b4
mov esi, dword [ebp - 0x34]
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
pop ebx
jmp 0x406ce5
cmp dword [esi + 0x14], ebx
jb 0x406c95
mov eax, dword [esi]
jmp 0x406c97
mov eax, esi
push eax
push str._Dsun.java2d.noddraw
call fcn.00406302
pop ecx
pop ecx
cmp eax, 1
je 0x406cec
cmp dword [esi + 0x14], ebx
jb 0x406cb2
mov eax, dword [esi]
jmp 0x406cb4
mov eax, esi
push eax
push str._Dsun.java2d.d3d
call fcn.00406302
pop ecx
pop ecx
test eax, eax
je 0x406cec
cmp dword [esi + 0x14], ebx
jb 0x406cce
mov eax, dword [esi]
jmp 0x406cd0
mov eax, esi
push eax
push str._Dsun.java2d.opengl
call fcn.00406302
pop ecx
pop ecx
cmp eax, 1
je 0x406cec
add esi, 0x1c
cmp esi, dword [ebp - 0x30]
jne 0x406c8c
jmp 0x406cf2
mov dword [0x414ed4], edi
cmp dword [0x414ed4], edi
je 0x406d74
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor eax, eax
mov byte [ebp - 0x20], 0
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x20]
push eax
push str.J2D_D3D
call esi
mov edi, dword [sym.imp.MSVCR100.dll__mbsicmp]
test eax, eax
je 0x406d40
cmp eax, ebx
jae 0x406d40
lea eax, [ebp - 0x20]
push 0x40f790
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x406d40
and dword [0x414ed4], eax
push ebx
lea eax, [ebp - 0x20]
push eax
push str.J2D_D3D_PRELOAD
call esi
test eax, eax
je 0x406d6b
cmp eax, ebx
jae 0x406d6b
lea eax, [ebp - 0x20]
push 0x40f7a8
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x406d6b
and dword [0x414ed4], eax
cmp dword [0x414ed4], 0
jne 0x406d86
xor esi, esi
lea ecx, [ebp - 0x34]
call fcn.00404324
mov eax, esi
call fcn.0040be37
ret
push dword [ebp - 0x24]
push str.preloadD3D
call fcn.00406a59
pop ecx
pop ecx
mov esi, eax
jmp 0x406d76
Function at 0x40703b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4153cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x207
lea eax, [ebp - 0x30f]
push 0
push eax
mov byte [ebp - 0x310], 0
call sub.MSVCR100.dll_memset
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0x18
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
push 0x40f46c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4070da
cmp eax, esi
jae 0x4070da
lea eax, [ebp - 0x108]
push eax
push str.javaplugin.user.profile
push str._D_s_s
lea eax, [ebp - 0x310]
push 0x208
push eax
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x310]
push eax
mov ecx, edi
call fcn.004074b1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040bcaf
leave
ret

Function at 0x4077dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407837
cmp dword [ebp + 0x10], 1
je 0x40781c
cmp dword [ebp + 0x10], 2
je 0x40781c
push 0xd
pop eax
jmp 0x407837
mov eax, dword [ebp - 4]
test edi, edi
je 0x407833
test eax, eax
je 0x407830
cmp byte [eax + edi - 1], 0
je 0x407833
jmp 0x407817
mov byte [edi], 0
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x407d29
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4153cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x103
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x407dbb
cmp eax, edi
ja 0x407dbb
push esi
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call sub.MSVCR100.dll_memset
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x410008
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x407dbd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bcaf
leave
ret

Function at 0x407ee1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x407eee
xor eax, eax
pop ebp
ret
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop ebp
ret
Function at 0x407f4a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
add esp, 0xc
mov word [ebp - 0x28], ax
lea eax, [ebp - 4]
xor edi, edi
push eax
inc edi
push 0x2000000
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407fc3
cmp dword [ebp + 8], esi
je 0x407fc3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x8000008
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
cmp eax, esi
jne 0x407fc7
xor eax, eax
jmp 0x407fe5
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4081f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78c]
sub esp, 0x80c
mov eax, dword [0x4153cc]
xor eax, ebp
mov dword [ebp + 0x788], eax
push ebx
mov ebx, dword [ebp + 0x798]
push esi
mov esi, dword [ebp + 0x79c]
push edi
mov edi, dword [ebp + 0x794]
push 0x3ff
lea eax, [ebp + 0x389]
push 0
push eax
mov byte [ebp + 0x388], 0
call sub.MSVCR100.dll_memset
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
mov edi, 0x400
lea eax, [ebp + 0x388]
push edi
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
neg esi
push 0
lea eax, [ebp + 0x388]
sbb esi, esi
push eax
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40828a
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
jmp 0x4082cd
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x40f84a
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 0x7c]
test eax, eax
je 0x4082b4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4082cd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__mbscmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [ebp + 0x788]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bcaf
add ebp, 0x78c
leave
ret

Function at 0x4084c9
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x4084ea
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4084ea
inc esi
mov eax, esi
pop esi
ret
Function at 0x408f3b
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4153cc]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x40d342
call fcn.0040bdb7
mov esi, dword [ebp + 0x214]
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x408f95
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.0040a1f5
pop ecx
pop ecx
push ebx
push edi
call fcn.0040ca30
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409d8b
mov ecx, dword [eax]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x408fb2
call fcn.00409c18
jmp 0x408fb4
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, ebx
je 0x409000
call fcn.00409f5f
jmp 0x409000
xor eax, eax
cmp edi, ebx
setge al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040bcaf
add ebp, 0x20c
leave
ret

Function at 0x40902a
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4153cc]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x40d372
call fcn.0040bdb7
mov esi, dword [ebp + 0x214]
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x409084
push edi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.0040a1f5
pop ecx
pop ecx
push ebx
push edi
call fcn.0040ca30
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409d8b
mov ecx, dword [eax]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x4090a1
call fcn.00409c18
jmp 0x4090a3
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, ebx
je 0x4090ef
call fcn.00409f5f
jmp 0x4090ef
xor eax, eax
cmp edi, ebx
setge al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040bcaf
add ebp, 0x20c
leave
ret
Function at 0x4097e4
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x40d3d2
call fcn.0040bdb7
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.00407c19
test eax, eax
je 0x40980f
call fcn.004097d5
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x40e2ec
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x40986a
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.0040a1f5
pop ecx
pop ecx
push edi
push esi
call fcn.0040ca30
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.00409ec3
push eax
push esi
push 0x40fa3c
call fcn.0040a1f5
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x409863
ret
cmp ebx, edi
je 0x409875
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x409926
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x4098d2
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x40982e
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x409926
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x409926
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x40982e
mov eax, esi
call fcn.0040be23
ret

Function at 0x409c73
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4153cc]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00407756
mov ebx, eax
cmp ebx, esi
je 0x409ce6
lea ecx, [ebp - 0x74]
call fcn.0040773b
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bcaf
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x409cfe
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.00409c73
cmp eax, esi
jne 0x409d30
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x409cee
lea ecx, [ebp - 0x74]
call fcn.0040773b
push dword [ebp - 0x78]
mov ecx, edi
call fcn.004076cc
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040773b
mov eax, esi
jmp 0x409ccc
Function at 0x40a083
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4153cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x823]
push 0
push eax
mov byte [ebp - 0x824], 0
call sub.MSVCR100.dll_memset
push edi
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x824]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll__vsnprintf_s]
add esp, 0x20
test eax, eax
jns 0x40a0de
mov byte [ebp - 0x425], 0
push 7
xor eax, eax
mov byte [ebp - 0x24], 0
pop ecx
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0040a004
push 0x4104f8
lea eax, [ebp - 0x24]
push 0x20
push eax
call dword [sym.imp.MSVCR100.dll_strcat_s]
push esi
lea eax, [ebp - 0x423]
push 0
push eax
mov byte [ebp - 0x424], 0
call sub.MSVCR100.dll_memset
mov eax, ebx
add esp, 0x20
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a129
sub eax, edi
cmp eax, 6
jbe 0x40a152
lea eax, [ebx + eax - 6]
push str.__08x_
push eax
call dword [sym.imp.MSVCR100.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
jne 0x40a152
xor ebx, ebx
inc ebx
jmp 0x40a154
xor ebx, ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a15a
sub eax, edx
mov edi, eax
mov eax, str.Error:
test ebx, ebx
jne 0x40a173
mov eax, 0x41040e
lea ecx, [ebp - 0x824]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
push 0xffffffffffffffff
sub esi, edi
lea eax, [ebp + edi - 0x424]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__snprintf_s]
add esp, 0x20
test eax, eax
jns 0x40a1af
mov dword [ebp - 0x29], 0x2e2e2e
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x424]
push eax
call sub.MSVCR100.dll_memcpy
lea edi, [ebp - 0x424]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a1ca
lea eax, [ebp - 0x424]
mov esi, 0x410524
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bcaf
leave
ret