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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
lea eax, [ecx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1003c586
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 8]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c566
push 0
lea eax, [ebp - 4]
sub ecx, edi
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10046014
Capabilities:
Contain obfuscated stackstrings

Disassembly:
div ecx
test edx, edx
je 0x10046020
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10045d32
rcl byte [esi + 0x458d6c20]
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40596d
pop dword [ebp - 0x2c]
mov eax, 0x40596d
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x20f5a1dc
add dword [ebp - 0x3c], 0x2d5ca36f
mov dword [ebp - 0x38], 0x2b6457ed
sub dword [ebp - 0x38], 0xf9310ba8
mov dword [ebp - 0x34], 0xadad45c9
add dword [ebp - 0x34], 0x9e9efe65
mov dword [ebp - 0x30], 0xc45c9788
sub dword [ebp - 0x30], 0xc45c9788
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xf3bcae05
add eax, 0xc83c25b
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x4894a840
sub dword [ebp - 0x3c], 0xd4223eea
mov dword [ebp - 0x38], 0x24ba021
sub dword [ebp - 0x38], 0xc0df3eac
mov dword [ebp - 0x34], 0x3b11abf6
add dword [ebp - 0x34], 0x285dc076
mov dword [ebp - 0x30], 0xd348da00
add dword [ebp - 0x30], 0x2cb72600
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x1939ffbe
add eax, 0xe7067142
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x392cb
push 0
call eax
mov ecx, 0x51d5
xor ebx, ebx
add ebx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x2c]
mov edi, 0xea957e22
mov edx, dword [esi]
add dword [ebp - 4], ebx
add edx, edi
mov dword [ebx], edx
xor dword [ebp - 0x14], ecx
add ebx, 4
add esi, 0x2436cac1
sub esi, 0x2436cabd
loop 0x405a7a
add eax, 0xbd2c7962
add eax, 0x42d4c0c5
xor ebx, ebx
add ebx, eax
add eax, 0x2cc135a6
sub eax, 0x2cc135a1
mov ecx, 0x551a9967
sub ecx, 0x54da9967
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x40102d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x104]
and dword [ebp - 0xc], 0
xor ecx, ecx
push esi
lea esi, [eax + 0xf8]
cmp cx, word [eax + 6]
jae 0x4010f6
lea eax, [esi + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
lea eax, [esi + 0x10]
push edi
lea edi, [esi + 8]
mov dword [ebp - 4], eax
add esi, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
jne 0x40109f
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x4010d1
push 0x40
push 0x1000
push eax
mov eax, dword [esi]
add eax, dword [ebp + 0x108]
push eax
call ebx
push dword [ebp - 0x10]
mov dword [edi], eax
push 0
push eax
call fcn.00416960
jmp 0x4010ce
push 0x40
push 0x1000
push eax
mov eax, dword [esi]
add eax, dword [ebp + 0x108]
push eax
call ebx
mov ecx, dword [ebp - 4]
push dword [ecx]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push ecx
push eax
call fcn.0041d6a0
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
add esp, 0xc
push 0x28
pop eax
add dword [ebp - 4], eax
add dword [ebp - 8], eax
add esi, eax
add edi, eax
mov eax, dword [ebp + 0x104]
movzx eax, word [eax + 6]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
jl 0x40106a
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40123d
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
and dword [ebp - 0xc], 0
xor ecx, ecx
lea eax, [edx + 0xf8]
cmp cx, word [edx + 6]
jae 0x40133f
push ebx
push esi
lea ecx, [eax + 0x10]
lea ebx, [eax + 8]
add eax, 0x24
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov edi, 0x4000000
mov esi, 0x80000000
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
test ecx, 0x2000000
jne 0x401321
xor eax, eax
test edi, ecx
je 0x401294
mov eax, 0x200
test ecx, 0x20000000
je 0x4012bd
test ecx, 0x40000000
je 0x4012ad
test esi, ecx
jne 0x4012b1
or eax, 0x20
jmp 0x4012df
test esi, ecx
je 0x4012b8
or eax, 0x80
jmp 0x4012df
or eax, 0x10
jmp 0x4012df
test ecx, 0x40000000
je 0x4012d3
test esi, ecx
je 0x4012ce
or eax, 4
jmp 0x4012df
or eax, 2
jmp 0x4012df
test esi, ecx
je 0x4012dc
or eax, 8
jmp 0x4012df
or eax, 1
test edi, ecx
je 0x4012e8
or eax, 0x200
mov edx, dword [ebp - 8]
mov edx, dword [edx]
test edx, edx
jne 0x40131e
test cl, 0x40
je 0x4012fe
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x20]
jmp 0x401308
test cl, cl
jns 0x40131e
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x40131e
lea ecx, [ebp - 0x10]
push ecx
push eax
push edx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40133c
mov edx, dword [ebp + 8]
add dword [ebp - 4], 0x28
add dword [ebp - 8], 0x28
movzx eax, word [edx + 6]
add ebx, 0x28
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
jl 0x401278
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401341
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
push ebx
push esi
push edi
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x5a4d
cmp word [ebp - 0x4c], cx
jne 0x4014bb
mov esi, dword [ebp - 0x10]
push 0x3e
add esi, eax
pop ecx
lea edi, [ebp - 0x144]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x144], 0x4550
jne 0x4014bb
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
mov edi, 0x2000
push edi
push dword [ebp - 0xf4]
push dword [ebp - 0x110]
call esi
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x4013cb
push 0x40
push edi
push dword [ebp - 0xf4]
push eax
call esi
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x4014bb
push 0x40
mov edi, 0x1000
push edi
push dword [ebp - 0xf4]
push ebx
call esi
push 0x40
push edi
push dword [ebp - 0xf0]
push ebx
call esi
mov edi, dword [ebp - 0x10]
mov esi, eax
mov eax, dword [ebp - 0xf0]
add eax, edi
push eax
push dword [ebp + 8]
push esi
call fcn.0041d6a0
add esp, 0xc
lea eax, [esi + edi]
push ebx
push eax
sub esp, 0xf8
push 0x3e
pop ecx
mov edi, esp
push dword [ebp + 8]
lea esi, [ebp - 0x144]
mov dword [ebp - 0xc], eax
mov dword [eax + 0x34], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.0040102d
mov eax, dword [ebp + 0xc]
add esp, 0x104
test eax, eax
jne 0x40143a
mov dword [ebp + 0xc], ebx
mov eax, ebx
sub eax, dword [ebp - 0x110]
je 0x40144e
push ebx
push eax
mov eax, dword [ebp - 0xc]
call fcn.004010f9
pop ecx
pop ecx
mov esi, dword [ebp - 0xc]
mov eax, esi
call fcn.00401175
test eax, eax
jne 0x401472
test ebx, ebx
je 0x401472
push 0x4000
push dword [ebp - 0xf4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call fcn.0040123d
mov eax, dword [esi + 0x28]
pop ecx
test eax, eax
je 0x40149f
add eax, ebx
mov dword [ebp + 8], eax
je 0x40149f
cmp eax, ebx
jbe 0x40149f
pushal
push 0
push 1
push dword [ebp - 4]
mov eax, dword [ebp + 8]
call eax
mov dword [ebp - 8], eax
popal
mov ebx, dword [ebp - 4]
cmp dword [ebp - 8], 0
je 0x4014a9
mov eax, ebx
jmp 0x4014bd
push 0x4000
push dword [ebp - 0xf4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401985
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [esi], edi
je 0x4019e5
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, edi
jne 0x4019c6
push str.hAdvAPI32___0
push edi
push 0x28c
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_atltransactionmanager.h
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x4019be
int3
xor eax, eax
inc eax
pop edi
pop ebp
ret 8
push str.RegDeleteKeyTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4019be
push edi
push dword [esi]
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4019c1
cmp dword [esi + 4], edi
je 0x4019be
pop edi
pop ebp
jmp dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
Function at 0x4021d8
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp dword [edi], 0
jne 0x402201
push str.m_hKey___0
push 0
push 0x1629
push 0x433f18
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x402201
int3
push esi
mov esi, dword [edi + 8]
push dword [ebp + 8]
push dword [edi]
test esi, esi
je 0x402215
call fcn.00401985
jmp 0x40221b
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
pop ebp
ret 4

Function at 0x402409
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push edi
mov edi, 0x433f18
cmp dword [esi], ebx
jne 0x402435
push str.m_hKey___0
push ebx
push 0x181e
push edi
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x402435
int3
xor eax, eax
cmp dword [ebp + 0xc], ebx
setne al
cmp eax, ebx
jne 0x402462
push str.__atl_condVal
push ebx
push 0x181f
push edi
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x40245d
int3
push 0xd
pop eax
jmp 0x40247e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop ebp
ret 8

Function at 0x402484
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, 0x433f18
cmp dword [edi], ebx
jne 0x4024b1
push str.m_hKey___0
push ebx
push 0x182d
push esi
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x4024b1
int3
xor eax, eax
cmp dword [ebp + 0xc], ebx
setne al
cmp eax, ebx
jne 0x4024de
push str.__atl_condVal
push ebx
push 0x182e
push esi
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x4024d9
int3
push 0xd
pop eax
jmp 0x40250a
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add dword [ebp - 4], eax
add esi, eax
cmp eax, 1
jne 0x4024e4
push dword [ebp - 4]
push dword [ebp + 0xc]
push 7
push ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
pop ebx
leave
ret 8
Function at 0x402510
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov eax, dword [edi]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00402314
mov ebx, eax
cmp ebx, esi
je 0x40258c
cmp ebx, 2
je 0x40257a
cmp ebx, 3
je 0x40257a
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push str.CRegKey::RecurseDeleteKey_:_Failed_to_Open_Key__s_Error___d__n
push esi
push dword [0xf5c97c]
mov dword [ebp - 0x1c], str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_atlbase.h
push eax
mov dword [ebp - 0x18], 0x1870
call fcn.004017c1
add esp, 0x18
cmp dword [ebp - 0x10], esi
je 0x402588
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4025f9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4025aa
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402510
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x402600
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x124]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x100
call ebx
test eax, eax
je 0x402594
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], esi
je 0x4025e0
push dword [ebp - 0x10]
call ebx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
call fcn.004021d8
mov edi, eax
cmp dword [ebp - 0x10], esi
je 0x4025f7
push dword [ebp - 0x10]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 0x10], esi
je 0x40260e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x4025f9
Function at 0x4045c7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x90
lea eax, [ebp - 0x90]
push 0
push eax
mov dword [ebp - 0x94], 0x94
call fcn.00416960
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x404620
cmp dword [ebp - 0x90], 5
jae 0x40461c
cmp dword [ebp - 0x90], 4
jne 0x404620
cmp dword [ebp - 0x8c], 0x5a
jb 0x404620
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret

Function at 0x404649
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x90
lea eax, [ebp - 0x90]
push 0
push eax
mov dword [ebp - 0x94], 0x94
call fcn.00416960
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x404691
cmp dword [ebp - 0x90], 6
jb 0x404691
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4053d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
mov esi, str.e:mygitmylibrarypememoryrunpememoryrun2wtl_atlgdi.h
test edi, edi
jne 0x40540e
push str.hResource___0
push eax
push 0x51
push esi
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x40540e
int3
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x405437
push str.hGlobal___0
push eax
push 0x53
push esi
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x405437
int3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x40545d
push str.pBitmapInfoHeader___0
push eax
push 0x55
push esi
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x40545d
int3
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
jl 0x4067f7
xor ecx, ecx
cmp edx, ecx
je 0x4067f7
cmp dword [ebp + 8], ecx
je 0x4067f3
push esi
movzx esi, byte [ecx + edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4341b0]
inc ecx
cmp ecx, dword [ebp + 8]
jne 0x4067d6
pop esi
not eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406e51
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
lea eax, [ebp - 4]
push eax
push 0xf013f
xor ebx, ebx
push ebx
push str.SoftwareCheckList_Bc_StartFlags
push 0x80000001
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406ea9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push str.falgs
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0xacfbfb
je 0x406f7a
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push str..map3.map
mov dword [ebp - 0x1c], 0x646e6567
mov dword [ebp - 0x18], 0x20666f20
mov word [ebp - 0x14], 0x694d
mov byte [ebp - 0x12], 0x72
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x406f03
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 0x64
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
push 0xb
pop ecx
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x79]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x406f1b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x406f31
push ebx
push 0x435a78
push 0x435a84
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push str.SoftwareCheckList_Bc_StartFlags
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406f7a
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
push str.falgs
push dword [ebp - 4]
mov dword [ebp - 8], 0xacfbfb
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret
Function at 0x406f7d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
call fcn.00406e51
add dword [0x43aec0], 0x32
xor eax, eax
mov edi, 0xf5d8fc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x410]
xor esi, esi
push eax
xor ebx, ebx
inc esi
push 0x400
mov dword [0xf5d904], ebx
mov dword [0xf5d908], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebx
push 0x80
push 3
push ebx
mov dword [ebp + eax - 0x410], 0x74782d54
push esi
mov byte [ebp + eax - 0x40c], bl
push 0x80000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 8]
mov dword [ebp - 0xc], ebx
push 2
stosd dword es:[edi], eax
pop edi
cmp dword [0xf5d908], 1
jne 0x407066
cmp dword [ebp - 4], 0xffffffff
jne 0x40707b
call esi
mov ecx, dword [0xf5d904]
cmp eax, ecx
ja 0x407023
cmp ecx, ebx
je 0x407066
mov dword [0xf5d908], edi
call esi
mov ecx, dword [0xf5d900]
add eax, 0xa
mov dword [0xf5d904], eax
mov eax, dword [0xf5d8fc]
cmp eax, dword [ebp - 0xc]
jne 0x407048
cmp ecx, dword [ebp - 8]
je 0x407056
cmp eax, ebx
je 0x407056
cmp ecx, ebx
je 0x407056
mov dword [0xf5d908], edi
mov eax, dword [ebp - 0xc]
mov dword [0xf5d8fc], eax
mov eax, dword [ebp - 8]
mov dword [0xf5d900], eax
mov eax, dword [0xf5d908]
cmp eax, edi
je 0x40707b
cmp eax, 4
jne 0x407004
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
mov eax, dword [0x43aec0]
mov dword [0xf5d908], 3
mov ecx, 0xf5d768
mov dword [ecx], eax
add ecx, 4
dec eax
cmp ecx, 0xf5d8f8
jl 0x40708f
mov eax, dword [0xf5d830]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [0xf5d8f8], eax
push dword [ebp - 4]
ret
Function at 0x40a892
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [edi + 4]
je 0x40a8aa
call fcn.0040c8f0
mov eax, dword [ebp + 8]
push dword [edi + 4]
mov esi, dword [eax + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40a8dd
push str.::IsWindow_m_hWnd_
push eax
push 0x1740
push str.E:MyGitmylibraryPeMemoryRunPeMemoryRun2wtl_atlctrls.h
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x40a8dd
int3
push 0
push esi
push 0x419
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
and byte [edi + 0x84], 0xcf
push 1
push eax
push edi
call fcn.0040c10e
pop edi
xor eax, eax
pop esi
pop ecx
pop ebp
ret 4

Function at 0x40a907
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and dword [ebx], 0
push edi
mov edi, eax
mov eax, dword [edi + 0xa8]
cmp eax, 0x12
je 0x40a935
cmp eax, 0x79
jne 0x40a92c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x40a935
cmp dword [edi + 0xa8], 0x20
jne 0x40a9a3
cmp dword [ebp + 8], 0xf100
jne 0x40a9a3
push esi
lea esi, [edi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi]
jne 0x40a961
call fcn.0040c916
push 0
push 0xffffffffffffffff
push 0x448
call fcn.00404dc9
jmp 0x40a9a2
mov eax, dword [edi + 0xa8]
cmp eax, 0x20
je 0x40a9a2
test byte [edi + 0x84], 0x40
jne 0x40a997
mov al, byte [edi + 0x85]
test al, 2
je 0x40a990
test al, 4
jne 0x40a990
test al, 8
je 0x40a990
mov al, 1
mov edx, edi
call fcn.0040c98f
call fcn.0040c8f0
jmp 0x40a99c
cmp eax, 0x20
je 0x40a9a2
mov dword [ebx], 1
pop esi
and byte [edi + 0x84], 0xbf
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x410230
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0xf5c93c], 0
jne 0x410254
call fcn.00410380
test eax, eax
jne 0x410254
jmp 0x410332
cmp dword [0xf5c93c], 1
jne 0x410289
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410281
jmp 0x410332
mov eax, dword [ebp - 8]
jmp 0x410334
mov eax, dword [0xf5c93c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4102a6
mov eax, dword [ebp - 8]
jmp 0x410334
push 0x40
push 0x1000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4102c7
jmp 0x410332
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [0xf5c93c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4102fa
push 0x8000
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
jmp 0x410334
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
add eax, 0xff0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [0xf5c93c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jb 0x41030b
mov eax, dword [ebp - 8]
jmp 0x410334
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x416740
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a0a4]
jne 0x41674a
repz ret
jmp fcn.00420820
Function at 0x405b10
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov dword [esp], 0
call sub.USER32.dll_OpenClipboard
sub esp, 4
test eax, eax
je 0x405bc0
mov dword [esp], 1
call sub.USER32.dll_GetClipboardData
sub esp, 4
mov esi, eax
test eax, eax
je 0x405bc0
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalLock
mov edi, eax
lea eax, [ebp - 0x28]
sub esp, 4
mov dword [ebp - 0x30], eax
mov eax, 0xffffffff
test edi, edi
je 0x405b6e
mov dword [esp], edi
call sub.msvcrt.dll_strlen
add eax, edi
mov byte [esp + 8], 0
lea ecx, [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004a1960
sub esp, 0xc
mov dword [esp], esi
call sub.KERNEL32.dll_GlobalUnlock
sub esp, 4
call sub.USER32.dll_CloseClipboard
lea eax, [ebx + 8]
lea edx, [ebp - 0x28]
mov dword [ebx], eax
mov eax, dword [ebp - 0x30]
cmp eax, edx
je 0x405bf0
mov dword [ebx], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 4], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 8]
mov ecx, ebx
mov dword [ebx], eax
mov byte [esp + 8], 0
mov dword [esp + 4], 0x4c211d
mov dword [esp], 0x4c211d
call fcn.004a1960
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x14], eax
jmp 0x405bac