joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4780a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 2
pop eax
lea ecx, [ebp - 0x10]
mov word [edi], ax
call fcn.00405c18
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0047830b
push dword [ebp - 0x10]
call dword [sym.imp.WSOCK32.dll_inet_addr]
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00405a64
cmp ebx, 0xffffffff
jne 0x4780f7
mov ecx, dword [ebp + 0xc]
mov edx, str.255.255.255.255
call 0x45a36d
test al, al
je 0x4780f7
push 0
push 1
jmp 0x47811a
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ebx
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja 0x478116
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [edi + 2], ax
mov al, 1
jmp 0x478128
push 0
push 2
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call 0x456aa3
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x478131
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
and dword [ebx], 0
mov edi, ecx
mov dword [ebx + 4], eax
mov ecx, 0x3e8
mov eax, esi
inc dword [ebx]
cdq
idiv ecx
mov dword [ebp - 8], eax
imul eax, eax, 0x3e8
sub esi, eax
imul eax, esi, 0x3e8
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
cmp byte [ebp + 0x14], al
je 0x47817a
push ebx
push eax
jmp 0x47817c
push eax
push ebx
push eax
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
jne 0x478196
cmp byte [ebp + 0x14], al
je 0x4781c2
push eax
push 0x274c
jmp 0x4781b6
jle 0x4781ad
push ebx
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
jne 0x4781c2
push 0xfffffffffffffffe
pop esi
push eax
push esi
jmp 0x4781b6
push 0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call 0x456aa3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401afd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 0x10], eax
push ebx
push edi
mov edi, edx
test eax, eax
je 0x401ba8
xor ebx, ebx
cmp word [eax], bx
je 0x401ba8
test edi, edi
je 0x401ba8
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
je 0x401ba8
push esi
push 4
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x401b9b
push esi
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401b9b
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
push eax
push str.StringFileInfo080404b0FileVersion
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401b9b
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x401b99
sub edi, ecx
movzx eax, word [ecx]
mov word [ecx + edi], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401b8a
mov bl, 1
lea ecx, [ebp - 0x14]
call fcn.00402fa4
mov al, bl
pop esi
jmp 0x401baa
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x401d11
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 0xc], edi
call fcn.00406090
cmp eax, 1
jle 0x401e3a
push 0
push 0x8000000
push 3
push 0
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401e46
test ebx, ebx
je 0x401e46
push 4
push 0x1000
push 0xf4240
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x401e21
and dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jle 0x401e21
fld qword [0x4304c8]
mov esi, edi
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fmul qword [ebp - 0x30]
call fcn.004268a0
xor esi, esi
lea ecx, [ebp - 0x20]
push esi
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x401e21
fld qword [ebp - 0x28]
fld qword [0x4304c8]
fmul st(1), st(0)
jmp 0x401df5
fxch st(1)
fcomi st(1)
jbe 0x401dca
fstp st(0)
jmp 0x401dcc
fstp st(1)
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.004268a0
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401e32
cmp dword [ebp - 0x10], esi
jbe 0x401e32
fld qword [ebp - 0x18]
fld qword [0x4304c8]
fsub st(1), st(0)
fxch st(1)
fst qword [ebp - 0x18]
fldz
fxch st(1)
fcomi st(1)
fstp st(1)
ja 0x401dc0
fstp st(0)
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
inc eax
add edi, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
cmp eax, dword [ebp + 8]
jl 0x401d8e
fstp st(0)
lea ecx, [ebp - 4]
call fcn.00402fa4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401e46
fld qword [0x4304c8]
jmp 0x401e06
mov dl, byte [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.0040a4f0
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401fe2
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, edx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x420], edi
test edi, edi
je 0x40218b
test esi, esi
je 0x40218b
cmp dword [ebp + 0x18], 0
je 0x40218b
test ebx, ebx
je 0x40202d
push esi
lea ecx, [ebx + 0x24]
call fcn.00402fd1
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00411010
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x208
push 0
push eax
call fcn.00411010
lea edx, [ebp - 0x214]
add esp, 0xc
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x402064
mov edx, dword [ebp + 0x18]
push esi
push ecx
lea ecx, [ebp - 0x214]
call fcn.00401a09
pop ecx
pop ecx
xor edx, edx
mov ecx, edx
movzx eax, word [ebp + ecx - 0x214]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x41e], ax
test ax, ax
jne 0x402089
lea edi, [ebp - 0x214]
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, dx
jne 0x4020aa
mov eax, dword [0x42fe90]
mov dword [edi], eax
lea edi, [ebp - 0x214]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, dx
jne 0x4020c6
push 5
pop ecx
lea eax, [ebp - 0x41c]
mov esi, str.kugou.dll
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [ebp + 8], 0
jne 0x402133
mov edx, dword [ebp + 0x18]
push str.kugou.dll
push ecx
mov ecx, dword [ebp - 0x420]
call fcn.00401a09
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x420]
xor edi, edi
push edi
push ebx
call fcn.00401e4b
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x402187
push dword [ebp + 0xc]
lea edx, [ebp - 0x214]
push edi
push ebx
call fcn.00401e4b
add esp, 0xc
jmp 0x402185
push dword [ebp + 0xc]
lea edx, [ebp - 0x214]
push dword [ebp + 8]
push ebx
call fcn.00401e4b
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x402187
call fcn.00401a83
test al, al
je 0x402187
call fcn.00413e3f
mov edx, dword [ebp + 0x18]
push str.kugou.dll
push ecx
mov ecx, dword [ebp - 0x420]
call fcn.00401a09
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x420]
push dword [ebp + 8]
push ebx
call fcn.00401e4b
add esp, 0x14
mov esi, eax
mov eax, esi
jmp 0x40218d
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f104
leave
ret
Function at 0x40219c
Capabilities:
Create directory
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x208
push eax
mov bl, al
lea eax, [ebp - 0x20c]
push eax
call fcn.00411010
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 1
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor eax, eax
xor esi, esi
push eax
push eax
inc esi
lea eax, [ebp - 0x238]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x224], 0xc
lea eax, [ebp - 0x238]
mov dword [ebp - 0x21c], esi
sub edi, 2
mov dword [ebp - 0x220], eax
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x40222a
mov esi, 0x42fe94
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp - 0x20c]
sub edi, 2
xor edx, edx
mov ax, word [edi + 2]
add edi, 2
cmp ax, dx
jne 0x40225f
push 8
pop ecx
push edx
push 0x8000000
push 4
lea eax, [ebp - 0x224]
mov esi, str._startup_record
push eax
push 7
push 0xc0000000
lea eax, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
je 0x40236a
test eax, eax
je 0x40236a
xor ecx, ecx
push ecx
push 0xc
push ecx
push 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40235a
test edi, edi
je 0x40235a
push 0xc
xor eax, eax
push eax
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x402351
mov ecx, dword [esi + 4]
mov dword [ebp - 0x210], ecx
test ecx, ecx
je 0x402331
fild dword [esi]
fstp dword [ebp - 0x214]
fld dword [ebp - 0x214]
fild dword [ebp - 0x210]
fstp dword [ebp - 0x210]
fdiv dword [ebp - 0x210]
fstp dword [ebp - 0x210]
fld dword [0x4304b4]
fld dword [ebp - 0x210]
fcompi st(1)
fstp st(0)
ja 0x402331
cmp byte [esi + 9], bl
je 0x402339
lea eax, [ecx + 1]
mov bl, 1
mov dword [esi + 4], eax
push 0xc
xor ecx, ecx
mov byte [esi + 8], bl
push esi
mov byte [esi + 9], cl
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40235c
xor ecx, ecx
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402372
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f104
leave
ret
Function at 0x4067b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42714d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x434040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x80
push 0
push esi
call fcn.00411010
xor eax, eax
add esp, 0xc
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], al
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 7
mov word [esi + 0x34], ax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], 7
mov word [esi + 0x4c], ax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], 7
mov word [esi + 0x64], ax
push dword [ebp + 8]
lea ecx, [esi + 0x80]
mov dword [ebp - 4], eax
call fcn.00409080
mov dword [esi + 0x7c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov ebx, ecx
sub ebx, dword [esi]
mov dword [ebp - 4], ecx
cmp ebx, edx
jb 0x409d66
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
sub eax, dword [esi]
push edi
mov edi, edx
sub edi, ebx
cmp edx, eax
jbe 0x409d7f
push ecx
push edx
mov ecx, esi
call fcn.0040a6f0
jmp 0x409d93
push edi
push 0
push ecx
call fcn.00411010
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, edi
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
cmp eax, ebx
jbe 0x409dd4
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edi
lea eax, [ecx + ebx]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409dcb
cmp dword [ebp + 8], edi
jne 0x409dcb
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040a620
int3
Function at 0x40a170
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
test dl, dl
je 0x40a2db
mov ebx, 0x64
movzx eax, dl
push 9
cmp dl, bl
push 0
cmovbe ebx, eax
push ecx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x40a2e4
mov eax, 0x5a4d
mov dword [ebp - 0x18], 0x430214
mov dword [ebp - 0x14], esi
cmp word [esi], ax
jne 0x40a2e4
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x40a2e4
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x40a2e4
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40a2e4
xor edi, edi
xor ebx, ebx
mov ecx, dword [esi + 0x3c]
add ecx, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
movzx edx, word [ecx + 0x14]
movzx eax, word [ecx + 6]
add edx, ecx
cmp edi, eax
jae 0x40a2d4
add ebx, 0x18
add ebx, edx
je 0x40a2d4
mov edx, dword [ebx + 0x10]
cmp dword [ebx + 8], edx
cmovb edx, dword [ebx + 8]
test edx, edx
je 0x40a2c8
mov eax, dword [ebp - 0xc]
movzx ecx, al
mov eax, 0x51eb851f
imul ecx, edx
mul ecx
mov eax, 1
mov edi, edx
shr edi, 5
cmp edi, 1
cmovb edi, eax
test edi, edi
je 0x40a2c5
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40a25d
xor esi, esi
jmp 0x40a25f
add esi, eax
push esi
lea ecx, [ebp - 0x18]
call fcn.0040d2c0
cmp ebx, eax
jne 0x40a2e4
dec edi
lea ecx, [ebp - 0x18]
add edi, esi
push edi
call fcn.0040d2c0
cmp ebx, eax
jne 0x40a2e4
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x38]
mov ecx, 0x1000
test eax, eax
cmove eax, ecx
mov dword [ebp - 0x38], eax
cmp esi, edi
jae 0x40a2c0
mov al, byte [esi]
add esi, dword [ebp - 0x38]
cmp esi, edi
jb 0x40a2b7
mov al, byte [edi]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
inc edi
add ebx, 0x28
jmp 0x40a1f4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a2f0
Capabilities:
Get system information on windows
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427364
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x434040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x435b64], 0
jne 0x40a360
push 0x28
call fcn.0040f117
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00405dc0
mov edx, eax
mov edi, 0x435b64
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x40a360
test edx, edx
je 0x40a360
push 0x28
push edx
call fcn.0040f14c
add esp, 8
mov eax, dword [0x435b64]
cmp dword [eax], 1
jle 0x40a422
push 0
push 0x8000000
push 3
push 0
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a3b3
test esi, esi
je 0x40a3b3
push 4
push 0x1000
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x40a3c7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push 0
push eax
push 0x100000
push edi
push esi
call ebx
test eax, eax
je 0x40a3f9
cmp dword [ebp - 0x10], 0
jbe 0x40a3f9
push 0
lea eax, [ebp - 0x10]
push eax
push 0x100000
push edi
push esi
call ebx
test eax, eax
jne 0x40a3e0
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40a3b3
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40a3b3
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + edi], 0x4550
jne 0x40a3b3
mov eax, 0xe0
cmp word [ecx + edi + 0x14], ax
jne 0x40a3b3
mov eax, 0x10b
cmp word [ecx + edi + 0x18], ax
jne 0x40a3b3
or esi, 0xffffffff
cmp dword [ecx + edi + 0x50], 0xffffffff
cmovb esi, dword [ecx + edi + 0x50]
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x30]
lea edx, [esi - 1]
test eax, eax
mov ecx, 0x1000
cmove eax, ecx
add edx, edi
mov dword [ebp - 0x30], eax
mov ecx, edi
cmp edi, edx
jae 0x40a4c9
mov al, byte [ecx]
add ecx, dword [ebp - 0x30]
cmp ecx, edx
jb 0x40a4c0
mov al, byte [edx]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a800
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x40a816
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40a82e
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push eax
call fcn.0040f15a
push dword [ebp - 4]
mov edi, eax
push 0
push edi
call fcn.00411010
add esp, 0x10
cmp dword [esi + 0x14], 7
jbe 0x40a84d
mov esi, dword [esi]
push edi
push dword [ebp - 4]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40a898
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
push eax
push 0x430190
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40a898
mov edx, dword [ebp - 8]
test edx, edx
je 0x40a898
movzx eax, word [edx + 0xa]
lea ecx, [eax + eax*4]
movzx eax, word [edx + 8]
lea eax, [eax + ecx*2]
movzx ecx, word [edx + 0xe]
imul ebx, eax, 0x64
add ebx, ecx
push edi
call fcn.0040f112
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b610
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov edi, edi
push 0x228
lea eax, [esi + 0x10]
push 0
push eax
call fcn.00411010
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
mov eax, dword [esi + 4]
push edi
push eax
jne 0x40b64c
mov byte [esi + 8], 1
call ebx
jmp 0x40b652
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x40b66e
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x40b620
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40c360
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42752d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x434040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
cmp byte [edi], 0
jne 0x40c449
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x4302ec
call esi
push str.crypt32.dll
mov dword [edi + 4], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x40c434
push str.CryptCATAdminCalcHashFromFileHandle
push eax
call esi
push str.CryptCATAdminAcquireContext
push dword [edi + 4]
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push dword [edi + 4]
mov dword [edi + 0x10], eax
call esi
push str.CryptCATCatalogInfoFromContext
push dword [edi + 4]
mov dword [edi + 0x14], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push dword [edi + 4]
mov dword [edi + 0x18], eax
call esi
push str.CryptCATAdminReleaseContext
push dword [edi + 4]
mov dword [edi + 0x1c], eax
call esi
push str.WTHelperProvDataFromStateData
push dword [edi + 4]
mov dword [edi + 0x20], eax
call esi
push str.WTHelperGetProvSignerFromChain
push dword [edi + 4]
mov dword [edi + 0x24], eax
call esi
push str.WinVerifyTrust
push dword [edi + 4]
mov dword [edi + 0x28], eax
call esi
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x40c446
push str.CertNameToStrW
push eax
call esi
mov dword [edi + 0x30], eax
mov byte [edi], 1
cmp dword [edi + 0xc], 0
je 0x40c4bf
cmp dword [edi + 0x10], 0
je 0x40c4bf
cmp dword [edi + 0x14], 0
je 0x40c4bf
cmp dword [edi + 0x18], 0
je 0x40c4bf
cmp dword [edi + 0x1c], 0
je 0x40c4bf
cmp dword [edi + 0x20], 0
je 0x40c4bf
cmp dword [edi + 0x2c], 0
je 0x40c4bf
cmp dword [edi + 0x24], 0
je 0x40c4bf
cmp dword [edi + 0x28], 0
je 0x40c4bf
cmp dword [edi + 0x30], 0
je 0x40c4bf
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00409080
mov ebx, dword [ebp + 8]
mov ecx, edi
push ebx
call fcn.0040c970
mov esi, eax
cmp esi, 1
jne 0x40c4c1
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00409080
push ebx
mov ecx, edi
call fcn.0040cbb0
mov esi, eax
jmp 0x40c4c1
xor esi, esi
mov ecx, dword [ebp + 0x20]
cmp ecx, 7
jbe 0x40c4f7
mov edx, dword [ebp + 0xc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c4ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c50d
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
call fcn.00417f31
int3