joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405302
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a0ca0], 0x44
push eax
xor eax, eax
push 0x7a0ca0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40533d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4053e3
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405699
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405417
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2728], eax
jmp 0x4055b0
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405435
test eax, eax
je 0x40555b
test byte [ebp + 0xc], 2
je 0x40555b
mov esi, 0x79fca0
push edi
push esi
call fcn.00405acd
test ebx, ebx
je 0x405452
push str..
push esi
call fcn.00405af0
jmp 0x405458
push edi
call fcn.004055fd
cmp byte [edi], 0
jne 0x405466
cmp byte [0x79fca0], 0x5c
jne 0x405471
push 0x409010
push edi
call fcn.00405af0
push edi
call fcn.00405ae3
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405551
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004055e1
cmp byte [eax], 0
je 0x4054b7
cmp byte [ebp - 0x18], 0
je 0x4054b7
lea esi, [ebp - 0x18]
mov al, byte [esi]
cmp al, 0x2e
jne 0x4054d2
cmp byte [esi + 1], 0
je 0x405530
cmp al, al
jne 0x4054d2
cmp byte [esi + 1], al
jne 0x4054d2
cmp byte [esi + 2], 0
je 0x405530
push esi
push ebx
call fcn.00405acd
test byte [ebp - 0x148], 0x10
je 0x4054f7
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405530
push dword [ebp + 0xc]
push edi
call fcn.004053e3
jmp 0x405530
push edi
call fcn.00405783
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405528
test byte [ebp + 0xc], 4
je 0x405520
push edi
push 0xfffffffffffffff1
call fcn.00404e36
push 0
push edi
call fcn.0040581a
jmp 0x405530
inc dword [0x7a2728]
jmp 0x405530
push edi
push 0xfffffffffffffff2
call fcn.00404e36
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405495
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40555b
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4055b0
cmp dword [ebp - 8], esi
jne 0x405570
inc dword [0x7a2728]
jmp 0x4055b0
push edi
call fcn.00405df2
test eax, eax
je 0x4055b0
push edi
call fcn.004055b6
push edi
call fcn.00405783
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4055a8
test byte [ebp + 0xc], 4
je 0x405568
push edi
push 0xfffffffffffffff1
call fcn.00404e36
push esi
push edi
call fcn.0040581a
jmp 0x4055b0
push edi
push 0xffffffffffffffe5
call fcn.00404e36
pop edi
pop esi
leave
ret 8
Function at 0x405699
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a00a0
push esi
call fcn.00405acd
push esi
call fcn.0040564a
mov edi, eax
test edi, edi
jne 0x4056ba
xor eax, eax
jmp 0x40570c
push edi
call fcn.00405d59
test byte [0x7a26b8], 0x80
je 0x4056d3
mov al, byte [edi]
test al, al
je 0x4056b6
cmp al, 0x5c
je 0x4056b6
sub edi, esi
push esi
call fcn.00405ae3
cmp eax, edi
push esi
jle 0x4056f6
call fcn.00405df2
test eax, eax
je 0x4056ee
test byte [eax], 0x10
je 0x4056b6
push esi
call fcn.004055fd
jmp 0x4056d5
call fcn.004055b6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405783
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40579f
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4057a2
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4057d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405816
mov eax, edi
dec edi
test eax, eax
jne 0x4057dc
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405810
Function at 0x40581a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405e19
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40583e
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405977
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7a0e28], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7a0e28
je 0x405882
push 1
push 0
push esi
call fcn.004057a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40597d
cmp eax, edi
jg 0x40597d
mov esi, 0x7a08a0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40597d
cmp eax, edi
jg 0x40597d
push esi
push ebp
push str._s_s_r_n
push 0x7a04a0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a26b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b01
push 4
push 0xc0000000
push esi
call fcn.004057a2
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405977
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405970
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405970
cmp edi, dword [esp + 0x18]
jne 0x405970
push str._Rename__r_n
push esi
call fcn.00405711
test eax, eax
jne 0x405984
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405acd
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7a04a0
push eax
call fcn.0040575d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7a2730]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.00405711
test eax, eax
je 0x40593b
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4059ab
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4059a0
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40593d
Function at 0x4059b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405a24
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405a13
cmp dword [ebp + 0x14], 1
je 0x405a15
cmp dword [ebp + 0x14], 2
je 0x405a15
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405e8f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x7a122c], esi
push edi
jne 0x405ec9
mov ecx, 0x7a1228
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405ea5
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x7a1628
jl 0x405ea0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405efe
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1228]
xor eax, esi
inc ecx
dec edx
jne 0x405ee1
pop edi
pop esi
not eax
ret 0xc
Function at 0x10011fd
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x104db7c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
push ebx
push esi
mov esi, dword [eax + 4]
mov eax, dword [eax]
shr eax, 1
push edi
and eax, 0xff
lea edi, [eax*8]
sub edi, eax
and esi, 0xfffffff
mov dword [ebp - 0xc4], ecx
add esi, 0x1000000
lea edi, [edi*4 + 0x104e328]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [edi + 4]
push eax
mov dword [ebp - 0xc0], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
add dword [edi], 0xffffffff
mov dword [ebp - 0xa8], 0
jne 0x1001be3
xor edi, edi
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
cmp dword [ebp - 0xa0], edi
mov dword [ebp - 0x68], edi
jbe 0x1001b8b
mov edx, dword [ebp - 0xa4]
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x10021a1
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x10021b4
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10021b0
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1013053
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x104d028]
je 0x1013079
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x1013067
cmp esi, 0x17
jae 0x10131d3
push 3
call fcn.01017a35
cmp eax, 1
pop ecx
je 0x101319d
push 3
call fcn.01017a35
test eax, eax
pop ecx
jne 0x10130ac
cmp dword [0x104d01c], 1
je 0x101319d
cmp edi, 0xfc
je 0x10131d3
push 0x10088ec
mov edi, 0x314
push edi
mov esi, 0x104e470
push esi
call fcn.010179cd
add esp, 0xc
test eax, eax
je 0x10130e2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01017153
add esp, 0x14
mov byte [0x104e58d], bl
push 0x104
mov ebx, 0x104e489
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1013125
push 0x10088d4
push 0x2fb
push ebx
call fcn.010179cd
add esp, 0xc
test eax, eax
je 0x1013125
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.01017153
add esp, 0x14
push ebx
push edi
push esi
call fcn.01017959
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x1013143
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01017153
add esp, 0x14
push 0x10088d0
push edi
push esi
call fcn.01017959
add esp, 0xc
test eax, eax
je 0x1013163
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01017153
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x104d02c]
push edi
push esi
call fcn.01017959
add esp, 0xc
test eax, eax
je 0x1013188
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01017153
add esp, 0x14
push 0x12010
push 0x10088a8
push esi
call fcn.010177b9
add esp, 0xc
jmp 0x10131d3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x10131d3
cmp edi, 0xffffffff
je 0x10131d3
mov edx, dword [esi*8 + 0x104d02c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10131bc
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10151f3
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1008918
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1015245
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1008964
push edi
call esi
push 0x1008958
push edi
mov dword [0x104e894], eax
call esi
push 0x100894c
push edi
mov dword [0x104e898], eax
call esi
push 0x1008944
push edi
mov dword [0x104e89c], eax
call esi
mov dword [0x104e8a0], eax
cmp dword [0x104e894], ebx
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
je 0x101526b
cmp dword [0x104e898], ebx
je 0x101526b
cmp dword [0x104e89c], ebx
je 0x101526b
cmp dword [0x104e8a0], ebx
jne 0x101528f
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x104e898], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x104e894], 0x1013d6b
mov dword [0x104e89c], esi
mov dword [0x104e8a0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x104d188], eax
je 0x1015302
push dword [0x104e898]
push eax
call esi
test eax, eax
je 0x1015302
call fcn.01012fb4
push dword [0x104e894]
call fcn.01013c37
push dword [0x104e898]
mov dword [0x104e894], eax
call fcn.01013c37
push dword [0x104e89c]
mov dword [0x104e898], eax
call fcn.01013c37
push dword [0x104e8a0]
mov dword [0x104e89c], eax
call fcn.01013c37
add esp, 0x10
mov dword [0x104e8a0], eax
call fcn.01015552
test eax, eax
jne 0x1015308
call fcn.01013d9e
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x10150a8
push dword [0x104e894]
call fcn.01013d05
pop ecx
call eax
mov dword [0x104d190], eax
cmp eax, 0xffffffff
je 0x10152fd
push 0x214
push 1
call fcn.01018d36
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x10152fd
push esi
push dword [0x104d190]
push dword [0x104e89c]
call fcn.01013d05
pop ecx
call eax
test eax, eax
jne 0x101535b
push esi
call fcn.01017a80
pop ecx
jmp 0x10152fd
push ebx
push esi
call fcn.01013ddb
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1015304
Function at 0x10177b9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01013cfc
xor ebx, ebx
cmp dword [0x104ea20], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1017890
push 0x1008a4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x10177fb
xor eax, eax
jmp 0x1017954
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1008a40
push edi
call esi
cmp eax, ebx
je 0x10177f4
push eax
call fcn.01013c37
mov dword [esp], 0x1008a30
push edi
mov dword [0x104ea20], eax
call esi
push eax
call fcn.01013c37
mov dword [esp], 0x1008a1c
push edi
mov dword [0x104ea24], eax
call esi
push eax
call fcn.01013c37
mov dword [0x104ea28], eax
lea eax, [ebp - 8]
push eax
call fcn.01012cd3
test eax, eax
pop ecx
pop ecx
je 0x101785e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01017153
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1017890
push 0x1008a00
push edi
call esi
push eax
call fcn.01013c37
cmp eax, ebx
pop ecx
mov dword [0x104ea30], eax
je 0x1017890
push 0x10089e8
push edi
call esi
push eax
call fcn.01013c37
pop ecx
mov dword [0x104ea2c], eax
mov eax, dword [0x104ea2c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1017909
cmp dword [0x104ea30], esi
je 0x1017909
push eax
call fcn.01013d05
pop ecx
call eax
cmp eax, ebx
je 0x10178d6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x104ea30]
call fcn.01013d05
pop ecx
call eax
test eax, eax
je 0x10178d6
test byte [ebp - 0x18], 1
jne 0x1017909
lea eax, [ebp - 0xc]
push eax
call fcn.01012d75
test eax, eax
pop ecx
je 0x10178f1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01017153
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1017900
or dword [ebp + 0x10], 0x200000
jmp 0x101793a
or dword [ebp + 0x10], 0x40000
jmp 0x101793a
mov eax, dword [0x104ea24]
cmp eax, esi
je 0x101793a
push eax
call fcn.01013d05
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x101793a
mov eax, dword [0x104ea28]
cmp eax, esi
je 0x101793a
push dword [ebp - 4]
push eax
call fcn.01013d05
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x104ea20]
call fcn.01013d05
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101b06f
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x104db7c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.01012cd3
test eax, eax
pop ecx
je 0x101b0a4
push edi
push edi
push edi
push edi
push edi
call fcn.01017153
add esp, 0x14
push 4
pop eax
call fcn.0101b2c9
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x101b1b2
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x101b12b
push 0x10089cc
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x101b12b
push 0x1009194
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x101b12b
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x101b12b
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x101b12b
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.010134a6
add esp, 0xc
test eax, eax
jl 0x101b1b2
not edi
and dword [ebp - 8], edi
je 0x101b15d
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.010134a6
add esp, 0xc
test eax, eax
jl 0x101b1b2
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x101b168
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x101b17c
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x101b1b2
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x101b1b2
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x101b1b2
xor eax, eax
inc eax
jmp 0x101b1b4
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01027e5c
leave
ret
Function at 0x103539f
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x10353de
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10353d4
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10353e0
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10353c4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10377bb
Capabilities:
Encode data using xor

Disassembly:
outsd dx, dword [esi]
mov dword [0xed6a3838], eax
inc edi
mov fs, word [ebx]
test al, 0x56
xor byte [esi + 0x331f9577], dh
dec esi
loop 0x10377e6
pop ds
xor ecx, dword [esi - 0x1e]
push eax
cmp byte [ebx], 0x9d
mov ebx, edx
aam 0xf5
pop ebp
lahf
xor edx, dword [eax + 0x3ec5a350]
cmc
adc al, 0x5a
pop ds
invalid
ja 0x1037791
invalid
inc edi
out dx, al
push eax
daa
cmpsd dword [esi], dword es:[edi]
jnp 0x1037782
jns 0x10377ae
mov ebp, 0x61a8142b
xchg dh, bl
popfd
add bh, byte [eax]
wait
movsd dword es:[edi], dword [esi]
or al, 0x7d
call 0x7a7161bd
jo 0x1037806
outsb dx, byte [esi]
dec eax
jae 0x10377d8
retf
mov edx, 0x92310e5a
invalid
and esp, dword [esi - 0x5b]
inc edi
mov word [eax], cs
sbb eax, dword [edx + 0x762cc0c1]
movsd dword es:[edi], dword [esi]
cdq
sbb eax, 0x6f1c0da5
cmpsd dword [esi], dword es:[edi]
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x103787f
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx]
mov ecx, dword [ebp + 0x14]
add eax, dword [ecx]
add dword [edi], eax
movzx ebx, word [ecx + 4]
add eax, dword [edi + 4]
mov edx, dword [ecx]
mov esi, ebx
imul esi, eax
mov cl, dl
and cl, 0xf
rol esi, cl
ror eax, cl
mov cl, bl
and cl, 0x1f
xor esi, eax
mov eax, edx
imul eax, esi
ror eax, cl
mov cl, bl
and cl, 0x1f
imul edx, eax
mov eax, dword [ebp + 0xc]
ror edx, cl
add eax, 1
mov dword [ebp + 0xc], eax
add dword [edi], edx
cmp eax, dword [ebp + 0x10]
mov dword [edi + 4], edx
jb 0x103782d
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x103781a
Capabilities:
Encode data using xor

Disassembly:
outsd dx, dword [esi]
mov dword [0xed6a3838], eax
inc edi
mov fs, word [ebx]
test al, 0x56
xor byte [esi + 0x331f9577], dh
dec esi
loop 0x10377e6
pop ds
xor ecx, dword [esi - 0x1e]
push eax
cmp byte [ebx], 0x9d
mov ebx, edx
aam 0xf5
pop ebp
lahf
xor edx, dword [eax + 0x3ec5a350]
cmc
adc al, 0x5a
pop ds
invalid
ja 0x1037791
invalid
inc edi
out dx, al
push eax
daa
cmpsd dword [esi], dword es:[edi]
jnp 0x1037782
jns 0x10377ae
mov ebp, 0x61a8142b
xchg dh, bl
popfd
add bh, byte [eax]
wait
movsd dword es:[edi], dword [esi]
or al, 0x7d
call 0x7a7161bd
jo 0x1037806
outsb dx, byte [esi]
dec eax
jae 0x10377d8
retf
mov edx, 0x92310e5a
invalid
and esp, dword [esi - 0x5b]
inc edi
mov word [eax], cs
sbb eax, dword [edx + 0x762cc0c1]
movsd dword es:[edi], dword [esi]
cdq
sbb eax, 0x6f1c0da5
cmpsd dword [esi], dword es:[edi]
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x103787f
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx]
mov ecx, dword [ebp + 0x14]
add eax, dword [ecx]
add dword [edi], eax
movzx ebx, word [ecx + 4]
add eax, dword [edi + 4]
mov edx, dword [ecx]
mov esi, ebx
imul esi, eax
mov cl, dl
and cl, 0xf
rol esi, cl
ror eax, cl
mov cl, bl
and cl, 0x1f
xor esi, eax
mov eax, edx
imul eax, esi
ror eax, cl
mov cl, bl
and cl, 0x1f
imul edx, eax
mov eax, dword [ebp + 0xc]
ror edx, cl
add eax, 1
mov dword [ebp + 0xc], eax
add dword [edi], edx
cmp eax, dword [ebp + 0x10]
mov dword [edi + 4], edx
jb 0x103782d
pop edi
pop esi
pop ebx
pop ebp
ret 0x10