joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472135
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47224d
push eax
call dword [sym.imp.USER32.dll_IsWindow_1]
test eax, eax
je 0x47224d
mov eax, dword [esi + 0x3c]
push eax
call fcn.006c9a6d
mov esi, eax
test esi, esi
je 0x47224d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA_1]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47224d
mov ecx, esi
call fcn.004720c0
cmp edi, eax
jge 0x47224d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4721d3
mov dword [esp + 0x34], 1
jmp 0x47222e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47224d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004716c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x476d00
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x839430
push 0x6b9b34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.006b79c0
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476eb0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA_1]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x476ef1
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x476f5e
cmp dword [esp + 0x1c], 2
jne 0x476f5e
cmp dword [esp + 0x10], 5
jne 0x476f5e
cmp dword [esp + 0x14], 1
jne 0x476f5e
push 0x85bfe0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA_1]
mov edi, eax
test edi, edi
je 0x476f48
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
mov esi, eax
test esi, esi
je 0x476f39
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess_1]
push eax
call esi
jmp 0x476f41
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary_1]
mov eax, dword [esp + 8]
test eax, eax
je 0x476f5e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x47848f
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x897939], 0
jne 0x47850f
cmp dword [0x89791d], 0
jle 0x4784e6
mov dword [ebp - 4], esp
push 2
push dword [0x89791d]
call dword [sym.imp.user32.dll_GetAncestor]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4784dc
push 6
call fcn.00690290
add esp, 4
mov dword [0x897939], eax
jmp 0x47850f
mov dword [ebp - 4], esp
push 0x897939
push 0x47867a
call dword [sym.imp.user32.dll_EnumWindows]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x47850f
push 6
call fcn.00690290
add esp, 4
mov eax, dword [0x897939]
jmp 0x478519
mov esp, ebp
pop ebp
ret
Function at 0x4dd9f9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.004ddc26
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ddc16
cmp dword [ebp + 0xc], 3
jne 0x4dda3c
call fcn.004ddca7
mov dword [0x897a31], 0
jmp 0x4ddbda
cmp dword [ebp + 0xc], 1
jne 0x4ddb3e
mov ebx, dword [0x897a25]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 4]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x4ddac5
mov eax, dword [ebp + 0x10]
cmp dword [0x897a35], eax
jne 0x4dda8c
mov eax, 0
jmp 0x4ddc20
mov eax, dword [ebp + 0x10]
mov dword [0x897a35], eax
call fcn.004ddca7
mov eax, dword [ebp - 4]
mov dword [0x897a31], eax
mov eax, dword [ebp + 8]
mov dword [0x897a39], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x897a3d], eax
jmp 0x4ddb39
mov ebx, dword [0x897a25]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 4]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 2
jne 0x4ddb39
mov eax, dword [ebp + 0x10]
cmp dword [0x897a35], eax
jne 0x4ddb0b
mov eax, 0
jmp 0x4ddc20
mov eax, dword [ebp + 0x10]
mov dword [0x897a35], eax
cmp dword [0x897a41], 0
je 0x4ddb39
call fcn.004ddca7
mov dword [0x897a31], 0
mov dword [0x897a39], 0
jmp 0x4ddbda
cmp dword [ebp + 0xc], 2
jne 0x4ddbda
mov ebx, dword [0x897a25]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 4]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 1
je 0x4ddba6
mov ebx, dword [0x897a25]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 4]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
je 0x4ddba6
xor eax, eax
jmp 0x4ddbab
mov eax, 1
test eax, eax
je 0x4ddbda
mov eax, dword [ebp - 4]
mov dword [0x897a31], eax
mov eax, dword [ebp + 8]
mov dword [0x897a39], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x897a3d], eax
mov ebx, dword [0x897a25]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 4]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ebx, dword [ebp - 8]
push dword [ebx]
call fcn.0047c808
jmp 0x4ddc20
mov eax, 0
jmp 0x4ddc20
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4dde82
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [0x897a31], 0
je 0x4ddfbd
cmp dword [0x897a39], 0
je 0x4ddf2d
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x897a59], eax
fild dword [0x897a59]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fild dword [0x897a3d]
fstp qword [ebp - 0x10]
fsub qword [ebp - 0x10]
fstp qword [ebp - 0x18]
mov ebx, dword [0x897a25]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0x897a31]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x18]
fsub qword [ebp - 0x24]
fcomp qword [0x85c787]
fnstsw ax
test ah, 0x41
jne 0x4ddf28
mov eax, dword [0x897a59]
mov dword [0x897a3d], eax
call fcn.004ddfc1
jmp 0x4ddfbd
cmp dword [0x897a45], 0
jle 0x4ddfbd
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x897a59], eax
fild dword [0x897a59]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fild dword [0x897a45]
fstp qword [ebp - 0x10]
fsub qword [ebp - 0x10]
fstp qword [ebp - 0x18]
mov ebx, dword [0x897a25]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0x897a31]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x18]
fsub qword [ebp - 0x24]
fcomp qword [0x85c78f]
fnstsw ax
test ah, 1
jne 0x4ddfbd
call fcn.004ddca7
mov dword [0x897a31], 0
mov esp, ebp
pop ebp
ret
Function at 0x540b4d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
inc eax
push dword [eax]
pop word [ebp - 4]
cmp dword [ebp - 4], 0xc25e
je 0x540b82
cmp dword [ebp - 4], 0xc35e
je 0x540b82
jmp 0x540b85
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x540b67
cmp dword [ebp - 4], 0xc25e
jne 0x540c11
push eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [ebp - 8]
push 0xffffffff
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x540bce
push 6
call fcn.00690290
add esp, 4
pop eax
push 0x9090c35e
pop dword [eax]
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 4
push dword [ebp - 8]
push 0xffffffff
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x540c11
push 6
call fcn.00690290
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x691b20
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x691bb2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x691ba4
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x691b9c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x691b65
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x692300
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x69231e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x692313
pop esi
ret

Function at 0x6923e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x692449
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00691500
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x692b70
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x208
test eax, eax
push ebx
push esi
push edi
jne 0x692b9b
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
jne 0x692bc3
mov byte [esp + 0xc], al
jmp 0x692bc3
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xc]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
je 0x692be1
mov byte [eax], 0x5c
mov esi, dword [sym.imp.user32.dll_wsprintfA]
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
mov ebx, dword [sym.imp.shlwapi.dll_PathFileExistsA]
call edi
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x118]
push str._s_x.tmp
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x110]
push eax
call ebx
test eax, eax
jne 0x692bf3
lea edi, [esp + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00691500
mov edx, eax
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x692ec0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x692f10
push esi
push 1
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x692f05
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00694560
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret
Function at 0x693eb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x693ef3
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc]
push ecx
call fcn.00694560
add esp, 8
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x6a2270
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8e0c40]
xor edx, edx
cmp eax, edx
jne 0x6a2296
xor eax, eax
mov byte [eax + 0x8e0b40], al
inc eax
cmp eax, 0x100
jl 0x6a227e
mov dword [0x8e0c40], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8e0b40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x6a2327
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x6a22fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x6a22c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x6a23a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x6a23f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x6a23da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6a8d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6d6dbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.006a96a0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x83fab4
call fcn.006c7dad
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x6a8e13
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006c7dad
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x6a8e0c
push 0
mov ecx, eax
call fcn.0069feb0
mov dword [esi + 0xc], eax
jmp 0x6a8e15
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x6a8e15
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x6ca410
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6ca448
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.006c84c7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006c849f
jmp 0x6ca454
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6cbafe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x6cbb40
call fcn.006d15f8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6cbb40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6cbb37
xor eax, eax
jmp 0x6cbb48
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006cbb4e
pop edi
pop esi
pop ebx
ret 4

Function at 0x6d1b28
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x6d1b56
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x6d1b74
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006d1a8e
jmp 0x6d1b74
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6d1b74
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006d1a8e
test edi, edi
mov eax, edi
jne 0x6d1b5e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x4072be
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push 0x40
push 0
push dword [ebp + 8]
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x4072dd
xor eax, eax
inc eax
jmp 0x4073d4
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x4072f3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
jne 0x4072fb
push 2
pop eax
jmp 0x4073d4
push dword [ebp + 0x10]
push 0xf8
mov eax, dword [ebp + 8]
push dword [eax + 0x3c]
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x407322
xor eax, eax
inc eax
jmp 0x4073d4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x407347
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x58]
cmp eax, 0x10b
jne 0x407347
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x46]
test eax, eax
jne 0x40734f
push 2
pop eax
jmp 0x4073d4
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov eax, dword [ebp + 8]
push dword [eax + 0x140]
call fcn.00412c45
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x138], 0
jne 0x40738b
push 3
pop eax
jmp 0x4073d4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + 0x54]
lea eax, [eax + ecx + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x13c], eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x140]
mov eax, dword [ebp + 8]
push dword [eax + 0x13c]
mov eax, dword [ebp + 8]
push dword [eax + 0x138]
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x4073d2
xor eax, eax
inc eax
jmp 0x4073d4
xor eax, eax
pop ebp
ret

Function at 0x407aba
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x407acf
xor eax, eax
jmp 0x407b0c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x407af4
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x18]
cmp eax, 0x10b
je 0x407af8
xor eax, eax
jmp 0x407b0c
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [eax + 0x78]
call fcn.00407b0e
add esp, 0xc
leave
ret