joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009790
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1108
call fcn.10012250
mov al, byte [0x100171bc]
push esi
mov edx, ecx
push edi
mov byte [esp + 0xc], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push ecx
mov ecx, edx
stosb byte es:[edi], al
call fcn.10008a70
push 0
push 0x80
push 2
push 0
push 0
lea edx, [esp + 0x20]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100098ae
mov al, byte [0x100171bc]
mov ecx, 0x3ff
mov byte [esp + 0x110], al
xor eax, eax
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x1114]
lea ecx, [eax + 0x2c0]
lea edx, [eax + 0x2a0]
push ecx
lea ecx, [eax + 0x290]
push edx
push ecx
lea edx, [eax + 0x280]
lea ecx, [eax + 0x260]
push edx
push ecx
lea edx, [eax + 0x250]
lea ecx, [eax + 0x230]
push edx
push ecx
lea edx, [eax + 0x220]
lea ecx, [eax + 0x200]
push edx
push ecx
push eax
lea edx, [esp + 0x138]
push str._s_s_s_s_s_s_s_s_s_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x140]
mov edi, ecx
push edi
push eax
call fcn.1000fd20
add esp, 0x38
lea ecx, [esp + 8]
lea edx, [esp + 0x110]
mov dword [esp + 8], 0
push 0
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x1108
ret 4
Function at 0x10009d50
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
sub esp, 0x104
mov al, byte [0x100171bc]
push edi
mov byte [esp + 4], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 4]
push 0x104
push ecx
push str.windir
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10009e24
lea edi, [esp + 4]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
mov al, byte [esp + ecx + 0xb]
cmp al, 0x5c
je 0x10009dd7
cmp al, 0x2f
je 0x10009dd7
mov edi, 0x1001636c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.XZ414351.log
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop esi
pop ebx
mov eax, ecx
pop edi
add esp, 0x104
ret
xor eax, eax
pop edi
add esp, 0x104
ret
Function at 0x10009e30
Capabilities:
Query environment variable
Write file on windows

Disassembly:
sub esp, 0x50c
mov al, byte [0x100171bc]
push ebx
push esi
mov ebx, ecx
push edi
mov byte [esp + 0x14], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
push ecx
push str.windir
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10009f92
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x17]
cmp al, 0x5c
je 0x10009eba
cmp al, 0x2f
je 0x10009eba
mov edi, 0x1001636c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.XZ414351.log
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x100171bc]
mov ecx, ebp
and ecx, 3
mov byte [esp + 0x11c], al
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [esp + 0x10]
xor edi, edi
push ecx
mov dword [esp + 0x14], edi
call dword [sym.imp.MSVCRT.dll_time]
mov edx, dword [esp + 0x14]
add esp, 4
mov ecx, ebx
push edx
call fcn.100092b0
push eax
lea eax, [esp + 0x124]
push str._s_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x18]
push edi
push 0x8000080
push 2
push edi
push edi
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
pop ebp
cmp esi, 0xffffffff
je 0x10009f92
mov dword [esp + 0x10], edi
push edi
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + 0x120]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x50c
ret
Function at 0x1000afc0
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012cf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x28], esi
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], ebx
je 0x1000b0a7
cmp eax, 0xffffffff
je 0x1000b0a7
mov ecx, dword [ebp + 8]
push ebx
push ebx
push 0x10016590
push ebx
push str.HTTP_1.0
push ecx
push 0x10016628
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, eax
cmp edx, ebx
mov dword [esi + 0x60], edx
je 0x1000b092
cmp edx, 0xffffffff
je 0x1000b092
mov edi, str.Accept:___r_n
or ecx, 0xffffffff
xor eax, eax
push SysReAllocStringLen
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Accept:___r_n
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x1000b06b
lea edx, [ebp - 0x18]
push 0x10014260
push edx
mov dword [ebp - 0x18], str.additional_header_failed...
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 0x60]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x1000b0db
lea ecx, [ebp - 0x1c]
push 0x10014260
push ecx
mov dword [ebp - 0x1c], str.request_failed...
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x20]
push 0x10014260
push edx
mov dword [ebp - 0x20], str.request_failed...
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x24]
push 0x10014260
push eax
mov dword [ebp - 0x24], str.handle_not_opened...
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x28]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x60]
cmp eax, ebx
je 0x1000b0d5
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x60], ebx
mov eax, 0x1000b0db
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c2c0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x48]
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x410]
lea edx, [esi + 0x208]
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], edx
mov eax, 0x104
lea edx, [esp + 8]
lea ecx, [esi + 0x104]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
push edx
mov dword [esp + 0x28], ecx
push 0
lea ecx, [esi + 0x30c]
push 0
push eax
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov ecx, dword [esp + 0x20]
pop edi
and ecx, 0xffff
mov dword [esi + 0x514], ecx
pop esi
add esp, 0x3c
ret 8
Function at 0x1000c840
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000c8a7
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x14]
push 0
push ecx
push edi
push esi
push ebx
call ebp
mov eax, dword [esp + 0x14]
add esi, eax
sub edi, eax
jne 0x1000c87e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
xor eax, eax
pop ebx
ret 0xc

Function at 0x1000c970
Capabilities:
Get http content length

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push 0
lea edx, [esp + 4]
push eax
mov eax, dword [ecx + 0x60]
push edx
push 0x20000005
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [esp]
add esp, 8
ret

Function at 0x1000c9b0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012da0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push edi
push edi
push edi
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x20], esi
mov ebx, 1
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi + 0x58], eax
jne 0x1000ca0a
lea ecx, [ebp - 0x14]
push 0x10014260
push ecx
mov dword [ebp - 0x14], str.failed...
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push esi
push edi
push 3
push edx
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [esi + 0x5c], eax
jne 0x1000ca41
lea edx, [ebp - 0x18]
push 0x10014260
push edx
mov dword [ebp - 0x18], str.failed...
call sub.MSVCRT.dll__CxxThrowException
push edi
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x1000ca89
lea eax, [ebp - 0x1c]
push 0x10014260
push eax
mov dword [ebp - 0x1c], str.connect_failed...
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x58]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov eax, 0x1000ca86
mov dword [esi + 0x5c], edi
mov dword [ebp + 0x18], edi
ret
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1000cae0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [ecx + 0x60]
push ebx
push esi
xor edx, edx
push edi
cmp eax, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], edx
jne 0x1000cb28
lea eax, [ebp - 0x18]
push 0x10014260
push eax
mov dword [ebp - 0x18], str.connection_failed...
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1000cb6e
lea edx, [ebp - 0x1c]
push 0x10014260
push edx
mov dword [ebp - 0x1c], str.response_failed...
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x60]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x60], 0
mov eax, 0x1000cb6e
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000fb20
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0xc
xor edx, edx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
cmp ecx, edx
push edi
jne 0x1000fb45
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x20]
lea eax, [ecx - 3]
cmp eax, edx
mov dword [esp + 0x24], edx
jle 0x1000fc15
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
mov ebp, edx
shr ebp, 1
lea edx, [ebp*4]
lea eax, [ebp + ebp*2]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
mov edi, dword [esi]
mov ecx, edi
shr ecx, 2
and ecx, 0x3f
push ecx
call fcn.1000fce0
movsx edx, al
mov eax, edi
mov ecx, edi
shr eax, 0xc
and ecx, 3
and eax, 0xf
shl ecx, 4
or eax, ecx
mov dword [esp + 0x18], edx
push eax
call fcn.1000fce0
movsx edx, al
mov eax, edi
mov ecx, edi
shr eax, 8
and eax, 0xf
mov dword [esp + 0x18], edx
shr ecx, 0x16
shl eax, 2
and ecx, 3
or eax, ecx
push eax
call fcn.1000fce0
shr edi, 0x10
movsx edx, al
and edi, 0x3f
mov dword [esp + 0x2c], edx
push edi
call fcn.1000fce0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
movsx eax, al
shl eax, 8
mov edi, dword [esp + 0x24]
or eax, ecx
shl eax, 8
or eax, edx
add esp, 0x10
shl eax, 8
or eax, edi
add esi, 3
mov dword [ebx], eax
add ebx, 4
dec ebp
jne 0x1000fb79
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
cmp edx, ecx
jge 0x1000fcc9
sub ecx, edx
xor edi, edi
mov ebp, ecx
mov dword [esp + 0x28], edi
test ebp, ebp
jle 0x1000fc41
mov edx, ecx
lea edi, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
mov eax, edi
shr eax, 2
and eax, 0x3f
push eax
call fcn.1000fce0
mov ecx, edi
mov edx, edi
shr ecx, 0xc
and edx, 3
and ecx, 0xf
shl edx, 4
or ecx, edx
mov byte [ebx], al
push ecx
call fcn.1000fce0
add esp, 8
cmp ebp, 1
mov byte [ebx + 1], al
jle 0x1000fc94
mov eax, edi
mov ecx, edi
shr eax, 8
and eax, 0xf
shr ecx, 0x16
shl eax, 2
and ecx, 3
or eax, ecx
push eax
call fcn.1000fce0
add esp, 4
jmp 0x1000fc96
mov al, 0x3d
cmp ebp, 2
mov byte [ebx + 2], al
jle 0x1000fcaf
shr edi, 0x10
and edi, 0x3f
push edi
call fcn.1000fce0
add esp, 4
jmp 0x1000fcb1
mov al, 0x3d
mov byte [ebx + 3], al
mov eax, dword [esp + 0x24]
add ebx, 4
pop edi
pop esi
pop ebp
mov byte [ebx], 0
add eax, 4
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x24]
pop edi
pop esi
mov byte [ebx], 0
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x1000fd20
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, str.Welcome_to_the_October_2000_release_of_the_MSDN_Library
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x14]
xor esi, esi
not ecx
dec ecx
test ebx, ebx
jbe 0x1000fd59
mov edi, dword [esp + 0x10]
mov eax, esi
xor edx, edx
div ecx
mov al, byte [edx + str.Welcome_to_the_October_2000_release_of_the_MSDN_Library]
mov dl, byte [esi + edi]
xor dl, al
mov byte [esi + edi], dl
inc esi
cmp esi, ebx
jb 0x1000fd40
pop edi
pop esi
pop ebx
ret
Function at 0x100105a0
Capabilities:
Get session user name
Set file attributes

Disassembly:
sub esp, 0x204
mov al, byte [0x100171bc]
push esi
push edi
mov byte [esp + 0xc], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xd]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
mov dword [esp + 8], 0x200
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov eax, dword [esp + 0x214]
push 1
test eax, eax
jne 0x1001069e
mov esi, dword [esp + 0x214]
push 3
push 2
push 0x10000000
push 1
push str.Administrators
push 1
push esi
call fcn.100107a0
push 0
push 3
push 2
push 0x10000000
push 1
push str.Power_Users
push 1
push esi
call fcn.100107a0
add esp, 0x40
push 0
push 3
push 2
push 0x10000000
push 1
push str.Users
push 1
push esi
call fcn.100107a0
push 0
push 3
push 2
push 0x10000000
push 1
push str.Everyone
push 1
push esi
call fcn.100107a0
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x40
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10010689
push eax
push 3
push 2
push 0x10000000
lea eax, [esp + 0x1c]
push 1
push eax
push 1
push esi
call fcn.100107a0
add esp, 0x20
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
add esp, 0x204
ret
mov esi, dword [esp + 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
push 3
push 2
push 0xa0020089
push 1
push str.Administrators
push 1
push esi
call fcn.100107a0
push 0
push 3
push 3
push 0x10112
push 1
push str.Administrators
push 1
push esi
call fcn.100107a0
add esp, 0x40
push 0
push 3
push 2
push 0xa0020089
push 1
push str.Power_Users
push 1
push esi
call fcn.100107a0
push 0
push 3
push 3
push 0x10112
push 1
push str.Power_Users
push 1
push esi
call fcn.100107a0
add esp, 0x40
push 0
push 3
push 2
push 0xa0020089
push 1
push str.Users
push 1
push esi
call fcn.100107a0
push 0
push 3
push 3
push 0x10112
push 1
push str.Users
push 1
push esi
call fcn.100107a0
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x40
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10010797
push eax
push 3
push 2
push 0xa0020089
lea ecx, [esp + 0x1c]
push 1
push ecx
push 1
push esi
call fcn.100107a0
push 0
push 3
push 3
push 0x10112
lea edx, [esp + 0x3c]
push 1
push edx
push 1
push esi
call fcn.100107a0
add esp, 0x40
pop edi
pop esi
add esp, 0x204
ret

Function at 0x10011efc
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 4]
mov dword [esi], 0x10013838
push eax
call sub.MSVCRT.dll_memset
and dword [esi + 0x48], 0
and dword [esi + 0x44], 0
add esp, 0xc
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret
Function at 0x404baf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40db60]
jne 0x404bb9
repz ret
jmp fcn.004087fb

Function at 0x4060b3
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.00402986
and dword [ebp - 4], 0
cmp dword [0x40e54c], 0
mov ebx, eax
jne 0x406164
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406215
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40aa14
push edi
call esi
test eax, eax
je 0x406215
push eax
call fcn.00402914
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e54c], eax
call esi
push eax
call fcn.00402914
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e550], eax
call esi
push eax
call fcn.00402914
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e554], eax
call esi
push eax
call fcn.00402914
pop ecx
mov dword [0x40e55c], eax
test eax, eax
je 0x406164
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402914
pop ecx
mov dword [0x40e558], eax
mov eax, dword [0x40e558]
cmp eax, ebx
je 0x4061bc
cmp dword [0x40e55c], ebx
je 0x4061bc
push eax
call fcn.0040298f
push dword [0x40e55c]
mov esi, eax
call fcn.0040298f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bc
test edi, edi
je 0x4061bc
call esi
test eax, eax
je 0x4061b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b3
test byte [ebp - 0xc], 1
jne 0x4061bc
or dword [ebp + 0x10], 0x200000
jmp 0x4061f5
mov eax, dword [0x40e550]
cmp eax, ebx
je 0x4061f5
push eax
call fcn.0040298f
pop ecx
test eax, eax
je 0x4061f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f5
mov eax, dword [0x40e554]
cmp eax, ebx
je 0x4061f5
push eax
call fcn.0040298f
pop ecx
test eax, eax
je 0x4061f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e54c]
call fcn.0040298f
pop ecx
test eax, eax
je 0x406215
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406217
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406864
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406888
xor eax, eax
test eax, eax
je 0x40689b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40689b
xor ecx, ecx
jmp 0x40689e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069c1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dac], 0
push esi
jne 0x4069f8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069d2
mov dword [ecx*4 + 0x427da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4069cd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a29
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427da8]
xor eax, esi
inc ecx
dec edx
jne 0x406a0b
pop edi
not eax
pop esi
ret 0xc

Function at 0x43b654
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
mov edi, dword [esp]
add esp, 4
mov eax, eax
sub eax, eax
dec ecx
call fcn.0043b697
sub eax, 1
mov ecx, ecx
xor dword [esi], edi
mov eax, 0x54cdd43c
inc eax
and eax, ecx
inc esi
mov eax, 0x6e914f3b
cmp esi, ebx
jne fcn.0043b654
push 0xa1943a7b
pop eax
or eax, eax
inc eax
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x544c63cf
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..text
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x386a1cc8
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219