joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007439
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x100252a8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.10007378
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.10007c40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10007488
cmp dword [ebp - 0x1c], 5
jb 0x100074a0
jmp 0x1000749c
cmp dword [ebp - 0x10], 1
jne 0x100074a0
cmp dword [ebp - 0x1c], 4
ja 0x1000749c
jne 0x100074a0
cmp dword [ebp - 0x18], 0
jbe 0x100074a0
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001e2ec
call fcn.1000720e
test eax, eax
jge 0x100074c1
mov byte [0x10027720], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10007764
add ebp, 0x78
leave
ret

Function at 0x10007764
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100252a8]
jne 0x1000776e
repz ret
jmp fcn.1000c3fc
Function at 0x1000ccd8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x100252d0]
je 0x1000ccf3
inc edi
cmp edi, 0x17
jb 0x1000cce4
cmp edi, 0x17
jae 0x1000ce73
push ebp
push 3
call fcn.10012dd4
cmp eax, 1
pop ecx
je 0x1000ce3f
push 3
call fcn.10012dd4
test eax, eax
pop ecx
jne 0x1000cd27
cmp dword [0x100269d8], 1
je 0x1000ce3f
cmp ebx, 0xfc
je 0x1000ce72
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10026d78
push ebp
call fcn.1000c500
add esp, 0xc
test eax, eax
je 0x1000cd5d
push esi
push esi
push esi
push esi
push esi
call fcn.100079a5
add esp, 0x14
push 0x104
mov esi, 0x10026d91
push esi
push 0
mov byte [0x10026e95], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000cda1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1000c500
add esp, 0xc
test eax, eax
je 0x1000cda1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100079a5
add esp, 0x14
push esi
call fcn.10007910
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000cde6
push esi
call fcn.10007910
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1002708c
push 0x1001f2ac
sub ecx, eax
push ecx
push eax
call fcn.10011e17
add esp, 0x14
test eax, eax
je 0x1000cde6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100079a5
add esp, 0x14
jmp 0x1000cde8
xor esi, esi
push 0x1001f2a8
push ebx
push ebp
call fcn.10011da6
add esp, 0xc
test eax, eax
je 0x1000ce08
push esi
push esi
push esi
push esi
push esi
call fcn.100079a5
add esp, 0x14
push dword [edi*8 + 0x100252d4]
push ebx
push ebp
call fcn.10011da6
add esp, 0xc
test eax, eax
je 0x1000ce2a
push esi
push esi
push esi
push esi
push esi
call fcn.100079a5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10012c17
add esp, 0xc
jmp 0x1000ce72
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000ce72
cmp ebp, 0xffffffff
je 0x1000ce72
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100252d4]
push dword [esi]
call fcn.10007910
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10012c17
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000c759
xor ebx, ebx
cmp dword [0x100273b0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10012ced
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10012dcd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10012dcd
push eax
call fcn.1000c6eb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100273b0], eax
call esi
push eax
call fcn.1000c6eb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100273b4], eax
call esi
push eax
call fcn.1000c6eb
mov dword [0x100273b8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000b021
test eax, eax
pop ecx
pop ecx
je 0x10012cbb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100079a5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10012ced
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000c6eb
cmp eax, ebx
pop ecx
mov dword [0x100273c0], eax
je 0x10012ced
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000c6eb
pop ecx
mov dword [0x100273bc], eax
mov eax, dword [0x100273bc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10012d72
cmp dword [0x100273c0], ecx
je 0x10012d72
push eax
call fcn.1000c762
push dword [0x100273c0]
mov esi, eax
call fcn.1000c762
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10012d72
cmp edi, ebx
je 0x10012d72
call esi
cmp eax, ebx
je 0x10012d3f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10012d3f
test byte [ebp - 0x18], 1
jne 0x10012d72
lea eax, [ebp - 0x10]
push eax
call fcn.1000b058
test eax, eax
pop ecx
je 0x10012d5a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100079a5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10012d69
or dword [ebp + 0x10], 0x200000
jmp 0x10012dad
or dword [ebp + 0x10], 0x40000
jmp 0x10012dad
mov eax, dword [0x100273b4]
cmp eax, dword [ebp - 8]
je 0x10012dad
push eax
call fcn.1000c762
cmp eax, ebx
pop ecx
je 0x10012dad
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10012dad
mov eax, dword [0x100273b8]
cmp eax, dword [ebp - 8]
je 0x10012dad
push eax
call fcn.1000c762
cmp eax, ebx
pop ecx
je 0x10012dad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100273b0]
call fcn.1000c762
cmp eax, ebx
pop ecx
je 0x10012dcd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10012dcf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10018820
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x10019940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100252a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 4], 0x10020ddc
mov dword [ebp - 0xc], str.InstallDir
mov dword [ebp - 0x21c], 0x100
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100199e9
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100199d9
lea ecx, [ebp - 0x218]
push ecx
push 0x10020e24
mov edx, dword [ebp + 8]
push edx
call fcn.10005bf0
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100199e7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100199f2
jmp 0x100199ed
xor eax, eax
jmp 0x100199f2
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10007764
mov esp, ebp
pop ebp
ret 4
Function at 0x1001a7e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x100252a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x74], 0
jmp 0x1001a80c
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0x37
jge 0x1001a81d
mov ecx, dword [ebp - 0x6c]
add ecx, dword [ebp - 0x74]
mov dword [ebp - 0x6c], ecx
jmp 0x1001a803
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
push 0x5f
push 0
lea edx, [ebp - 0x67]
push edx
call fcn.10007c40
add esp, 0xc
push 0x60
push 0x18
lea eax, [ebp - 0x68]
push eax
call fcn.10007c40
add esp, 0xc
push 0x258
call fcn.100070c8
add esp, 4
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x70], ecx
push 0x258
push 0x18
mov edx, dword [ebp - 0x70]
push edx
call fcn.10007c40
add esp, 0xc
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.10007773
add esp, 4
mov dword [ebp - 0x78], 1
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
add eax, 7
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], 1
mov ecx, dword [ebp - 0x80]
add ecx, 1
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
add edx, 7
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x88], 1
mov eax, dword [ebp - 0x88]
add eax, 1
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
add ecx, 7
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x90], 1
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
add eax, 7
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], 1
mov ecx, dword [ebp - 0x98]
add ecx, 1
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
add edx, 7
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xa0], 1
mov eax, dword [ebp - 0xa0]
add eax, 1
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
add ecx, 7
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa8], 1
mov edx, dword [ebp - 0xa8]
add edx, 1
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa8]
add eax, 7
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb0], 1
mov ecx, dword [ebp - 0xb0]
add ecx, 1
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb0]
add edx, 7
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb8], 1
mov eax, dword [ebp - 0xb8]
add eax, 1
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
add ecx, 7
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc0], 1
mov edx, dword [ebp - 0xc0]
add edx, 1
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0xc0]
add eax, 7
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007764
mov esp, ebp
pop ebp
ret
Function at 0x1001b220
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x100252a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], 0
jmp 0x1001b24c
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0x22
jge 0x1001b25d
mov ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x54], ecx
jmp 0x1001b243
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
push 0x43
push 0
lea edx, [ebp - 0x4f]
push edx
call fcn.10007c40
add esp, 0xc
push 0x44
push 0x89
lea eax, [ebp - 0x50]
push eax
call fcn.10007c40
add esp, 0xc
push 0x3b8
call fcn.100070c8
add esp, 4
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x58], ecx
push 0x3b8
push 0x89
mov edx, dword [ebp - 0x58]
push edx
call fcn.10007c40
add esp, 0xc
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
push ecx
call fcn.10007773
add esp, 4
mov dword [ebp - 0x60], 1
mov edx, dword [ebp - 0x60]
add edx, 1
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
add eax, 2
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], 1
mov ecx, dword [ebp - 0x68]
add ecx, 1
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
add edx, 2
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x70], 1
mov eax, dword [ebp - 0x70]
add eax, 1
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
add ecx, 2
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], 1
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
add eax, 2
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], 1
mov ecx, dword [ebp - 0x80]
add ecx, 1
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
add edx, 2
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x88], 1
mov eax, dword [ebp - 0x88]
add eax, 1
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
add ecx, 2
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x90], 1
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
add eax, 2
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], 1
mov ecx, dword [ebp - 0x98]
add ecx, 1
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
add edx, 2
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xa0], 1
mov eax, dword [ebp - 0xa0]
add eax, 1
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
add ecx, 2
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa8], 1
mov edx, dword [ebp - 0xa8]
add edx, 1
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa8]
add eax, 2
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007764
mov esp, ebp
pop ebp
ret
Function at 0x1001b650
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x100252a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
jmp 0x1001b67c
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x36
jge 0x1001b68d
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
jmp 0x1001b673
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
xor edx, edx
mov dword [ebp - 0x1f], edx
mov dword [ebp - 0x1b], edx
mov dword [ebp - 0x17], edx
mov dword [ebp - 0x13], edx
mov dword [ebp - 0xf], edx
mov dword [ebp - 0xb], edx
mov word [ebp - 7], dx
mov byte [ebp - 5], dl
push 0x1c
push 0x64
lea eax, [ebp - 0x20]
push eax
call fcn.10007c40
add esp, 0xc
push 0x170
call fcn.100070c8
add esp, 4
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x28], ecx
push 0x170
push 0x64
mov edx, dword [ebp - 0x28]
push edx
call fcn.10007c40
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.10007773
add esp, 4
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
add eax, 3
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 1
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
add edx, 3
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
add ecx, 3
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], 1
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
add eax, 3
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 1
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
add edx, 3
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], 1
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
add ecx, 3
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], 1
mov edx, dword [ebp - 0x60]
add edx, 1
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
add eax, 3
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], 1
mov ecx, dword [ebp - 0x68]
add ecx, 1
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
add edx, 3
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x70], 1
mov eax, dword [ebp - 0x70]
add eax, 1
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
add ecx, 3
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], 1
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
add eax, 3
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007764
mov esp, ebp
pop ebp
ret
Function at 0x1001ba60
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1001ba92
xor eax, eax
jmp 0x1001bb2a
mov dword [ebp - 8], 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001babc
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1001bb2a
mov dword [ebp - 0x10], 0
cmp dword [ebp - 8], 0
jbe 0x1001bb1b
push 0
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
xor eax, 0x78338e37
mov dword [ebp - 0x10], eax
push 1
push 0
push 0xfffffffffffffffc
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x14]
push edx
push 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 8]
sub edx, 4
mov dword [ebp - 8], edx
jmp 0x1001bac3
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x1001bcc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.1001a7e0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0xc], 0
mov dword [ebp - 8], 1
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0x1001bb30
push 0
push 0
call fcn.10007e12
add esp, 0x18
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx ecx, byte [ebp - 0xc]
test ecx, ecx
jne 0x1001bd8c
mov dword [ebp - 8], 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0x1001bb30
push 0
push 0
call fcn.10007e12
add esp, 0x18
mov dword [ebp - 0x18], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx ecx, byte [ebp - 0xc]
test ecx, ecx
jne 0x1001bd82
mov dword [ebp - 8], 1
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0x1001bb30
push 0
push 0
call fcn.10007e12
add esp, 0x18
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1001be80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100252a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
call fcn.1001b820
mov dword [ebp - 4], str.SoftwareBaiduBaiduSd
mov dword [ebp - 0xc], str.SupplyID
mov dword [ebp - 0x21c], 0x100
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001bf28
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001bf18
lea ecx, [ebp - 0x218]
push ecx
push 0x10021af4
mov edx, dword [ebp + 8]
push edx
call fcn.10005bf0
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001bf26
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1001bf36
jmp 0x1001bf2c
xor eax, eax
jmp 0x1001bf36
call fcn.1001b650
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10007764
mov esp, ebp
pop ebp
ret
Function at 0x1001c1d0
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001d5c3
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x100252a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.1001ac90
mov word [ebp - 0x224], 0
push 0x208
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.10007c40
add esp, 0xc
mov dword [ebp - 0x228], 0
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x228], eax
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x260]
call fcn.10004840
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.10004810
mov byte [ebp - 4], 1
lea eax, [ebp - 0x244]
push eax
call fcn.1001bda0
add esp, 4
push 0x10021a6c
lea ecx, [ebp - 0x260]
call fcn.10004940
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x260]
call fcn.10004920
lea edx, [ebp - 0x260]
push edx
mov ecx, dword [ebp + 8]
call fcn.100048e0
push 0
lea ecx, [ebp - 0x260]
call fcn.10004a20
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.100048c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.100048c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007764
mov esp, ebp
pop ebp
ret
Function at 0x1001ca00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x100252a8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
jne 0x1001ca21
xor al, al
jmp 0x1001ca91
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1001ca37
xor al, al
jmp 0x1001ca91
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1001ca84
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001ca70
mov byte [ebp - 1], 1
jmp 0x1001ca84
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001ca55
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10007764
mov esp, ebp
pop ebp
ret