joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40243a
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x402497
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x4026bb
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x4026cb
xor eax, eax
leave
ret
test byte [0x41c830], 2
mov dword [ebp - 0x40], 0x40
jne 0x402720
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402720
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402720
jb 0x4026fc
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402720
push 0x2b
call fcn.00402173
push eax
call fcn.00408d44
cmp eax, 1
pop ecx
pop ecx
je 0x402719
or dword [0x41c830], 0xffffffff
jmp 0x4026c7
or dword [0x41c830], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402b5d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00401444
cmp dword [ebp - 4], 1
jg 0x402b7b
push 1
lea ecx, [ebp - 0xc]
call fcn.0040115e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x402b9f
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402bd6
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.00402796
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.0040114a
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.00401395
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4036dd
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.0040275d
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x40370e
push esi
lea ecx, [ebp - 0x18]
call fcn.0040115e
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403722
cmp ax, 0x2f
jne 0x40372b
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403751
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403744
cmp ax, 0x5c
je 0x403744
dec esi
test esi, esi
jg 0x40372f
test esi, esi
je 0x403800
and word [edi + esi*2], 0
push edi
call fcn.00401b61
test eax, eax
pop ecx
je 0x403740
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x403788
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00403373
test eax, eax
pop ecx
pop ecx
je 0x403788
xor esi, esi
jmp 0x403825
push edi
call fcn.00401b61
test eax, eax
pop ecx
jne 0x4037a2
push edi
push 0xc
push 1
call fcn.00408db1
add esp, 0xc
jmp 0x403781
cmp esi, ebx
jge 0x4037f4
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4037da
jmp 0x4037d9
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x4037e0
cmp ax, 0x2f
je 0x4037e0
inc esi
cmp word [edi + esi*2], cx
jne 0x4037c9
push edi
mov word [edi + esi*2], cx
call fcn.00401b61
test eax, eax
pop ecx
je 0x403793
cmp esi, dword [ebp - 4]
jl 0x4037a6
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403845
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403830
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403830
cmp ax, 0x7a
ja 0x403830
cmp word [ecx + 2], 0x3a
jne 0x403830
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403845
push ecx
push 0xc
push 1
call fcn.00408db1
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4048f9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00416400
call fcn.0040211d
push 3
call fcn.00402173
push 0x28
mov dword [0x41c828], eax
call fcn.00402173
push 2
mov dword [0x41c824], eax
call fcn.00402173
push 5
mov dword [0x41c820], eax
call fcn.00402173
push 0x15
mov dword [0x41c81c], eax
call fcn.00402173
push 0x16
mov dword [0x41c818], eax
call fcn.00402173
push 0x17
mov dword [0x41c814], eax
call fcn.00402173
add esp, 0x1c
xor ebx, ebx
mov dword [0x41c810], eax
mov dword [0x41c808], ebx
mov dword [0x41c80c], ebx
mov edi, 0x41c3ac
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404a28
push ebx
lea eax, [ebp - 0x98]
push 0x4196a8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401444
lea ecx, [ebp - 0xc]
call fcn.00401444
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040135c
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040135c
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004032c5
cmp dword [esi + 0x41c384], ebx
jne 0x404a18
push dword [esi + 0x41c388]
lea ecx, [ebp - 0x18]
call fcn.0040135c
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040135c
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004032c5
add esi, 8
cmp esi, 0x28
jb 0x4049e8
lea ecx, [ebp - 0x18]
call fcn.00402686
inc ebx
cmp ebx, 0x40
jl 0x40497f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f5d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.00401444
lea ecx, [ebp - 0x18]
call fcn.00401444
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x404fae
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x404fbb
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00404a8d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040135c
cmp dword [ebp - 8], edi
jne 0x404ff0
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x405030
test dword [ebp + 0xc], 0x10000
jne 0x40501e
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
jmp 0x404fe2
xor ebx, ebx
jmp 0x405027
Function at 0x4052fa
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x4054ac
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x405324
cmp ax, 0x2f
jne 0x4054ac
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4054ac
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.0040452e
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405476
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401444
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0040135c
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.004027ae
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401415
mov esi, 0x4197ac
push esi
lea ecx, [ebp - 0x1c]
call fcn.004027ae
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.004027ae
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401415
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004027ae
push edi
lea ecx, [ebp - 0x1c]
call fcn.004027ae
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401415
push esi
lea ecx, [ebp - 0x1c]
call fcn.004027ae
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402b0c
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x405487
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x405487
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4054b2
push dword [ebp - 0x28]
call fcn.00402fdf
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4054b3
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x406df7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406daa
add esp, 0x1c
leave
ret
Function at 0x408a0e
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.004071af
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.004071cc
push 1
inc edi
push edi
mov ecx, esi
call fcn.004071cc
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407815
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004086dd
mov ecx, esi
mov edi, eax
call fcn.00407b82
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40f93a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f960
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f960
xor al, al
jmp 0x40f980
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00416820
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x416400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x41cb20], ecx
add edx, 1
cmp edx, 0x100
jb 0x416402
cmp edx, 0x800
jae 0x4164eb
mov edi, edi
mov eax, dword [edx*4 + str..PAX]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41cb20]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x41cb1c], eax
jb 0x4164c0
mov dword [0x41caf4], 0x416b40
call fcn.00416630
test eax, eax
jne 0x416508
mov dword [0x41caf4], 0x416a60
ret
Function at 0x480990
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x70000]
push edi
jmp 0x4809aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4809b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4809a0
mov eax, 1
add ebx, ebx
jne 0x4809c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4809d4
jne 0x4809f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4809f3
dec eax
add ebx, ebx
jne 0x4809e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4809b8
add ebx, ebx
jne 0x4809ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x480a45
xor ecx, ecx
sub eax, 3
jb 0x480a0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x480a7a
sar eax, 1
mov ebp, eax
jmp 0x480a16
add ebx, ebx
jne 0x480a16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4809e4
inc ecx
add ebx, ebx
jne 0x480a24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4809e4
add ebx, ebx
jne 0x480a31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x480a26
jne 0x480a42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x480a26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x480a64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x480a56
jmp 0x4809a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x480a64
add edi, ecx
jmp 0x4809a6
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x480a82
cmp byte [edi], 0x12
jne 0x480a82
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 0x480a87
lea edi, [esi + 0x7e000]
mov eax, dword [edi]
or eax, eax
je 0x480aff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdbac0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdbba0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x480ab4
mov ecx, edi
jns 0x480ae3
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 + 0xdbba8]
or eax, eax
je 0x480af9
mov dword [ebx], eax
add ebx, 4
jmp 0x480ad1
call dword [esi + 0xdbba4]
mov ebp, dword [esi + 0xdbbac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x480b33
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x44a685
Capabilities:
Query environment variable

Disassembly:
jmp 0x4b5977
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b598b
xor edi, edi
jmp 0x4b59cf
push ebx
push esi
call fcn.004b586e
sub eax, esi
sar eax, 1
push 0x40
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
lea ebx, [eax + eax]
push ebx
call fcn.0044b805
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4b59bc
push ebx
push esi
push edi
call fcn.0044b94a
add esp, 0xc
push 2
push 0
call fcn.0044b459
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x4aeae0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.0044aa36
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4aeb1e
cmp dword [ebp + 8], 0
je 0x4aeb0c
lea eax, [ebp + 8]
push eax
call fcn.0044a7f7
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x4aeb1e
mov eax, 4
jmp 0x4aec4e
call fcn.0044a14e
movzx edx, al
test edx, edx
jne 0x4aeb4c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4aeb3d
mov dword [ebp - 0xc], 4
jmp 0x4aeb44
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x4aec4e
movzx eax, byte [ebp - 1]
test eax, eax
je 0x4aebf5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x4aefa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.0044a4b9
lea ecx, [ebp - 8]
call fcn.0044b387
movzx edx, al
test edx, edx
jne 0x4aebb7
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.0044944c
mov eax, dword [ebp - 0x10]
jmp 0x4aec4e
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0044b292
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x4aebe2
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.0044944c
mov eax, dword [ebp - 0x14]
jmp 0x4aec4e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.0044944c
mov eax, dword [ebp - 0x18]
jmp 0x4aec4e
call fcn.0044b369
movzx ecx, al
test ecx, ecx
jne 0x4aec2e
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00449cc1
add esp, 0x10
jmp 0x4aec4e
call fcn.0044962c
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00449dcf
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x4aecb0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.0044aa36
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4aecee
cmp dword [ebp + 8], 0
je 0x4aecdc
lea eax, [ebp + 8]
push eax
call fcn.0044b9b8
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x4aecee
mov eax, 4
jmp 0x4aee1e
call fcn.0044a14e
movzx edx, al
test edx, edx
jne 0x4aed1c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4aed0d
mov dword [ebp - 0xc], 4
jmp 0x4aed14
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x4aee1e
movzx eax, byte [ebp - 1]
test eax, eax
je 0x4aedc5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x4af000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.0044a4b9
lea ecx, [ebp - 8]
call fcn.0044b387
movzx edx, al
test edx, edx
jne 0x4aed87
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.0044944c
mov eax, dword [ebp - 0x10]
jmp 0x4aee1e
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0044b292
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x4aedb2
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.0044944c
mov eax, dword [ebp - 0x14]
jmp 0x4aee1e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.0044944c
mov eax, dword [ebp - 0x18]
jmp 0x4aee1e
call fcn.0044b369
movzx ecx, al
test ecx, ecx
jne 0x4aedfe
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.0044b67f
add esp, 0x10
jmp 0x4aee1e
call fcn.0044962c
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0044a22a
add esp, 0x10
mov esp, ebp
pop ebp
ret