joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6155c0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x637857
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov al, 0x6f
push ebx
mov byte [esp + 0xa], al
mov byte [esp + 0xd], al
mov byte [esp + 0x11], al
push esi
mov al, 0x72
mov esi, ecx
mov byte [esp + 0x17], al
mov byte [esp + 0x1f], al
mov cl, 0x6c
lea eax, [esp + 0xc]
push edi
xor ebx, ebx
mov byte [esp + 0x13], cl
mov byte [esp + 0x14], cl
push eax
mov dl, 0x74
mov cl, 0x75
push ebx
push 0x1f0001
mov dword [esi], 0x657e70
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [esp + 0x1c], 0x41
mov byte [esp + 0x1d], 0x70
mov byte [esp + 0x22], 0x44
mov byte [esp + 0x23], 0x65
mov byte [esp + 0x24], dl
mov byte [esp + 0x26], cl
mov byte [esp + 0x28], 0x53
mov byte [esp + 0x29], 0x69
mov byte [esp + 0x2a], 0x67
mov byte [esp + 0x2b], 0x6e
mov byte [esp + 0x2c], 0x61
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x30], 0x65
mov byte [esp + 0x31], bl
call dword [0x63a104]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x61568b
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
call dword [0x63a100]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 1
jmp 0x61568e
mov dword [esi + 0x14], ebx
cmp dword [esi + 0x14], ebx
je 0x6157c8
call dword [fcn.0063a154]
test eax, 0x80000000
je 0x615731
cmp al, 4
jne 0x615731
push 8
call fcn.00612cd6
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
cmp edi, ebx
mov dword [esp + 0x30], ebx
je 0x6156d8
call dword [0x63a080]
push eax
mov ecx, edi
call fcn.00618db0
jmp 0x6156da
xor eax, eax
or edi, 0xffffffff
push 0x10
mov dword [esp + 0x34], edi
mov dword [esi + 4], eax
call fcn.00612cd6
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov dword [esp + 0x30], 1
je 0x61570b
mov edx, dword [esi + 4]
mov ecx, eax
push edx
call fcn.006184d0
jmp 0x61570d
xor eax, eax
mov dword [esi + 8], eax
mov edx, dword [eax]
push 1
mov ecx, eax
mov dword [esp + 0x34], edi
call dword [edx + 8]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push 0x10
call fcn.00612cd6
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
cmp edi, ebx
mov dword [esp + 0x30], 2
je 0x61575d
call dword [0x63a080]
push eax
mov ecx, edi
call fcn.00618040
jmp 0x61575f
xor eax, eax
or edi, 0xffffffff
push 0x10
mov dword [esp + 0x34], edi
mov dword [esi + 4], eax
call fcn.00612cd6
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov dword [esp + 0x30], 3
je 0x615794
mov ecx, dword [esi + 4]
push 1
push 1
push ecx
mov ecx, eax
call fcn.00616b90
jmp 0x615796
xor eax, eax
push 0x84
mov dword [esp + 0x34], edi
mov dword [esi + 8], eax
call fcn.00612cd6
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov dword [esp + 0x30], 4
je 0x6157c3
mov ecx, eax
call fcn.00615aa0
jmp 0x6157c5
xor eax, eax
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x615800
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [fcn.0063a044]
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp], 0x657e70
test eax, eax
je 0x615825
push eax
call ebx
mov dword [ebp + 0x10], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x615905
mov al, 0x6f
mov cl, 0x6c
mov byte [esp + 0xa], al
mov byte [esp + 0xd], al
mov byte [esp + 0x11], al
mov al, 0x72
mov byte [esp + 0x13], al
mov byte [esp + 0x1b], al
lea eax, [esp + 8]
push esi
mov esi, dword [0x63a104]
mov byte [esp + 0xf], cl
mov byte [esp + 0x10], cl
push eax
mov dl, 0x74
mov cl, 0x75
push 0
push 0x1f0001
mov byte [esp + 0x18], 0x41
mov byte [esp + 0x19], 0x70
mov byte [esp + 0x1e], 0x44
mov byte [esp + 0x1f], 0x65
mov byte [esp + 0x20], dl
mov byte [esp + 0x22], cl
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x25], 0x69
mov byte [esp + 0x26], 0x67
mov byte [esp + 0x27], 0x6e
mov byte [esp + 0x28], 0x61
mov byte [esp + 0x29], dl
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2c], 0x65
mov byte [esp + 0x2d], 0
call esi
test eax, eax
je 0x6158da
push edi
mov edi, dword [fcn.0063a060]
push eax
call ebx
push 0x1f4
call edi
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x1f0001
call esi
test eax, eax
jne 0x6158bd
pop edi
mov ecx, dword [ebp + 8]
pop esi
test ecx, ecx
je 0x6158e8
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [ebp + 4]
test eax, eax
je 0x6158f8
push eax
call fcn.00612cd0
add esp, 4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x615905
mov eax, dword [ecx]
push 1
call dword [eax]
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x1a2b88c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1a2b896
pushal
call 0x1a2b89c
pop ebp
sub ebp, 0x10
sub ebp, 0x162b88c
jmp 0x1a2b8b2
mov eax, 0x162b88c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bf
mov edx, 0xcbe88f3c
xor byte [eax], dl
inc eax
dec ecx
jne 0x1a2b8c9
jmp 0x1a2b8dc
mov bh, 0xf1
mov bh, 0xb5
add byte [esp + edi], bh
cmp al, 0xbd
std
les edi, [esp + edi]
cmp al, 0x3f
int1
test byte [ecx], bh
cmp al, 0x3c
cmp al, 0x86
adc al, 0x3c
cmp al, 0x3c
retf
Function at 0x40ea16
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [edi]
push ebx
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x403d08
push dword [eax]
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ea80
cmp dword [ebp - 4], 1
je 0x40ea58
cmp dword [ebp - 4], 2
je 0x40ea58
push 0xd
pop eax
jmp 0x40ea80
mov ecx, dword [ebp - 8]
test esi, esi
je 0x40ea7a
test ecx, ecx
je 0x40ea75
test cl, 1
jne 0x40ea53
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x40ea7a
jmp 0x40ea53
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop ebx
leave
ret 4

Function at 0x40faf6
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x42f020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x402
lea eax, [ebp - 0x408]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x1f3
push esi
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40fbe0
cmp eax, esi
je 0x40fbe0
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x408]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x40fb70
add ecx, 2
jmp 0x40fb76
lea ecx, [ebp - 0x408]
mov eax, ecx
lea edx, [ebp - 0x408]
sub eax, edx
sar eax, 1
mov edx, 0x201
sub edx, eax
mov eax, 0x40459c
call fcn.0040ea8a
mov esi, eax
test esi, esi
jns 0x40fba0
push 0x404324
jmp 0x40fbec
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.msvcrt.dll__wexecl]
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
call dword [sym.imp.msvcrt.dll__wcserror]
push eax
lea eax, [ebp - 0x408]
push eax
push 0x40434c
call fcn.0040f371
add esp, 0x1c
mov eax, 0x8000ffff
jmp 0x40fbf6
call fcn.0040e886
mov esi, eax
push 0x4042fc
push esi
call fcn.0040f43e
pop ecx
mov eax, esi
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004230fd
leave
ret
Function at 0x410c01
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x42f020]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x80], eax
mov edi, ecx
test ebx, ebx
je 0x410c91
test edi, edi
je 0x410c91
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x6c], 0x405c84
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
call fcn.00412dd6
lea esi, [ebp - 0x18]
call fcn.00412dd6
lea esi, [ebp - 0x14]
call fcn.00412dd6
lea esi, [ebp - 0x10]
call fcn.00412dd6
mov esi, dword [ebp - 0x74]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x74]
push ecx
push 4
lea ecx, [ebp - 0x7c]
push ecx
push 8
push eax
mov dword [ebp - 0x70], eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x410ca3
lea ecx, [ebp - 0x6c]
call fcn.00410b18
xor al, al
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004230fd
leave
ret 0xc
cmp dword [ebp - 0x7c], 1
je 0x410cc6
and dword [ebp - 0x70], 0
lea eax, [ebp - 0x70]
push eax
push 1
push 2
push 0
push 0xb
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x410c89
push 1
push dword [ebp - 0x70]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x410c89
push ebx
push edi
xor eax, eax
push eax
push dword [ebp - 0x78]
push 0x400
push 1
push eax
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x7c], 1
mov edi, eax
je 0x410d15
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x78]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x6c]
call fcn.00410b18
test esi, esi
setne al
jmp 0x410c93
Function at 0x4156ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x415749
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41573b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x415737
cmp esi, ecx
jae 0x41573b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edi
jne 0x415727
cmp esi, ecx
jb 0x41573f
xor eax, eax
jmp 0x415748
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret 8
Function at 0x41b506
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call fcn.00422898
xor eax, eax
pop ecx
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x41b550
call fcn.0040e886
push ebx
mov esi, eax
call fcn.00422898
mov eax, esi
jmp 0x41b605
push ebx
lea eax, [ebp - 8]
push eax
call fcn.0041bd45
mov esi, dword [ebp - 8]
test al, al
jne 0x41b568
mov edi, 0x8007000e
jmp 0x41b5a1
push esi
push ebx
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41b59a
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0x40ca68
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x41b5ab
call fcn.0040e886
mov edi, eax
push esi
call fcn.00422898
mov eax, edi
jmp 0x41b605
mov edx, dword [ebp - 0x10]
cmp edx, 4
jae 0x41b5c4
push esi
call fcn.00422898
pop ecx
push 0xd
pop eax
call fcn.004109d1
jmp 0x41b606
mov eax, dword [ebp - 4]
mov eax, dword [eax]
xor ecx, ecx
inc ecx
shr edx, 2
cmp edx, ecx
jbe 0x41b5f4
mov edi, dword [ebp - 4]
mov esi, 0x409
cmp word [edi + ecx*4], si
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
je 0x41b5ee
inc ecx
cmp ecx, edx
jb 0x41b5d3
jmp 0x41b5f4
mov eax, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
push 0
mov dword [edi], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
call fcn.00422898
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4230ee
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x42a018
call fcn.00423b00
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
push ebx
push esi
push 0x42fc0c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x422fc6
cmp eax, esi
jne 0x422fb9
xor esi, esi
inc esi
mov edi, esi
jmp 0x422fc9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x422f9d
xor esi, esi
inc esi
cmp dword [0x42fc10], esi
jne 0x422fdb
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x423015
cmp dword [0x42fc10], ebx
jne 0x42300f
mov dword [0x42fc10], esi
push 0x401440
push 0x401430
call fcn.00422f58
pop ecx
pop ecx
test eax, eax
je 0x423015
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4230e3
mov dword [0x42f690], esi
cmp dword [0x42fc10], esi
jne 0x423038
push 0x40142c
push 0x401410
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x42fc10], 2
test edi, edi
jne 0x423048
push ebx
push 0x42fc0c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x42fc20], 0
je 0x42306a
push 0x42fc20
call fcn.00423f00
pop ecx
test eax, eax
je 0x42306a
push ebx
push 2
push ebx
call dword [0x42fc20]
push dword [0x42f69c]
push dword [0x42f698]
push dword [0x42f694]
call fcn.0040fc5f
add esp, 0xc
mov dword [0x42f68c], eax
cmp dword [0x42f6a4], 0
jne 0x4230c8
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x42f690], 0
jne 0x4230dc
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x42f68c]
mov dword [ebp - 4], 0xfffffffe
call fcn.00423b45
ret
call fcn.00423fc1
jmp 0x422f81

Function at 0x423e70
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x423e86
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x423ea1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x423eb0
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
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x423eee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x423ee6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x423ef0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x423ed6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4267f0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x426821
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00423384
add esp, 0x14
or eax, 0xffffffff
jmp 0x426928
push ebx
lea ebx, [edi + 0xc]
mov eax, dword [ebx]
test al, 0x83
je 0x426924
test al, 0x40
jne 0x426924
test al, 2
je 0x426845
or eax, 0x20
mov dword [ebx], eax
jmp 0x426924
or eax, 1
mov dword [ebx], eax
test eax, 0x10c
jne 0x426871
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00423384
add esp, 0x14
jmp 0x426924
push dword [edi + 0x18]
mov eax, dword [edi + 8]
mov esi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push edi
mov dword [edi], eax
call esi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
lea ecx, [edi + 4]
mov dword [ecx], eax
test eax, eax
je 0x426915
cmp eax, 0xffffffff
je 0x426915
test byte [ebx], 0x82
jne 0x4268ec
push edi
call esi
pop ecx
cmp eax, 0xffffffff
je 0x4268d5
push edi
call esi
pop ecx
cmp eax, 0xfffffffe
je 0x4268d5
push edi
call esi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push edi
lea esi, [ecx + eax*4]
call dword [sym.imp.msvcrt.dll__fileno]
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [esi]
pop ecx
pop ecx
jmp 0x4268da
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
lea ecx, [edi + 4]
cmp al, 0x82
jne 0x4268ec
or dword [ebx], 0x2000
cmp dword [edi + 0x18], 0x200
jne 0x426909
test byte [ebx], 8
je 0x426909
test dword [ebx], 0x400
jne 0x426909
mov dword [edi + 0x18], 0x1000
dec dword [ecx]
mov ecx, dword [edi]
movzx eax, byte [ecx]
inc ecx
mov dword [edi], ecx
jmp 0x426927
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [ebx], eax
and dword [ecx], 0
or eax, 0xffffffff
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4282bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4282ee
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00423384
add esp, 0x14
mov eax, 0xffff
jmp CoCreateInstance
push ebx
lea ebx, [edi + 0xc]
mov eax, dword [ebx]
test al, 0x83
je 0x428401
test al, 0x40
jne 0x428401
test al, 2
je 0x428312
or eax, 0x20
mov dword [ebx], eax
jmp 0x428401
or eax, 1
mov dword [ebx], eax
test eax, 0x10c
jne 0x42833e
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00423384
add esp, 0x14
jmp 0x428401
push dword [edi + 0x18]
mov eax, dword [edi + 8]
mov esi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push edi
mov dword [edi], eax
call esi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
lea ecx, [edi + 4]
mov dword [ecx], eax
test eax, eax
je 0x4283f2
cmp eax, 1
je 0x4283f2
cmp eax, 0xffffffff
je 0x4283f2
test byte [ebx], 0x82
jne 0x4283c6
push edi
call esi
pop ecx
cmp eax, 0xffffffff
je 0x4283af
push edi
call esi
pop ecx
cmp eax, 0xfffffffe
je 0x4283af
push edi
call esi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push edi
lea esi, [ecx + eax*4]
call dword [sym.imp.msvcrt.dll__fileno]
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [esi]
pop ecx
pop ecx
jmp 0x4283b4
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
lea ecx, [edi + 4]
cmp al, 0x82
jne 0x4283c6
or dword [ebx], 0x2000
cmp dword [edi + 0x18], 0x200
jne 0x4283e3
test byte [ebx], 8
je 0x4283e3
test dword [ebx], 0x400
jne 0x4283e3
mov dword [edi + 0x18], 0x1000
add dword [ecx], 0xfffffffe
mov ecx, dword [edi]
movzx eax, word [ecx]
add ecx, 2
mov dword [edi], ecx
jmp 0x428406
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [ebx], eax
and dword [ecx], 0
mov eax, 0xffff
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x1002f65
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c4
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0xa2
call esi
mov edi, 0x8000
xor ebx, ebx
mov ecx, edi
inc ebx
test cx, ax
je 0x1002f96
mov dword [ebp - 4], ebx
push 0xa3
call esi
push 2
test di, ax
pop edi
je 0x1002fa8
or dword [ebp - 4], edi
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x1002fbd
or dword [ebp - 4], 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x1002fd2
or dword [ebp - 4], 8
push 0xa0
call esi
mov ecx, 0x8000
test cx, ax
je 0x1002fe7
or dword [ebp - 4], 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x1002ffc
or dword [ebp - 4], 0x20
and dword [ebp - 0x1c4], 0
push 0x1bc
lea eax, [ebp - 0x1c0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
test byte [ebp - 4], bl
je 0x100303a
mov eax, 0xa2
mov word [ebp - 0x1c0], ax
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0x1bc], edi
mov eax, ebx
test byte [ebp - 4], 2
push 3
pop esi
je 0x100305e
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa3
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], esi
inc eax
test byte [ebp - 4], 4
je 0x100307f
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa4
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
inc eax
test byte [ebp - 4], 8
je 0x10030a0
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa5
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], esi
inc eax
test byte [ebp - 4], 0x10
je 0x10030c1
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa0
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
inc eax
test byte [ebp - 4], 0x20
je 0x10030e2
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa1
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
and dword [ecx + 8], 0
mov dword [ecx], ebx
push 0x5b
pop edx
mov word [ecx + 4], dx
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
and dword [ecx + 8], 0
mov dword [ecx], ebx
push 0x55
pop edx
mov word [ecx + 4], dx
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov word [ecx + 4], dx
mov dword [ecx], ebx
mov dword [ecx + 8], edi
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
push 0x5b
lea ecx, [ebp + ecx - 0x1c4]
pop edx
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
push 0x1c
lea ecx, [ebp - 0x1c4]
push ecx
inc eax
push eax
call dword [sym.imp.USER32.dll_SendInput]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10033db
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2228
call fcn.01006140
mov eax, dword [0x100d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x210]
push eax
push 0x2000
lea eax, [ebp - 0x2228]
xor ebx, ebx
push eax
mov dword [ebp - 0x218], ebx
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x100352b
shr dword [ebp - 0x210], 2
mov eax, 0x800
cmp dword [ebp - 0x210], eax
jbe 0x1003437
mov dword [ebp - 0x210], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea ecx, [ebp - 0x214]
push ecx
push eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], ebx
call edi
test eax, eax
je 0x100352a
cmp dword [ebp - 0x210], ebx
jbe 0x1003524
push esi
lea eax, [ebp - 0x220]
push eax
lea esi, [ebp + ebx*4 - 0x2228]
push dword [esi]
call edi
test eax, eax
je 0x100350a
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x214]
jne 0x100350a
mov esi, dword [esi]
cmp dword [ebp - 0x21c], esi
je 0x100350a
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100350a
lea eax, [ebp - 0x228]
push eax
push 4
lea eax, [ebp - 0x224]
push eax
push esi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1003503
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
push esi
call sub.KERNEL32.dll_K32GetModuleBaseNameW
test eax, eax
je 0x1003503
lea eax, [ebp - 0x20c]
push 0x10014dc
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1003519
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [ebp - 0x210]
jb 0x100346f
jmp 0x1003523
mov dword [ebp - 0x218], 1
pop esi
mov eax, dword [ebp - 0x218]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0100611f
leave
ret