joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018d94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
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_CreateThread]
pop ebp
ret

Function at 0x1002dbc4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1002d78f
push eax
push esi
push dword [ebp + 8]
call fcn.1002d744
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1002d77f
pop ebp
cmp byte [ebx], dl
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
inc ebp
xchg byte [ebx - 0x3a], ah
inc ebp
xchg dword [edx - 0x3a], edi
inc ebp
mov byte [ebx - 0x3a], dh
inc ebp
mov dword [esi - 0x3a], ebx
inc ebp
mov dh, byte [edi - 0x3a]
inc ebp
invalid
invalid

Function at 0x1002ddeb
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x1002de33
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1002de2e
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1002de18
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1002de20
cmp edx, ebx
jne 0x1002df6e
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1002ddef
add eax, dword [eax + 4]
jmp 0x1002dddc
mov dword [ebp + 0xc], ebx
jmp 0x1002de3e
Function at 0x1002df9e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.1002d78f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1002d744
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2

Function at 0x1002f926
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov ch, 0xb4
cli
invalid
push ebp
fdivp st(7)
inc dword [esi]
push es
loope 0x1002f8f4
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x1002f943
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.1002d77f
sal dword [edx - 0x26], 0x55
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.1002d77f
cdq
jbe 0x1002f942
stosd dword es:[edi], eax
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x1002f96c
int1
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x1002f96c
call fcn.1002d77f
repne lodsb al, byte [esi]
or al, 0xd1
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.1002d77f
jne 0x1002f92a
stosb byte es:[edi], al
out dx, eax
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.1002df7f
fadd st(1)
add al, 0x10
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1003d7cc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003d642
Function at 0xc85c00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x548000]
push edi
jmp 0xc85c1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xc85c21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc85c10
mov eax, 1
add ebx, ebx
jne 0xc85c33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xc85c44
jne 0xc85c63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc85c63
dec eax
add ebx, ebx
jne 0xc85c50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xc85c28
add ebx, ebx
jne 0xc85c5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xc85cb5
xor ecx, ecx
sub eax, 3
jb 0xc85c7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xc85cea
sar eax, 1
mov ebp, eax
jmp 0xc85c86
add ebx, ebx
jne 0xc85c86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc85c54
inc ecx
add ebx, ebx
jne 0xc85c94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc85c54
add ebx, ebx
jne 0xc85ca1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xc85c96
jne 0xc85cb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xc85c96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xc85cd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xc85cc6
jmp 0xc85c16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xc85cd4
add edi, ecx
jmp 0xc85c16
pop esi
mov edi, esi
mov ecx, 0x8810
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xc85cf2
cmp byte [edi], 0x1e
jne 0xc85cf2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xc85cf7
lea edi, [esi + 0x882000]
mov eax, dword [edi]
or eax, eax
je 0xc85d6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8885e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x88875c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xc85d24
mov ecx, edi
jns 0xc85d53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x888764]
or eax, eax
je 0xc85d69
mov dword [ebx], eax
add ebx, 4
jmp 0xc85d41
call dword [esi + 0x888760]
mov ebp, dword [esi + 0x888768]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xc85da3
sub esp, 0xffffff80
jmp 0x5281c1
Function at 0x4044bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004029ee
and dword [ebp - 4], 0
cmp dword [0x40e9b0], 0
mov ebx, eax
jne 0x40456c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40461d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40461d
push eax
call fcn.0040297c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e9b0], eax
call esi
push eax
call fcn.0040297c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e9b4], eax
call esi
push eax
call fcn.0040297c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e9b8], eax
call esi
push eax
call fcn.0040297c
pop ecx
mov dword [0x40e9c0], eax
test eax, eax
je 0x40456c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040297c
pop ecx
mov dword [0x40e9bc], eax
mov eax, dword [0x40e9bc]
cmp eax, ebx
je 0x4045c4
cmp dword [0x40e9c0], ebx
je 0x4045c4
push eax
call fcn.004029f7
push dword [0x40e9c0]
mov esi, eax
call fcn.004029f7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4045c4
test edi, edi
je 0x4045c4
call esi
test eax, eax
je 0x4045bb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4045bb
test byte [ebp - 0xc], 1
jne 0x4045c4
or dword [ebp + 0x10], 0x200000
jmp 0x4045fd
mov eax, dword [0x40e9b4]
cmp eax, ebx
je 0x4045fd
push eax
call fcn.004029f7
pop ecx
test eax, eax
je 0x4045fd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4045fd
mov eax, dword [0x40e9b8]
cmp eax, ebx
je 0x4045fd
push eax
call fcn.004029f7
pop ecx
test eax, eax
je 0x4045fd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e9b0]
call fcn.004029f7
pop ecx
test eax, eax
je 0x40461d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40461f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407fa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483d3d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49a11c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004099a0
push str.Service_host
push 4
push 0x25
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
push dword [edi + 4]
mov dword [ebp - 4], 0
mov dword [edi], vtable.nvc::ServiceHost.0
mov dword [edi + 0x6c4], 0
mov dword [edi + 0x748], 0
mov dword [edi + 0x74c], 0
call fcn.00418440
add esp, 0x14
xorps xmm0, xmm0
movups xmmword [edi + 0x6a8], xmm0
movq qword [edi + 0x6b8], xmm0
push 0
push 0
push 1
mov dword [edi + 0x6c0], 0
push 0
mov dword [edi + 0x6a8], 0x10
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push dword [ebp + 8]
mov dword [edi + 0x748], eax
lea eax, [edi + 0x6c8]
push 0x40
push eax
call fcn.004590c4
add esp, 0xc
mov ecx, edi
push 0x200
call fcn.00408d50
test al, al
je 0x40808b
call fcn.0041b750
or eax, 4
push eax
call fcn.0041b7b0
add esp, 4
push 0x100
mov ecx, edi
call fcn.00408d50
test al, al
je 0x4080ac
call fcn.0041b750
or eax, 4
push eax
call fcn.0041b7b0
add esp, 4
push 0
push 0
push 0
push 0x4092d0
push 0
push 0
mov dword [0x49b6d4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x408117
mov esi, dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Service_host:_failed_to_create_ServiceThread._Error__u
push 1
push 0x42
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
push esi
call fcn.00418440
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Service_host:_failed_to_create_ServiceThread._Error__u
push 0x11
call fcn.004049e0
push 0x80
lea eax, [edi + 0x6c8]
push 0
push eax
call fcn.0042fbd0
add esp, 0x18
jmp 0x40811e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x748]
test eax, eax
je 0x408150
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push str.Service_host:_wait_completed_with__u
push 3
push 0x56
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
push dword [edi + 4]
call fcn.00418440
add esp, 0x18
jmp 0x408175
push str.Service_host_failed
push 1
push 0x5c
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
push dword [edi + 4]
call fcn.00418440
push str.Service_host_failed
push 0x12
call fcn.004049e0
add esp, 0x1c
mov ecx, edi
call fcn.00409310
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408d50
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x24
mov eax, dword [0x49a11c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x20019
mov edi, ecx
xor bl, bl
call fcn.0041f920
add esp, 8
test eax, eax
jne 0x408e5c
push esi
push eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x3c]
push 0
or eax, 0x2001f
push eax
push 0
push 0
push 0
lea eax, [edi + 0x6c8]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x408e5c
mov ax, word [0x487f0c]
movups xmm0, xmmword [str.Recovery]
mov word [esp + 0x24], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0x10
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 4
push eax
push 0
push dword [esp + 0x24]
movups xmmword [esp + 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 8], 0
je 0x408e5c
push str.Safe_mode_is_ON._Optional_plugins_will_not_be_loaded
push 2
push 0x145
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
push dword [edi + 4]
call fcn.00418440
add esp, 0x14
mov al, 1
pop edi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0042e033
add esp, 0x24
ret 4
mov ecx, dword [esp + 0x28]
mov al, bl
pop edi
pop ebx
xor ecx, esp
call fcn.0042e033
add esp, 0x24
ret 4
Function at 0x409140
Capabilities:
Set registry value

Disassembly:
sub esp, 0x30
mov eax, dword [0x49a11c]
xor eax, esp
mov dword [esp + 0x2c], eax
movups xmm0, xmmword [str.ServiceAutoStart]
mov ax, word [0x487f68]
push ebx
push esi
push edi
mov word [esp + 0x34], ax
mov ebx, ecx
movups xmmword [esp + 0x14], xmm0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
movups xmm0, xmmword [0x487f58]
push eax
push 0x20019
movups xmmword [esp + 0x2c], xmm0
lea edi, [ebx + 0x6c8]
call fcn.0041f920
add esp, 8
test eax, eax
jne 0x409200
push eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x48]
push 0
or eax, 0x20006
push eax
push 0
push 0
push 0
push edi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x409205
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 4
push esi
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40923b
jmp 0x409205
mov esi, 5
push esi
push edi
lea eax, [esp + 0x1c]
push eax
push str.Failed_to_save_auto_start_flag__ls_to_registry_for_service__ls._Error__ld
push 1
push 0x169
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
push dword [ebx + 4]
call fcn.00418440
push esi
push edi
lea eax, [esp + 0x3c]
push eax
push str.Failed_to_save_auto_start_flag__ls_to_registry_for_service__ls._Error__ld
push 0x13
call fcn.004049e0
add esp, 0x34
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e033
add esp, 0x30
ret 4

Function at 0x40b4d0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
je 0x40b585
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, edi
mov esi, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b4f1
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40b51e
pop edi
pop esi
pop ebp
pop ecx
ret
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
cmp word [ebp + esi*2 - 2], 0x5c
je 0x40b53b
mov eax, 0x5c
mov word [ebp + esi*2], ax
inc esi
mov ecx, edi
xor edx, edx
push ebx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b543
sub ecx, ebx
sar ecx, 1
je 0x40b584
lea esi, [esi*2]
lfence
add esi, ebp
mov ax, word [edi + edx*2]
lea esi, [esi + 2]
mov word [esi - 2], ax
inc edx
mov eax, edi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b571
sub eax, ebx
sar eax, 1
cmp edx, eax
jb 0x40b560
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x40e1f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x18
mov eax, dword [0x49a11c]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
push ebp
push esi
push edi
xor esi, esi
mov dword [esp + 0xc], ecx
xor edi, edi
mov dword [esp + 0x14], 0x24
xor ebp, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], 0x26
mov dword [esp + 0x1c], 0x2a
cmp dword [0x49c5b0], esi
jne 0x40e29d
push 3
push 0x20
push 3
push 1
push 3
push 2
push edi
push edi
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 0x23
xor ecx, ecx
mov dword [0x49c5b0], 0x11c
push 0x49c5b0
mov dword [0x49c5b4], 6
mov dword [0x49c5b8], 1
mov word [0x49c6c4], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, dword [esp + 0xc]
neg eax
sbb eax, eax
inc eax
mov dword [0x499188], eax
jmp 0x40e2a2
mov eax, dword [0x499188]
test eax, eax
je 0x40e2bd
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0042e033
add esp, 0x18
ret
test ecx, ecx
je 0x40e401
push ebx
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ebx, eax
test ebx, ebx
je 0x40e400
lea eax, [ebx + ebx]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
je 0x40e400
push 0
push ebp
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp ebx, eax
jbe 0x40e400
lfence
xor ebx, ebx
nop
mov eax, dword [esp + ebx*4 + 0x18]
cmp eax, 0x26
jne 0x40e3a0
push 0
push 0
push 0x489000
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
xor esi, esi
test edi, edi
je 0x40e3fc
lea ecx, [edi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40e3fc
push edi
push esi
push 0x489000
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jne 0x40e3fc
push esi
push 0x489000
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40e387
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x48810c
push 0x26
jmp 0x40e3a6
cmp word [esi + edi*2 - 4], 0x5c
je 0x40e3b4
push 0x488ffc
lea eax, [edi + 1]
push eax
push esi
call fcn.0040f480
jmp 0x40e3b4
push 0x48810c
push eax
call fcn.0040b390
mov esi, eax
add esp, 8
test esi, esi
je 0x40e3fc
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e3c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
push ebp
call fcn.0045a89a
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
mov dword [esp + 0x14], ecx
test eax, eax
je 0x40e3fc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc ebx
xor esi, esi
cmp ebx, 3
jl 0x40e310
mov edi, dword [esp + 0x14]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042e033
add esp, 0x18
ret
Function at 0x411740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x411876
movzx eax, word [esi]
cmp eax, 0x5c
je 0x411793
cmp eax, 0x2f
je 0x411793
push eax
call fcn.0045a040
add esp, 4
test eax, eax
je 0x411876
cmp word [esi + 2], 0x3a
jne 0x411876
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x411793
cmp eax, 0x2f
jne 0x411876
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411868
test al, 0x50
jne 0x411868
push ebx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4117d8
push 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
xor ecx, ecx
mov dword [esp + 0xc], edi
cmp dword [esp + 0x1c], ecx
lea eax, [esp + 0xc]
cmove eax, ecx
push eax
push esi
call fcn.00412020
add esp, 8
test eax, eax
je 0x41180e
cmp dword [esp + 0x1c], edi
je 0x411822
cmp dword [esp + 0xc], edi
jne 0x411822
push 0x80092009
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.0040e750
add esp, 8
test eax, eax
je 0x411837
mov eax, dword [esp + 0x18]
and eax, 0xffffe8f7
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test ebx, ebx
je 0x411851
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4117d1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ecx
ret
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ecx
ret