joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457d90
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x457f62
xor ecx, ecx
xor edx, edx
mov ch, byte [eax]
mov dl, byte [eax + 2]
mov cl, byte [eax + 1]
push ebx
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 3]
push ebp
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 6]
mov dword [eax], ecx
xor ecx, ecx
push esi
mov ch, byte [eax + 4]
push edi
mov cl, byte [eax + 5]
xor ebp, ebp
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 7]
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0x18]
mov dword [eax + 4], ecx
xor ecx, ecx
mov ch, byte [eax + 8]
lea edi, [edx + 0xc]
mov cl, byte [eax + 9]
mov word [eax + 8], cx
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov cx, word [eax + 8]
mov word [edx + 8], cx
xor ecx, ecx
movzx si, byte [eax + 0xb]
mov ch, byte [eax + 0xa]
or ecx, esi
mov word [eax + 0xa], cx
mov word [edx + 0xa], cx
movzx si, byte [eax + 0xb]
xor ecx, ecx
mov ch, byte [eax + 0xa]
or ecx, esi
mov esi, dword [eax + 0xc]
mov word [eax + 0xa], cx
and ecx, 0xffff
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx si, byte [eax + 0x11]
mov bp, word [eax + 0xa]
xor ecx, ecx
mov ch, byte [eax + 0x10]
add ebp, 0xc
or ecx, esi
mov word [eax + 0x10], cx
mov word [edx + ebp], cx
movzx si, byte [eax + 0x11]
xor ecx, ecx
lea edi, [edx + ebp + 2]
mov ch, byte [eax + 0x10]
or ecx, esi
mov esi, dword [eax + 0x14]
mov word [eax + 0x10], cx
and ecx, 0xffff
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx si, byte [eax + 0x19]
xor ecx, ecx
mov cx, word [eax + 0x10]
lea ebp, [ecx + ebp + 2]
xor ecx, ecx
mov ch, byte [eax + 0x18]
or ecx, esi
lea edi, [edx + ebp + 2]
mov word [eax + 0x18], cx
mov word [edx + ebp], cx
movzx si, byte [eax + 0x19]
xor ecx, ecx
mov ch, byte [eax + 0x18]
or ecx, esi
mov esi, dword [eax + 0x1c]
mov word [eax + 0x18], cx
and ecx, 0xffff
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx si, byte [eax + 0x21]
xor ecx, ecx
mov cx, word [eax + 0x18]
lea ebp, [ecx + ebp + 2]
xor ecx, ecx
mov ch, byte [eax + 0x20]
or ecx, esi
lea edi, [edx + ebp + 2]
mov word [eax + 0x20], cx
mov word [edx + ebp], cx
movzx si, byte [eax + 0x21]
xor ecx, ecx
mov ch, byte [eax + 0x20]
or ecx, esi
mov esi, dword [eax + 0x24]
mov word [eax + 0x20], cx
and ecx, 0xffff
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dl, byte [eax + 6]
xor ecx, ecx
mov ch, byte [eax + 4]
pop edi
mov cl, byte [eax + 5]
pop esi
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 7]
pop ebp
shl ecx, 8
or ecx, edx
xor edx, edx
mov dh, byte [eax]
mov dword [eax + 4], ecx
mov dl, byte [eax + 1]
xor ecx, ecx
mov ch, byte [eax + 8]
pop ebx
mov cl, byte [eax + 9]
mov word [eax + 8], cx
xor ecx, ecx
mov cl, byte [eax + 2]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 3]
shl edx, 8
or edx, ecx
mov dword [eax], edx
ret
Function at 0x45ab80
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0x9c]
push esi
push 0x40
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.0045a990
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0045aac0
mov esi, dword [esp + 0xb0]
add esp, 0x14
xor edx, edx
mov cl, byte [esp + edx + 4]
mov al, cl
and cl, 0xf
sar al, 4
and al, 0xf
cmp al, 0xa
movsx eax, al
jge 0x45abfa
add eax, 0x30
jmp 0x45abfd
add eax, 0x57
mov byte [esi], al
cmp cl, 0xa
movsx eax, cl
jge 0x45ac0c
add eax, 0x30
jmp 0x45ac0f
add eax, 0x57
mov byte [esi + 1], al
inc edx
add esi, 2
cmp edx, 0x10
jl 0x45abe0
pop esi
add esp, 0x94
ret

Function at 0x45ac30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x90]
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov ecx, 0x10
xor eax, eax
mov edi, ebp
mov esi, dword [esp + 0xa0]
rep stosd dword es:[edi], eax
mov ecx, 8
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
test esi, esi
mov dword [esp + 0x14], 0x9d14e9a1
mov dword [esp + 0x18], 0x593b6b0e
je 0x45acbb
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x28
jne 0x45ac9f
mov byte [esi + 0x20], al
mov ecx, 0x20
jmp 0x45aca9
cmp ecx, 0x38
jle 0x45aca9
mov ecx, 0x38
mov eax, ecx
lea edi, [esp + 0x1c]
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, 0x486b4c
test ecx, ecx
je 0x45acef
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x38
jle 0x45acda
mov ecx, 0x38
xor eax, eax
test ecx, ecx
jle 0x45acef
mov dl, byte [eax + 0x486b4c]
xor byte [esp + eax + 0x1c], dl
inc eax
cmp eax, ecx
jl 0x45ace0
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.0045ab80
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.01d0a8e3
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + ebp]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
cdq
and edx, 3
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
sar eax, 2
xor ecx, ecx
test eax, eax
jle 0x45ad54
mov esi, ebp
mov dl, byte [esi]
add esi, 4
mov byte [ecx + ebx], dl
inc ecx
cmp ecx, eax
jl 0x45ad47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x45b920
Capabilities:
Encode data using base64
Terminate process

Disassembly:
sub esp, 0x118
mov ecx, 0x3f
mov eax, 0x80808080
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x41
mov cl, al
sub cl, 0x41
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x5a
jle 0x45b942
mov eax, 0x61
mov dl, al
sub dl, 0x47
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0x7a
jle 0x45b956
mov eax, 0x30
mov cl, al
add cl, 4
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x39
jle 0x45b96a
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x53], 0x3e
mov byte [esp + 0x57], 0x3f
mov byte [esp + 0x65], 0
mov dword [esp + 0x18], ebp
je 0x45bafd
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x12c]
xor eax, eax
lea esi, [edx + ecx]
movsx ecx, byte [esi + eax]
mov dl, byte [esp + ecx + 0x28]
test dl, 0x80
jne 0x45bace
mov byte [esp + eax + 0x20], cl
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, 4
jl 0x45b9cc
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x10]
cmp edx, dword [esi]
jle 0x45ba36
mov eax, dword [esp + 0x14]
push eax
call fcn.004613c7
mov ecx, dword [esi]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x2c], eax
rep movsb byte es:[edi], byte [esi]
call fcn.004612de
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dl, ch
mov al, cl
sar dl, 4
shl al, 2
or dl, al
mov eax, dword [esp + 0x14]
mov byte [ebx + ebp], dl
inc ebp
inc eax
mov cl, ch
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1e]
mov dl, al
inc edi
sar dl, 2
shl cl, 4
or dl, cl
mov ecx, dword [esp + 0x14]
shl al, 6
or al, byte [esp + 0x1f]
mov byte [ebx + ebp], dl
inc ebp
mov edx, edi
inc ecx
inc edx
mov byte [ebx + ebp], al
mov al, byte [esp + 0x22]
inc ebp
inc ecx
inc edx
mov dword [esp + 0x10], edi
cmp al, 0x3d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x45bae3
mov cl, byte [esp + 0x23]
xor eax, eax
cmp cl, 0x3d
setne al
add eax, 2
cmp eax, 3
jl 0x45bae3
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jae 0x45bb04
jmp 0x45b9bc
push ecx
push str.Illegal_character__c_in_input._n
call fcn.00462aee
add esp, 8
push 1
call fcn.0046208d
mov eax, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [eax], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x45cbe0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45cc83
test eax, eax
jbe 0x45cc83
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45cc83
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45cc2e
xor esi, esi
jmp 0x45cc34
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45cc5f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0045ec00
add esi, eax
push esi
mov ebx, esi
call fcn.0045ec00
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45cc40
pop ebp
test edi, edi
pop edi
jne 0x45cc83
test ebx, ebx
je 0x45cc83
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004611e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x45cdc5
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 0x45cedd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45cedd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004729a3
mov esi, eax
test esi, esi
je 0x45cedd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45cedd
mov ecx, esi
call fcn.0045cd30
cmp edi, eax
jge 0x45cedd
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 0x45ce63
mov dword [esp + 0x34], 1
jmp 0x45cebe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45cedd
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.0045c2f0
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 0x473347
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47337f
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.004713d4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004713ac
jmp 0x47338b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x474a3c
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 0x474a7e
call fcn.0047a4f1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x474a7e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x474a75
xor eax, eax
jmp 0x474a86
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00474a8c
pop edi
pop esi
pop ebx
ret 4

Function at 0x47aa21
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 0x47aa4f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47aa6d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047a987
jmp 0x47aa6d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47aa6d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047a987
test edi, edi
mov eax, edi
jne 0x47aa57
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402a4d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402a8c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402a8c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402a8c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402a8c
cmp dword [ecx + 0x74], 0xe
jbe 0x402a8c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d66d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d66d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x412551
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
xor ebx, ebx
xor edx, edx
mov dword [ebp - 4], edx
lea edx, [ebp - 0xc]
push edx
push 0x2001f
push 0
add eax, 0x802
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x41258a
mov bx, 1
test bx, bx
jne 0x4125c2
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x4125b6
mov di, word [ebp - 8]
jmp 0x4125ba
mov bx, 1
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegCloseKey
cmp bx, 1
jne 0x4125dd
push dword [ebp + 0x10]
push esi
call fcn.0046f304
add esp, 8
push esi
call fcn.0046f334
pop ecx
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4125e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
mov eax, dword [ebp + 8]
xor ebx, ebx
xor edx, edx
mov dword [ebp - 8], edx
lea edx, [ebp - 0x10]
push edx
push 0x2001f
push 0
add eax, 0x802
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x41261d
mov bx, 1
test bx, bx
jne 0x412652
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x41264a
mov bx, 1
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
cmp bx, 1
jne 0x41265e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412666
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
xor ebx, ebx
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
add eax, 0x802
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
je 0x4126a3
mov bx, 1
test bx, bx
jne 0x4126d1
push esi
call fcn.0046f334
pop ecx
inc eax
push eax
push esi
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x4126c9
mov bx, 1
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4126d9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov eax, dword [ebp + 8]
xor ebx, ebx
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
add eax, 0x802
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
je 0x412712
mov bx, 1
test bx, bx
jne 0x41273c
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x412734
mov bx, 1
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x43cedf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, 0x4884d4
call fcn.00471130
mov word [ebp - 0x1c], 8
push dword [ebx + 0x1e]
call sub.USER32.DLL_GetWindowTextLengthA
inc eax
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043f04c
add esp, 8
push dword [ebp - 4]
mov dword [ebp - 8], 0xffff
mov eax, dword [ebp - 0xc]
push eax
push dword [ebx + 0x1e]
call sub.USER32.DLL_GetWindowTextA
mov word [ebp - 0x1c], 0x14
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0043f0fc
add esp, 0xc
mov eax, dword [ebp + 8]
mov word [ebp - 0x1c], 0x20
push eax
push 2
lea eax, [ebp - 0xc]
push eax
call fcn.0043f246
add esp, 8
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44299a
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
push ebx
call fcn.0044298e
pop ecx
test eax, eax
jne 0x4429b1
xor eax, eax
jmp 0x4429f6
mov eax, dword [ebx + 8]
push dword [eax + 0x1e]
call sub.USER32.DLL_OpenClipboard
test eax, eax
jne 0x4429c4
xor eax, eax
jmp 0x4429f6
push 1
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_GlobalSize
push eax
call fcn.00474080
pop ecx
mov esi, eax
push ebx
call sub.KERNEL32.DLL_GlobalLock
push eax
push esi
call sub.KERNEL32.DLL_lstrcpyA
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
call sub.USER32.DLL_CloseClipboard
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x442fdd
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff38
cmp dword [0x4875fc], 0
je 0x443064
push 0xc8
push 0
lea eax, [ebp - 0xc8]
push eax
call fcn.0046f244
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc8]
push eax
call fcn.0047221c
add esp, 0xc
cmp dword [0x487604], 0
je 0x44304e
lea eax, [ebp - 0xc8]
push eax
push dword [0x487604]
call fcn.004719d0
add esp, 8
push 0x489810
push dword [0x487604]
call fcn.004719d0
add esp, 8
jmp 0x443064
lea eax, [ebp - 0xc8]
push eax
call sub.KERNEL32.DLL_OutputDebugStringA
push 0x489812
call sub.KERNEL32.DLL_OutputDebugStringA
mov esp, ebp
pop ebp
ret

Function at 0x473224
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x473240
call fcn.00473148
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x47325b
test bl, 1
je 0x47325b
mov dword [0x491320], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x473348
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x473366
mov eax, dword [0x490ad8]
mov eax, dword [eax]
and eax, 0xc000
or dword [ebp + 0xc], eax
test byte [ebp + 0xd], 0x80
jne 0x473373
or dword [ebp + 0xc], 0x4000
mov eax, dword [ebp + 0xc]
and eax, 0x700
cmp eax, 0x500
jg 0x47339b
je 0x4733ab
sub eax, 0x100
je 0x4733b9
sub eax, 0x100
je 0x4733c0
sub eax, 0x100
je 0x4733b2
jmp 0x4733c7
sub eax, 0x600
je 0x4733c0
sub eax, 0x100
je 0x4733ab
jmp 0x4733c7
mov edi, 1
jmp 0x4733cc
mov edi, 2
jmp 0x4733cc
mov edi, 4
jmp 0x4733cc
mov edi, 5
jmp 0x4733cc
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4733f3
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x490fd4]
test al, 0x80
je 0x4733ec
mov ebx, 0x80
jmp 0x473405
mov ebx, 1
jmp 0x473405
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x473405
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x473417
je 0x473420
dec eax
je 0x473429
jmp 0x473432
mov dword [ebp - 4], 0x80000000
jmp 0x473441
mov dword [ebp - 4], 0x40000000
jmp 0x473441
mov dword [ebp - 4], 0xc0000000
jmp 0x473441
push 1
call fcn.004730e4
pop ecx
mov ebx, eax
jmp 0x47352f
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x47345d
sub eax, 0x10
je 0x473464
sub eax, 0x10
je 0x47346d
sub eax, 0x10
je 0x473476
jmp 0x473476
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x47347d
mov dword [ebp - 8], 1
jmp 0x47347d
mov dword [ebp - 8], 2
jmp 0x47347d
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
push 0
push ebx
push edi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x4734e6
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4734db
mov ebx, 0x50
test byte [ebp + 0xd], 1
jne 0x4734db
add ebx, 0xffffffb2
push ebx
call fcn.004730e4
pop ecx
mov ebx, eax
jmp 0x47352f
mov edi, esi
push edi
call fcn.004732a0
pop ecx
test eax, eax
je 0x4734fa
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x473506
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00472e48
add esp, 8
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47352f
push 4
call fcn.004730e4
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4742e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [0x480069], 0
je 0x474347
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea eax, [ebp - 0x54]
push eax
call fcn.0046f4bc
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x474332
push 0x3a
lea eax, [ebp - 0x54]
push eax
call fcn.0046f4bc
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x474332
lea ebx, [ebp - 0x54]
jmp 0x474333
inc ebx
call fcn.0047429c
or eax, 0x10
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x47438b
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x491344
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 4]
push eax
push esi
call fcn.0046f334
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x491347
push ebx
call sub.KERNEL32.DLL_WriteFile
pop esi
pop ebx
mov esp, ebp
pop ebp
ret