joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428140
Capabilities:
Hash data with md5

Disassembly:
lea edx, [eax + 0x20]
mov ecx, edx
add ecx, 0x40
mov dword [edx], 0
mov dword [edx + 4], 0
add edx, 8
cmp ecx, edx
jne 0x428148
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
ret

Function at 0x428680
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor eax, eax
mov ecx, edx
test ecx, ecx
je 0x42868f
sub ecx, 4
mov ecx, dword [ecx]
test ecx, ecx
jle 0x4286b0
mov ebx, 1
mov esi, eax
add esi, esi
add esi, esi
shr eax, 0x1e
or esi, eax
movzx eax, word [edx + ebx*2 - 2]
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x428698
pop esi
pop ebx
ret
Function at 0x42a6b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42a87d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040665c
cmp dword [ebp - 4], 0
je 0x42a6f3
mov eax, dword [ebp - 4]
cmp word [eax], 0x5c
jne 0x42a6f3
xor eax, eax
jmp 0x42a6f5
mov al, 1
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x42a710
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00406e90
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0042aa20
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42a7f0
xor edx, edx
push ebp
push 0x42a7e9
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042aea0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0042aad0
test al, al
je 0x42a7c7
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.004063bc
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42a7c7
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0xc]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00406b00
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov dword [esi + 0x1c], eax
test eax, eax
sete al
test al, al
je 0x42a7c1
mov eax, dword [ebp - 8]
call fcn.00406b00
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00406b58
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0042a6b0
dec ebx
cmp ebx, 0xffffffff
jne 0x42a76f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a7f0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0042aea0
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
ret
cmp dword [0x43983c], 0
je 0x42a832
mov ebx, dword [ebp - 0xc]
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.00406b00
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0042a8c0
push eax
call dword [0x43983c]
mov dword [ebx + 0x1c], eax
test eax, eax
sete al
mov ebx, eax
jmp 0x42a85a
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00406b00
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0042a8c0
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov dword [ebx + 0x1c], eax
test eax, eax
sete al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a884
lea eax, [ebp - 0x3c]
call fcn.00406280
lea eax, [ebp - 8]
mov edx, 2
call fcn.004062e0
ret
Function at 0x42a8e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
mov esi, ebx
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, edi
call fcn.00406b00
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [esi + 0x1c], eax
test eax, eax
sete al
test al, al
jne 0x42a92c
xor eax, eax
mov dword [ebp + 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
cmp dword [ebp - 8], 1
jne 0x42a939
mov al, 1
jmp 0x42a959
cmp dword [ebp - 8], 2
jne 0x42a943
mov al, 2
jmp 0x42a959
cmp dword [ebp - 8], 4
jne 0x42a94d
mov al, 3
jmp 0x42a959
cmp dword [ebp - 8], 3
jne 0x42a957
mov al, 4
jmp 0x42a959
xor eax, eax
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov eax, edx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x42a970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
xor ecx, ecx
mov edx, 8
call fcn.00404930
mov ebp, ebx
lea eax, [esi + 4]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
mov eax, edi
call fcn.00406b00
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp + 0x1c], eax
test eax, eax
sete al
mov edx, eax
cmp dword [esp], 1
jne 0x42a9bd
mov al, 1
jmp 0x42a9dd
cmp dword [esp], 2
jne 0x42a9c7
mov al, 2
jmp 0x42a9dd
cmp dword [esp], 4
jne 0x42a9d1
mov al, 3
jmp 0x42a9dd
cmp dword [esp], 3
jne 0x42a9db
mov al, 4
jmp 0x42a9dd
xor eax, eax
mov byte [esi], al
mov eax, edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42bb50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov esi, eax
mov byte [esp], 0
mov eax, dword [esi + 0x40034]
cmp eax, 0x10000
jb 0x42bb87
and ax, 0x3ff
xor ax, 0xdc00
mov word [ebp], ax
xor eax, eax
mov dword [esi + 0x40034], eax
mov byte [esp], 1
jmp 0x42bcb7
lea edx, [esp + 1]
mov ecx, 1
mov eax, esi
call fcn.0042d080
test al, al
je 0x42bcb7
cmp byte [esp + 1], 0x80
jae 0x42bbb8
movzx eax, byte [esp + 1]
mov word [ebp], ax
mov byte [esp], 1
jmp 0x42bcb7
mov edi, 1
movzx eax, byte [esp + 1]
mov dword [esi + 0x40034], eax
movzx eax, byte [esp + 1]
mov byte [esp + 2], al
mov bl, 0x40
movzx eax, byte [esp + 1]
and al, 0xc0
cmp al, 0xc0
jne 0x42bcb7
jmp 0x42bc59
lea edx, [esp + 1]
mov ecx, 1
mov eax, esi
call fcn.0042d080
test al, al
jne 0x42bc09
mov edx, 0x42bcd0
mov eax, dword [esi + 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x42bcb7
movzx eax, byte [esp + 1]
and al, 0xc0
cmp al, 0x80
je 0x42bc25
mov edx, 0x42bcd0
mov eax, dword [esi + 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x42bcb7
movzx eax, byte [esp + 1]
and eax, 0x3f
mov edx, dword [esi + 0x40034]
shl edx, 6
or eax, edx
mov dword [esi + 0x40034], eax
inc edi
cmp edi, 6
jle 0x42bc52
mov edx, 0x42bcd0
mov eax, dword [esi + 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x42bcb7
movzx eax, bl
shr eax, 1
mov ebx, eax
test byte [esp + 2], bl
jne 0x42bbe4
mov eax, dword [edi*4 + 0x439bac]
and dword [esi + 0x40034], eax
cmp edi, 1
jle 0x42bc8e
mov eax, dword [edi*4 + 0x439ba8]
cmp eax, dword [esi + 0x40034]
jb 0x42bc8e
mov edx, 0x42bcd0
mov eax, dword [esi + 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x42bcb7
mov eax, dword [esi + 0x40034]
cmp eax, 0x10000
jb 0x42bca8
shr eax, 0xa
add ax, 0xd7c0
mov word [ebp], ax
jmp 0x42bcb3
movzx eax, word [esi + 0x40034]
mov word [ebp], ax
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42efe0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42f110
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00421790
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00406b00
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42f0fa
mov eax, dword [ebp - 0x14]
call fcn.004043c4
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x42f0f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00406b00
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42f0dd
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x42f124
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42f0dd
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
shr eax, 0x10
and ax, 0xffff
mov edx, dword [ebp - 8]
mov word [edx], ax
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 8]
and ax, 0xffff
mov edx, dword [ebp - 0xc]
mov word [edx], ax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
shr eax, 0x10
and ax, 0xffff
mov edx, dword [ebp + 0xc]
mov word [edx], ax
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 0xc]
and ax, 0xffff
mov edx, dword [ebp + 8]
mov word [edx], ax
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f0fa
mov eax, dword [ebp - 0x1c]
call fcn.004043e0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f117
lea eax, [ebp - 0x28]
call fcn.00406280
ret

Function at 0x42fb20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404930
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], pe_nt_image_headers32
mov eax, dword [ebp - 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
call fcn.00406b00
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
call fcn.00406b00
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
call fcn.00406b00
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 4]
call fcn.00406b00
mov dword [ebp - 0x40], eax
inc dword [0x439c30]
xor eax, eax
push ebp
push 0x42fbbf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fbc6
dec dword [0x439c30]
ret
Function at 0x4303d0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x430534
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.0040665c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x430417
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
jle 0x430450
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp word [eax + edx*2 - 2], 0x40
jne 0x430448
lea eax, [ebp - 0x18]
call fcn.004067e0
mov edx, dword [ebp - 0x1c]
mov word [eax + edx*2 - 2], 0x2e
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x430428
mov eax, dword [ebp - 0x18]
push eax
push 0xa
mov ecx, dword [0x43cc4c]
mov dl, 1
mov eax, dword [0x41fecc]
call fcn.00422500
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x430512
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [0x43f268]
call fcn.00406cd8
mov eax, dword [ebp - 0x10]
call fcn.004218a0
test al, al
je 0x4304f1
cmp byte [ebp - 5], 0
jne 0x4304b9
mov eax, dword [ebp - 0x10]
call fcn.00421af0
cmp edx, 0
jne 0x4304b0
cmp eax, 0
jbe 0x4304b9
jmp 0x4304b2
jle 0x4304b9
call fcn.00405a7c
jmp 0x430519
mov eax, dword [ebp - 0x10]
call fcn.00421950
test al, al
jne 0x4304f1
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00430300
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00421920
test al, al
je 0x4304f1
push 4
push 0
mov eax, dword [ebp - 0x14]
call fcn.00406b00
push eax
call sub.KERNEL32.DLL_MoveFileExW
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00430290
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430519
mov eax, dword [ebp - 0xc]
call fcn.00404c7c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43053b
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004062e0
ret
Function at 0x432020
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
mov byte [ebp - 0x11d], al
lea eax, [ebp - 0x11c]
xor ecx, ecx
mov edx, 0x11c
call fcn.00404930
mov dword [ebp - 0x11c], 0x11c
lea eax, [ebp - 0x11c]
push eax
call sub.KERNEL32.DLL_GetVersionExW_1
test eax, eax
je 0x4320d2
cmp dword [ebp - 0x118], 6
jb 0x432076
cmp dword [ebp - 0x114], 1
jb 0x432076
mov byte [ebp - 0x11e], 1
jmp 0x4320f2
cmp dword [ebp - 0x118], 6
jb 0x43208f
cmp word [ebp - 8], 2
jb 0x43208f
mov byte [ebp - 0x11e], 1
jmp 0x4320f2
cmp dword [ebp - 0x118], 6
jb 0x4320a1
mov byte [ebp - 0x11e], 1
jmp 0x4320f2
cmp dword [ebp - 0x118], 5
jb 0x4320c3
cmp dword [ebp - 0x114], 1
jb 0x4320c3
cmp word [ebp - 8], 2
jb 0x4320c3
mov byte [ebp - 0x11e], 1
jmp 0x4320f2
push ebp
call fcn.00431b30
pop ecx
mov byte [ebp - 0x11e], al
jmp 0x4320f2
mov eax, dword [0x439cdc]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x432108
call fcn.00425f60
push ebp
call fcn.00431b30
pop ecx
mov byte [ebp - 0x11e], al
mov al, byte [ebp - 0x11e]
mov esp, ebp
pop ebp
ret
Function at 0x408c80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ac30]
jne 0x408c8a
repz ret
jmp fcn.0040b79c

Function at 0x40af67
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405117
and dword [ebp - 4], 0
cmp dword [0x42bfc4], 0
mov ebx, eax
jne 0x40b018
push 0x402ab4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b0c9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402aa8
push edi
call esi
test eax, eax
je 0x40b0c9
push eax
call fcn.004050a5
mov dword [esp], 0x402a98
push edi
mov dword [0x42bfc4], eax
call esi
push eax
call fcn.004050a5
mov dword [esp], 0x402a84
push edi
mov dword [0x42bfc8], eax
call esi
push eax
call fcn.004050a5
mov dword [esp], 0x402a68
push edi
mov dword [0x42bfcc], eax
call esi
push eax
call fcn.004050a5
pop ecx
mov dword [0x42bfd4], eax
test eax, eax
je 0x40b018
push 0x402a50
push edi
call esi
push eax
call fcn.004050a5
pop ecx
mov dword [0x42bfd0], eax
mov eax, dword [0x42bfd0]
cmp eax, ebx
je 0x40b070
cmp dword [0x42bfd4], ebx
je 0x40b070
push eax
call fcn.00405120
push dword [0x42bfd4]
mov esi, eax
call fcn.00405120
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b070
test edi, edi
je 0x40b070
call esi
test eax, eax
je 0x40b067
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b067
test byte [ebp - 0xc], 1
jne 0x40b070
or dword [ebp + 0x10], 0x200000
jmp 0x40b0a9
mov eax, dword [0x42bfc8]
cmp eax, ebx
je 0x40b0a9
push eax
call fcn.00405120
pop ecx
test eax, eax
je 0x40b0a9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b0a9
mov eax, dword [0x42bfcc]
cmp eax, ebx
je 0x40b0a9
push eax
call fcn.00405120
pop ecx
test eax, eax
je 0x40b0a9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42bfc4]
call fcn.00405120
pop ecx
test eax, eax
je 0x40b0c9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b0cb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44f769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x453190
cmp edx, dword [eax]
je 0x44f78b
add eax, 8
inc ecx
cmp eax, 0x453220
jl 0x44f77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x453190]
jne 0x44f8b9
mov eax, dword [0x453bb0]
cmp eax, 1
je 0x44f893
test eax, eax
jne 0x44f7bc
cmp dword [0x4530e4], 1
je 0x44f893
cmp edx, 0xfc
je 0x44f8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44f7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00450670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00450490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44f836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00450490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45245c
push edi
call fcn.00450f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00450670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00450680
lea eax, [ebp - 0xa0]
push 0x45243c
push eax
call fcn.00450680
push dword [esi + 0x453194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00450680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00450e75
add esp, 0x2c
pop edi
jmp 0x44f8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x453194]
push 0
push eax
push dword [esi]
call fcn.00450490
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 0x8c06e0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x8c06ea
pushal
call 0x8c06f0
pop ebp
sub ebp, 0x10
sub ebp, 0x4c06e0
jmp 0x8c0706
mov eax, 0x4c06e0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ec
mov edx, 0xa46f2ae5
xor byte [eax], dl
inc eax
dec ecx
jne 0x8c071d
jmp 0x8c0730
outsb dx, byte [esi]
sub byte [esi + 0x6c], ch
fxam
in eax, 0xe5
and al, 0x1d
in eax, 0xe5
in eax, 0xe6
sub byte [ebp - 0x1f], bl
in eax, 0xe5
in eax, 0x5f
int 0xe5
in eax, 0xe5
adc al, byte [edi]
out 0x2d, al
outsb dx, byte [esi]
jmp 0xe771ed3a
Function at 0x100362d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1005274]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x10036c2
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100364b
sub eax, edx
sar eax, 1
mov ecx, 0x104
cmp eax, ecx
ja 0x10036c2
push esi
push ecx
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcscpy_s
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100367c
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x20c]
dec eax
dec eax
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x10036a2
cmp cx, 0x2f
jne 0x10036a9
xor ecx, ecx
mov word [eax], cx
jmp 0x1003691
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x10036c4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010040a3
leave
ret
Function at 0x10036d5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x768
mov eax, dword [0x1005274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [edi + 4]
mov dword [ebp - 0x768], eax
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
mov ecx, dword [edi + 4]
mov eax, ecx
add esp, 0xc
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x1003715
sub eax, edx
sar eax, 1
sub ebx, eax
mov eax, ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100372a
sub eax, ecx
sar eax, 1
push 0x1001ca0
lea eax, [ebp + eax*2 - 0x20c]
push ebx
push eax
mov dword [ebp - 0x764], eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x760], eax
cmp eax, 0xffffffff
jne 0x1003785
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x1003910
mov ecx, 0x1001c9c
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10037b6
test dx, dx
je 0x10037b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10037b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1003790
xor eax, eax
jmp 0x10037bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10038d6
mov ecx, 0x1001c94
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10037f4
test dx, dx
je 0x10037f0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10037f4
add eax, 4
add ecx, 4
test dx, dx
jne 0x10037ce
xor eax, eax
jmp 0x10037f9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10038d6
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
push eax
push ebx
push dword [ebp - 0x764]
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [edi + 0xc]
add esp, 0x10
test eax, eax
je 0x100383a
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
push 0x104
lea eax, [ebp - 0x730]
push eax
push dword [edi + 8]
call fcn.01003b94
test eax, eax
je 0x10038d6
cmp dword [edi + 0xc], 0
je 0x10038b3
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x30c]
push eax
lea edx, [ebp - 0x20c]
call fcn.0100355a
test eax, eax
je 0x10038b3
test byte [ebp - 0x75c], 0x10
je 0x10038d6
lea esi, [ebp - 0x30c]
call fcn.0100362d
test eax, eax
je 0x10038d6
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
mov eax, esi
push eax
mov eax, dword [ebp + 8]
call fcn.0100339f
jmp 0x10038d6
lea esi, [ebp - 0x20c]
call fcn.0100362d
test eax, eax
je 0x10038d6
mov eax, esi
push eax
mov eax, dword [ebp - 0x768]
call fcn.01003478
mov esi, eax
test esi, esi
jne 0x10038f3
lea eax, [ebp - 0x75c]
push eax
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
jne 0x1003785
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x100390e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x100390e
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.010040a3
leave
ret 8