joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f840
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push 0
push 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x1000f882
push 0
push 0
push 0
push 0
push str.test
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push closesocket
push 0
push 0
push str.http:__www.microsoft.com
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
je 0x1000f882
mov eax, 1
ret
xor eax, eax
ret

Function at 0x1000f890
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x1003067b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [esp + 0x228]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x10]
mov ebx, 1
call fcn.10026e0a
lea ecx, [esp + 0x94]
mov dword [esp + 0x22c], 0
push ecx
push 0x102
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x1000f900
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], 0xffffffff
call fcn.10026d9c
xor eax, eax
jmp 0x1000f9fc
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
jne 0x1000f97d
lea eax, [esp + 0x30]
push 0x64
push eax
call sub.WS2_32.dll_gethostname
lea ecx, [esp + 0x30]
push ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x1000f945
call sub.WS2_32.dll_WSACleanup
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], 0xffffffff
call fcn.10026d9c
xor eax, eax
jmp 0x1000f9fc
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
lea edi, [esp + 0x24]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
push ecx
call sub.WS2_32.dll_inet_ntoa
push eax
lea edx, [esp + 0x10]
push 0x10043390
push edx
call fcn.10025f9e
add esp, 0xc
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x1000f9a5
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], edi
call fcn.10026d9c
xor eax, eax
jmp 0x1000f9fc
mov eax, dword [esp + 0x238]
mov word [esp + 0x10], 2
push eax
call sub.WS2_32.dll_htons
mov ecx, dword [esp + 0xc]
mov word [esp + 0x12], ax
push ecx
call sub.WS2_32.dll_inet_addr
lea edx, [esp + 0x10]
push 0x10
push edx
push esi
mov dword [esp + 0x20], eax
call sub.WS2_32.dll_connect
cmp eax, edi
jne 0x1000f9df
xor ebx, ebx
push esi
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], edi
call fcn.10026d9c
mov eax, ebx
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret 8
Function at 0x1000fa20
Capabilities:
Enumerate network shares

Disassembly:
push 0xffffffffffffffff
push 0x10030698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], ebx
call fcn.10026e0a
push 0x400
mov dword [esp + 0x60], ebx
call fcn.10019737
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x30], ebp
cmp dword [eax - 8], ebx
jne 0x1000fa7e
push ebp
mov ecx, esi
call fcn.1000fe80
mov ebx, eax
jmp 0x1000fab2
push 0x104
mov ebx, 1
call fcn.10019737
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x2000
call fcn.10019737
add esp, 4
mov esi, eax
test ebx, ebx
mov dword [esp + 0x2c], esi
jle 0x1000fbfe
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp]
mov eax, 2
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x34]
push edx
push ecx
push eax
push 1
push eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], 1
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x1000fbd8
mov ecx, 0x800
xor eax, eax
mov edi, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x28], 0x2000
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x68]
push esi
push ecx
push edx
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x1000fbce
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x1000fb19
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
lea ebp, [esi + 0x20]
lea ebx, [eax + ecx*4]
push 0x104
call fcn.10019737
mov edx, eax
or ecx, 0xffffffff
mov dword [ebx], edx
mov edi, dword [esi + 0x14]
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebx, 4
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, ebp
inc ecx
inc eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x64]
add ebp, 0x20
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x1000fb6e
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
jmp 0x1000fb19
mov ecx, dword [esp + 0x18]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov edx, dword [ebp]
push edx
call fcn.1001964e
mov eax, dword [esp + 0x24]
add esp, 4
add ebp, 4
dec eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jne 0x1000fad5
mov ebp, dword [esp + 0x30]
push ebp
call fcn.1001964e
push esi
call fcn.1001964e
add esp, 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], 0xffffffff
call fcn.10026d9c
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 8
Function at 0x1000fe80
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
push ebx
push 2
push 1
push 2
mov dword [esp + 0x1c], ebx
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x1000fea8
xor eax, eax
pop ebx
add esp, 0x18
ret 4
push ebp
push esi
push edi
push 0x2000
mov dword [esp + 0x1c], 0x2000
call fcn.10019737
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov ecx, 0x800
xor eax, eax
mov edi, esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x18], 0x2000
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x1000ff82
test eax, eax
jne 0x1000ff82
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x1000fec6
mov ecx, dword [esp + 0x2c]
lea ebp, [esi + 0x20]
lea ebx, [ecx + ebx*4]
push 0x104
call fcn.10019737
mov edx, eax
add esp, 4
mov dword [ebx], edx
mov edi, dword [esi + 0x14]
test edi, edi
jne 0x1000ff36
mov edi, dword [esi + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebx, 4
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov esi, ebp
inc ecx
inc eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
add ebp, 0x20
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x1000ff1b
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
jmp 0x1000fec6
mov ecx, dword [esp + 0x20]
push ecx
call sub.MPR.dll_WNetCloseEnum
push esi
call fcn.1001964e
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x100101f0
Capabilities:
Connect network resource

Disassembly:
push 0xffffffffffffffff
push 0x10030700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
push edi
push ebp
lea ecx, [esp + 0x14]
call fcn.10026e0a
mov esi, dword [esp + 0x48]
xor edi, edi
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], edi
call fcn.10026e0a
lea eax, [esp + 0x48]
push 1
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 1
call fcn.10025b24
mov eax, dword [eax]
push 0x1004347c
push eax
call fcn.10019c73
add esp, 8
lea ecx, [esp + 0x48]
test eax, eax
setne bl
call fcn.10026d9c
test bl, bl
je 0x10010278
push esi
lea ecx, [esp + 0x48]
push 0x10043478
push ecx
call fcn.10025f9e
add esp, 0xc
lea edx, [esp + 0x48]
push 2
push edx
lea ecx, [esp + 0x18]
call fcn.10025ba0
mov eax, dword [eax]
push 0x10043444
push eax
call fcn.10019c73
add esp, 8
lea ecx, [esp + 0x48]
test eax, eax
setne bl
call fcn.10026d9c
test bl, bl
je 0x100102bd
push ebp
lea eax, [esp + 0x14]
push str._s
push eax
call fcn.10025f9e
add esp, 0xc
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
push edi
push edi
lea eax, [esp + 0x1c]
push edi
push eax
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call sub.MPR.dll_WNetAddConnection2A
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x34]
jne 0x10010337
call fcn.10026d9c
lea ecx, [esp]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10026d9c
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
call fcn.10026d9c
lea ecx, [esp]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10026d9c
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x10010af0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x10030768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.10017c5f
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.10026e0a
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.10025b24
mov eax, dword [eax]
push 0x10043474
push eax
call fcn.10019c73
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.10026d9c
test bl, bl
je 0x10010b70
push 0x10043474
lea ecx, [esp + 0xc]
call fcn.10027052
push 0x100434b8
lea ecx, [esp + 0xc]
call fcn.10027052
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.10017d22
test eax, eax
je 0x10010c34
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.10017f42
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x10010bf0
lea ecx, [esp + 0x18]
call fcn.10017f09
test eax, eax
jne 0x10010bf0
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.10018011
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.10010af0
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x10010c25
lea ecx, [esp + 0x18]
call fcn.10017f09
test eax, eax
jne 0x10010c2a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x10010c2a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.10018011
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.10026d9c
test edi, edi
jne 0x10010ba0
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.10017cd8
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.10026d9c
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.10017c9c
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x10010c70
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [esp + 0x18], ebx
call edi
mov ecx, dword [esp + 0xc]
push ecx
call fcn.10026add
add esp, 4
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
push ebx
call edi
mov edi, eax
cmp edi, ebx
je 0x10010d17
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x10010cc5
test dword [esi + 0xc], 0x100000
jne 0x10010cdd
mov eax, dword [esi + 4]
push eax
jmp 0x10010cd7
cmp ebp, 1
jne 0x10010cdd
test dword [esi + 0xc], 0x100000
je 0x10010cdd
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0
push edi
call ebx
push esi
call fcn.10026b06
mov eax, dword [esp + 0x14]
push eax
call fcn.10026add
add esp, 8
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
push edi
call ebx
test eax, eax
jne 0x10010cb2
mov ebx, 1
pop ebp
test esi, esi
je 0x10010d24
push esi
call fcn.10026b06
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret 4
Function at 0x10010d30
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10030796
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x1004415c]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.10026ed9
push str..
lea ecx, [esp + 0x10]
call fcn.10027052
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x10010dd3
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.10026d9c
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.10026d9c
xor eax, eax
jmp 0x10010f18
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x1003bd40
push edx
call fcn.10019c73
add esp, 8
test eax, eax
je 0x10010ec9
lea eax, [esp + 0x48]
push 0x100434d4
push eax
call fcn.10019c73
add esp, 8
test eax, eax
je 0x10010ec9
test ebp, ebp
jne 0x10010e35
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.100191b9
add esp, 8
test eax, eax
je 0x10010ec9
push esi
lea ecx, [esp + 0x14]
call fcn.10026ed9
push 0x5c
lea ecx, [esp + 0x14]
call fcn.10027079
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.10027052
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x10010e75
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x10010e97
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.10010d30
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x10010ec9
test edi, edi
je 0x10010ebe
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.100191b9
add esp, 8
test eax, eax
jne 0x10010ebe
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.10010f40
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10010de3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.10026d9c
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.10026d9c
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x10010f40
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100307ab
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.10019ba0
mov eax, dword [0x1004415c]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.10026ed9
push 0x5c
lea ecx, [esp + 8]
call fcn.10027079
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.10027052
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10010fe6
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.10026d9c
xor eax, eax
jmp 0x10011063
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x10011041
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x10011033
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x1001100d
jmp 0x10011041
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.10026d9c
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8
Function at 0x10011080
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x14
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebp
je 0x100111b0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
push eax
push 0x40000
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x1001119f
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push ecx
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x1001119f
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1001119a
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push 0x20019
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x1001119f
push eax
push eax
lea edx, [esp + 0x30]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
push ebp
lea eax, [esp + 0x44]
push edx
push eax
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1001119f
push 0x105
call fcn.10026add
mov esi, eax
mov eax, dword [esp + 0x30]
add esp, 4
xor edi, edi
test eax, eax
jbe 0x10011191
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, dword [esp + 0x10]
push 0x105
push esi
push edi
push edx
call ebx
test eax, eax
jne 0x10011181
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push 1
push eax
push esi
push ecx
mov ecx, dword [esp + 0x24]
call fcn.10011080
jmp 0x10011188
cmp eax, 0x103
je 0x10011191
mov eax, dword [esp + 0x2c]
inc edi
cmp edi, eax
jb 0x10011157
push esi
call fcn.10026b06
add esp, 4
mov ebp, 1
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebx
je 0x100111b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop esi
pop ebp
add esp, 0x14
ret 0x10

Function at 0x10011690
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
xor esi, esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x100116dc
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call edi
test eax, eax
jne 0x100116dc
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0x18], 2
jne 0x100116ef
cmp dword [esp + 0xc], 5
jb 0x100116ef
mov esi, 1
mov eax, esi
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x10011870
Capabilities:
Get disk information

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 3
call fcn.10019737
mov ebp, eax
add esp, 4
mov ecx, ebp
xor eax, eax
mov dword [esp + 0x10], 0
mov bl, 0x43
mov word [ecx], ax
mov byte [ecx + 2], al
mov eax, ebp
xor edx, edx
mov edi, 0x1004347c
or ecx, 0xffffffff
mov word [eax], dx
push ebp
mov byte [eax + 2], dl
xor eax, eax
mov byte [ebp], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x100118f6
inc bl
cmp bl, 0x5a
jl 0x10011895
mov esi, dword [esp + 0x10]
push ebp
call fcn.1001964e
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x18]
mov eax, ebp
push 0
push 0
mov dx, word [eax]
push 0
push 0
push 0
mov word [ecx], dx
mov al, byte [eax + 2]
push 0
push 0
push ebp
mov byte [ecx + 2], al
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push ebp
mov esi, eax
call fcn.1001964e
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x10011940
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x100307cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push esi
mov esi, dword [esp + 0x144]
push esi
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.10026e0a
mov eax, dword [esp + 0x148]
test eax, eax
jne 0x10011a12
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x100119aa
lea ecx, [esp + 4]
mov dword [esp + 0x13c], 0xffffffff
call fcn.10026d9c
xor eax, eax
jmp 0x10011a62
push esi
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x100119c5
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x10011a16
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10011a16
mov ecx, dword [esp + 4]
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.100191b9
add esp, 8
test eax, eax
je 0x10011a0e
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100119e7
jmp 0x10011a16
mov eax, dword [esp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
test eax, eax
jne 0x10011a36
lea ecx, [esp + 4]
mov dword [esp + 0x13c], 0xffffffff
call fcn.10026d9c
xor eax, eax
jmp 0x10011a62
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x13c], 0xffffffff
call fcn.10026d9c
mov eax, esi
mov ecx, dword [esp + 0x134]
pop esi
mov dword fs:[0], ecx
add esp, 0x13c
ret 8