joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50ed18
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56a698]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00503a4b
and dword [ebp - 0x14], 0
cmp dword [0x57214c], 0
mov dword [ebp - 0x18], eax
jne 0x50edcb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x50ee73
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54bc68
push ebx
call edi
test eax, eax
je 0x50ee73
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54bc58
push ebx
mov dword [0x57214c], eax
call edi
push eax
call esi
push 0x54bc44
push ebx
mov dword [0x572150], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x572154], eax
call edi
push eax
call esi
mov dword [0x57215c], eax
test eax, eax
je 0x50edcb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x572158], eax
mov eax, dword [0x572158]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x50ee24
cmp dword [0x57215c], ecx
je 0x50ee24
push eax
call esi
push dword [0x57215c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x50ee24
test ebx, ebx
je 0x50ee24
call edi
test eax, eax
je 0x50ee1b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x50ee1b
test byte [ebp - 8], 1
jne 0x50ee24
or dword [ebp + 0x10], 0x200000
jmp 0x50ee57
mov eax, dword [0x572150]
cmp eax, dword [ebp - 0x18]
je 0x50ee57
push eax
call esi
test eax, eax
je 0x50ee57
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x50ee57
mov eax, dword [0x572154]
cmp eax, dword [ebp - 0x18]
je 0x50ee57
push eax
call esi
test eax, eax
je 0x50ee57
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x57214c]
call esi
test eax, eax
je 0x50ee73
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x50ee75
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fcaa0
leave
ret
Function at 0x10003b09
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x28
push 0x2cf9288
call 0x10008ee0
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov esi, 0x14c
cmp word [eax + 4], si
jne 0x10003b35
add eax, 0x78
jmp 0x10003b3a
add eax, 0x88
mov esi, dword [eax]
add esi, ecx
cmp dword [eax], edx
je 0x10003c28
cmp dword [eax + 4], edx
je 0x10003c28
cmp dword [esi + 0x1c], edx
je 0x10003c28
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x28], eax
cmp eax, edx
je 0x10003c28
mov eax, dword [esi + 0x1c]
add eax, ecx
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x24], edx
je 0x10003c18
mov edi, dword [esi + 0x24]
add edi, ecx
mov dword [ebp - 0x38], edi
mov ebx, dword [esi + 0x20]
add ebx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jae 0x10003c28
and dword [ebp - 0x1c], 0
xor eax, eax
inc eax
je 0x10003ba9
movzx ecx, word [edi]
add ecx, dword [esi + 0x10]
cmp eax, ecx
jmp 0x10003bda
mov eax, dword [ebx]
add eax, ecx
mov dword [ebp - 0x2c], eax
xor ecx, ecx
inc ecx
je 0x10003bc7
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003be3
push ecx
push eax
call dword [0x2cf9094]
test eax, eax
jmp 0x10003bda
push eax
call dword [0x2cf9034]
mov edx, dword [ebp - 0x2c]
call fcn.100062b9
xor ecx, ecx
cmp ecx, eax
jne 0x10003be3
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x10003c02
movzx eax, word [edi]
mov ecx, dword [ebp - 0x30]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x20], eax
xor eax, eax
je 0x10003c28
mov ecx, dword [ebx]
add ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x10003c28
add ebx, 4
mov dword [ebp - 0x34], ebx
inc edi
inc edi
mov dword [ebp - 0x38], edi
inc dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
jmp 0x10003b8a
mov dword [ebp - 0x20], eax
jmp 0x10003c28
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call 0x10008f1b
ret 4

Function at 0x100060b4
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x100062b9
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
test edx, edx
je 0x100062fe
or eax, 0xffffffff
test esi, esi
je 0x100062fa
push edi
mov cl, byte [edx]
movzx edi, al
movzx ecx, cl
xor edi, ecx
and edi, 0xf
shr eax, 4
xor eax, dword [edi*4 + 0x2cf9238]
shr ecx, 4
mov edi, eax
and edi, 0xf
xor ecx, edi
shr eax, 4
xor eax, dword [ecx*4 + 0x2cf9238]
dec esi
inc edx
test esi, esi
jne 0x100062c8
pop edi
not eax
jmp 0x10006300
xor eax, eax
not eax
pop esi
ret
Function at 0x10006e69
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx + 0x3c]
add eax, edx
movzx ecx, word [eax + 0x14]
sub esp, 0x14
push esi
movzx esi, word [eax + 6]
push edi
xor edi, edi
lea eax, [ecx + eax + 0x18]
xor ecx, ecx
cmp dword [eax + 4], edi
jne 0x10006e95
cmp dword [eax], 0x7373622e
jne 0x10006e95
mov ecx, eax
add eax, 0x28
dec esi
je 0x10006e9f
test ecx, ecx
je 0x10006e86
test ecx, ecx
je 0x10006ebd
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10006eb9
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x10006eb9
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jmp 0x10006ec0
push 0xb
jmp 0x10006ebf
push 2
pop edi
mov eax, edi
test edi, edi
jne 0x10006f8c
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 4]
and esi, 0xfff
neg esi
sbb esi, esi
shr eax, 0xc
neg esi
add esi, eax
mov eax, dword [ebp - 0xc]
lea edi, [eax + edx]
mov eax, esi
push ebx
shl eax, 0xc
push eax
mov dword [ebp - 0x14], edi
call fcn.10003fdc
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x10006f88
push dword [ebp - 4]
push edi
push ebx
call fcn.10005dd2
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add esp, 0xc
test esi, esi
jbe 0x10006f62
mov eax, ebx
sub eax, edi
mov dword [ebp - 8], ebx
lea edi, [eax + ecx + 0x2cfb690]
mov ebx, 0x1000
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
lea eax, [eax + ecx - 0x7e47c82f]
push 1
push eax
mov eax, ebx
call fcn.10007ff0
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 8]
add dword [ebp - 8], ebx
add ecx, dword [edi + 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jb 0x10006f2e
mov ebx, dword [ebp - 0x10]
lea eax, [ecx - 0x43175ac3]
test eax, eax
jne 0x10006f7d
sub ebx, dword [ebp - 0x14]
mov dword [0x2cfa344], ecx
mov dword [0x2cfa348], ebx
jmp 0x10006f8b
push ebx
call fcn.10006dda
xor eax, eax
inc eax
jmp 0x10006f8b
push 8
pop eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x404871
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4048fd
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4048d6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4048d6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4048da
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x4048fc
push edi
push ebx
push eax
call fcn.0041d770
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404f9d
Capabilities:
Get graphical window text

Disassembly:
push 0x14
mov eax, 0x43d2d9
call fcn.0041b3be
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x14], 0
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
lea ecx, [ebp - 0x20]
push eax
call fcn.004056c4
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
mov eax, esi
sub eax, dword [ebp - 0x20]
sar eax, 1
push eax
push dword [ebp - 0x20]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
and dword [ebx + 0x10], 0
lea eax, [esi - 2]
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov word [ebx], cx
cmp dword [ebp - 0x20], eax
je 0x405006
sub eax, dword [ebp - 0x20]
mov ecx, ebx
sar eax, 1
push eax
push dword [ebp - 0x20]
call fcn.00403a40
lea ecx, [ebp - 0x20]
call fcn.00405993
mov eax, ebx
call fcn.0041b387
ret
Function at 0x406d1c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x43d53c
call fcn.0041b3f2
xor eax, eax
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push 3
lea eax, [ebp - 0x1c]
push eax
push 4
push 0x10
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
push eax
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
je 0x406d5b
xor al, al
jmp 0x406dd7
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405962
and dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
lea edi, [ebp - 0x34]
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x34]
cmovae edi, dword [ebp - 0x34]
cmovae esi, dword [ebp - 0x34]
xor ebx, ebx
xor edx, edx
lea eax, [ecx + eax*2]
mov ecx, eax
sub ecx, edi
inc ecx
shr ecx, 1
cmp edi, eax
cmova ecx, edx
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x406dba
sub edi, esi
movzx eax, word [edi + esi]
push eax
call fcn.0042065d
inc ebx
mov word [esi], ax
lea esi, [esi + 2]
pop ecx
cmp ebx, dword [ebp - 0x38]
jne 0x406da3
mov edx, 0x44d074
lea ecx, [ebp - 0x34]
call fcn.00408b02
push 0
push 1
lea ecx, [ebp - 0x34]
mov bl, al
call fcn.00401a9a
mov al, bl
call fcn.0041b39c
ret
Function at 0x40ab4a
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x224
mov eax, 0x43dcbd
call fcn.0041b3f2
mov esi, ecx
mov dword [ebp - 0x228], esi
xor ebx, ebx
lea eax, [ebp - 0x220]
push 0x20a
mov dword [ebp - 4], ebx
push ebx
push eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], ebx
call fcn.0041f840
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edi, edi
inc edi
cmp eax, 0x104
ja 0x40aba6
push edi
jmp 0x40aba7
push ebx
call fcn.0040a0c4
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
call fcn.00405962
mov dword [ebp - 4], ebx
mov dword [ebp - 0x224], edi
mov edi, str.7F4987FB1A6E43d69E3E94B29EB75926
push edi
call fcn.00403019
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00404020
cmp dword [esi + 0x14], 8
jb 0x40abe2
mov eax, dword [esi]
jmp 0x40abe4
mov eax, esi
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push eax
call fcn.0040a124
mov eax, esi
call fcn.0041b39c
ret
Function at 0x40b163
Capabilities:
Write file on windows

Disassembly:
push 0x14
mov eax, 0x43dd62
call fcn.0041b3be
mov esi, edx
mov eax, ecx
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402900
lea ecx, [ebp - 0x1c]
call fcn.0040ada8
add esp, 0x18
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
jne 0x40b1b3
push 3
call fcn.0040a18c
mov esi, 0xff
push esi
call fcn.0040a1ec
push esi
call fcn.0040a24c
jmp 0x40b263
cmp dword [esi + 0x14], 8
jb 0x40b1bd
mov eax, dword [esi]
jmp 0x40b1bf
mov eax, esi
push 0x44dc80
push eax
call fcn.004253da
pop ecx
pop ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a1ec
test ebx, ebx
jne 0x40b20d
push 1
call fcn.0040a18c
push 0xff
call fcn.0040a24c
cmp dword [esi + 0x14], 8
jb 0x40b1f7
mov esi, dword [esi]
push esi
push str.Cant_create_file__s_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
jmp 0x40b263
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
push ebx
push eax
push 1
push dword [ebp - 0x1c]
call fcn.00425235
add esp, 0x10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a24c
push ebx
call fcn.00420b1a
pop ecx
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
cmp esi, ecx
je 0x40b26a
push 2
call fcn.0040a18c
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
push eax
push esi
push str.Write_error:__d_bytes_have_been_written_instead_of__d_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0x10
mov edi, 0x80004005
jmp 0x40b270
push edi
call fcn.0040a18c
lea ecx, [ebp - 0x1c]
call fcn.0040f542
mov eax, edi
call fcn.0041b387
ret
Function at 0x40b280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov al, byte [0x4585c0]
push ebx
push esi
push edi
push 0x38
mov byte [ebp - 1], al
mov esi, edx
lea eax, [ebp - 0x40]
mov edi, ecx
push 0
push eax
call fcn.0041f840
and dword [ebp - 0x3c], 0
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0x440
mov dword [ebp - 0x38], str.open
jb 0x40b2c6
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x34], edi
jb 0x40b2d1
mov esi, dword [esi]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x30], esi
push eax
mov dword [ebp - 0x28], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
mov ebx, eax
push ebx
call fcn.0040a44c
test esi, esi
je 0x40b30f
push str.ShellExecuteEx_Ok_n
push dword [0x4585c4]
call fcn.00408bec
pop ecx
pop ecx
jmp 0x40b323
push ebx
push str.Error:_0x_X_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x40b39c
cmp dword [ebp - 0xc], 0
je 0x40b39c
push str.Waiting_for_installing..._n
push dword [0x4585c4]
call fcn.00408bec
push dword [0x4585c4]
call fcn.00420a4b
add esp, 0xc
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40b377
push dword [ebp - 8]
push str.Exit_code:_0x_X_n
jmp 0x40b37f
call edi
push eax
push str.Cant_get_exit_code._Error:_0x_X_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0xc], 0
jmp 0x40b3c3
push 1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x40b3c3
call edi
push eax
push str.SetHandleInformation_error:_0x_08X_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
push dword [0x4585c4]
call fcn.00420a4b
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b3d9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43dd9e
mov eax, dword fs:[0]
push eax
mov eax, 0x10090
call fcn.0041bad0
mov eax, dword [0x456070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x1002c]
call fcn.004180db
and dword [ebp - 4], 0
push 0x44de68
call fcn.00403019
pop ecx
push eax
push 0x44de68
lea ecx, [ebp - 0x1002c]
call fcn.00404020
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x1002c]
call fcn.004043f5
test edi, edi
je 0x40b4ed
mov esi, 0x44de6c
push esi
call fcn.00403019
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1002c]
call fcn.00404020
mov edx, edi
lea ecx, [ebp - 0x10044]
call fcn.0041850c
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x1002c]
mov byte [ebp - 4], 1
call fcn.004043f5
push 0
push 1
lea ecx, [ebp - 0x10044]
mov byte [ebp - 4], 0
call fcn.00401a9a
mov esi, str.___st
push esi
call fcn.00403019
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1002c]
call fcn.00404020
mov edx, ebx
lea ecx, [ebp - 0x10044]
call fcn.0041850c
push 0xffffffffffffffff
xor ebx, ebx
mov byte [ebp - 4], 2
push ebx
push eax
lea ecx, [ebp - 0x1002c]
call fcn.004043f5
push ebx
push 1
lea ecx, [ebp - 0x10044]
call fcn.00401a9a
jmp 0x40b4ef
xor ebx, ebx
cmp dword [ebp - 0x10018], 8
lea eax, [ebp - 0x1002c]
cmovae eax, dword [ebp - 0x1002c]
push eax
lea eax, [ebp - 0x10014]
push 0x8000
push eax
call fcn.00424c4a
add esp, 0xc
mov dword [ebp - 0x1009c], 0x44
lea eax, [ebp - 0x10098]
push 0x40
push ebx
push eax
call fcn.0041f840
add esp, 0xc
lea eax, [ebp - 0x10054]
xorps xmm0, xmm0
movups xmmword [ebp - 0x10054], xmm0
push eax
lea eax, [ebp - 0x1009c]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x10014]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40b57d
push dword [ebp - 0x10050]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10054]
call esi
jmp 0x40b597
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Clone_Error:_0x_08X_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x1002c]
call fcn.00401a9a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041aa0d
mov esp, ebp
pop ebp
ret
Function at 0x40ca87
Capabilities:
Accept command line arguments

Disassembly:
push 0x74
mov eax, 0x43e0c5
call fcn.0041b3f2
mov bl, cl
lea ecx, [ebp - 0x74]
call fcn.0040ab4a
xor edi, edi
mov edx, str.downloader.
test bl, bl
mov dword [ebp - 4], edi
mov ecx, str._stat.
cmove ecx, edx
mov edx, eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403e7b
pop ecx
push edi
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00401a9a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.0041850c
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004043f5
push edi
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.00401a9a
mov esi, str..log
push esi
call fcn.00403019
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404020
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x44e2e0
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.004253da
push str._n
push eax
mov dword [0x4585c4], eax
call fcn.00408bec
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add esp, 0x10
call esi
test eax, eax
je 0x40cb4a
call esi
jmp 0x40cb4f
mov eax, 0x44d59c
push eax
push str.cmd:__s_n
push dword [0x4585c4]
call fcn.00408bec
sub esp, 0xc
mov ecx, esp
call fcn.004180db
lea ecx, [ebp - 0x44]
call fcn.0041813c
push 4
pop ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
push str.ver:__s_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0x24
lea ecx, [ebp - 0x5c]
call fcn.0040b839
cmp dword [eax + 0x14], 8
jb 0x40cba7
mov eax, dword [eax]
push eax
push str.os:__s_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
lea ecx, [ebp - 0x5c]
push edi
push 1
call fcn.00401a9a
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], edi
push eax
push 8
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40cbff
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], ebx
push eax
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0x14
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [ebp - 0x7c]
cmp dword [ebp - 0x78], 0
je 0x40cc0e
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x44e3c4
test esi, esi
mov eax, 0x44e3bc
cmove eax, ecx
push eax
push str.elevated:__s_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
lea ecx, [ebp - 0x44]
push edi
push 1
call fcn.00401a9a
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401a9a
call fcn.0041b39c
ret
Function at 0x40e2fc
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x43e408
call fcn.0041b3f2
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x40e328
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x40e48c
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40e356
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40e356
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x40e48c
cmp dword [esi + 0x4c], 0
je 0x40e48a
mov ecx, esi
call fcn.00410126
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x40e38a
push dword [esi + 0x4c]
movsx eax, al
push eax
call fcn.0042077b
cmp eax, ebx
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x40e48a
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x29], al
mov dword [ebp - 0x14], 0xf
call fcn.0040fdcf
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x40e47e
cmp eax, 1
jg 0x40e461
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x40e432
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.00425235
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x40e47e
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x29]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x40e45c
test edx, edx
jne 0x40e3b2
cmp dword [ebp - 0x18], 0x20
jae 0x40e47e
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.0040ff2c
jmp 0x40e3af
mov ebx, dword [ebp + 8]
jmp 0x40e47e
cmp eax, 3
jne 0x40e47e
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
movsx eax, byte [ebp - 0x29]
push eax
call fcn.0042077b
cmp eax, ebx
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040fcd5
mov eax, ebx
call fcn.0041b39c
ret 4
Function at 0x4101ae
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x43e565
call fcn.0041b3f2
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4102ae
cmp byte [ebx + 0x3d], 0
je 0x4102ae
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4101e8
xor al, al
jmp 0x4102b0
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.0040fdcf
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x30]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x410246
sub eax, 1
je 0x41024a
dec eax
sub eax, 1
je 0x41029c
xor bl, bl
jmp 0x41029e
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, edx
sub esi, eax
je 0x410282
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00425235
add esp, 0x10
cmp esi, eax
jne 0x410242
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3d], 0
je 0x41029c
test esi, esi
jne 0x41020c
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040ff2c
jmp 0x410206
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040fcd5
mov al, bl
jmp 0x4102b0
mov al, 1
call fcn.0041b39c
ret