joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411600
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
mov ax, word [0x803b7c]
and ecx, 0xff
push ebp
push esi
mov esi, dword [0x4b64f0]
shl ecx, 5
mov word [esp + 0xc], ax
and esi, 0xffff
mov eax, dword [ecx + 0x7e175c]
xor edx, edx
div esi
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov ecx, dword [edx]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov ebp, dword [edx]
mov dword [esp + 8], ebp
test eax, eax
jbe 0x4116e1
mov ecx, dword [esp + 0xc]
push ebx
push edi
mov edi, ecx
and edi, 0xffff
lea ebx, [ecx - 0x10]
mov dword [esp + 0x14], eax
push 0
lea eax, [esp + 0x1c]
push 2
push eax
call fcn.00411aa0
push 0
push 2
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.004119b0
mov dl, al
mov eax, dword [esp + 0x3c]
and edx, 0xff
add esp, 0x1c
add eax, edx
xor edx, edx
mov dword [esp + 0x20], eax
div edi
cmp dx, bx
jne 0x4116d4
mov esi, 8
push 0
push 2
lea eax, [esp + 0x18]
push 0xffff
push eax
call fcn.004119b0
mov ecx, dword [esp + 0x30]
and eax, 0xff
add esp, 0x10
add ecx, eax
dec esi
mov dword [esp + 0x20], ecx
jne 0x4116ac
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x41166c
pop edi
pop ebx
lea ecx, [esp + 0x18]
push ecx
push ebp
call fcn.0040a480
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [eax], edx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
pop esi
lea ecx, [eax + ebp]
pop ebp
mov dword [edx], ecx
add esp, 0xc
ret

Function at 0x412130
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x41217c
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x41217c
pop edi
mov al, 0x64
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
dec eax
je 0x4121b0
dec eax
jne 0x4121e1
cmp dword [esp + 0xc], 5
jne 0x4121e1
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x4121a1
pop edi
mov al, 0x28
pop esi
add esp, 0x9c
ret
test eax, eax
jne 0x4121e1
pop edi
mov al, 0x1e
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 4
jne 0x4121e1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4121ca
pop edi
xor al, al
pop esi
add esp, 0x9c
ret
cmp eax, 0xa
jne 0x4121da
pop edi
mov al, al
pop esi
add esp, 0x9c
ret
cmp eax, 0x5a
mov al, 0x14
je 0x4121e3
mov al, 0x50
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x4121f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
lea eax, [esp]
push esi
push eax
push 1
push 0
push 0x4b6f94
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x412220
xor eax, eax
pop esi
add esp, 0x28
ret
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push 0x4b6f8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x412256
xor eax, eax
pop esi
add esp, 0x28
ret
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0xc]
push edx
push 0x4b6f88
call esi
test eax, eax
jne 0x412271
pop esi
add esp, 0x28
ret
lea eax, [esp + 0xc]
push eax
push 0x4b6f84
call esi
test eax, eax
jne 0x41228b
mov eax, 1
pop esi
add esp, 0x28
ret
lea ecx, [esp + 0xc]
push ecx
push 0x4b6f80
call esi
test eax, eax
jne 0x4122a5
mov eax, 2
pop esi
add esp, 0x28
ret
lea edx, [esp + 0xc]
push edx
push 0x4b6f7c
call esi
neg eax
sbb eax, eax
pop esi
and al, 0xfd
add eax, 3
add esp, 0x28
ret
Function at 0x414e90
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x51c
cmp al, 0x20
push ebx
push ebp
push esi
push edi
jae 0x414fd2
mov ecx, dword [esp + 0x538]
and eax, 0xff
push ecx
mov ecx, eax
shl ecx, 6
lea edx, [esp + 0x42c]
add ecx, eax
push edx
lea edx, [ecx*4 + 0x7ff8a8]
push edx
call fcn.004151a0
add esp, 0xc
test al, al
je 0x414fd2
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x4b7090
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414fd2
xor ebp, ebp
lea ecx, [ebp + 0x41]
lea edx, [esp + 0x11c]
push ecx
push 0x4b707c
push edx
mov dword [esp + 0x1c], 0x104
call fcn.00425c19
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x324]
lea edx, [esp + 0x11c]
push eax
mov eax, dword [esp + 0x18]
push ecx
push ebx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x220]
push ecx
lea eax, [esp + 0x328]
push edx
push eax
call fcn.00411fe0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x22c]
push ecx
push edx
call fcn.004153a0
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, 1
jg 0x414f8c
mov byte [esp + ecx + 0x18], bl
jmp 0x414f90
mov byte [esp + ecx + 0x15], bl
lea esi, [esp + 0x428]
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x414fbf
cmp cl, bl
je 0x414fbb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x414fbf
add eax, 2
add esi, 2
cmp cl, bl
jne 0x414f9b
xor eax, eax
jmp 0x414fc4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x414fdf
inc ebp
cmp ebp, 0x1a
jl 0x414f01
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x51c
ret
mov eax, dword [esp + 0x534]
add ebp, 0x41
push ebp
push 0x4b7074
push eax
call fcn.00425c19
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x51c
ret
Function at 0x415010
Capabilities:
Get disk information

Disassembly:
sub esp, 0x86c
push ebx
push ebp
push esi
push edi
mov ecx, 0x210
mov esi, 0x5c739c
lea edi, [esp + 0x3c]
mov byte [esp + 0x10], 2
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
mov eax, edi
and eax, 0xff
lea esi, [eax + 0x41]
push esi
push 0x4b7074
push ecx
call fcn.00425c19
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x41514d
push esi
lea eax, [esp + 0x20]
push 0x4b70a8
push eax
call fcn.00425c19
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x17]
mov ebp, eax
push edx
push ebp
call fcn.00414240
add esp, 8
test al, al
push ebp
jne 0x4150b1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41514d
call fcn.004145b0
push 1
mov dword [0x4b64f8], ebp
call fcn.00413590
add esp, 8
call fcn.004162d0
test al, al
jne 0x4150d8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41514d
push 0xffffffffffffffff
push 0
call fcn.00416550
mov bl, al
add esp, 8
test bl, bl
je 0x41512e
xor dl, dl
mov byte [esp + 0x18], dl
mov ecx, dword [esp + 0x18]
and ecx, 0xff
mov eax, ecx
shl eax, 5
add eax, ecx
mov ecx, 0x84
shl eax, 4
lea edi, [eax + 0x5c739c]
lea esi, [esp + eax + 0x3c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x415124
inc dl
cmp dl, 4
mov byte [esp + 0x18], dl
jb 0x4150f0
mov edi, dword [esp + 0x10]
cmp dl, 4
setae bl
push 0
call fcn.00413590
add esp, 4
mov dword [0x4b64f8], 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x41516c
mov al, byte [esp + 0x10]
inc al
cmp al, 0x1a
mov byte [esp + 0x10], al
jb 0x41502f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x86c
ret
mov ecx, dword [esp + 0x884]
and edi, 0xff
add edi, 0x41
push edi
push 0x4b7074
push ecx
call fcn.00425c19
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x86c
ret
Function at 0x4151a0
Capabilities:
Enumerate pe sections
Query or enumerate registry value

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x228]
mov ebp, dword [esp + 0x230]
mov byte [esp + 0x13], 0
mov byte [esp + 0x23], 0
lea eax, [edi + 0xc]
mov esi, 0x4b70e4
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dx, word [eax + 4]
mov word [esp + 0x20], dx
mov al, byte [eax + 6]
mov byte [ebp], 0
mov byte [esp + 0x22], al
lea eax, [esp + 0x1c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x415210
test cl, cl
je 0x41520c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x415210
add eax, 2
add esi, 2
test cl, cl
jne 0x4151e8
xor eax, eax
jmp 0x415215
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x415222
mov byte [esp + 0x13], 1
mov byte [ebp], 1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
xor ebp, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
or edx, 0xffffffff
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor esi, esi
mov ebx, dword [esp + 0x22c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4152ac
mov al, byte [esp + esi + 0x1c]
cmp al, 0x7b
je 0x4152ac
cmp al, 0x23
jne 0x415275
mov byte [esp + esi + 0x1c], 0x5c
inc ebp
cmp byte [esp + 0x13], 1
jne 0x415299
cmp ebp, 2
jne 0x415294
cmp edx, 0xffffffff
jne 0x41528a
xor edx, edx
jmp 0x415299
mov cl, byte [esp + esi + 0x1c]
mov byte [edx + ebx], cl
inc edx
jmp 0x415299
cmp ebp, 3
je 0x415301
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jl 0x415263
lea eax, [esi - 4]
lea esi, [esp + 0x20]
mov ecx, eax
lea edi, [esp + 0x120]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [esp + eax + 0x120], 0
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push 0x4b70c4
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x415312
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x214
ret
pop edi
pop esi
mov byte [edx + ebx], 0
pop ebp
mov al, 1
pop ebx
add esp, 0x214
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
lea edx, [esp + 0x128]
push 0
push edx
push eax
call esi
test eax, eax
je 0x415349
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x214
ret
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push ebx
push 0
push 0
push 0x4b70b4
push eax
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x415387
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x214
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x214
ret
Function at 0x417a40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push ecx
call fcn.00409ee0
movzx dx, byte [esp + 0x24]
mov edi, dword [0x803b7c]
mov bl, byte [esp + 0x28]
mov ecx, dword [0x80bb88]
and edi, 0xffff
add esp, 8
add eax, edx
mov edx, dword [0x80bb8c]
shr edi, 1
test bl, bl
jne 0x417ab7
xor ebx, ebx
cmp word [0x803b7e], bx
jbe 0x417aeb
test edi, edi
jbe 0x417aa4
mov esi, edi
mov bp, word [edx]
add ecx, 2
xor bp, ax
add edx, 2
mov word [ecx - 2], bp
dec esi
jne 0x417a91
xor esi, esi
inc ebx
mov si, word [0x803b7e]
cmp ebx, esi
jb 0x417a8b
pop edi
pop esi
pop ebp
pop ebx
ret
xor ebx, ebx
cmp word [0x803b7e], bx
jbe 0x417aeb
test edi, edi
jbe 0x417add
mov esi, edi
mov bp, word [edx]
add ecx, 2
xor bp, ax
add edx, 2
not ebp
mov word [ecx - 2], bp
dec esi
jne 0x417ac8
xor esi, esi
inc ebx
mov si, word [0x803b7e]
cmp ebx, esi
jb 0x417ac2
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x418e30
Capabilities:
Get common file path
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x220
test al, al
jne 0x418e55
lea eax, [esp + 0x18]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [esp + 0x1a], 0
jmp 0x418e70
and eax, 0xff
lea ecx, [esp + 0x18]
add eax, 0x40
push eax
push 0x4b7074
push ecx
call fcn.00425c19
add esp, 0xc
mov al, byte [0x803a30]
push ebx
cmp al, 0x14
push esi
jle 0x418f0e
lea edx, [esp + 0x20]
lea eax, [esp + 0x124]
push edx
push 0x4b712c
push eax
call fcn.00425c19
add esp, 0xc
lea ecx, [esp + 0x124]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x418f84
mov eax, dword [esp + 0x230]
mov ecx, dword [esp + 0x234]
and eax, 0xffff
lea edx, [esp + 0xc]
push 0
push edx
shl eax, 9
push eax
push ecx
push esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
push esi
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop esi
pop ebx
setne al
add esp, 0x220
ret
mov al, byte [esp + 0x20]
cmp al, 0x41
jb 0x418f1e
cmp al, 0x5a
ja 0x418f1e
sub al, 0x40
jmp 0x418f28
cmp al, 0x61
jb 0x418f84
cmp al, 0x6a
ja 0x418f84
sub al, 0x60
push 0
push 0x4000000
push 0
push 0
push 0
push 0
push 0x4b7108
mov byte [esp + 0x24], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x418f84
mov edx, dword [esp + 0x234]
mov eax, dword [esp + 0x230]
mov ecx, dword [esp + 8]
push edx
push eax
push 0
push ecx
push esi
call fcn.00418410
add esp, 0x14
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop esi
pop ebx
setne al
add esp, 0x220
ret
pop esi
xor al, al
pop ebx
add esp, 0x220
ret
Function at 0x419b30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x114]
push esi
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ebp
mov esi, ecx
lea ebx, [esp + 0x18]
test si, si
jbe 0x419b8d
mov edi, esi
and edi, 0xffff
mov al, byte [edx]
inc edx
cmp al, 0x20
mov byte [esp + 0x10], al
mov dword [esp + 0x14], edx
je 0x419b8a
mov eax, dword [esp + 0x10]
and eax, 0xff
push eax
call fcn.004268be
mov edx, dword [esp + 0x18]
add esp, 4
mov byte [ebx], al
inc ebx
dec edi
jne 0x419b62
lea ecx, [esp + 0x18]
push 0x80bbd9
push ecx
mov byte [ebx], 0
mov byte [0x80bb98], 1
mov byte [0x80bb99], 0xb
call fcn.00419cb0
mov dl, byte [0x80bb98]
add esp, 8
xor edi, edi
mov byte [esp + 0x14], dl
test si, si
jbe 0x419c46
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
cdq
mov ebx, 0xd
idiv ebx
test edx, edx
jne 0x419c30
mov cl, byte [0x80bb98]
mov edx, dword [esp + 0x14]
inc cl
and edx, 0xff
mov byte [0x80bb98], cl
mov ecx, edx
shl ecx, 4
add ecx, 0x80bbd9
xor eax, eax
mov ebx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, esi
sub eax, edi
cmp ax, 0xd
jb 0x419c20
mov byte [edx + 0x80bb99], 0xd
jmp 0x419c26
mov byte [edx + 0x80bb99], al
mov dl, byte [0x80bb98]
mov byte [esp + 0x14], dl
mov al, byte [ebp]
mov byte [ecx], al
mov eax, dword [esp + 0x10]
inc ecx
inc ebp
inc edi
inc eax
cmp di, si
mov dword [esp + 0x10], eax
jb 0x419bcf
mov edi, dword [0x80bb98]
mov eax, edi
and eax, 0xff
mov edx, eax
movzx si, byte [eax + 0x80bb98]
shl edx, 4
add edx, 0x80bbc9
cmp si, 0xd
mov ecx, esi
jae 0x419c98
mov eax, esi
and eax, 0xffff
add eax, edx
mov dx, cx
sub dx, si
neg dx
sbb dl, dl
and edx, 0xff
inc ecx
mov byte [eax], dl
inc eax
cmp cx, 0xd
jb 0x419c77
mov edi, dword [0x80bb98]
and edi, 0xff
mov byte [edi + 0x80bb98], 0xd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x41d7e0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
and eax, 0xff
lea ecx, [esp]
push eax
push 0x4b71d0
push ecx
call fcn.00425c19
add esp, 0xc
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 8
ret

Function at 0x41e1f9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e251
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4bf0f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e244
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41e253
xor eax, eax
pop esi
leave
ret 4

Function at 0x42cc2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4bea38
cmp edx, dword [eax]
je 0x42cc4f
add eax, 8
inc ecx
cmp eax, 0x4beac8
jl 0x42cc40
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4bea38]
jne 0x42cd7d
mov eax, dword [0x80e590]
cmp eax, 1
je 0x42cd57
test eax, eax
jne 0x42cc80
cmp dword [0x4bbf64], 1
je 0x42cd57
cmp edx, 0xfc
je 0x42cd7d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42ccb7
lea eax, [ebp - 0x1a4]
push 0x4470e8
push eax
call fcn.0042cfb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004286a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42ccfa
lea eax, [ebp - 0x1a4]
push eax
call fcn.004286a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4470e4
push edi
call fcn.004263c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4470c8
push eax
call fcn.0042cfb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042cfc0
lea eax, [ebp - 0xa0]
push 0x4470c4
push eax
call fcn.0042cfc0
push dword [esi + 0x4bea3c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042cfc0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x44709c
push eax
call fcn.0042f011
add esp, 0x2c
pop edi
jmp 0x42cd7d
lea eax, [ebp + 8]
lea esi, [esi + 0x4bea3c]
push 0
push eax
push dword [esi]
call fcn.004286a0
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 0x4337c0
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.00427880
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43388b
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 0x43388b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43383e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x433849
or bh, 8
and edi, 0x8000000
je 0x433864
mov eax, dword [0x80fd1c]
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 0x43388b
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 0x433c60
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 0x433c8b
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 0x433caf
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 0x433cca
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

Function at 0x436077
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4360af
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.00438a93
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00438a6b
jmp 0x4360bb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4375fa
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 0x43763c
call fcn.0043db62
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43763c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x437633
xor eax, eax
jmp 0x437644
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043764a
pop edi
pop esi
pop ebx
ret 4

Function at 0x43e695
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 0x43e6c3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43e6e1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043e5fb
jmp 0x43e6e1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43e6e1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043e5fb
test edi, edi
mov eax, edi
jne 0x43e6cb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8