joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484158
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x4841c3
cmp byte [ebx + 0xcf], 0
jne 0x4841c3
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040610c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4841b0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4841d0
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405fd0
jmp 0x4841d0
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405fd0
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x48577c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x4857ea
mov eax, esi
call fcn.0046ad0c
test al, al
je 0x4857ea
mov eax, dword [ebx + 0x80]
call fcn.0046a960
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4857ea
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4857de
push 0
mov eax, dword [ebx + 0x80]
call fcn.0046a960
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00461e78
jmp 0x4857ea
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.004855c8
pop esi
pop ebx
ret
Function at 0x49cb64
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00403654
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x49dd98
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x49ddad
or edx, 0x200
test eax, 0x20000000
je 0x49dde0
test eax, 0x40000000
je 0x49ddcc
test eax, 0x80000000
je 0x49ddc7
or edx, 0x40
jmp 0x49de07
or edx, 0x20
jmp 0x49de07
test eax, 0x80000000
je 0x49dddb
or edx, 0x80
jmp 0x49de07
or edx, 0x10
jmp 0x49de07
test eax, 0x40000000
je 0x49ddf8
test eax, 0x80000000
je 0x49ddf3
or edx, 4
jmp 0x49de07
or edx, 2
jmp 0x49de07
test eax, 0x80000000
je 0x49de04
or edx, 8
jmp 0x49de07
or edx, 1
mov eax, edx
pop ebp
ret 4
Function at 0x49df04
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
xor ecx, ecx
push ebp
push 0x49e11f
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [esi]
lea edx, [ebp - 0x48]
mov ecx, 0x40
call fcn.00403258
cmp word [ebp - 0x48], 0x5a4d
je 0x49df5e
mov eax, 0x4f5254
mov edx, 0x49e158
call fcn.004050c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49e13f
mov eax, dword [esi]
add eax, dword [ebp - 0xc]
lea edx, [ebp - 0x140]
mov ecx, 0xf8
call fcn.00403258
cmp dword [ebp - 0x140], 0x4550
je 0x49df9b
mov eax, 0x4f5254
mov edx, 0x49e194
call fcn.004050c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49e13f
push 4
push 0x2000
mov eax, dword [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0x10c]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
jne 0x49dfd2
push 4
push 0x2000
mov eax, dword [ebp - 0xf0]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
jne 0x49dff2
mov eax, 0x4f5254
mov edx, 0x49e1d4
call fcn.004050c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49e13f
push 0x11
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 0
push 4
push 0x1000
mov eax, dword [ebp - 0xf0]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc_1
push 4
push 0x1000
mov eax, dword [ebp - 0xec]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0xec]
push edi
pop edx
call fcn.00403258
mov eax, edi
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov edi, ebx
mov dword [eax + 0x34], edi
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x140]
push eax
mov eax, dword [esi]
push eax
call fcn.0049d9a4
mov eax, edi
sub eax, dword [ebp - 0x10c]
test eax, eax
je 0x49e095
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0049da4c
mov eax, dword [ebp - 8]
push eax
call fcn.0049db04
test al, al
jne 0x49e0b6
mov eax, 0x4f5254
mov edx, 0x49e208
call fcn.0040543c
call fcn.00411c40
mov eax, dword [ebp - 8]
push eax
call fcn.0049de10
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x49e115
mov edx, eax
add edx, edi
mov esi, edx
test edx, edx
jne 0x49e0e9
mov eax, 0x4f5254
mov edx, 0x49e244
call fcn.004050c8
call fcn.00411c40
push 0
push 1
push edi
call esi
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x49e10e
mov eax, 0x4f5254
mov edx, 0x49e27c
call fcn.004050c8
call fcn.00411c40
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49e139
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49fcec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405d30
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x49fd05
test al, 0x10
jne 0x49fd09
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x49ffe8
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405f98
xor eax, eax
push ebp
push 0x4a013f
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00405ec8
jne 0x4a003f
mov ecx, 0x4a015c
mov dl, 1
mov eax, dword [0x40a604]
call fcn.00411c48
mov edx, eax
mov dword [edx + 0x18], 3
mov eax, edx
call fcn.0040484c
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049fc7c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00405ba4
mov eax, dword [ebp - 4]
call fcn.0049fcec
test al, al
jne 0x4a010f
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a0073
sub eax, 4
mov eax, dword [eax]
shr eax, 1
cmp eax, 3
jge 0x4a007c
mov al, 1
jmp 0x4a0084
mov eax, dword [ebp - 4]
call fcn.0049fcec
test al, al
je 0x4a008c
mov al, 1
jmp 0x4a00bd
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00406220
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0040d374
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00406220
mov edx, dword [ebp - 0x14]
pop eax
call fcn.0040675c
sete al
test al, al
jne 0x4a010f
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0049fbf8
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.0049ffe8
test al, al
je 0x4a00ee
push 0
mov eax, dword [ebp - 4]
call fcn.00405d30
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4a00f2
xor ebx, ebx
jmp 0x4a00f4
mov bl, 1
test bl, bl
je 0x4a010f
test si, si
jbe 0x4a010f
movzx eax, si
push eax
mov eax, dword [ebp - 4]
call fcn.00405d30
push eax
call sub.kernel32.dll_SetFileAttributesW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0146
lea eax, [ebp - 0x18]
call fcn.00405b40
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405fc8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405b58
ret
Function at 0x4a28d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
test dl, dl
je 0x4a28e2
add esp, 0xfffffff0
call fcn.004041e4
mov esi, ecx
mov ebx, edx
mov edi, eax
lea eax, [ebp + 0x1c]
call fcn.00405f98
xor eax, eax
push ebp
push 0x4a298e
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.00403d64
mov dword [edi + 0x38], esi
lea eax, [edi + 0xc]
mov edx, dword [ebp + 0x1c]
call fcn.00405b7c
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
movzx eax, byte [ebp + 8]
mov byte [edi + 0x1c], al
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
push 0
lea eax, [edi + 0x40]
mov ecx, 1
mov edx, dword [0x49ec9c]
call fcn.0040790c
add esp, 4
mov eax, edi
call fcn.004a2724
test al, al
jne 0x4a2978
call fcn.00411c40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2995
lea eax, [ebp + 0x1c]
call fcn.00405b40
ret
Function at 0x4a30f8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x14
add esp, 0xfffff004
push eax
dec eax
jne 0x4a3101
mov eax, dword [ebp - 4]
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14018], ecx
mov dword [ebp - 0x1401c], ecx
mov dword [ebp - 0x14008], edx
mov ebx, eax
lea eax, [ebp - 0x14008]
call fcn.00405f98
xor eax, eax
push ebp
push 0x4a331a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x14009], 0
lea edx, [ebp - 0x1401c]
mov eax, dword [ebp - 0x14008]
call fcn.0049fe70
mov eax, dword [ebp - 0x1401c]
lea edx, [ebp - 0x14018]
call fcn.004a0194
mov eax, dword [ebp - 0x14018]
mov edx, 0x4a3334
call fcn.00405ec8
jne 0x4a32f1
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xbc], 0
mov byte [ebx + 0xb0], 0
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 0x14008]
call fcn.00405d30
mov ecx, 1
mov edx, 0x80000000
call fcn.004a0278
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a32ea
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.004a0314
mov dword [ebp - 0x14010], eax
push 0
push 0x10000
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004a0314
push 0
lea eax, [ebp - 0x14014]
push eax
push 0x14000
lea eax, [ebp - 0x14004]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
mov edi, dword [ebp - 0x14014]
sub edi, 6
test edi, edi
jb 0x4a325f
inc edi
xor esi, esi
push ebp
mov eax, esi
call fcn.004a30c0
pop ecx
mov byte [ebx + 0xb0], al
cmp byte [ebx + 0xb0], 0
je 0x4a325b
lea eax, [esi + 0x10000]
xor edx, edx
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0xbc], edx
mov byte [ebp - 0x14009], 1
jmp 0x4a325f
inc esi
dec edi
jne 0x4a3226
cmp byte [ebx + 0xb0], 0
jne 0x4a32d3
push ebp
call fcn.004a2f70
pop ecx
mov esi, eax
cmp esi, dword [ebp - 0x14010]
je 0x4a32d3
mov eax, esi
xor edx, edx
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004a0314
push 0
lea eax, [ebp - 0x14014]
push eax
push 6
lea eax, [ebp - 0x14004]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
push ebp
xor eax, eax
call fcn.004a30c0
pop ecx
mov byte [ebx + 0xb0], al
cmp byte [ebx + 0xb0], 0
je 0x4a32d3
mov eax, esi
xor edx, edx
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0xbc], edx
mov byte [ebp - 0x14009], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a32f1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3321
lea eax, [ebp - 0x1401c]
mov edx, 2
call fcn.00405b58
lea eax, [ebp - 0x14008]
call fcn.00405b40
ret
Function at 0x4a3eb0
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x4f5268]
mov ecx, 0x40
call fcn.00403258
mov dword [0x4f526c], 0xb7e15163
mov ebx, 0x19
mov eax, 0x4f526c
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x4a3ede
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x4e
mov eax, dword [ebx*4 + 0x4f526c]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.004a3ce4
mov esi, eax
mov dword [ebx*4 + 0x4f526c], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.004a3ce4
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x1a
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x4a3f4e
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x4a3efe
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4a3f5c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov esi, 0xc
mov eax, dword [ebx + 4]
mov edi, esi
add edi, edi
sub eax, dword [edi*4 + 0x4f5270]
mov edx, dword [ebx]
call fcn.004a3cec
mov ebp, eax
xor ebp, dword [ebx]
mov dword [ebx + 4], ebp
mov eax, dword [ebx]
sub eax, dword [edi*4 + 0x4f526c]
mov edx, ebp
call fcn.004a3cec
xor eax, dword [ebx + 4]
mov dword [ebx], eax
dec esi
test esi, esi
jne 0x4a3f67
mov eax, dword [0x4f5270]
sub dword [ebx + 4], eax
mov eax, dword [0x4f526c]
sub dword [ebx], eax
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4ce364
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4ce3be
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004ce358
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004cb824
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004cb388
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce3c5
lea eax, [ebp - 4]
call fcn.00405fc0
ret

Function at 0x4d0b80
Capabilities:
Encode data using xor

Disassembly:
ret
Function at 0x4e2d14
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405fb8
mov eax, dword [ebp - 8]
call fcn.00405fb8
xor eax, eax
push ebp
push 0x4e2e0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040d06c
test al, al
je 0x4e2df2
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403654
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov eax, 0x4e2e18
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406024
cmp dword [ebp - 8], 0
je 0x4e2db8
push dword [ebp - 4]
push 0x4e2e30
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406570
mov eax, dword [ebp - 0xc]
call fcn.0040d024
test al, al
jne 0x4e2db8
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406024
mov eax, dword [ebp - 0xc]
call fcn.0040605c
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
call fcn.0040605c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4e2df2
push 0xffffffffffffffff
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e2e14
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405fc8
ret

Function at 0x4e6730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x4e67e8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x4efd28]
mov eax, dword [eax]
call fcn.0040c91c
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 4]
mov eax, dword [0x4f60b4]
call fcn.00424540
cmp dword [ebp - 4], 0
jne 0x4e677e
lea ecx, [ebp - 4]
mov edx, 0x4e6800
mov eax, dword [0x4f60b4]
call fcn.00424540
lea edx, [ebp - 0x10]
mov eax, 0x4e6810
call fcn.004e2efc
push dword [ebp - 0x10]
push 0x4e6868
push dword [ebp - 4]
push 0x4e6884
push dword [0x4f6088]
lea eax, [ebp - 8]
mov edx, 5
call fcn.00406570
push 1
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040605c
push eax
push 0x4e6890
mov eax, dword [0x4f608c]
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e67ef
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405fc8
ret
Function at 0x659a6d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x663168
cmp edx, dword [eax]
je 0x659a8f
add eax, 8
inc ecx
cmp eax, 0x6631f8
jl 0x659a80
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x663168]
jne 0x659bbd
mov eax, dword [0xa68a90]
cmp eax, 1
je 0x659b97
test eax, eax
jne 0x659ac0
cmp dword [0x663094], 1
je 0x659b97
cmp edx, 0xfc
je 0x659bbd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659af7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0065a450
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065a8e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x659b3a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065a8e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65ee9c
push edi
call fcn.0065c7b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0065a450
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a460
lea eax, [ebp - 0xa0]
push 0x65ee7c
push eax
call fcn.0065a460
push dword [esi + 0x66316c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a460
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0065c724
add esp, 0x2c
pop edi
jmp 0x659bbd
lea eax, [ebp + 8]
lea esi, [esi + 0x66316c]
push 0
push eax
push dword [esi]
call fcn.0065a8e0
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 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x33f950d9
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x106d65bf
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42958c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jns 0x4295a0
add ecx, 3
sar ecx, 2
xor eax, eax
cmp ecx, eax
jle 0x4295b1
xor dword [edx + eax*4], ebx
inc eax
cmp ecx, eax
jg 0x4295a9
pop ebx
pop ebp
ret 0xc
Function at 0x406000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c8
call fcn.00408ca0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x3a9a4], edx
lea esi, [edx + 7]
nop
mov ecx, edx
mov eax, edx
shr eax, 0xf
xor edx, edx
shr ecx, 8
mov bl, 1
add eax, ecx
xor eax, ecx
inc eax
div esi
mov ecx, edx
mov edx, dword [ebp - 0x3a9a4]
shl bl, cl
movsx eax, dl
movsx ecx, bl
imul ecx, eax
lea eax, [edx + 1]
add al, al
xor cl, al
mov byte [ebp + edx - 0x3a988], cl
inc edx
mov dword [ebp - 0x3a9a4], edx
cmp edx, 0x3a980
jb 0x406090
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9c0], 0x3a980
mov dword [ebp - 0x3a9c4], eax
lea eax, [ebp - 0x3a9c4]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9bc], 0
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c4]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c4]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00407e8e
mov esp, ebp
pop ebp
ret