joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d5e0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
push edi
ja 0x45d660
je 0x45d651
cmp eax, 0x80000101
ja 0x45d64a
je 0x45d651
cmp eax, reloc.WS2_32.dll_connect
je 0x45d62d
cmp eax, 0x80000005
jne 0x45d675
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 3
test eax, eax
je 0x45d6bb
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x45d6bb
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 1
mov ebx, ecx
inc ebx
jmp 0x45d6bb
cmp eax, 0x80000201
jne 0x45d675
mov ebx, 4
lea ebp, [esp + 0x44]
mov dword [esp + 0xc], ebx
jmp 0x45d6bb
cmp eax, 0x80000401
je 0x45d6a6
cmp eax, 0x80000501
je 0x45d692
cmp eax, 0x80000601
je 0x45d67e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.00463bf8
jmp 0x45d6b3
fld dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.00463bf8
jmp 0x45d6b3
mov eax, dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00461ae0
mov edi, dword [esp + 0x3c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
test edx, edx
je 0x45d796
test ecx, ecx
je 0x45d796
inc ecx
push esi
push ecx
call fcn.0046f4b9
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00463bd0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45d738
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x45d78c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x45d781
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0046f4e2
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x45d7b0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret
Function at 0x45df70
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45df98
pop edi
or eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xffffffff
jne 0x45dfba
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x45dfc0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x45e04b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45e04b
test esi, esi
je 0x45e005
cmp esi, 0xffffffff
je 0x45e005
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x45e091
mov eax, dword [esp + 0x160]
test eax, eax
je 0x45e034
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x45e04b
jmp 0x45e043
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x45e04b
mov dword [esp + 0x10], 1
test esi, esi
je 0x45e091
cmp esi, 0xffffffff
je 0x45e091
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x45e0c8
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x45e09e
call edi
test eax, eax
je 0x45e091
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x45e0c8
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x45e079
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x45e091
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x45e0c8
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x45e0ab
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0045ce60
mov edx, eax
lea edi, [esp + 0x44]
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 ebp
pop ebx
add esp, 0x144
ret

Function at 0x45e130
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x45e3f0
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 connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x45e459
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.0045ce60
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 0x45e4c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x45e4d3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.004623c0
add esp, 4
test eax, eax
jne 0x45e4e5
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x45e4f4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x45e54b
mov ebx, dword [ebx + 4]
push edi
call fcn.0046f4b9
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45e52e
push ebp
call fcn.0046f4e2
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.00461d30
push ebp
mov esi, eax
call fcn.0046f4e2
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x45e58d
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.0045ce60
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x45e58a
push esi
call fcn.0045cef0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x45e600
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x45e613
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.004623c0
add esp, 4
test eax, eax
jne 0x45e625
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x45e69c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x45e6ce
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 0x45e688
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x45e658
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x45e6ce
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x45e6ce
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x45e6b7
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x45e6e0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x45e70a
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x45e70a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret

Function at 0x45fc50
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0046f4b9
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x45fcba
push esi
lea edi, [eax + 0x400]
call fcn.0046f4e2
push edi
call fcn.0046f4b9
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x45fc8a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45fcd6
push ecx
push esi
call fcn.00461a50
add esp, 8
mov ebx, eax
push esi
call fcn.0046f4e2
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x461540
Capabilities:
Encode data using xor

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

Function at 0x461700
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 0x461792
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x461784
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 0x46177c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x461745
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 0x471e88
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 0x471eca
call fcn.004751db
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x471eca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x471ec1
xor eax, eax
jmp 0x471ed2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00471ed8
pop edi
pop esi
pop ebx
ret 4
Function at 0x472e66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x476a88
call fcn.00464cc0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004751db
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x472ea5
call fcn.004751db
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x472eb3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x472ec1
or eax, 0xffffffff
jmp 0x472fa9
mov ecx, esi
call fcn.00472ddc
mov dword [ebp - 0x14], eax
call fcn.004704ce
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x472ef8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x472ef8
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00470482
push dword [ebp - 0x14]
call fcn.0046ffb4
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00472b74
cmp eax, edi
je 0x472f6b
test byte [esi + 0x24], 0x10
je 0x472f39
push 4
mov ecx, esi
pop ebx
call fcn.0046f9b4
test ah, 1
je 0x472f31
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00471fda
cmp dword [esi + 0x1c], edi
je 0x472f6b
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0046f9e8
jmp 0x472f6b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x472f7f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x472f98
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x472f98
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00472e16
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x474d4d
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]
cmp dword [esp + 0x10], 0
jne 0x474d7b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x474d99
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00474cb3
jmp 0x474d99
mov eax, dword [esi + 0x14]
test eax, eax
je 0x474d99
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00474cb3
test edi, edi
mov eax, edi
jne 0x474d83
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1002231
Capabilities:
Check os version
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x1004004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x38
lea eax, [ebp - 0x36c]
push esi
push eax
mov dword [ebp - 0x320], esi
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x370], esi
call sub.msvcrt.dll_memset
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x334], 0x10
mov dword [ebp - 0x330], esi
mov dword [ebp - 0x32c], 0x1000
mov dword [ebp - 0x328], esi
mov dword [ebp - 0x31c], esi
mov word [ebp - 0x20c], si
call sub.msvcrt.dll_memset
add esp, 0x18
mov eax, dword [section..data]
cmp eax, section..data
je 0x10022d5
test byte [eax + 0x1c], 0x10
je 0x10022d5
push edi
push 0x100118c
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100197c
lea eax, [ebp - 0x31c]
push eax
push 0x10013bc
lea ecx, [ebp - 0x318]
call fcn.01001e52
cmp edi, esi
jne 0x10022ff
mov dword [ebp - 0x31c], 0x80070057
jmp 0x10023fb
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
push edi
lea eax, [ebp - 0x20c]
jae 0x1002317
push 0x1001318
jmp 0x100231c
push 0x10012c0
push 0x10012b4
push 0x104
push eax
call fcn.01001da3
add esp, 0x14
lea eax, [ebp - 0x320]
push eax
push esi
call dword [sym.imp.ole32.dll_CreateBindCtx]
cmp eax, esi
mov dword [ebp - 0x31c], eax
jl 0x10023fb
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax]
lea edx, [ebp - 0x334]
push edx
push eax
call dword [ecx + 0x18]
cmp eax, esi
mov dword [ebp - 0x31c], eax
jl 0x10023e1
push esi
push esi
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x320]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_SHParseDisplayName]
cmp eax, esi
mov dword [ebp - 0x31c], eax
jl 0x10023e1
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x370]
push eax
mov dword [ebp - 0x370], 0x3c
mov dword [ebp - 0x36c], 0x304
mov dword [ebp - 0x354], 5
mov dword [ebp - 0x364], 0x10012a8
Function at 0x401018
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x427919
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0041c117
mov dword [esi], vtable.CStatic.0
lea edi, [esi + 0x68]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [edi + 4], ebx
mov dword [edi], vtable.CBrush.0
push fcn.00401420
push 0x4013f0
lea ebp, [esi + 0x70]
push 2
push 8
push ebp
mov byte [esp + 0x30], 1
call fcn.0040d4d3
mov dword [esi + 0x80], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x3c], ebx
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0x12
mov byte [esp + 0x20], 2
mov dword [esi], method.CStatic.virtual_0
mov dword [esi + 0x84], 0x400
call ebx
push 0xf
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
call ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
call ebx
push eax
mov ecx, edi
call fcn.00422ace
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
mov ecx, ebp
call fcn.00422ace
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
lea ecx, [esi + 0x78]
call fcn.00422ace
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x412c9d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x435038
cmp edx, dword [eax]
je 0x412cbf
add eax, 8
inc ecx
cmp eax, 0x4350c8
jl 0x412cb0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x435038]
jne 0x412ded
mov eax, dword [0x439bac]
cmp eax, 1
je 0x412dc7
test eax, eax
jne 0x412cf0
cmp dword [0x434924], 1
je 0x412dc7
cmp edx, 0xfc
je 0x412ded
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412d27
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00414090
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ee20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x412d6a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ee20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42c2a0
push edi
call fcn.00415b80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00414090
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004140a0
lea eax, [ebp - 0xa0]
push 0x42c280
push eax
call fcn.004140a0
push dword [esi + 0x43503c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004140a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00416217
add esp, 0x2c
pop edi
jmp 0x412ded
lea eax, [ebp + 8]
lea esi, [esi + 0x43503c]
push 0
push eax
push dword [esi]
call fcn.0040ee20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41a870
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040d9f0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41a93b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41a93b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41a8ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41a8f9
or bh, 8
and edi, 0x8000000
je 0x41a914
mov eax, dword [0x43b33c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41a93b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret