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

Disassembly:
mov eax, 0x431e4f
call fcn.00431274
sub esp, 0x664
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x25c], esi
movlpd qword [ebp - 0x38], xmm0
call fcn.0040eb4d
mov dword [ebp - 4], esi
mov eax, ecx
push dword [edi + 0x646]
push dword [edi + 0x642]
push ecx
push 0x83
push eax
mov ecx, edi
call fcn.00418c74
test eax, eax
je 0x418327
mov dword [ebp - 0x14], esi
cmp dword [edi + 0x64a], esi
jle 0x418327
mov eax, dword [ebp - 0x34]
mov ecx, esi
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x4181e3
mov eax, dword [ebp - 0x2c]
add eax, ebx
push 0x418
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.0041acc0
lea eax, [ebp - 0x466]
push str.wd290pnt.dll
push eax
call fcn.00420bb0
add esp, 0x14
test eax, eax
jne 0x4181b9
xor ecx, ecx
inc ecx
mov dword [ebp - 0x18], ecx
jmp 0x4181cc
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x18]
add eax, 0x418
add ebx, eax
adc dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 0x64a]
jl 0x41817e
test ecx, ecx
je 0x418327
lea ecx, [ebp - 0x44]
call fcn.0040eb4d
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
mov eax, ecx
push eax
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x25c]
add eax, 0x418
add eax, ebx
push eax
call fcn.00418354
test eax, eax
je 0x41831d
lea ecx, [edi + 0x12dc]
call fcn.0040fb17
push esi
lea edx, [ebp - 0x258]
mov ecx, eax
call fcn.00403175
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x670]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x258]
mov ebx, str._s_s
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00410380
add esp, 0x14
mov dword [ebp - 0x24], vtable.CXFile.0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
push esi
push 0x10000000
push 2
push esi
push 0x40000000
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040fb17
push eax
lea ecx, [ebp - 0x24]
call fcn.0041323d
test eax, eax
jne 0x4182d8
lea eax, [ebp - 0x258]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00410380
add esp, 0x10
lea ecx, [ebp - 0x10]
push esi
push 0x10000000
push 2
push esi
push 0x40000000
call fcn.0040fb17
push eax
lea ecx, [ebp - 0x24]
call fcn.0041323d
test eax, eax
je 0x41830d
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push dword [ebp - 0x40]
call fcn.004132c6
test eax, eax
je 0x41830d
lea ecx, [ebp - 0x24]
call fcn.00413275
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
xor ebx, ebx
inc ebx
push eax
mov dword [edi + 0x12f8], ebx
call fcn.0040febe
mov esi, ebx
lea ecx, [ebp - 0x24]
call fcn.004131a5
lea ecx, [ebp - 0x10]
call fcn.0040fa89
lea ecx, [ebp - 0x44]
call fcn.0040eb5e
jmp 0x418339
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x222]
push eax
call fcn.0040fed6
xor esi, esi
inc esi
lea ecx, [ebp - 0x30]
call fcn.0040eb5e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4186cf
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [0x44a4e8], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x4187a6
xor ebx, ebx
mov dword [edi + 0x12e0], ebx
cmp dword [edi + 0x65e], ebx
jne 0x4187a6
lea ecx, [edi + 0x12dc]
call fcn.0040fb17
lea ecx, [ebp - 0x20c]
xor edx, edx
push ecx
mov ecx, eax
call fcn.00403175
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0x12e0], eax
test eax, eax
je 0x4187b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4187b0
lea eax, [edi + 0x12e4]
xor ecx, ecx
push eax
lea eax, [ebp - 0x20c]
inc ecx
push eax
call fcn.00415c53
mov dword [edi + 0x12e8], eax
pop ecx
pop ecx
test eax, eax
je 0x4187a6
push 0xffffffffffffffff
push dword [edi + 0x12e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 4
push eax
push dword [edi + 0x12e8]
call fcn.0041acc0
add esp, 0xc
push dword [edi + 0x12e0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [edi + 0x12e4]
xor ecx, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00415c53
mov dword [edi + 0x12e8], eax
pop ecx
pop ecx
test eax, eax
je 0x418831
push 0xffffffffffffffff
push dword [edi + 0x12e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x12e8]
push dword [edi + 0x12e0]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, edi
call fcn.0041799e
push esi
call fcn.004184e2
mov esi, eax
test esi, esi
je 0x418831
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 3
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 8]
or dword [eax], 0xffffffff
xor eax, eax
jmp 0x4187a9
mov eax, dword [edi + 0x12e0]
test eax, eax
je 0x418842
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov ecx, edi
push str.Cette_application_ne_peut_pas
call dword [eax + 4]
jmp 0x418824
Function at 0x418850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x431d82
call fcn.00431274
sub esp, 0x644
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x2c]
call fcn.0040eb4d
and dword [ebp - 4], 0
mov eax, ecx
push dword [edi + 0x646]
push dword [edi + 0x642]
push ecx
push 0x83
push eax
mov ecx, edi
call fcn.00418c74
test eax, eax
je 0x417bdf
lea ecx, [edi + 0x12dc]
call fcn.0040fb17
push 0
lea edx, [ebp - 0x238]
mov ecx, eax
call fcn.00403175
mov eax, dword [edi + 0x64e]
xorps xmm0, xmm0
add eax, dword [edi + 0x64a]
and dword [ebp - 0x18], 0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jle 0x417b96
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x650]
push 0x418
add esi, ebx
push esi
push eax
call fcn.0041acc0
add esp, 0xc
lea eax, [ebp - 0x238]
mov ecx, edi
push eax
lea eax, [esi + 0x418]
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.00417bfa
test eax, eax
je 0x417bdf
mov eax, dword [ebp - 0x23c]
add eax, 0x418
add ebx, eax
mov eax, dword [ebp - 0x18]
adc dword [ebp - 0x14], 0
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x10]
jl 0x417b3f
call fcn.00401b25
lea edi, [eax + 4]
lea eax, [ebp - 0x238]
mov ecx, edi
push eax
call fcn.0040fed6
mov ecx, edi
call fcn.0040fead
dec eax
lea edx, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00410005
mov esi, eax
xor ebx, ebx
mov ecx, edi
inc ebx
mov byte [ebp - 4], bl
call fcn.0040faba
mov ecx, dword [esi]
mov dword [edi], ecx
lea ecx, [ebp - 0x10]
and dword [esi], 0
call fcn.0040fa89
jmp 0x417be1
xor ebx, ebx
lea ecx, [ebp - 0x2c]
call fcn.0040eb5e
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push ecx
push esi
push edi
push 0xc
mov edi, ecx
call fcn.00419cda
pop ecx
mov ecx, eax
mov dword [esp + 8], eax
call fcn.0040eb4d
push dword [edi + 0x652]
mov dword [edi + 0x1308], eax
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
push str.INFOEXE
push 0x7d
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [edi + 0x652]
mov ecx, dword [edi + 0x1308]
push eax
push dword [ecx + 4]
call fcn.0041acc0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, edi
pop edi
pop esi
add esp, 4
jmp 0x417ab7
Function at 0x418db6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x431733
call fcn.00431274
sub esp, 0xc
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push str.FILEPATH
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x6d
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
call fcn.00406ec9
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6e
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040fed6
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040fed6
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x14]
call fcn.0040fb17
lea ecx, [ebp - 0x18]
mov edx, eax
call fcn.0040fb17
mov ecx, eax
call fcn.00406ed7
push str.FILEPATH
push 0x70
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fed6
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x418ed0
xor ecx, ecx
cmp word [eax], cx
je 0x418ed0
lea ecx, [ebp - 0x10]
call fcn.0040fb17
mov ecx, eax
call fcn.00406f86
push str.INFOEXE
push 0x7f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x418f03
mov ecx, dword [edi]
call fcn.00406f9a
lea ecx, [ebp - 0x10]
call fcn.0040fa89
lea ecx, [ebp - 0x14]
call fcn.0040fa89
lea ecx, [ebp - 0x18]
call fcn.0040fa89
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42bbed
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b86a
Function at 0x78b6d35d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x78b7b310]
jne 0x78b6d367
repz ret
jmp fcn.78b6ed18

Function at 0x78b712aa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x78b712b9
pop dword [ebp - 0x24]
mov eax, 0x16a84932
sub eax, 0x9df13679
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x82bfb38d
sub dword [ebp - 0x34], 0x346d6e42
mov dword [ebp - 0x30], 0xcafc4b2b
sub dword [ebp - 0x30], 0x98c8fee6
mov dword [ebp - 0x2c], 0xfc7ba4d8
add dword [ebp - 0x2c], 0x4fd09f56
mov dword [ebp - 0x28], 0x1da7ffb8
add dword [ebp - 0x28], 0xe2580048
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xc0138464
sub dword [ebp - 0x34], 0x4ba11b0e
mov dword [ebp - 0x30], 0xc9c9fdf
sub dword [ebp - 0x30], 0xcb303e6a
mov dword [ebp - 0x2c], 0x4965a7fe
sub dword [ebp - 0x2c], 0xe5f63b92
mov dword [ebp - 0x28], 0x56a987a1
sub dword [ebp - 0x28], 0x56a987a1
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x3b0525ab
sub eax, 0xc250153b
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3ee08
push 0
call eax
mov ecx, 0x57a01552
add ecx, 0xa86033a1
mov ebx, eax
mov edi, 0x78b82000
add edi, dword [ebp - 0x24]
mov edx, 0x9722d82f
add edx, 0x5b56a4f9
sub dword [ebp - 0x20], eax
mov esi, dword [edi]
xor dword [ebp - 4], ecx
xor esi, edx
mov dword [ebp - 0x20], 0xab181f25
mov dword [ebx], esi
add ebx, 0xb492e121
add ebx, 0x4b6d1ee3
add edi, 4
loop 0x78b713d0
add eax, 0x954e262a
sub eax, 0x954d0f8b
xor ebx, ebx
add ebx, eax
add eax, 0xa54e5dea
sub eax, 0xa54e5de5
mov ecx, 0x23392230
add ecx, 0x557bddd0
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x1001d471
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10048aac], 0
push esi
push edi
jne 0x1001d3e7
call fcn.1001d353
test eax, eax
je 0x1001d42c
mov eax, dword [0x10048aac]
cmp eax, 1
jne 0x1001d408
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1001d42c
jmp 0x1001d46e
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1001d46e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1001d430
xor eax, eax
jmp 0x1001d46e
mov eax, dword [esi]
push dword [0x10048aac]
call edi
mov edi, eax
test edi, edi
je 0x1001d452
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1001d46e
lea edi, [esi + 0xff0]
push esi
push dword [0x10048aac]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1001d458
mov eax, esi
pop edi
pop esi
ret
jmp 0x1001d3d3

Function at 0x1001d742
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10047578]
jne 0x1001d74c
repz ret
jmp fcn.10023329

Function at 0x1001fa50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1001fa5f
pop dword [ebp - 8]
mov eax, 0x98b06ed9
add eax, 0x77518b86
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3eb7e
push 0
mov eax, 0xc63d377d
add eax, 0x49c64b53
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x40b1
mov edx, eax
mov edi, 0x759f40a4
add edi, 0x9a68395c
add edi, dword [ebp - 8]
mov esi, 0x447316f5
sub esi, 0xcc1744f8
sub dword [ebp - 4], edi
mov ebx, dword [edi]
add dword [ebp - 4], esi
xor ebx, esi
add dword [ebp - 4], 0x705f4991
mov dword [edx], ebx
sub dword [ebp - 4], 0xb87ce4a8
add edx, 4
add edi, 4
loop 0x1001fab8
add eax, 0x9f3532b5
add eax, 0x60cbc2e2
mov ebx, eax
add eax, 5
mov ecx, 0x50d1d868
add ecx, 0xbf2e2798
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034
Function at 0x402970
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x200]
mov dword [ebp - 0x60], 0
push eax
push 4
mov esi, ecx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0xc9
push dword [0x4690f4]
mov dword [ebp - 0x200], 0x1fc
mov dword [ebp - 0x1fc], esi
mov dword [ebp - 0x1f8], 1
mov dword [ebp - 0x1f4], 7
mov dword [ebp - 0x1f0], 0x8006
call dword [sym.imp.USER32.dll_LoadIconA]
movups xmm0, xmmword [str.Pageant__PuTTY_authentication_agent_]
mov ecx, dword [0x45849c]
mov ebx, eax
lea eax, [ebp - 0x200]
mov dword [ebp - 0x1c8], ecx
mov cl, byte [0x4584a0]
movups xmmword [ebp - 0x1e8], xmm0
push eax
movups xmm0, xmmword [0x45848c]
push 0
mov dword [ebp - 0x1ec], ebx
movups xmmword [ebp - 0x1d8], xmm0
mov byte [ebp - 0x1c4], cl
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov esi, eax
test ebx, ebx
je 0x402a36
push ebx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004339c8
mov esp, ebp
pop ebp
ret
Function at 0x402a50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x468728], 0
push ebx
push esi
push edi
je 0x402c45
lea eax, [ebp - 0x118]
push eax
push str.SoftwareSimonTathamPuTTYSessions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402c45
push dword [0x4686f0]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov esi, eax
cmp esi, dword [0x4686f8]
jle 0x402ac8
mov edi, dword [sym.imp.USER32.dll_RemoveMenu]
nop
push 0x400
push 0
push dword [0x4686f0]
call edi
dec esi
cmp esi, dword [0x4686f8]
jg 0x402ab0
xor esi, esi
xor edi, edi
call fcn.00431390
push 0x104
mov ebx, eax
lea eax, [ebp - 0x110]
push eax
push edi
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x402bea
mov dword [ebp - 0x114], 0x1000
nop
mov eax, str.Default_20Settings
lea ecx, [ebp - 0x110]
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402b30
test dl, dl
je 0x402b2c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402b30
add ecx, 2
add eax, 2
test dl, dl
jne 0x402b10
xor eax, eax
jmp 0x402b35
sbb eax, eax
or eax, 1
test eax, eax
je 0x402bc8
xor edx, edx
mov ecx, ebx
call fcn.00431240
mov edx, ebx
lea ecx, [ebp - 0x110]
call fcn.00431c10
mov eax, dword [ebp - 0x114]
xorps xmm0, xmm0
mov dword [ebp - 0x138], eax
movlpd qword [ebp - 0x134], xmm0
movlpd qword [ebp - 0x12c], xmm0
movlpd qword [ebp - 0x120], xmm0
mov dword [ebp - 0x148], 0x30
mov dword [ebp - 0x144], 0x13
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov eax, dword [ebx]
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x148]
push eax
push 1
push edi
push dword [0x4686f0]
call dword [sym.imp.USER32.dll_InsertMenuItemA]
inc edi
add dword [ebp - 0x114], 0x10
push 0x104
lea eax, [ebp - 0x110]
inc esi
push eax
push esi
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x402b00
mov ecx, ebx
call fcn.004313b0
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x402c45
lea eax, [ebp - 0x148]
mov dword [ebp - 0x148], 0x30
push eax
push 1
push edi
push dword [0x4686f0]
mov dword [ebp - 0x144], 0x11
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x13c], 3
mov dword [ebp - 0x124], str._No_sessions_
call dword [sym.imp.USER32.dll_InsertMenuItemA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004339c8
mov esp, ebp
pop ebp
ret
Function at 0x4030a0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x4686e8], 0
jne 0x4030d1
push 0
push 0x401d70
push 0
push 0xd3
push dword [0x4690f4]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 1
push eax
mov dword [0x4686e8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x403d10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 0
push edx
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x403d66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00430940
push eax
push esi
push str.Failed_to_run___s_:__s
call fcn.00431ba0
add esp, 0xc
mov esi, eax
push 0x30
push 0x458328
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, esi
pop esi
pop ebp
jmp fcn.00431540
pop esi
pop ebp
ret
Function at 0x404bf0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
xor edi, edi
mov byte [esp + 0xf], 0
or ebx, 0xffffffff
cmp byte [0x46872e], 0
jne 0x404d66
lea eax, [esp + 0x20]
mov byte [0x46872e], 1
push eax
push 0x106
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x404d66
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push eax
mov dword [esp + 0x28], eax
xorps xmm0, xmm0
lea eax, [esp + 0x2c]
movlpd qword [esp + 0x1c], xmm0
push eax
push str._sputty__lu__llu.chm
call fcn.00431ba0
add esp, 0x14
mov edi, eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404cfe
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x404d66
mov ecx, edi
call fcn.00431540
mov eax, dword [esp + 0x10]
add eax, 1
mov dword [esp + 0x10], eax
adc esi, 0
push esi
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push str._sputty__lu__llu.chm
call fcn.00431ba0
add esp, 0x14
mov edi, eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404ca0
mov eax, dword [0x468748]
xor esi, esi
mov ecx, dword [0x46873c]
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x404d52
nop dword [eax]
nop word [eax + eax]
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
push edx
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404d92
add esi, dword [esp + 0x10]
mov eax, dword [0x468748]
mov ecx, dword [esp + 0x1c]
cmp esi, eax
jb 0x404d20
mov dword [0x468744], edi
xor edi, edi
mov byte [0x468741], 1
mov byte [esp + 0xf], 1
mov ecx, edi
call fcn.00431540
cmp ebx, 0xffffffff
je 0x404d79
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x12c]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004339c8
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x404d66
Function at 0x405720
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x41c], edx
push edi
mov dword [ebp - 0x418], esi
xor ebx, ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x414], 0
call fcn.00430b80
lea edx, [ebp - 0x414]
mov dword [ebp - 0x424], eax
mov ecx, eax
call fcn.0040e3a0
mov edi, eax
cmp edi, 0xffffffff
je 0x405842
mov ecx, esi
call fcn.00431410
mov eax, dword [ebp - 0x418]
xor esi, esi
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4057c5
mov eax, dword [eax]
lea edx, [ebp - 0x410]
push 0
push edx
sub ecx, esi
add eax, esi
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405842
mov eax, dword [ebp - 0x418]
add esi, dword [ebp - 0x410]
mov ecx, dword [eax + 8]
cmp esi, ecx
jb 0x405792
call fcn.004313a0
mov ebx, eax
nop dword [eax]
push 0
lea eax, [ebp - 0x410]
push eax
push 0x400
lea eax, [ebp - 0x40c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405842
push dword [ebp - 0x410]
lea edx, [ebp - 0x40c]
mov ecx, ebx
call fcn.004056c0
mov esi, eax
add esp, 4
test esi, esi
je 0x4057d0
cmp esi, 0xffffffff
je 0x405842
mov ecx, ebx
call fcn.004313e0
mov ecx, dword [ebp - 0x41c]
xor ebx, ebx
mov dword [ecx], eax
mov eax, dword [ebp - 0x420]
mov dword [eax], esi
mov ecx, dword [ebp - 0x414]
call fcn.00431540
mov ecx, dword [ebp - 0x424]
call fcn.00431540
jmp 0x405875
mov ecx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x420]
mov dword [ecx], 0
mov dword [eax], 0
mov ecx, dword [ebp - 0x414]
call fcn.00431540
mov ecx, dword [ebp - 0x424]
call fcn.00431540
cmp edi, 0xffffffff
je 0x40587c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x405887
mov ecx, ebx
call fcn.004313b0
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004339c8
mov esp, ebp
pop ebp
ret

Function at 0x405b00
Capabilities:
Terminate process

Disassembly:
push esi
mov edx, ecx
mov ecx, dword [0x468764]
push 0
call fcn.004325d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x405b32
push 0x10a
push str.C:Usersomahr_source_reposputty_caccodepageant.c
push str.priv___Public_and_private_trees_out_of_sync__
call fcn.004384d4
add esp, 0xc
mov eax, esi
pop esi
ret

Function at 0x405b40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
call fcn.00405a70
mov edi, eax
mov dword [ebp - 0x14], 1
push 0
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [0x468768]
mov dword [ebp - 4], edx
lea edx, [ebp - 0x14]
call fcn.004325d0
add esp, 4
mov ecx, edi
mov esi, eax
call fcn.004313b0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret