joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4acbe0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x4acc95
cmp dword [ebp + 4], 0xffffffff
jne 0x4acc95
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x5046c4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x4acc5d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4acc5d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.004ab9e0
add esp, 0x10
test eax, eax
jne 0x4acc80
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.004abf20
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x4ad0f0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x4ad1b8
mov al, byte [ecx]
test al, al
je 0x4ad1b8
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x4ad11b
cmp al, 0x5c
jne 0x4ad11d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4ad113
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x4ad154
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.004b8bf5
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.004ad0f0
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4af870
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x50482c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4af883
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4af8c4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5048d4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4af8f6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4af8fa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4af8eb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4af918
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4af91c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4af90d
xor ecx, ecx
mov eax, 0x50483c
xor ebx, ebx
mov bl, byte [ecx + 0x5048e4]
cmp byte [esp + ebx + 0x14], 0
je 0x4af947
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5048fc]
cmp byte [esp + ebx + 0x14], 0
je 0x4af95e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4af92e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4af8b7
lea edx, [esp + 0x84]
push edx
call fcn.004af9a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4b89bd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b89dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b7aca
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b8a00
test byte [esp + 8], 2
je 0x4b8a00
call fcn.004b7b3d
mov dword [eax], 0xd
call fcn.004b7b46
mov dword [eax], 5
jmp 0x4b89d9
xor eax, eax
ret

Function at 0x4c96f5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c972d
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.004c7782
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c775a
jmp 0x4c9739
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cade3
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 0x4cae25
call fcn.004d0b60
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cae25
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4cae1c
xor eax, eax
jmp 0x4cae2d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cae33
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d1090
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 0x4d10be
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d10dc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d0ff6
jmp 0x4d10dc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d10dc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d0ff6
test edi, edi
mov eax, edi
jne 0x4d10c6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40150b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x41517c]
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 [0x41526c], 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 [0x415270], eax
test eax, eax
je 0x4015b9
mov dword [0x41526c], 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 [0x41517c]
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, 0x415998
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, 0x415790
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, 0x415588
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 [0x41517c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x415db5], 0
je 0x4058cc
mov al, byte [0x415db4]
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 [0x415db4], al
mov byte [0x415db5], 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 [0x41517c]
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 [0x414c84], edi
cmp dword [0x414c84], 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 [0x414c84], 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 [0x414c84], eax
cmp dword [0x414c84], 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 [0x41517c]
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 [0x41517c]
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 [0x41517c]
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 [0x41517c]
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 [0x41517c]
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