joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c64
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040ef00
and dword [ebp - 8], 0
cmp dword [ebp + 0x14], 0
push esi
push edi
je 0x408db4
push dword [ebp + 0x14]
lea eax, [ebp - 0x100c]
push eax
call fcn.0040e770
cmp byte [ebp - 0x100c], 0
pop ecx
pop ecx
mov dword [ebp + 0x14], 0x80000001
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x100c]
je 0x408cc9
mov al, byte [esi]
cmp al, 0x5c
je 0x408cc9
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x408cc3
inc esi
inc esi
jmp 0x408cc4
inc esi
cmp byte [esi], 0
jne 0x408cae
cmp byte [esi], 0x5c
jne 0x408cdb
and byte [esi], 0
inc esi
mov dword [ebp - 0xc], 1
jmp 0x408cdf
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x100c]
push str.HKEY_CLASSES_ROOT
push eax
call fcn.0040f5b0
pop ecx
test eax, eax
pop ecx
jne 0x408d01
mov dword [ebp + 0x14], 0x80000000
mov edi, esi
jmp 0x408d6b
lea eax, [ebp - 0x100c]
push str.HKEY_CURRENT_USER
push eax
call fcn.0040f5b0
pop ecx
test eax, eax
pop ecx
jne 0x408d21
mov dword [ebp + 0x14], 0x80000001
jmp 0x408cfd
lea eax, [ebp - 0x100c]
push str.HKEY_LOCAL_MACHINE
push eax
call fcn.0040f5b0
pop ecx
test eax, eax
pop ecx
jne 0x408d41
mov dword [ebp + 0x14], 0x80000002
jmp 0x408cfd
lea eax, [ebp - 0x100c]
push str.HKEY_USERS
push eax
call fcn.0040f5b0
pop ecx
test eax, eax
pop ecx
jne 0x408d61
mov dword [ebp + 0x14], 0x80000003
jmp 0x408cfd
cmp dword [ebp - 0xc], 0
je 0x408d6b
mov byte [esi - 1], 0x5c
push edi
call fcn.0040e860
pop ecx
add eax, edi
cmp eax, edi
jbe 0x408d88
cmp byte [eax], 0x5c
je 0x408d8d
push edi
push eax
call fcn.004031aa
pop ecx
pop ecx
jmp 0x408d74
cmp byte [eax], 0x5c
jne 0x408d95
and byte [eax], 0
lea esi, [eax + 1]
jmp 0x408d97
mov esi, eax
cmp esi, edi
jbe 0x408db4
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408db8
xor eax, eax
jmp 0x408de4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408dd8
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x408de8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0040ef00
and dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x408f88
push dword [ebp + 8]
lea eax, [ebp - 0x2014]
push eax
call fcn.0040e743
pop ecx
mov edi, 0x80000001
pop ecx
mov dword [ebp + 8], edi
xor ecx, ecx
lea ebx, [ebp - 0x2014]
cmp word [ebp - 0x2014], cx
lea esi, [ebp - 0x2014]
je 0x408e55
mov ax, word [esi]
cmp ax, 0x5c
je 0x408e55
and ax, 0xfc00
cmp ax, 0xd800
jne 0x408e4e
add esi, 4
jmp 0x408e50
inc esi
inc esi
cmp word [esi], cx
jne 0x408e36
cmp word [esi], 0x5c
jne 0x408e6c
mov dword [ebp - 0x10], esi
mov word [esi], cx
inc esi
mov dword [ebp - 4], 1
inc esi
jmp 0x408e6f
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x2014]
push 0x42b3cc
push eax
call fcn.0040f634
pop ecx
test eax, eax
pop ecx
jne 0x408e91
mov dword [ebp + 8], 0x80000000
mov ebx, esi
jmp 0x408efd
lea eax, [ebp - 0x2014]
push 0x42b3a8
push eax
call fcn.0040f634
pop ecx
test eax, eax
pop ecx
jne 0x408ead
mov dword [ebp + 8], edi
jmp 0x408e8d
lea eax, [ebp - 0x2014]
push 0x42b380
push eax
call fcn.0040f634
pop ecx
test eax, eax
pop ecx
jne 0x408ecd
mov dword [ebp + 8], 0x80000002
jmp 0x408e8d
lea eax, [ebp - 0x2014]
push 0x42b368
push eax
call fcn.0040f634
pop ecx
test eax, eax
pop ecx
jne 0x408eed
mov dword [ebp + 8], 0x80000003
jmp 0x408e8d
cmp dword [ebp - 4], 0
je 0x408efd
and dword [ebp - 4], 0
mov word [esi - 2], 0x5c
push ebx
call fcn.0040e8db
pop ecx
lea eax, [ebx + eax*2]
cmp eax, ebx
jbe 0x408f1c
cmp word [eax], 0x5c
je 0x408f22
push ebx
push eax
call fcn.00403136
pop ecx
pop ecx
jmp 0x408f07
cmp word [eax], 0x5c
jne 0x408f29
and word [eax], 0
add eax, 2
cmp eax, ebx
mov dword [ebp - 0xc], eax
jbe 0x408f88
lea eax, [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x20006
push eax
push edi
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x408f8f
cmp dword [ebp - 4], 0
je 0x408f5a
mov eax, dword [ebp - 0x10]
mov word [eax], 0x5c
lea eax, [ebp - 0x2014]
push eax
call fcn.0040836b
test eax, eax
pop ecx
je 0x408f88
xor eax, eax
cmp dword [ebp - 4], eax
je 0x408f78
mov ecx, dword [ebp - 0x10]
mov word [ecx], ax
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x408f8f
xor eax, eax
jmp 0x40900f
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
test esi, esi
jne 0x408fe5
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x408fe5
cmp eax, 2
jbe 0x408fda
cmp eax, 3
jbe 0x408fe5
cmp eax, 5
jbe 0x408fd5
cmp eax, 7
jne 0x408fe5
xor esi, esi
mov edi, ebx
cmp word [ebx], si
je 0x408fd2
push edi
call fcn.0040e8db
lea esi, [esi + eax*2 + 2]
pop ecx
cmp word [edi + esi*2], 0
lea edi, [edi + esi*2]
jne 0x408fbd
inc esi
jmp 0x408fe5
push 4
pop esi
jmp 0x408fe5
push ebx
call fcn.0040e8db
pop ecx
lea esi, [eax + eax + 2]
push esi
push ebx
push dword [ebp + 0xc]
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x409003
mov dword [ebp - 0x14], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409014
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040ef00
and dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x4091a3
push dword [ebp + 8]
lea eax, [ebp - 0x1014]
push eax
call fcn.0040e770
cmp byte [ebp - 0x1014], 0
pop ecx
mov edi, 0x80000001
pop ecx
mov dword [ebp + 8], edi
lea ebx, [ebp - 0x1014]
lea esi, [ebp - 0x1014]
je 0x40907b
mov al, byte [esi]
cmp al, 0x5c
je 0x40907b
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x409075
inc esi
inc esi
jmp 0x409076
inc esi
cmp byte [esi], 0
jne 0x409060
cmp byte [esi], 0x5c
jne 0x409090
and byte [esi], 0
mov dword [ebp - 0x10], esi
inc esi
mov dword [ebp - 4], 1
jmp 0x409094
and dword [ebp - 4], 0
lea eax, [ebp - 0x1014]
push str.HKEY_CLASSES_ROOT
push eax
call fcn.0040f5b0
pop ecx
test eax, eax
pop ecx
jne 0x4090b6
mov dword [ebp + 8], 0x80000000
mov ebx, esi
jmp 0x409120
lea eax, [ebp - 0x1014]
push str.HKEY_CURRENT_USER
push eax
call fcn.0040f5b0
pop ecx
test eax, eax
pop ecx
jne 0x4090d2
mov dword [ebp + 8], edi
jmp 0x4090b2
lea eax, [ebp - 0x1014]
push str.HKEY_LOCAL_MACHINE
push eax
call fcn.0040f5b0
pop ecx
test eax, eax
pop ecx
jne 0x4090f2
mov dword [ebp + 8], 0x80000002
jmp 0x4090b2
lea eax, [ebp - 0x1014]
push str.HKEY_USERS
push eax
call fcn.0040f5b0
pop ecx
test eax, eax
pop ecx
jne 0x409112
mov dword [ebp + 8], 0x80000003
jmp 0x4090b2
cmp dword [ebp - 4], 0
je 0x409120
and dword [ebp - 4], 0
mov byte [esi - 1], 0x5c
push ebx
call fcn.0040e860
pop ecx
add eax, ebx
cmp eax, ebx
jbe 0x40913d
cmp byte [eax], 0x5c
je 0x409142
push ebx
push eax
call fcn.004031aa
pop ecx
pop ecx
jmp 0x409129
cmp byte [eax], 0x5c
jne 0x409146
and byte [eax], 0
inc eax
cmp eax, ebx
mov dword [ebp - 0xc], eax
jbe 0x4091a3
lea eax, [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 0x20006
push eax
push edi
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x4091a7
cmp dword [ebp - 4], 0
je 0x409175
mov eax, dword [ebp - 0x10]
mov byte [eax], 0x5c
lea eax, [ebp - 0x1014]
push eax
call fcn.0040853d
test eax, eax
pop ecx
je 0x4091a3
cmp dword [ebp - 4], 0
je 0x409192
mov eax, dword [ebp - 0x10]
and byte [eax], 0
lea eax, [ebp - 8]
push eax
push edi
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x4091a7
xor eax, eax
jmp 0x409222
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
test esi, esi
jne 0x4091f8
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x4091f8
cmp eax, 2
jbe 0x4091ee
cmp eax, 3
jbe 0x4091f8
cmp eax, 5
jbe 0x4091e9
cmp eax, 7
jne 0x4091f8
xor esi, esi
cmp byte [ebx], 0
mov edi, ebx
je 0x4091f7
push edi
call fcn.0040e860
lea esi, [esi + eax + 1]
pop ecx
add edi, esi
cmp byte [edi], 0
jne 0x4091d5
jmp 0x4091f7
push 4
pop esi
jmp 0x4091f8
push ebx
call fcn.0040e860
pop ecx
mov esi, eax
inc esi
push esi
push ebx
push dword [ebp + 0xc]
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x409216
mov dword [ebp - 0x14], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409227
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040ef00
cmp dword [ebp + 8], 0
push esi
push edi
jne 0x409243
xor eax, eax
jmp 0x4093dd
push dword [ebp + 8]
lea eax, [ebp - 0x200c]
push eax
call fcn.0040e743
pop ecx
mov dword [ebp + 8], 0x80000001
pop ecx
lea edi, [ebp - 0x200c]
xor ecx, ecx
lea esi, [ebp - 0x200c]
cmp word [ebp - 0x200c], cx
je 0x409291
mov ax, word [esi]
cmp ax, 0x5c
je 0x409291
and ax, 0xfc00
cmp ax, 0xd800
jne 0x40928a
add esi, 4
jmp 0x40928c
inc esi
inc esi
cmp word [esi], cx
jne 0x409272
cmp word [esi], 0x5c
jne 0x4092a8
mov dword [ebp - 0xc], esi
mov word [esi], cx
inc esi
mov dword [ebp - 4], 1
inc esi
jmp 0x4092ab
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x200c]
push 0x42b3cc
push eax
call fcn.0040f634
pop ecx
test eax, eax
pop ecx
jne 0x4092cd
mov dword [ebp + 8], 0x80000000
mov edi, esi
jmp 0x40933d
lea eax, [ebp - 0x200c]
push 0x42b3a8
push eax
call fcn.0040f634
pop ecx
test eax, eax
pop ecx
jne 0x4092ed
mov dword [ebp + 8], 0x80000001
jmp 0x4092c9
lea eax, [ebp - 0x200c]
push 0x42b380
push eax
call fcn.0040f634
pop ecx
test eax, eax
pop ecx
jne 0x40930d
mov dword [ebp + 8], 0x80000002
jmp 0x4092c9
lea eax, [ebp - 0x200c]
push 0x42b368
push eax
call fcn.0040f634
pop ecx
test eax, eax
pop ecx
jne 0x40932d
mov dword [ebp + 8], 0x80000003
jmp 0x4092c9
cmp dword [ebp - 4], 0
je 0x40933d
and dword [ebp - 4], 0
mov word [esi - 2], 0x5c
push edi
call fcn.0040e8db
pop ecx
lea eax, [edi + eax*2 - 2]
cmp eax, edi
jbe 0x409372
cmp word [eax], 0x5c
je 0x409378
lea ecx, [edi + 2]
cmp eax, ecx
jbe 0x40936e
mov cx, word [eax - 2]
and cx, 0xfc00
cmp cx, 0xd800
jne 0x40936e
sub eax, 4
jmp 0x409348
dec eax
dec eax
jmp 0x409348
cmp word [eax], 0x5c
jne 0x409381
and word [eax], 0
lea esi, [eax + 2]
jmp 0x409383
mov esi, eax
cmp esi, edi
jbe 0x40923c
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4093a9
push 1
pop eax
jmp 0x4093dd
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x4093ca
mov eax, dword [ebp - 0xc]
mov word [eax], 0x5c
lea eax, [ebp - 0x200c]
push eax
call fcn.004086fc
neg eax
sbb eax, eax
pop ecx
neg eax
pop edi
pop esi
leave
ret
Function at 0x4093e1
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040ef00
cmp dword [ebp + 8], 0
push esi
push edi
jne 0x4093fd
xor eax, eax
jmp 0x40957f
push dword [ebp + 8]
lea eax, [ebp - 0x100c]
push eax
call fcn.0040e770
cmp byte [ebp - 0x100c], 0
pop ecx
pop ecx
mov dword [ebp + 8], 0x80000001
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x100c]
je 0x409445
mov al, byte [esi]
cmp al, 0x5c
je 0x409445
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40943f
inc esi
inc esi
jmp 0x409440
inc esi
cmp byte [esi], 0
jne 0x40942a
cmp byte [esi], 0x5c
jne 0x40945a
and byte [esi], 0
mov dword [ebp - 0xc], esi
inc esi
mov dword [ebp - 4], 1
jmp 0x40945e
and dword [ebp - 4], 0
lea eax, [ebp - 0x100c]
push str.HKEY_CLASSES_ROOT
push eax
call fcn.0040f5b0
pop ecx
test eax, eax
pop ecx
jne 0x409480
mov dword [ebp + 8], 0x80000000
mov edi, esi
jmp 0x4094ee
lea eax, [ebp - 0x100c]
push str.HKEY_CURRENT_USER
push eax
call fcn.0040f5b0
pop ecx
test eax, eax
pop ecx
jne 0x4094a0
mov dword [ebp + 8], 0x80000001
jmp 0x40947c
lea eax, [ebp - 0x100c]
push str.HKEY_LOCAL_MACHINE
push eax
call fcn.0040f5b0
pop ecx
test eax, eax
pop ecx
jne 0x4094c0
mov dword [ebp + 8], 0x80000002
jmp 0x40947c
lea eax, [ebp - 0x100c]
push str.HKEY_USERS
push eax
call fcn.0040f5b0
pop ecx
test eax, eax
pop ecx
jne 0x4094e0
mov dword [ebp + 8], 0x80000003
jmp 0x40947c
cmp dword [ebp - 4], 0
je 0x4094ee
and dword [ebp - 4], 0
mov byte [esi - 1], 0x5c
push edi
call fcn.0040e860
pop ecx
lea esi, [eax + edi - 1]
cmp esi, edi
jbe 0x40951e
cmp byte [esi], 0x5c
je 0x409523
lea eax, [edi + 1]
cmp esi, eax
jbe 0x40951b
mov al, byte [esi - 1]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40951b
dec esi
dec esi
jmp 0x4094f9
dec esi
jmp 0x4094f9
cmp byte [esi], 0x5c
jne 0x409527
and byte [esi], 0
inc esi
cmp esi, edi
jbe 0x4093f6
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40954d
push 1
pop eax
jmp 0x40957f
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x40956c
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x5c
lea eax, [ebp - 0x100c]
push eax
call fcn.004088f1
neg eax
sbb eax, eax
pop ecx
neg eax
pop edi
pop esi
leave
ret
Function at 0x40d215
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d29a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40d293
cmp eax, esi
je 0x40d293
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x40d293
lea ecx, [ebp - 0x10]
push esi
push ecx
push dword [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d2a3
push dword [ebp + 0xc]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x10], eax
jne 0x40d2e2
push 0x208
lea eax, [ebp - 0x424]
push esi
push eax
call fcn.0040e9b0
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40d2f1
push dword [ebp + 0xc]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40d29a
mov dword [ebp - 4], 1
push 0x208
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0040e9b0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x424]
push dword [ebp - 4]
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, dword [ebp - 4]
jne 0x40d373
push esi
push 0x80
push 1
push esi
push esi
lea eax, [ebp - 0x21c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40d373
lea ecx, [ebp - 0x10]
push esi
push ecx
push dword [ebp - 8]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d36e
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
je 0x40d378
push dword [ebp - 0xc]
call ebx
inc dword [ebp - 4]
jne 0x40d2f8
push dword [ebp - 0xc]
call ebx
push dword [ebp + 0xc]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], esi
je 0x40d29a
cmp dword [ebp + 8], esi
je 0x40d3a9
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call fcn.0040e743
pop ecx
pop ecx
push 1
pop eax
jmp 0x40d29c
Function at 0x40d3b1
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d436
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40d42f
cmp eax, esi
je 0x40d42f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x40d42f
lea ecx, [ebp - 0x10]
push esi
push ecx
push dword [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d43f
push dword [ebp + 0xc]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x10], eax
jne 0x40d47e
push 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0040e9b0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40d48d
push dword [ebp + 0xc]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40d436
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
add eax, 0x800
mov dword [ebp - 0x14], eax
push 0x104
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0040e9b0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push dword [ebp - 4]
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, dword [ebp - 4]
jne 0x40d51a
push esi
push 0x80
push 1
push esi
push esi
lea eax, [ebp - 0x118]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40d51a
lea ecx, [ebp - 0x10]
push esi
push ecx
push dword [ebp - 8]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d515
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
je 0x40d51f
push dword [ebp - 0xc]
call ebx
inc dword [ebp - 4]
jne 0x40d49f
push dword [ebp - 0xc]
call ebx
push dword [ebp + 0xc]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], esi
je 0x40d436
cmp dword [ebp + 8], esi
je 0x40d550
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call fcn.0040e770
pop ecx
pop ecx
push 1
pop eax
jmp 0x40d438
Function at 0x41a6b0
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.0040ef00
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41a77b
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 0x41a77b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41a72e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41a739
or bh, 8
and edi, 0x8000000
je 0x41a754
mov eax, dword [0x45545c]
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 0x41a77b
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
Function at 0x41ab50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41ab7b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41ab9f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41abba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20