joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068a0
Capabilities:
Continue service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x443230]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov edi, 0x1e
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x28], ebx
call fcn.00406500
mov esi, eax
test esi, esi
jne 0x40696e
cmp dword [ebp - 0x20], 7
jne 0x40696c
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x406907
lea esi, [edi - 0x18]
jmp 0x40696e
push 0xf01ff
push 0x43b41c
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x406936
call esi
mov esi, eax
test esi, esi
jne 0x40696e
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x24]
push ecx
push 3
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40694d
call esi
mov esi, eax
jmp 0x40696e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
call fcn.00406500
cmp dword [ebp - 0x20], 4
je 0x40696c
push 0x3e8
call esi
dec edi
jne 0x406953
xor esi, esi
mov eax, dword [ebp - 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x40697e
push eax
call edi
test ebx, ebx
je 0x406985
push ebx
call edi
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419355
mov esp, ebp
pop ebp
ret 4

Function at 0x406ce0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
mov dword [esi], vtable.Session.0
test eax, eax
je 0x406d14
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x406d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406d14
push 0x1388
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x406d24
push eax
call edi
mov eax, dword [esi + 0x20]
test eax, eax
je 0x406d2e
push eax
call edi
mov eax, dword [esi + 0x44]
mov dword [esi + 0x40], vtable.Buffer.0
test eax, eax
je 0x406d68
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x30], vtable.Date.0
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], vtable.ServerPipe.0
cmp eax, 0xffffffff
je 0x406d88
push eax
call edi
mov dword [esi + 0x10], 0
mov edx, dword [esi + 8]
sub edx, 0x10
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
pop edi
pop esi
test ecx, ecx
jg 0x406da7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
ret
Function at 0x406f40
Capabilities:
Enumerate processes
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x443230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0xfe
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x108], 0
call fcn.0041ce40
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x114], 0xff
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00406db0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4070ba
test esi, esi
je 0x4070ba
push 0x128
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.0041ce40
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push esi
mov dword [ebp - 0x240], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x40702e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.Process32First_error__d___0x_X_
push 0xda
push 0x43b5f0
jmp 0x4070d3
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x407040
lea eax, [ebp - 0x21c]
push str.explorer.exe
push eax
call fcn.0041a17a
add esp, 8
test eax, eax
jne 0x407077
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40709f
cmp edi, dword [ebp - 0x10c]
je 0x40708d
lea eax, [ebp - 0x240]
push eax
push esi
call ebx
cmp eax, 1
je 0x407040
mov edi, 0x490
jmp 0x4070db
mov ecx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x238]
mov dword [ecx], eax
xor edi, edi
jmp 0x4070db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.ProcessIdToSessionId_error__d___0x_X_
push 0xe8
push 0x43b674
jmp 0x4070d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.CreateToolhelp32Snapshot_error__d___0x_X_
push 0xd0
push 0x43b5b8
call fcn.00405530
add esp, 0x14
cmp esi, 0xffffffff
je 0x4070eb
test esi, esi
je 0x4070eb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419355
mov esp, ebp
pop ebp
ret 8
Function at 0x407100
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x443230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
or esi, 0xffffffff
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x24], esi
call fcn.00406f40
mov edi, eax
test edi, edi
je 0x407152
push edi
push edi
push str.get_winlogon_pid_error__d___0x_X_
push 0x146
push 0x43b6fc
jmp 0x4072b4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
push dword [ebp - 0x28]
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x40729b
test esi, esi
je 0x40729b
lea eax, [ebp - 0x24]
push eax
push 0x201eb
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4071b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.OpenProcessToken_error__d___0x_X_
push 0x15d
push 0x43b74c
jmp 0x4072b4
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4071e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.LookupPrivilegeValued_error__d___0x_X_
push 0x164
push 0x43b758
jmp 0x4072b4
mov eax, dword [ebp - 0x10]
push ebx
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x407235
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.DuplicateTokenEx_error__d___0x_X_
push 0x170
push 0x43b78c
jmp 0x4072b4
push 4
lea eax, [ebp + 8]
push eax
push 0xc
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x407264
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.SetTokenInformation_error__d___0x_X_
push 0x179
push 0x43b7bc
jmp 0x4072b4
push 0
push 0
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x407297
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.AdjustTokenPrivileges_error__d___0x_X_
push 0x180
push 0x43b7f0
jmp 0x4072b4
xor edi, edi
jmp 0x4072bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.OpenProcess_error__d___0x_X_
push 0x151
push 0x43b72c
call fcn.00405530
add esp, 0x14
mov eax, dword [ebp - 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x4072d1
test eax, eax
je 0x4072d1
push eax
call ebx
cmp esi, 0xffffffff
je 0x4072dd
test esi, esi
je 0x4072dd
push esi
call ebx
mov ecx, dword [ebp - 8]
cmp ecx, 0xffffffff
je 0x4072ec
test ecx, ecx
je 0x4072ec
push ecx
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419355
mov esp, ebp
pop ebp
ret 8
Function at 0x407810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x443230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edi
call fcn.0041b74e
mov ecx, dword [ebp - 0x10]
mov esi, edi
mov dword [ecx + 0x3c], edx
add esp, 4
mov dword [ecx + 0x38], eax
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x407844
sub esi, edx
lea ecx, [ecx]
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ecx + 0x10]
mov ebx, esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407879
mov eax, dword [ebp - 8]
cmp esi, eax
jne 0x407879
mov ebx, eax
jmp 0x4078a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.WriteFile_error__d__0x_X_
push 0xf7
push 0x43b000
call fcn.00405530
add esp, 0x14
test edi, edi
jne 0x4078c2
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add edi, ebx
mov dword [ebp - 0xc], edi
sub esi, ebx
jne 0x407850
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419355
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419355
mov esp, ebp
pop ebp
ret 4

Function at 0x426382
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test al, 0x8d
inc ebp
test al, 0x50
call fcn.004260eb
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004260a0
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4263c9
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004260db
xor dword [edi], esi
sbb al, 0x46
lea eax, [ebp - 0x40]
push eax
call fcn.004260eb
push eax
push esi
push dword [ebp + 8]
call fcn.004260a0
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004260db
invalid
Function at 0x42677d
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x42678f
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x42678a
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x426774
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x42677c
cmp edx, ebx
jne 0x4268ca
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
dec eax
add al, 0x83
inc ebp
or byte [edx], al
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x42674b
add eax, dword [eax + 4]
jmp 0x426738
mov dword [ebp + 0xc], ebx
jmp 0x42679a
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4267b2
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4267d0
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x42682e
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x426815
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x42681e
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x426828
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x42680a
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x426794
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x42687b
dec eax
je 0x426872
sub eax, 3
je 0x426869
mov dword [ebp - 4], 0x40
jmp 0x426898
mov dword [ebp - 4], 4
jmp 0x42687e
mov dword [ebp - 4], 0x20
jmp 0x42687e
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4268ca
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x42684a
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004260db
inc ebp
aad 0x7e
insd dword es:[edi], dx
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp fcn.004268d6
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
Function at 0x42a25f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x443230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00425043
mov dword [ebp - 0x14], eax
cmp dword [0x447134], edi
jne 0x42a350
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x42a2dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42a430
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x42a430
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42a430
push eax
call ebx
push 0x435c2c
push esi
mov dword [0x447134], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x435c3c
push esi
mov dword [0x447138], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x44713c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x447144], eax
test eax, eax
je 0x42a34d
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x447140], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42a375
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42a368
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x42a38a
push 4
pop eax
jmp 0x42a432
cmp dword [ebp - 0x14], edi
je 0x42a38a
push dword [0x447134]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42a36f
mov eax, dword [0x447140]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x42a3e8
cmp dword [0x447144], esi
je 0x42a3e8
push eax
call ebx
push dword [0x447144]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42a3e8
test eax, eax
je 0x42a3e8
call ecx
test eax, eax
je 0x42a3dd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x42a3dd
test byte [ebp - 8], 1
jne 0x42a3e8
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x42a418
mov eax, dword [0x447138]
cmp eax, esi
je 0x42a415
push eax
call ebx
test eax, eax
je 0x42a415
call eax
mov edi, eax
test edi, edi
je 0x42a415
mov eax, dword [0x44713c]
cmp eax, esi
je 0x42a415
push eax
call ebx
test eax, eax
je 0x42a415
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x447134]
call ebx
test eax, eax
je 0x42a430
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x42a432
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419355
leave
ret
Function at 0x401770
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4017a9
push ebx
push esi
lea esi, [eax + 1]
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
inc edx
shr eax, 8
mov ecx, dword [ecx*4 + 0x470ac8]
xor eax, ecx
dec esi
jne 0x401788
pop esi
pop ebx
ret
mov eax, dword [esp + 8]
ret
Function at 0x405bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46c1f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x489cc0]
push esi
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0xc]
push 0x86
push eax
mov dword [esp + 0x20], 0
call fcn.0045084b
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
push esi
push 1
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00431e46
push esi
call fcn.00433077
add esp, 0x24
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00456cc7
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x328]
push eax
push ecx
mov byte [ebp - 0x11], 0
call fcn.004017d0
lea edx, [ebp - 0x328]
push 0x483d38
push edx
call fcn.00401820
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
mov eax, dword [ebx + 0x24]
push eax
push ecx
call fcn.004017d0
mov edi, dword [ebp + 0x18]
add esp, 0x18
test edi, edi
je 0x4062e4
lea edx, [ebp - 0x220]
push 0x2f
push edx
call fcn.004324e0
mov esi, eax
lea eax, [ebp - 0x220]
push edi
push eax
mov byte [esi], 0
call fcn.004322f0
mov edx, eax
add esp, 0x10
test edx, edx
je 0x4062fa
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + ecx + 1]
test edi, edi
mov ecx, edi
je 0x406242
mov al, byte [ecx]
test al, al
je 0x406242
movsx edx, al
cmp edx, 0x2f2f
jne 0x40623f
mov byte [ecx], 0x5c
inc ecx
jne 0x40622b
inc esi
cmp esi, edi
je 0x40628b
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x328]
mov esi, edi
mov edi, edx
mov edx, ecx
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
mov dword [ebp - 4], eax
and ecx, 3
lea eax, [ebp - 0x328]
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0040a030
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x118]
push edx
call fcn.00401800
mov cl, byte [ebp + eax - 0x119]
add esp, 4
cmp cl, 0x5c
je 0x4062fa
lea eax, [ebp - 0x118]
push 0x483d38
push eax
call fcn.00401820
jmp 0x4062f7
lea ecx, [ebp - 0x328]
lea edx, [ebp - 0x118]
push ecx
push edx
call fcn.004017d0
add esp, 8
mov eax, dword [ebx + 0x24]
lea ecx, [ebp - 0x220]
push eax
push ecx
call fcn.004017d0
lea edx, [ebp - 0x220]
push 0x2f
push edx
call fcn.004324e0
add esp, 0x10
test eax, eax
je 0x40637f
inc eax
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00401820
mov al, byte [ebp + 0x1c]
add esp, 8
test al, al
jne 0x406349
mov edx, dword [ebx + 0x18]
lea ecx, [ebp - 0x118]
push ecx
push edx
call fcn.00405e30
jmp 0x406356
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.00401d10
add esp, 8
mov byte [ebp - 0x11], al
test al, al
je 0x40637f
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
push ecx
lea eax, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x220]
push eax
push ecx
push ebx
call fcn.00405e70
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407140
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x475b88
push 1
push 0
push 0x475b98
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4071f5
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push esi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x475ba8
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x4071e8
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0xc]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
add esp, 0x210
ret

Function at 0x407200
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x14
push ebx
push esi
push 0x208
mov bl, 1
call fcn.00433608
mov esi, eax
add esp, 4
test esi, esi
jne 0x407222
pop esi
xor al, al
pop ebx
add esp, 0x14
ret
lea eax, [esp + 8]
push eax
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x407237
xor bl, bl
mov eax, dword [esp + 8]
test eax, eax
jne 0x407252
push esi
xor bl, bl
call fcn.004335c0
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x14
ret
test bl, bl
je 0x4072f1
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4072bf
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x4072bf
push str.AOM.lnk
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 1
lea ecx, [esp + 0x18]
push 3
push ecx
push 1
push SysReAllocStringLen
push esi
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4072b6
xor bl, bl
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4072c1
xor bl, bl
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x4072f1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4072f1
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4072eb
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call fcn.004335c0
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x14
ret