joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436760
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x466ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0045fd9f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00436100
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0045fccd
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045c588
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045c588
push 1
push 0
push 0
mov ecx, esi
call fcn.0045c530
push 1
push 0
push 1
mov ecx, esi
call fcn.0045c530
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045fe11
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4368e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x466ef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0045fd9f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00436100
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0045fccd
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4369a4
cmp dword [esp + 0x40], 1
jne 0x4369a2
cmp ecx, eax
jge 0x4369a4
mov eax, ecx
cmp eax, 0xc8
jge 0x4369b0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00436760
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045fe11
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x437120
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x466f63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045a9a9
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00460047
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00461563
test eax, eax
je 0x43723c
mov ecx, dword [esp + 0x3c]
call fcn.00460074
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x437200
push edi
mov ecx, esi
call fcn.0045d6cf
mov ecx, esi
call fcn.004373a0
cmp dword [esp + 0x38], 1
jne 0x437235
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045d80a
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x439c60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x439c93
push esi
call fcn.0043cd60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x439c8c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x439d19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x439d02
mov eax, dword [esi + 8]
test eax, eax
je 0x439cb7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x439cfe
cmp eax, 2
je 0x439d02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x439caa
cmp eax, 3
je 0x439cdd
cmp eax, 1
jne 0x439caa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x439caa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x439caa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00439d40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x439d28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00439d40
add esp, 4
pop esi
ret

Function at 0x445000
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x445066
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x445066
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x445047
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4453f0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x445428
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4460f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x446139
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4465b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x467460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00446160
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004461e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004461e0
lea ecx, [esi + 0xc]
call fcn.00459385
lea ecx, [esi + 0x10]
call fcn.00459385
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00447770
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00447770
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00447770
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004593fa
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004593fa
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45b79e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45b7d6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00459855
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045982d
jmp 0x45b7e2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45ce8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45cece
call fcn.00462c0e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45cece
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45cec5
xor eax, eax
jmp 0x45ced6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045cedc
pop edi
pop esi
pop ebx
ret 4

Function at 0x46313e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46316c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46318a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004630a4
jmp 0x46318a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46318a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004630a4
test edi, edi
mov eax, edi
jne 0x463174
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
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.0040cb68
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 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 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 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.0040cb68
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.0040cb68
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.0040cb68
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.0040cb68
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.0040cb68
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