joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b935b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
je 0x4b94a9
cmp byte [0x6b6c22], bl
je 0x4b94a9
mov edi, 0x104
push edi
lea eax, [esp + 0x94]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x90]
push 0x5c
push eax
call fcn.005e8118
pop ecx
pop ecx
cmp eax, ebx
je 0x4b93c1
xor ecx, ecx
mov word [eax + 2], cx
push str.debug_message.exe
lea eax, [esp + 0x94]
push edi
push eax
call fcn.004147db
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x4b93e5
mov eax, dword [esi]
mov dword [esp + 0x10], eax
jmp 0x4b93e9
mov dword [esp + 0x10], esi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x74]
call fcn.0040fffd
cmp dword [esp + 0x84], ebx
je 0x4b949c
push 0x44
pop esi
push esi
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.00402394
mov eax, dword [esp + 0x80]
add esp, 0xc
cmp dword [esp + 0x88], 8
mov dword [esp + 0x28], esi
jae 0x4b9435
lea eax, [esp + 0x74]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4b9478
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x18]
call esi
jmp 0x4b949c
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x4b948a
lea eax, [esp + 0x74]
push 0x40010
push str.Fatal_error
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
xor edi, edi
lea esi, [esp + 0x78]
call fcn.0040bad4
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
Function at 0x4b94fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [esi + 8]
push edi
push eax
mov dword [ebp - 0x448], eax
call fcn.004b907b
pop ecx
lea edi, [esi + 0xc]
push edi
lea ecx, [ebp - 0x424]
call fcn.004ab112
mov eax, dword [0x6b6c2c]
xor ebx, ebx
cmp eax, ebx
je 0x4b9568
lea ecx, [ebp - 0x424]
push ecx
push dword [esi + 0xa0]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi]
call eax
add esp, 0x14
test al, al
je 0x4b9568
push ebx
push 1
jmp 0x4b96d7
cmp dword [esi], 2
jl 0x4b95a8
cmp dword [ebp - 0x410], 0x10
mov eax, dword [ebp - 0x424]
jae 0x4b9582
lea eax, [ebp - 0x424]
push eax
push 0x6664dc
call fcn.00406515
add eax, 0x40
push eax
call fcn.005f568f
add esp, 0xc
call fcn.00406515
add eax, 0x40
push eax
call fcn.005f31f1
pop ecx
call fcn.004b9166
lea eax, [ebp - 0x441]
push eax
call fcn.004b9114
call fcn.004b9273
test al, al
je 0x4b9602
push 2
push ebx
push ebx
push dword [0x6b6c1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x410], 0x10
mov eax, dword [ebp - 0x424]
jae 0x4b95e7
lea eax, [ebp - 0x424]
push ebx
lea ecx, [ebp - 0x44c]
push ecx
push dword [ebp - 0x414]
push eax
push dword [0x6b6c1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.004b9143
mov eax, dword [esi]
xor ebx, ebx
inc ebx
cmp eax, 4
jne 0x4b968d
mov eax, 0x400
mov ecx, eax
cmp dword [ebp - 0x414], eax
jae 0x4b9626
mov ecx, dword [ebp - 0x414]
cmp dword [ebp - 0x410], 0x10
mov eax, dword [ebp - 0x424]
jae 0x4b963b
lea eax, [ebp - 0x424]
push ecx
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00404787
lea eax, [ebp - 0x408]
add esp, 0xc
push eax
call fcn.004bc008
pop ecx
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4b9668
call fcn.004bc45d
cmp dword [0x6b6c24], 0
je 0x4b9663
push edi
lea ecx, [ebp - 0x440]
call fcn.004ab112
lea eax, [ebp - 0x440]
push eax
call dword [0x6b6c24]
pop ecx
jmp 0x4b96c6
cmp eax, 3
jne 0x4b96d4
cmp dword [0x6b6c28], 0
push edi
lea ecx, [ebp - 0x440]
je 0x4b96b6
call fcn.004ab112
lea eax, [ebp - 0x440]
push eax
call dword [0x6b6c28]
jmp 0x4b968a
call fcn.004ab112
lea ecx, [ebp - 0x440]
call fcn.004b935b
push 0
push ebx
lea ecx, [ebp - 0x440]
call fcn.0040d17d
push 0
push ebx
lea ecx, [ebp - 0x424]
call fcn.0040d17d
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x448]
call fcn.004aa93a
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x4b9f2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push 0x666500
push 0x28
pop eax
mov edi, esi
call fcn.0040ff53
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edi, [esi + 0xb4]
mov eax, 0x500
call fcn.0040ff53
mov dword [esp], 0x104
xor eax, eax
lea ebx, [esi + 0x5b80]
push ebx
lea edi, [esi + 0x50]
push eax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push ebx
push 0x32
pop edi
mov eax, esi
call fcn.004ba0af
test eax, eax
jne 0x4b9f98
mov eax, edi
push str.0.0.0.0
lea edi, [esi + 0x50]
call fcn.0040ff53
pop ecx
mov eax, esi
call fcn.004ba230
push esi
call fcn.004ba1b9
mov eax, esi
call fcn.004ba13c
push esi
call fcn.004ba2a3
xor eax, eax
push eax
push 0x104
mov word [ebx], ax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418e14
add esp, 0x1c
cmp dword [ebp - 4], 0
je 0x4b9fff
push ebx
push dword [ebp - 8]
lea eax, [esi + 0xab4]
push dword [ebp - 0xc]
push dword [ebp - 4]
push str._d._d._d__s
push 0x103
push eax
call fcn.00409645
add esp, 0x1c
lea edi, [esi + 0x5d88]
push edi
mov byte [edi], 0
call fcn.004c24f4
cmp byte [edi], 0
pop ecx
jne 0x4ba02a
push str.empty_na
push 0x23
lea edi, [esi + 0xd84]
pop eax
call fcn.0040ff53
pop ecx
jmp 0x4ba03c
push 0x23
lea eax, [esi + 0xd84]
push eax
push edi
call fcn.004b9eba
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.004ba3ae
push dword [ebp + 0xc]
push esi
call fcn.004ba4e7
pop edi
pop ebx
leave
ret 8

Function at 0x4ba0af
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea esi, [eax + 0x1b80]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x4ba134
cmp eax, 0x3fff
ja 0x4ba134
push esi
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4ba134
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x6403a4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4ba134
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push edi
push ebx
call fcn.00409645
xor eax, eax
add esp, 0x1c
mov word [ebx + edi*2 - 2], ax
inc eax
jmp 0x4ba136
xor eax, eax
pop esi
pop ebx
leave
ret 8
Function at 0x4ba1b9
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push eax
push 0x26
lea esi, [ebx + 0x5b80]
push esi
push eax
mov word [esi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.internet_exploreriexplore.exe
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x32
pop edi
lea eax, [ebx + 0xcbc]
push eax
mov dword [ebp - 4], eax
push esi
mov eax, ebx
mov dword [ebp + 8], edi
call fcn.004ba0af
pop edi
pop esi
pop ebx
test eax, eax
jne 0x4ba22c
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push str.Version
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
leave
ret 4

Function at 0x4ba4e7
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0x104
push edi
lea esi, [ebx + 0xe7c]
xor eax, eax
push esi
push eax
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str...User_Data
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ba543
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.User_Data
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.tcdump
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ba562
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x2710
push 1
call fcn.004c043f
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._scrashinfo__d__d.dat
lea eax, [ebx + 0x128c]
push edi
push eax
call fcn.004190b1
push esi
push str._sStandaloneCrashInfo
lea eax, [ebx + 0x1494]
push edi
push eax
call fcn.004190b1
add esp, 0x28
cmp byte [ebp + 0xc], 0
je 0x4ba5c4
lea edi, [ebx + 0x1084]
add ebx, 0xe10
push ebx
push esi
push str._s_secrash__s.dmp
push 0xffffffffffffffff
push edi
call fcn.004190b1
jmp 0x4ba5e4
lea eax, [ebx + 0x1084]
add ebx, 0xe10
push ebx
push esi
push str._sMinorError__s.dmp
push edi
push eax
mov dword [ebp + 0xc], eax
call fcn.004190b1
mov edi, dword [ebp + 0xc]
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ba5f9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4baa58
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, 0x6c894c
push ebx
push 0
push str.CrashFeedbacked
mov esi, str.Global
push esi
mov byte [ebp - 0x19], 0
call edi
cmp eax, 1
jne 0x4baa93
xor al, al
jmp 0x4baae4
push ebx
push 0
push str.CrashCounts
push esi
call edi
lea ecx, [eax + 1]
cmp ecx, 8
jl 0x4baaad
push 7
mov byte [ebp - 0x19], 1
pop ecx
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
push 0x65d0c0
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push 0xa
push eax
call fcn.004bb1f9
add esp, 0x10
push ebx
lea eax, [ebp - 0x18]
push eax
push str.CrashCounts
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x4badb9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.00402394
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x220]
push eax
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str...User_Data
lea eax, [ebp - 0x220]
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4bae5e
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call edi
lea eax, [ebp - 0x220]
push eax
call ebx
push str.User_Data
lea eax, [ebp - 0x220]
push eax
call esi
push str.tcdump
lea eax, [ebp - 0x220]
push eax
call esi
lea eax, [ebp - 0x220]
push eax
lea esi, [ebp - 0x258]
call fcn.0040beca
mov eax, esi
push eax
lea eax, [ebp - 0x23c]
call fcn.0040c917
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
call fcn.0040bad4
cmp dword [ebp - 0x22c], edi
je 0x4baf3a
push str.StandaloneCrashInfo
lea esi, [ebp - 0x258]
call fcn.0040beca
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x23c]
push eax
mov ecx, esi
call fcn.004108b7
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00422755
push ebx
lea esi, [ebp - 0x274]
call fcn.0040bad4
push ebx
lea esi, [ebp - 0x258]
call fcn.0040bad4
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push 0x65d0c0
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push 0xa
push eax
call fcn.004bb1f9
mov eax, dword [ebp - 0x23c]
add esp, 0x10
cmp dword [ebp - 0x228], 8
jae 0x4baf25
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x18]
push eax
push str.CrashFeedbacked
push str.Global
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebx
xor edi, edi
lea esi, [ebp - 0x23c]
call fcn.0040bad4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret

Function at 0x4bb132
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bb140
push ebx
sub eax, edx
push esi
sar eax, 1
push edi
mov esi, eax
xor ecx, ecx
push 2
lea edi, [esi + 1]
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004013b3
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4bb1bc
lea eax, [esi + esi + 2]
push eax
push 0
push ebx
call fcn.00402394
push dword [ebp + 8]
push edi
push ebx
call fcn.004692b5
add esp, 0x18
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push ebx
push 0x4baf57
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x4bb1bc
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bb616
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.00405ecb
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
call fcn.004b5f87
test al, al
je 0x4bb642
xor al, al
jmp 0x4bb689
mov ecx, esi
call fcn.004b76c6
mov edi, eax
test edi, edi
je 0x4bb63e
mov esi, 0x10000
jmp 0x4bb669
test ebx, ebx
je 0x4bb669
push eax
lea eax, [ebp - 0x1000c]
push eax
mov eax, ebx
call fcn.004ac077
push edi
push esi
lea eax, [ebp - 0x1000c]
push 1
push eax
call fcn.005f617e
add esp, 0x10
test eax, eax
jne 0x4bb656
push edi
call fcn.005f3a1d
pop ecx
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret

Function at 0x4bb6df
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4bb6ff
xor eax, eax
jmp 0x4bb727
mov ecx, dword [esi + 0x24]
push edi
xor edi, edi
cmp dword [ecx], edi
je 0x4bb737
mov eax, dword [esi + 0x34]
mov ecx, dword [ecx]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4bb737
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x4bb757
mov ecx, esi
call fcn.004bbe26
cmp dword [esi + 0x44], edi
jne 0x4bb75c
push dword [esi + 0x54]
push ebx
call fcn.004bb58b
pop ecx
pop ecx
test al, al
jne 0x4bb724
or eax, 0xffffffff
jmp 0x4bb726
push edi
push 8
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x24], bl
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], edi
mov byte [ebp - 0x20], 0
call fcn.004b5856
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4bb80c
lea eax, [ebp - 0x20]
mov edx, eax
add eax, dword [ebp - 0x10]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x28]
push ebx
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x23]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x4bb82a
cmp eax, 1
jg 0x4bb814
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4bb7c0
lea eax, [ebp - 0x20]
mov edi, dword [ebp - 0x28]
sub edi, eax
je 0x4bb7e6
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4bb7d3
lea eax, [ebp - 0x20]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.005f62f2
add esp, 0x10
cmp edi, eax
jne 0x4bb82a
lea eax, [ebp - 0x24]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x2c], eax
jne 0x4bb840
test edi, edi
jne 0x4bb778
cmp dword [ebp - 0x10], 0x20
jae 0x4bb82a
push edi
push 8
lea ecx, [ebp - 0x20]
call fcn.0040ce64
jmp 0x4bb778
mov edx, dword [ebp - 0x20]
jmp 0x4bb78a
cmp eax, 3
jne 0x4bb82a
push dword [esi + 0x54]
push dword [ebp - 0x24]
call fcn.004bb58b
pop ecx
pop ecx
test al, al
jne 0x4bb840
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040d17d
mov eax, esi
jmp 0x4bb726
mov esi, dword [ebp + 8]
jmp 0x4bb82d
Function at 0x4bbcf6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x44], ebx
je 0x4bbdea
cmp byte [esi + 0x49], bl
je 0x4bbdea
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4bbd32
xor al, al
jmp 0x4bbdec
push ebx
push 8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
call fcn.004b5856
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4bbd8d
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x4bbd92
dec eax
je 0x4bbd96
dec eax
dec eax
je 0x4bbde6
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040d17d
mov al, bl
jmp 0x4bbdec
mov edx, dword [ebp - 0x20]
jmp 0x4bbd58
mov byte [esi + 0x49], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4bbda2
lea eax, [ebp - 0x20]
mov edi, dword [ebp - 0x24]
sub edi, eax
je 0x4bbdc8
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4bbdb5
lea eax, [ebp - 0x20]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.005f62f2
add esp, 0x10
cmp edi, eax
jne 0x4bbd7b
cmp byte [esi + 0x49], 0
je 0x4bbde6
test edi, edi
jne 0x4bbd4a
push edi
push 8
lea ecx, [ebp - 0x20]
call fcn.0040ce64
jmp 0x4bbd4a
mov bl, 1
jmp 0x4bbd7d
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret

Function at 0x4bc00d
Capabilities:
Enumerate processes

Disassembly:
push edi
lea edi, [esi + 0xc]
push 0x22c
push 0
push edi
call fcn.00402394
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x4bc03d
mov byte [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x4bc043
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x4bc05b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test al, al
je 0x4bc011
mov eax, edi
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x4bc801
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4bc856
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4bc85c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x10], ebx
pop ebx
je 0x4bc86b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x14], 1
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.00403fc1
leave
ret
Function at 0x4bc87e
Capabilities:
Create process on windows
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x34], ebx
call fcn.00411377
cmp dword [eax], 5
jge 0x4bc8a7
xor al, al
jmp 0x4bca49
call fcn.004bcacc
cmp dword [eax + 0x10], ebx
jne 0x4bca23
lea esi, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.004107f6
mov eax, esi
push eax
push 0x20119
push ebx
push str.SoftwareClassesCLSID054AAE20_4BEA_4347_8A35_64A533254A9DLocalServer32
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, 0x400
push eax
push ecx
mov dword [ebp - 0x34], eax
call fcn.004bcacc
pop ecx
mov esi, eax
call fcn.004ad01d
pop ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4bc913
lea esi, [ebp - 0x30]
call fcn.004107f6
jmp 0x4bc8a0
push str._CommonProgramFiles_
push ecx
call fcn.004bcacc
pop ecx
push eax
call fcn.0040cd2b
mov edi, eax
cmp edi, 0xffffffff
je 0x4bca1b
call fcn.004bcacc
push 0x14
mov esi, eax
pop eax
mov ecx, edi
call fcn.00410b07
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
push ebx
xor eax, eax
mov edi, str.CommonProgramW6432
push edi
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
mov dword [ebp - 0x28], ebx
call esi
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x4bc998
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004013b3
pop ecx
push dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
push eax
push edi
call esi
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
call fcn.0040beee
jmp 0x4bc9ec
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push 0x662740
mov dword [ebp - 0x24], ebx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x4bc9d2
cmp dword [ebp - 0x24], ebx
je 0x4bc9be
push dword [ebp - 0x24]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 1
xor edi, edi
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
call fcn.0040bad4
jmp 0x4bc909
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.0040beee
cmp dword [ebp - 0x24], ebx
je 0x4bc9ec
push dword [ebp - 0x24]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.004bcacc
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 1
mov esi, eax
call fcn.004b10f9
cmp dword [ebp - 0x28], ebx
je 0x4bca0f
push dword [ebp - 0x28]
call fcn.00404e46
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.0040bad4
lea esi, [ebp - 0x30]
call fcn.004107f6
call fcn.004bcacc
cmp dword [eax + 0x14], 8
jb 0x4bca30
mov eax, dword [eax]
push 5
push ebx
push ebx
push eax
push 0x63e360
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret