joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dd80
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x497779
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebp
push esi
push edi
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x170], esi
call fcn.0046dd2d
push 0x4c35fc
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 1
call fcn.004737a5
mov ecx, dword [esp + 0x178]
lea eax, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x178], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40de00
mov edx, dword [esp + 0x28]
and edx, 0x10
cmp dl, 0x10
jne 0x40de00
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40df28
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x1c]
call fcn.0046ddc0
mov eax, dword [esp + 0x178]
cmp dword [eax - 8], esi
jle 0x40de85
mov al, byte [esi + eax]
cmp al, 0x5c
je 0x40de33
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call fcn.00473a74
jmp 0x40de54
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0046df35
push 0x4bb818
lea ecx, [esp + 0x10]
call fcn.00473a4d
mov eax, dword [esp + 0x178]
mov ecx, dword [eax - 8]
dec ecx
cmp esi, ecx
jne 0x40de7d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0046df35
mov eax, dword [esp + 0x178]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jl 0x40de18
mov ebp, dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call ebp
mov eax, dword [esp + 0x1c]
mov esi, 1
cmp eax, esi
jle 0x40def9
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x1c]
call 0x3fc7d0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 3
call fcn.0047381e
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 2
call fcn.004736e5
mov eax, dword [esp + 0xc]
push 0
push eax
call edi
test eax, eax
je 0x40def0
mov ecx, dword [esp + 0xc]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x40dea1
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1c]
call fcn.0046ddc0
mov eax, dword [esp + 0x178]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [esp + 0x28]
push eax
and ecx, 0x10
cmp cl, 0x10
jne 0x40df65
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x170], 1
call fcn.004736e5
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.0046dd60
lea ecx, [esp + 0x178]
mov dword [esp + 0x170], 0xffffffff
call fcn.004736e5
mov al, 1
jmp 0x40dfa2
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x170], 1
call fcn.004736e5
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.0046dd60
lea ecx, [esp + 0x178]
mov dword [esp + 0x170], 0xffffffff
call fcn.004736e5
xor al, al
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x168
ret
Function at 0x40e5b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
mov esi, dword [esp + 0x134]
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e641
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40e63a
cmp dword [esp + 0x10], esi
je 0x40e600
lea ecx, [esp + 8]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40e63a
cmp dword [esp + 0x10], esi
jne 0x40e5eb
push edi
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x140]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x128
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
add esp, 0x128
ret
Function at 0x40e650
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x49782b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
push ebx
push ebp
mov ebp, dword [esp + 0x28c]
push esi
push edi
lea eax, [esp + 0x1c]
mov esi, dword [ebp]
push 0x92
push eax
call fcn.0040cf50
mov edx, dword [eax]
push esi
lea ecx, [ebp + 0x108]
push edx
push str._s__d
push ecx
mov dword [esp + 0x2c], ecx
call fcn.00445f52
add esp, 0x18
lea ecx, [esp + 0x1c]
call fcn.004736e5
push esi
push 0
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ebx, [ebp + 4]
mov dword [esp + 0x10], eax
test eax, eax
push ebx
push esi
je 0x40e6ff
push eax
call fcn.0040e560
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e728
call fcn.0040e5b0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40e73e
or eax, 0xffffffff
jmp 0x40e7f6
push 0x101
lea eax, [esp + 0x128]
xor esi, esi
push 0x160
push eax
push esi
push ebx
mov dword [esp + 0x24], esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x40e76d
mov ecx, dword [esp + 0x128]
mov dword [esp + 0x10], ecx
mov edx, dword [0x4bfcf8]
mov dword [esp + 0x18], edx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x28c], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
push ecx
push ebx
push str.Getting_file_info:__s__d
push eax
call fcn.0046c3e9
lea ecx, [ebp + 0x28c]
lea edx, [esp + 0x30]
push ecx
add ebp, 0x20c
push edx
push ebp
push ebx
call fcn.0040d310
add esp, 0x20
test al, al
je 0x40e7de
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov dword [esp + 0x28c], 0xffffffff
call fcn.004736e5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x280
ret
Function at 0x40eab0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x58
mov eax, dword [0x4bb810]
push edi
mov dword [esp + 0x1c], eax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x60]
lea edx, [esp + 4]
add cl, 0x41
lea eax, [esp + 0xc]
mov byte [esp + 0x1c], cl
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x68]
cmp edx, eax
mov eax, dword [esp + 4]
pop edi
jl 0x40eb0c
jg 0x40eb08
cmp eax, dword [esp + 0x60]
jbe 0x40eb0c
xor eax, eax
xor edx, edx
add esp, 0x58
ret
Function at 0x4138c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x78
mov eax, 0x1111110e
mov edx, 0x101110e
push ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 0x4af44]
push esi
mov esi, 0xe111111
cmp edx, eax
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x2020207
mov dword [esp + 0x40], 0x2060202
mov dword [esp + 0x44], 0x408101f
mov dword [esp + 0x48], 0xe110102
mov dword [esp + 0x50], 0xe110106
mov dword [esp + 0x54], 0x121f0202
mov dword [esp + 0x58], 0x2060a0a
mov dword [esp + 0x60], 0x1f10101e
mov dword [esp + 0x68], 0xe11101e
mov dword [esp + 0x6c], 0x4040808
mov dword [esp + 0x70], 0x1f010202
mov dword [esp + 0x78], 0xe11110e
mov dword [esp + 0x7c], 0xf01110e
mov dword [esp + 0x80], esi
jge 0x413979
mov eax, dword [ecx + 0x4af3c]
mov dword [esp + 0x18], eax
jmp 0x413983
mov ecx, dword [ecx + 0x4af40]
mov dword [esp + 0x18], ecx
xor ecx, ecx
cmp edx, 0x63
setg cl
add ecx, 2
mov dword [esp + 0xc], 1
mov dword [esp + 0x24], ecx
lea eax, [ecx - 1]
test eax, eax
jle 0x4139b1
mov esi, dword [esp + 0xc]
lea esi, [esi + esi*4]
shl esi, 1
dec eax
mov dword [esp + 0xc], esi
jne 0x4139a1
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x413ab1
push ebp
mov dword [esp + 0x24], ecx
mov eax, edx
mov ecx, 0xa
cdq
idiv dword [esp + 0x10]
cdq
idiv ecx
mov ecx, 5
mov dword [esp + 0x14], ecx
cmp edx, 1
mov dword [esp + 0x2c], edx
jne 0x4139f3
mov dword [esp + 0x14], 3
mov ecx, dword [esp + 0x14]
lea edi, [ecx + 0x37]
mov ebx, 0xb
mov dword [esp + 0x20], edi
xor esi, esi
test ecx, ecx
jle 0x413a66
mov ebp, dword [esp + edx*8 + 0x38]
mov edx, dword [esp + edx*8 + 0x3c]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x34]
mov ecx, edi
mov eax, ebp
call fcn.00446c20
and eax, 1
xor ecx, ecx
or eax, ecx
je 0x413a56
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x34]
mov eax, esi
push ebx
sub eax, edx
lea edx, [eax + ecx + 3]
push edx
call fcn.00413850
add esp, 0x14
mov eax, dword [esp + 0x14]
inc esi
dec edi
cmp esi, eax
jl 0x413a11
mov edx, dword [esp + 0x2c]
mov ecx, eax
mov edi, dword [esp + 0x20]
sub edi, 8
dec ebx
cmp ebx, 3
mov dword [esp + 0x20], edi
jg 0x4139ff
mov eax, 0x66666667
imul dword [esp + 0x10]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
lea eax, [edx + ecx + 1]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jne 0x4139c6
pop ebp
cmp edx, 0x64
jge 0x413afb
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x88]
push ebx
push esi
push edi
push 0xb
push 0xf
call fcn.00413850
push ebx
push esi
push edi
push 0xc
push 0xe
call fcn.00413850
push ebx
push esi
push edi
push 0xa
push 0xe
call fcn.00413850
push ebx
push esi
push edi
push 0xb
push 0xd
call fcn.00413850
add esp, 0x50
pop edi
pop esi
pop ebx
add esp, 0x78
ret 0xc
Function at 0x418170
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x32c
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x8c]
mov edx, dword [ebx + 0x90]
push edi
add edx, 0x15c
lea ecx, [eax + 0x40]
add eax, 0x14
push ecx
push eax
push edx
lea eax, [esp + 0xb4]
push str._s_s__s.hdt
push eax
call fcn.00445f52
lea ecx, [esp + 0xbc]
push ecx
call fcn.0040dfc0
add esp, 0x18
test al, al
je 0x418398
push 0x180
lea edx, [esp + 0xac]
push 0x8102
push edx
call fcn.00454d99
mov ebp, eax
push ebp
call fcn.0046b255
add esp, 0x10
test eax, eax
jne 0x4182cf
mov ecx, 0x25
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push 4
lea eax, [esp + 0x18]
push str.HDT0
push eax
call fcn.00446d50
mov edx, dword [ebx + 0x8c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
lea edi, [edx + 0x14]
lea esi, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x40]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x18], esi
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0x13c]
and ecx, 3
push 0x1004
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x60]
push eax
mov dword [esp + 0x60], ecx
mov edx, dword [edx + 0x64]
mov dword [esp + 0x64], edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
mov dword [esp + 0x64], eax
test eax, eax
jle 0x4182ba
lea edi, [ebx + 0x120]
push esi
mov ecx, edi
call fcn.0041c4a0
mov cl, byte [eax + 0xc]
mov byte [esp + esi + 0x68], cl
mov dl, byte [eax + 0xd]
mov byte [esp + esi + 0x88], dl
mov eax, dword [esp + 0x64]
inc esi
cmp esi, eax
jl 0x418298
lea eax, [esp + 0x14]
push 0x94
push eax
push ebp
call fcn.00451322
add esp, 0xc
jmp 0x4182ed
lea ecx, [esp + 0x14]
push 0x94
push ecx
push ebp
call fcn.004510e4
add esp, 0xc
cmp eax, 0x94
jne 0x418398
lea edx, [esp + 0x14]
push 0x4be938
push edx
call fcn.00446e50
add esp, 8
test eax, eax
je 0x418398
push 2
push 0
push ebp
call fcn.00447f2e
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x1b8]
add esp, 0xc
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x64]
xor esi, esi
test eax, eax
jle 0x41836f
add ebx, 0x120
lea edi, [esp + 0x1bc]
push esi
mov ecx, ebx
call fcn.0041c4a0
mov edx, dword [eax]
mov ecx, edi
inc esi
add edi, 0xc
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x64]
cmp esi, eax
jl 0x418349
lea ecx, [esp + 0x1ac]
push 0x190
push ecx
push ebp
call fcn.00451322
push ebp
call fcn.0044fac8
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x32c
ret
Function at 0x420670
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x324
lea eax, [esp]
lea ecx, [esp + 4]
push edi
push eax
push 0x320
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4206b1
mov edi, dword [esp + 4]
shr edi, 2
test edi, edi
jle 0x4206b1
push esi
lea esi, [esp + 0xc]
mov edx, dword [esi]
push edx
call fcn.0041e880
add esp, 4
add esi, 4
dec edi
jne 0x42069f
pop esi
pop edi
add esp, 0x324
ret
Function at 0x4235b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov ebp, dword [esi + 0x3c]
mov eax, dword [ebp + 0x74]
mov edx, dword [ebp + 0x70]
add eax, edx
cdq
mov ebx, edx
mov dword [esp + 0x14], eax
cmp ebx, edi
mov dword [esp + 0x18], ebx
jl 0x423768
jg 0x4235e4
cmp eax, 1
jb 0x423768
mov dword [esp + 0x1c], edi
add ebp, 0x10c824
mov dword [esp + 0x10], 0x64
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
push 0
push 0x3e8
push eax
push ecx
call fcn.00446060
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push edx
push eax
call fcn.00445fb0
cmp edx, edi
jl 0x423629
jg 0x423623
cmp eax, dword [esp + 0x1c]
jbe 0x423629
mov dword [esp + 0x1c], eax
mov edi, edx
mov eax, dword [esp + 0x10]
add ebp, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x4235f6
mov eax, dword [esp + 0x1c]
push 0
add eax, 0x63
push 0x64
adc edi, 0
push edi
push eax
call fcn.00445fb0
push 0
push 0x64
push edx
push eax
call fcn.00446060
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x7c], edx
mov edx, dword [esi + 0x78]
cmp edx, eax
jne 0x423768
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x74]
cmp eax, ecx
jne 0x423768
xor ecx, ecx
jmp 0x423681
mov ebx, dword [esp + 0x18]
mov edi, dword [esi + 0x5c]
mov eax, 0x51eb851f
mov edx, edi
mov ebp, dword [esi + 0x4c]
imul edx, ecx
imul edx
sar edx, 5
mov eax, edx
push 0
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
add edx, ebp
push 0x3e8
mov dword [esp + 0x24], edx
lea edx, [ecx + 1]
mov dword [esp + 0x18], edx
imul edx, edi
imul edx
sar edx, 5
mov eax, edx
mov edi, dword [esi + 0x70]
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0x3c]
lea edx, [edx + ebp - 2]
mov ebp, dword [esi + 0x74]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + ecx*8 + 0x10c828]
push edx
mov eax, dword [eax + ecx*8 + 0x10c824]
push eax
call fcn.00446060
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push edx
push eax
call fcn.00445fb0
mov ebx, edi
mov edi, ebp
sub ebx, eax
mov eax, dword [esi + 0x60]
sbb edi, edx
cdq
push edi
push ebx
push edx
push eax
call fcn.00446060
mov ecx, dword [esi + 0x70]
push ebp
push ecx
push edx
push eax
call fcn.00445fb0
mov ecx, dword [esi + 0x50]
add eax, ecx
mov ecx, dword [esi + 0x58]
dec ecx
cmp edi, ebp
jg 0x42375b
jl 0x42372d
cmp ebx, dword [esi + 0x70]
jae 0x42375b
mov edi, dword [esp + 0x1c]
push 0xff80
push 0x8040
sub esp, 0x10
mov edx, esp
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, esi
call fcn.00423080
mov ecx, dword [esp + 0x10]
cmp ecx, 0x64
jl 0x42367d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x4257c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
pop edi
jae 0x425846
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4257fe
call fcn.004258a0
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x425813
mov eax, 5
add esp, 0x94
ret
cmp eax, 5
jne 0x42582c
mov eax, dword [esp + 8]
test eax, eax
jne 0x42582e
mov eax, 6
add esp, 0x94
ret
jb 0x42583a
mov eax, 7
add esp, 0x94
ret
mov eax, 1
add esp, 0x94
ret
cmp al, 4
jae 0x425853
xor eax, eax
add esp, 0x94
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x425867
call fcn.004258a0
cmp dword [esp + 4], 4
jne 0x42588d
mov eax, dword [esp + 8]
cmp eax, 0xa
jne 0x425883
mov eax, 3
add esp, 0x94
ret
cmp eax, 0x5a
mov eax, 4
je 0x425892
mov eax, 2
add esp, 0x94
ret

Function at 0x42d480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x499f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], vtable.CFont.0
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x70], ebx
call dword [sym.imp.USER32.dll_CopyRect]
push 0xfffffffffffffffe
lea edx, [esp + 0x18]
push 0xfffffffffffffffe
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x7c]
sub eax, esi
neg ecx
sbb ecx, ecx
mov dword [esp + 0x24], eax
and ecx, 0x12c
mov edi, str.Marlett
add ecx, 0x190
xor eax, eax
mov dword [esp + 0x34], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x40]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x28], ebx
shr ecx, 2
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], 1
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x10]
call fcn.00476be4
mov esi, dword [esp + 0x70]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x28]
push 1
mov ecx, esi
mov edi, eax
call fcn.00476335
mov edx, dword [esi]
mov ebx, eax
lea eax, [esp + 0x14]
push 0x21
push eax
lea ecx, [esp + 0x80]
push 1
push ecx
mov ecx, esi
call dword [edx + 0x68]
push ebx
mov ecx, esi
call fcn.00476335
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x28]
mov dword [esp + 0xc], vtable.CGdiObject.0
lea ecx, [esp + 0xc]
mov dword [esp + 0x68], 1
call fcn.00476c3b
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x10
Function at 0x42e000
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x499f38
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, dword [esp + 0x34]
push edi
push esi
call fcn.0042ed60
mov edi, eax
add esp, 4
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x42e138
push ebx
push ebp
push 0
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esp + 0x44], eax
call fcn.004760b0
lea ecx, [esp + 0x20]
mov ebx, eax
call fcn.0047600e
test ebx, ebx
mov dword [esp + 0x38], 0
jne 0x42e063
xor eax, eax
jmp 0x42e066
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call fcn.004760c5
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
sub eax, edx
sub ecx, ebp
add eax, 0xa
add ecx, 0xa
push eax
push ecx
mov ecx, dword [ebx + 4]
lea esi, [edi + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, esi
call fcn.00476be4
test esi, esi
je 0x42e0bb
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x24]
push esi
push edx
call fcn.00476206
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
mov edx, dword [edi + 0xc]
mov ebp, dword [edi + 8]
sub eax, ecx
mov ecx, dword [esp + 0x18]
add eax, 0xa
sub ecx, dword [esp + 0x10]
add ecx, 0xa
test ebx, ebx
je 0x42e0ed
mov ebx, dword [ebx + 4]
push 0xcc0020
push edx
push ebp
push ebx
push eax
mov eax, dword [esp + 0x38]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
pop ebp
pop ebx
test esi, esi
je 0x42e10f
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call fcn.00476206
mov edx, dword [esp + 0x38]
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00476143
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8