joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40106a
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x42b3f8]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42b3fc]
push edi
xor edi, edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], edi
call fcn.00401063
mov eax, dword [0x42b400]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42b404]
add ebx, 0x23f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1a1bfac], 0xc
mov dword [ebp - 4], eax
jne 0x4010ef
push edi
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x438]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x1a1bfac]
cmp eax, 0xfa9
jne 0x40110b
mov dword [0x1a1bfa8], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40111f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x1a1befc], edi
mov eax, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a1bfa4], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 8], eax
sub esi, dword [ebp - 8]
cmp dword [0x1a1bfac], 0xc
mov dword [ebp - 4], eax
jne 0x401177
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add ebx, 0x61c88647
dec dword [ebp - 0x20]
jne 0x4010be
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 4
Function at 0x40695a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a7e8]
jne 0x406964
repz ret
jmp fcn.0040b3ff

Function at 0x40ad3a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406a5c
and dword [ebp - 4], 0
cmp dword [0x434480], 0
mov ebx, eax
jne 0x40adeb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ae9c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ae9c
push eax
call fcn.004069ea
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434480], eax
call esi
push eax
call fcn.004069ea
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x434484], eax
call esi
push eax
call fcn.004069ea
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434488], eax
call esi
push eax
call fcn.004069ea
pop ecx
mov dword [0x434490], eax
test eax, eax
je 0x40adeb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004069ea
pop ecx
mov dword [0x43448c], eax
mov eax, dword [0x43448c]
cmp eax, ebx
je 0x40ae43
cmp dword [0x434490], ebx
je 0x40ae43
push eax
call fcn.00406a65
push dword [0x434490]
mov esi, eax
call fcn.00406a65
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ae43
test edi, edi
je 0x40ae43
call esi
test eax, eax
je 0x40ae3a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ae3a
test byte [ebp - 0xc], 1
jne 0x40ae43
or dword [ebp + 0x10], 0x200000
jmp 0x40ae7c
mov eax, dword [0x434484]
cmp eax, ebx
je 0x40ae7c
push eax
call fcn.00406a65
pop ecx
test eax, eax
je 0x40ae7c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ae7c
mov eax, dword [0x434488]
cmp eax, ebx
je 0x40ae7c
push eax
call fcn.00406a65
pop ecx
test eax, eax
je 0x40ae7c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434480]
call fcn.00406a65
pop ecx
test eax, eax
je 0x40ae9c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ae9e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4125ff
Capabilities:
Check os version

Disassembly:
push 0x138
mov eax, 0x46e8c3
call fcn.0045f3fe
mov ecx, dword [0x481200]
push 0x408bd8
call fcn.0042d4e5
mov esi, 0x114
push esi
lea eax, [ebp - 0x124]
push 0
push eax
mov byte [ebp - 0x125], 0
call fcn.004433d0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], esi
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je 0x41267e
cmp dword [ebp - 0x114], 2
jne 0x41267e
cmp dword [ebp - 0x120], 5
jne 0x412675
cmp dword [ebp - 0x11c], 1
jae 0x412677
cmp dword [ebp - 0x120], 5
jbe 0x41267e
mov byte [ebp - 0x125], 1
call fcn.00443a60
mov ecx, dword [0x481200]
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x41279c
push 0x408c24
call fcn.0042d4e5
push 0x409388
push dword [ebp - 0x12c]
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x41278b
xor eax, eax
lea edi, [ebp - 0x140]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x140], 0x14
call ecx
mov edi, dword [ebp + 8]
mov esi, dword [0x481200]
push ebx
push dword [ebp + 0xc]
push edi
push 0x408c48
call fcn.00443a60
push dword [ebp - 0x134]
mov esi, dword [0x481200]
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
push 0x408c74
call fcn.00443a60
mov eax, dword [ebp - 0x138]
add esp, 0x20
cmp dword [ebp - 0x13c], edi
setb dl
cmp dword [ebp - 0x13c], edi
jne 0x412739
cmp eax, dword [ebp + 0xc]
jae 0x412739
mov cl, 1
jmp 0x41273b
xor cl, cl
cmp dword [ebp - 0x13c], edi
jne 0x412754
cmp eax, dword [ebp + 0xc]
jne 0x412754
cmp dword [ebp - 0x134], ebx
jae 0x412754
mov al, 1
jmp 0x412756
xor al, al
test dl, dl
jne 0x412776
test cl, cl
jne 0x412776
test al, al
jne 0x412776
mov ecx, dword [0x481200]
push 0x408cd4
call fcn.0042d4e5
xor edi, edi
jmp 0x41278e
mov ecx, dword [0x481200]
push 0x408c94
call fcn.0042d4e5
xor edi, edi
inc edi
jmp 0x41278e
push 2
pop edi
push dword [ebp - 0x12c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
jmp 0x4127a9
push 0x408d10
call fcn.0042d4e5
push 2
pop edi
cmp byte [ebp - 0x125], 0
je 0x41280e
test edi, edi
je 0x41280e
cmp dword [ebp + 8], 2
jne 0x41280e
push 0x828
call fcn.00443a60
pop ecx
mov dword [ebp - 0x12c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x4127f1
push 0x408d50
mov eax, 0x1003
push eax
push eax
push dword [ebp - 0x12c]
call fcn.00411c0e
add esp, 0x10
jmp 0x4127f3
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x144], eax
push 0x4737e4
lea eax, [ebp - 0x144]
push eax
call fcn.00443a60
mov esi, dword [0x481200]
push edi
push 0x408e68
call fcn.00443a60
pop ecx
pop ecx
mov eax, edi
call fcn.0045f490
ret 8
Function at 0x412a23
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x46b8aa
call fcn.0045f38b
push 0x44
xor esi, esi
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004433d0
add esp, 0xc
push 0xc
pop eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push 8
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x84], 0x44
push esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.kernel32.dll_CreateProcessW]
cmp eax, esi
je 0x412abf
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push dword [ebp - 0x40]
call esi
mov eax, dword [ebp - 0x10]
call fcn.0045f477
ret 4
push 0x828
call fcn.00443a60
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x412af0
push dword [ebp + 8]
mov eax, 0x1fff
push 0x408f60
push eax
push eax
push dword [ebp - 0x14]
call fcn.00411c0e
add esp, 0x14
jmp 0x412af2
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], eax
push 0x4737e4
lea eax, [ebp - 0x18]
push eax
call fcn.00443a60
int3
Function at 0x41553d
Capabilities:
Query service status
Stop service

Disassembly:
push 0x15c
mov eax, 0x46c465
call fcn.0045f3fe
mov edi, dword [0x481200]
xor ebx, ebx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a278
call fcn.00443a60
mov dword [ebp - 4], ebx
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
mov esi, 0x114
push esi
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.004433d0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], esi
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je 0x4155dc
cmp dword [ebp - 0x114], 2
je 0x4155dc
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a2d0
call fcn.00443a60
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
mov eax, esi
jmp 0x415770
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x128], esi
cmp esi, ebx
jne 0x415621
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a368
call fcn.00443a60
mov dword [ebp - 4], 2
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
xor eax, eax
jmp 0x415770
push 0x24
push 0x40a3e0
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x130], eax
cmp eax, ebx
jne 0x41565f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a3f8
call fcn.00443a60
mov dword [ebp - 4], 3
jmp 0x41560f
lea ecx, [ebp - 0x168]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebx
jne 0x41569e
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x40a478
call fcn.00443a60
mov dword [ebp - 4], 4
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
jmp 0x415758
cmp dword [ebp - 0x164], 1
je 0x41572d
lea eax, [ebp - 0x14c]
push eax
push 1
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, ebx
jne 0x4156e3
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x40a4f8
call fcn.00443a60
mov dword [ebp - 4], 5
jmp 0x41568e
push dword [ebp - 0x130]
lea esi, [ebp - 0x14c]
call fcn.00443a60
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
test eax, eax
jne 0x41571a
push 0x40a570
call fcn.00443a60
mov dword [ebp - 4], 6
jmp 0x41568e
push 0x40a5f0
call fcn.00443a60
mov dword [ebp - 4], 7
jmp 0x41574a
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x40a660
call fcn.00443a60
mov dword [ebp - 4], 8
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
xor ebx, ebx
inc ebx
push dword [ebp - 0x130]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x128]
call esi
mov eax, ebx
call fcn.0045f490
ret
Function at 0x41753c
Capabilities:
Reference sql statements

Disassembly:
push 0x4c
mov eax, 0x46cf9a
call fcn.0045f439
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], ecx
xor ebx, ebx
mov byte [ebp - 0x31], bl
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
lea esi, [eax + 0xcc]
push dword [eax + 0xbc]
mov eax, esi
call fcn.00443a60
mov dword [ebp - 0x3c], eax
push 0x40b618
lea ecx, [ebp - 0x30]
call fcn.00443a60
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x417595
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x38]
push ecx
push eax
push dword [ebp - 0x3c]
mov eax, esi
call fcn.00443a60
mov edi, eax
cmp edi, ebx
je 0x417608
push 0x828
call fcn.00443a60
pop ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4175f1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4175cc
lea eax, [ebp - 0x2c]
push edi
lea ecx, [ebp - 0x38]
push ecx
push eax
push dword [ebp - 0x3c]
push 0x40aa48
push 0x654
push 0x19dc
push dword [ebp - 0x40]
call fcn.00411c0e
add esp, 0x20
jmp 0x4175f3
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], eax
push 0x4737e4
lea eax, [ebp - 0x50]
push eax
call fcn.00443a60
push ebx
push dword [ebp - 0x38]
mov eax, esi
call fcn.00443a60
mov edi, eax
cmp edi, ebx
je 0x417661
push 0x828
call fcn.00443a60
pop ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x41764e
push edi
push ebx
push dword [ebp - 0x38]
push 0x40aaf8
push 0x654
push 0x19dc
push eax
call fcn.00411c0e
add esp, 0x1c
jmp 0x417650
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], eax
push 0x4737e4
lea eax, [ebp - 0x54]
jmp 0x417602
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x38]
mov eax, esi
call fcn.00443a60
test eax, eax
jne 0x4176a9
push 1
push dword [ebp - 0x44]
mov eax, esi
call fcn.00443a60
cmp eax, ebx
je 0x41769d
mov byte [ebp - 0x31], 1
push eax
mov ecx, dword [ebp - 0x40]
call fcn.00443a60
push 0x409d00
mov ecx, dword [ebp - 0x40]
call fcn.00443a60
push dword [ebp - 0x44]
mov eax, esi
call fcn.00443a60
jmp 0x417661
cmp dword [ebp - 0x38], ebx
je 0x4176b8
push dword [ebp - 0x38]
mov eax, esi
call fcn.00443a60
cmp dword [ebp - 0x3c], ebx
je 0x4176c7
push dword [ebp - 0x3c]
mov eax, esi
call fcn.00443a60
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00443a60
mov al, byte [ebp - 0x31]
call fcn.0045f4a4
ret 4
Function at 0x418db9
Capabilities:
Get common file path

Disassembly:
push 0x294
mov eax, 0x46e7ac
call fcn.0045f3fe
mov ecx, dword [0x481200]
push 0x40c168
call fcn.0042d4e5
xor eax, eax
push 0x62
mov word [ebp - 0x74], ax
xor edi, edi
lea eax, [ebp - 0x72]
push edi
push eax
call fcn.004433d0
xor eax, eax
push 0x208
mov word [ebp - 0x280], ax
lea eax, [ebp - 0x27e]
push edi
push eax
call fcn.004433d0
add esp, 0x18
mov esi, 0x105
push esi
lea eax, [ebp - 0x280]
push eax
mov dword [ebp - 0x2a0], 0x32
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x418ec2
cmp eax, esi
ja 0x418ec2
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00443a60
mov dword [ebp - 4], edi
push 0x40c1d0
lea ecx, [ebp - 0x29c]
call fcn.00443a60
cmp dword [ebp - 0x284], 8
mov eax, dword [ebp - 0x298]
jae 0x418e71
lea eax, [ebp - 0x298]
push edi
push edi
lea ecx, [ebp - 0x2a0]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push eax
call sub.msi.dll_MsiMessageBoxW
test eax, eax
mov eax, dword [ebp - 0x298]
je 0x418eca
cmp dword [ebp - 0x284], 8
jae 0x418e9d
lea eax, [ebp - 0x298]
mov esi, dword [0x481200]
push eax
push 0x40c1f0
call fcn.00443a60
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x29c]
call fcn.00443a60
xor al, al
call fcn.0045f490
ret
cmp dword [ebp - 0x284], 8
jae 0x418ed9
lea eax, [ebp - 0x298]
mov esi, dword [0x481200]
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0x40c260
call fcn.00443a60
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
mov ecx, ebx
call fcn.00443a60
mov ecx, dword [0x481200]
push 0x40c288
call fcn.0042d4e5
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x29c]
call fcn.00443a60
mov al, 1
jmp 0x418ec4
Function at 0x41cc58
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x134
mov eax, 0x46e2e1
call fcn.0045f3fe
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x131], bl
jb 0x41cc85
mov eax, dword [esi + 4]
jmp 0x41cc88
lea eax, [esi + 4]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x138], eax
cmp eax, 0xffffffff
jne 0x41ccec
push esi
lea eax, [ebp - 0x2c]
push 0x40cc50
push eax
call fcn.00414de7
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41ccca
lea eax, [ebp - 0x28]
mov esi, dword [0x481200]
push eax
call fcn.0042d729
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00443a60
xor al, al
jmp 0x41cde4
push ebx
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 2]
push eax
call fcn.00443a60
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x41cd39
push 0x40cc80
lea ecx, [ebp - 0x2c]
call fcn.00443a60
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41cd25
lea eax, [ebp - 0x28]
mov esi, dword [0x481200]
push eax
call fcn.0042d729
or dword [ebp - 4], 0xffffffff
push ebx
push edi
jmp 0x41ccdd
lea eax, [edi + 2]
push eax
push ebx
push esi
call fcn.004433d0
add esp, 0xc
push ebx
lea eax, [ebp - 0x140]
push eax
push edi
push esi
push dword [ebp - 0x138]
mov dword [ebp - 0x140], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x41cdcb
mov eax, 0xfeff
cmp word [esi], ax
jne 0x41cd82
mov ecx, dword [ebp - 0x13c]
lea eax, [esi + 2]
push eax
call fcn.00443a60
jmp 0x41cdc4
push esi
lea ecx, [ebp - 0x130]
call fcn.00443a60
mov dword [ebp - 4], 2
push dword [ebp - 0x130]
mov ecx, dword [ebp - 0x13c]
call fcn.00443a60
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x130], eax
je 0x41cdc4
push dword [ebp - 0x130]
call fcn.0043e7ba
pop ecx
mov byte [ebp - 0x131], 1
push esi
call fcn.00443a60
pop ecx
push dword [ebp - 0x138]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, byte [ebp - 0x131]
call fcn.0045f490
ret 4
Function at 0x421374
Capabilities:
Get common file path

Disassembly:
push 0x2dc
mov eax, 0x46d581
call fcn.0045f3fe
push dword [ebp + 0xc]
mov dword [ebp - 0x25c], esi
push dword [ebp + 8]
push esi
call fcn.00421ebd
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 8]
lea ecx, [esi + 0x2c4]
mov dword [esi], 0x40ddb0
mov dword [edi], 0x40ddf8
mov byte [esi + 0x2c0], bl
mov byte [esi + 0x2c1], bl
call fcn.00411d68
mov byte [ebp - 4], 1
lea ecx, [esi + 0x2e0]
call fcn.00411d68
mov byte [ebp - 4], 2
push 1
push edi
lea eax, [esi + 0x2fc]
push eax
call fcn.00422015
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x258]
call fcn.00411d68
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x23c]
call fcn.00411d68
mov byte [ebp - 4], 5
mov ecx, dword [0x481204]
lea eax, [ebp - 0x258]
push eax
push 0x1d
pop eax
call fcn.00443a60
mov ecx, dword [0x481204]
lea eax, [ebp - 0x23c]
push eax
push 0x17
pop eax
call fcn.00443a60
push 0x40dd34
lea ecx, [ebp - 0x2b0]
call fcn.00443a60
mov edi, eax
mov byte [ebp - 4], 6
push 0x40dd40
lea ecx, [ebp - 0x294]
call fcn.00443a60
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.00419205
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x23c]
push ecx
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00419205
add esp, 0xc
mov byte [ebp - 4], 9
push edi
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.00419205
add esp, 0xc
mov byte [ebp - 4], 0xa
push eax
lea ecx, [esi + 0x2c4]
call fcn.00443a60
mov byte [ebp - 4], 9
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x2e8]
call fcn.00443a60
mov byte [ebp - 4], 8
push ebx
push edi
lea ecx, [ebp - 0x278]
call fcn.00443a60
mov byte [ebp - 4], 7
push ebx
push edi
lea ecx, [ebp - 0x2cc]
call fcn.00443a60
mov byte [ebp - 4], 6
push ebx
push edi
lea ecx, [ebp - 0x294]
call fcn.00443a60
mov byte [ebp - 4], 5
push ebx
push edi
lea ecx, [ebp - 0x2b0]
call fcn.00443a60
push 0x40dd4c
lea ecx, [esi + 0x2e0]
call fcn.00443a60
xor eax, eax
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
call fcn.004433d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
push 0x40dd68
push 0x20a
lea eax, [ebp - 0x220]
push eax
call fcn.00443a60
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov byte [ebp - 4], 4
push ebx
push edi
lea ecx, [ebp - 0x23c]
call fcn.00443a60
mov byte [ebp - 4], 3
push ebx
push edi
lea ecx, [ebp - 0x258]
call fcn.00443a60
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0045f490
ret 8
Function at 0x421e18
Capabilities:
Create process on windows

Disassembly:
push 0x1c
mov eax, 0x468197
call fcn.0045f38b
mov esi, ecx
call fcn.00443a60
cmp eax, 1
lea eax, [esi + 0x2e0]
je 0x421e3c
lea eax, [esi + 0x2c4]
cmp dword [eax + 0x18], 8
jb 0x421e47
mov ecx, dword [eax + 4]
jmp 0x421e4a
lea ecx, [eax + 4]
push 0
mov eax, 0x409384
push eax
push eax
push ecx
push 0x40dda0
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x421eb0
lea eax, [esi + 0x2c4]
cmp dword [eax + 0x18], 8
jb 0x421e78
mov eax, dword [eax + 4]
jmp 0x421e7b
add eax, 4
push eax
push 0x122c
lea eax, [ebp - 0x28]
push eax
call fcn.0044be36
and dword [ebp - 4], 0
mov esi, dword [esi + 0x24]
lea ecx, [esi + 0x28]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 0xc]
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00443a60
xor al, al
jmp 0x421eb2
mov al, 1
call fcn.0045f477
ret

Function at 0x422f96
Capabilities:
Create process on windows

Disassembly:
push 0x2c
mov eax, 0x46cc9b
call fcn.0045f3fe
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
sub ecx, 0x100
mov dword [ebp - 0x30], ebx
je 0x422fe2
sub ecx, 0x11
je 0x422fce
sub ecx, 0xf1
jne 0x423100
mov ecx, dword [eax + 0x2b4]
jmp 0x422ff6
mov ecx, esi
shr ecx, 0x10
cmp cx, 1
jne 0x422fde
movzx ecx, si
jmp 0x422ff6
mov dword [edx], ebx
jmp 0x422ff9
cmp esi, 0xd
je 0x422ff0
cmp esi, 0x20
jne 0x423100
mov ecx, dword [eax + 0x2b0]
mov dword [ebp - 0x30], ecx
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, 0x40deb4
cmp dword [ebp - 0x30], ebx
je 0x4230be
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + 0x2e8]
add ecx, 0xfffffeb8
mov dword [ebp - 0x38], edx
cmp ecx, edx
jae 0x4230be
mov edx, dword [ebp - 0x30]
add edx, 0xfffffeb8
js 0x4230be
mov eax, dword [eax + 0x2e4]
mov eax, dword [eax]
mov dword [ebp - 0x34], ebx
cmp ecx, ebx
jbe 0x423059
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x38]
jae 0x423057
inc dword [ebp - 0x34]
mov eax, dword [eax]
cmp dword [ebp - 0x34], ecx
jb 0x423045
xor ebx, ebx
lea ecx, [ebp - 0x2c]
add eax, 8
push ecx
push eax
call fcn.00422257
mov dword [ebp - 4], ebx
push 0x409384
lea ecx, [ebp - 0x2c]
call fcn.00443a60
test eax, eax
je 0x4230af
push 0x40de7c
lea ecx, [ebp - 0x2c]
call fcn.00443a60
test eax, eax
jne 0x42309a
push 1
push ebx
push 0x40de84
push 0x40de9c
jmp 0x4230ab
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4230a6
lea eax, [ebp - 0x28]
push 1
push ebx
push ebx
push eax
push edi
push ebx
call esi
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00443a60
cmp dword [ebp - 0x30], 0x26d
jne 0x423100
push 0x12cb
lea eax, [ebp - 0x2c]
push eax
call fcn.0044bdfb
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
cmp dword [eax + 0x18], 8
jb 0x4230e6
mov eax, dword [eax + 4]
jmp 0x4230e9
add eax, 4
push ecx
push ebx
push ebx
push eax
push edi
push ebx
call esi
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00443a60
xor eax, eax
call fcn.0045f490
ret 8