joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f8590
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov eax, 0x65
mov ecx, 0x72
push ebx
xor ebx, ebx
mov byte [esp + 5], al
mov byte [esp + 4], 0x54
mov byte [esp + 7], 0x6d
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x61
mov byte [esp + 6], cl
mov byte [esp + 0xe], al
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xf], cl
mov byte [esp + 0x11], al
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], bl
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], 0x53
mov byte [esp + 0x10], 0x76
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x4f861a
cmp al, 4
lea eax, [esp + 4]
push eax
jbe 0x4f8610
call fcn.004f8630
add esp, 4
mov ebx, eax
mov eax, ebx
pop ebx
add esp, 0x10
ret
call fcn.004f8630
add esp, 4
mov ebx, eax
mov eax, ebx
pop ebx
add esp, 0x10
ret

Function at 0x4f8630
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor esi, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [esp + 0x1c], ebx
push 0x4ea3d8
mov dword [esp + 0x1c], ebx
push reloc.WSOCK32.dll_bind
call ebp
test eax, eax
jne 0x4f86f4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push ebx
push 0x4ea3c8
push edx
call edi
test eax, eax
jne 0x4f86f4
cmp dword [esp + 0x14], ebx
je 0x4f86f4
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
push 0x40
call ebp
mov esi, eax
test esi, esi
je 0x4f86ff
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push esi
push ecx
push ebx
push 0x4ea3c8
push edx
call edi
test eax, eax
jne 0x4f86f4
cmp dword [esp + 0x18], 7
jne 0x4f86f4
mov ebp, esi
cmp byte [esi], bl
je 0x4f86f4
mov edi, dword [esp + 0x20]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4f86ef
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x4f86d0
jmp 0x4f86f4
mov ebx, 1
test esi, esi
je 0x4f86ff
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x10], 0
je 0x4f8713
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4f8e80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
mov dword [esp], 0x10
push esi
push edi
push 0x4e8
push 5
push 6
call fcn.004f5a80
add esp, 0xc
mov esi, eax
cmp esi, 0xffffffff
je 0x4f8f18
mov edx, dword [esp + 8]
lea edi, [esp + 0xc]
xor eax, eax
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov word [esp + 0xc], 6
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push esi
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x4f8f18
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
je 0x4f8f18
lea eax, [esp + 0xc]
push eax
call fcn.004f8e00
add esp, 4
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
push esi
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
push 0x4ea464
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x14
ret

Function at 0x4f9970
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
mov eax, 0x52
mov byte [esp], al
push esi
mov byte [esp + 5], 0x4e
mov byte [esp + 6], 0x42
mov byte [esp + 7], 0x4f
mov byte [esp + 8], 0x44
mov esi, dword [esp + 0x14]
mov byte [esp + 9], al
mov ax, word [esp + 0x18]
push 0
add al, 0x30
push 0x80
mov byte [esp + 0x13], al
push 3
lea ecx, [esp + 0x10]
push 0
push 3
mov dword [esi], 0
mov byte [esp + 0x1e], 0x56
mov byte [esp + 0x20], 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4f9a0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x4f99e8
cmp eax, 3
jbe 0x4f9a01
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4f99f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x80b
pop esi
add esp, 0xc
ret 8
mov ax, 0x80c
pop esi
add esp, 0xc
ret 8
mov ax, 0x800
pop esi
add esp, 0xc
ret 8

Function at 0x4f9a20
Capabilities:
Enumerate pe sections
Read file on windows
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov word [esi + 6], 0xffff
push esi
call fcn.004fb9c0
lea eax, [esp + 0xc]
push 0
mov edi, dword [esp + 0x18]
push eax
xor eax, eax
mov ecx, dword [edi]
mov ax, word [esi + 2]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
je 0x4f9a72
lea eax, [esp + 0xc]
push 0
push eax
mov ecx, dword [edi]
xor eax, eax
mov ax, word [esi + 2]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
push esi
call fcn.004fb970
test ebx, ebx
je 0x4f9a84
cmp word [esi + 6], 0xffff
jne 0x4f9a8a
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x4fb800
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov edx, 0xc6ef3720
push edi
mov esi, dword [eax]
push ebp
mov edi, dword [eax + 4]
mov ebx, 0x1f
mov ecx, dword [esp + 0x18]
mov eax, esi
mov ebp, esi
shl eax, 4
add edx, 0x61c88647
shr ebp, 5
add eax, dword [ecx + 8]
add ebp, dword [ecx + 0xc]
xor eax, ebp
lea ebp, [esi + edx - 0x61c88647]
xor eax, ebp
sub edi, eax
mov ebp, edi
mov eax, edi
shl ebp, 4
shr eax, 5
add ebp, dword [ecx]
add eax, dword [ecx + 4]
xor ebp, eax
lea eax, [edi + edx - 0x61c88647]
xor ebp, eax
mov eax, ebx
sub esi, ebp
dec ebx
test eax, eax
jne 0x4fb81b
mov eax, dword [esp + 0x14]
pop ebp
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x4fb8c0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
xor edx, edx
push edi
mov esi, dword [eax]
push ebp
mov edi, dword [eax + 4]
mov ebx, 0x1f
mov ecx, dword [esp + 0x18]
sub edx, 0x61c88647
mov eax, edi
shl eax, 4
mov ebp, edi
shr ebp, 5
add eax, dword [ecx]
add ebp, dword [ecx + 4]
xor eax, ebp
lea ebp, [edi + edx]
xor eax, ebp
add esi, eax
mov ebp, esi
mov eax, esi
shl ebp, 4
shr eax, 5
add ebp, dword [ecx + 8]
add eax, dword [ecx + 0xc]
xor ebp, eax
lea eax, [esi + edx]
xor ebp, eax
mov eax, ebx
add edi, ebp
dec ebx
test eax, eax
jne 0x4fb8d8
mov eax, dword [esp + 0x14]
pop ebp
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x4fba70
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
lea ecx, [esp]
push esi
push eax
push ecx
call fcn.004fba20
lea ecx, [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4fbadf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x4fbabb
cmp eax, 3
jbe 0x4fbad4
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4fbac9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8
Function at 0x4fbaf0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
mov eax, 0x5c
mov byte [esp], al
push esi
mov byte [esp + 5], al
mov byte [esp + 7], al
mov byte [esp + 6], 0x2e
mov byte [esp + 8], 0x53
mov byte [esp + 0xa], 0x74
mov byte [esp + 0xc], 0x6c
mov byte [esp + 0xd], 0x55
mov eax, 0x6e
push 0
mov byte [esp + 0xd], al
mov byte [esp + 0xf], al
mov byte [esp + 0x12], 0x73
mov byte [esp + 0x13], 0x62
lea ecx, [esp + 8]
push 0x80
mov byte [esp + 0x18], 0
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4fbb96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x4fbb72
cmp eax, 3
jbe 0x4fbb8b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4fbb80
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x4fbbc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
mov word [esi + 6], 0xffff
push esi
call fcn.004fb9c0
lea eax, [esp + 8]
push 0
mov ecx, dword [esp + 0x14]
push eax
xor eax, eax
mov edx, dword [ecx]
mov ax, word [esi + 2]
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push esi
call fcn.004fb970
cmp edi, 1
jne 0x4fbc06
cmp word [esi + 6], 0xffff
jne 0x4fbc0c
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8

Function at 0x4fbd80
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov eax, 0x53
mov byte [esp + 8], al
mov byte [esp + 0xa], al
mov byte [esp + 9], 0x59
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov ecx, 0x49
mov byte [esp + 0x14], al
mov byte [esp + 0xf], cl
mov byte [esp + 0x11], cl
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x12], 0
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov edx, 0x65
mov byte [esp + 0x1c], al
mov byte [esp + 0x15], dl
mov byte [esp + 0x1a], dl
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1d], dl
mov byte [esp], cl
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp + 1], 0x6f
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
lea eax, [esp + 8]
lea ecx, [esp]
lea edx, [esp + 0x14]
push eax
mov byte [esp + 9], 0x72
mov byte [esp + 0xa], 0x79
mov byte [esp + 0xb], 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x24
ret
Function at 0x4fcbc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov bx, word [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov word [esi], 0
cmp bx, 4
jbe 0x4fcbe3
xor al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.004fc8a0
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.004fc900
lea eax, [esp + 0x18]
push 0x10
push eax
add bl, 0x31
call fcn.004fc9a0
lea eax, [esp + 0x18]
push eax
call fcn.004f1e00
lea ecx, [esp + 0x28]
lea edx, [esp + 8]
movzx eax, ax
push ecx
push 0x10
lea ecx, [esp + 0x40]
push edx
mov byte [esp + eax + 0x24], bl
push 0x4e8ca0
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4fcc8f
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.004fcba0
test ax, ax
je 0x4fcc59
movzx eax, ax
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x4fcc7b
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x4fcc7b
lea eax, [esp + 0xa]
push esi
push eax
call fcn.004f1f00
test al, al
jne 0x4fcc8f
jmp 0x4fcc8a
lea eax, [esp + 8]
push esi
push eax
call fcn.004f1e60
test al, al
jne 0x4fcc8f
mov word [esi], 0
mov ax, word [esi]
test ax, ax
je 0x4fcca7
cmp ax, 0xffff
je 0x4fcca7
mov al, 1
pop esi
pop ebx
add esp, 0x40
ret 8
xor al, al
pop esi
pop ebx
add esp, 0x40
ret 8

Function at 0x4fccc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov bx, word [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov word [esi], 0
cmp bx, 4
jbe 0x4fcce3
xor al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.004fc8a0
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.004fc900
lea eax, [esp + 0x18]
push 0x10
push eax
add bl, 0x31
call fcn.004fc9a0
lea eax, [esp + 0x18]
push eax
call fcn.004f1e00
lea ecx, [esp + 0x28]
lea edx, [esp + 8]
movzx eax, ax
push ecx
push 0x10
lea ecx, [esp + 0x40]
push edx
mov byte [esp + eax + 0x24], bl
push 0x4e8ca0
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4fcd8a
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.004fcba0
test ax, ax
je 0x4fcd8a
movzx eax, ax
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x4fcd8a
cmp byte [esp + eax + 0xa], 0x3a
jne 0x4fcd8a
lea eax, [esp + eax + 0xb]
push esi
push eax
call fcn.004f1e60
test al, al
je 0x4fcd85
mov ax, word [esi]
cmp ax, 1
jl 0x4fcd85
cmp ax, 6
jle 0x4fcd8a
mov word [esi], 0
cmp word [esi], 1
pop esi
sbb al, al
pop ebx
inc al
add esp, 0x40
ret 8
Function at 0x4fcda0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
lea eax, [esp]
push esi
push 0x10
push eax
call fcn.004fc8a0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004fc900
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.004fca60
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.004fca20
lea eax, [esp + 4]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push 0x10
push ecx
push 0x4e8ca0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
je 0x4fce10
lea eax, [esp + 0x34]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.004f1c90
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
cmp esi, 1
pop esi
sbb al, al
add esp, 0x50
inc al
ret 8

Function at 0x4fce20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp]
push 0x10
push eax
call fcn.004fc8a0
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.004fc900
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.004fc9e0
lea eax, [esp]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x34]
cmp eax, 1
mov word [ecx], ax
sbb cl, cl
add esp, 0x30
inc cl
mov al, cl
ret 4

Function at 0x4fce80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
mov word [esi], 0
push 0
push eax
call fcn.004f1e20
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.004fc8a0
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.004fc900
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004fc950
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.004fcac0
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.004fcb50
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.004fcb10
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
lea edx, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push 0x10
push ecx
push 0x4e8ca0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4fcf54
lea eax, [esp + 0x44]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.004f1c90
test al, al
je 0x4fcf22
mov word [esi], 2
jmp 0x4fcf54
lea eax, [esp + 0x54]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.004f1c90
test al, al
je 0x4fcf3c
mov word [esi], 3
jmp 0x4fcf54
lea eax, [esp + 0x64]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.004f1c90
test al, al
je 0x4fcf54
mov word [esi], 1
cmp word [esi], 1
pop esi
sbb al, al
add esp, 0x70
inc al
ret 4
Function at 0x4fd120
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 4
mov byte [esp + 3], 0
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push ebp
lea eax, [esi + 4]
mov dword [esi], eax
mov cx, word [edi + 4]
mov word [esi + 4], cx
mov ax, word [edi + 0xa]
mov word [esi + 6], ax
mov dx, word [edi + 0x14]
mov word [esi + 0x16], dx
lea edx, [esi + 0x24]
mov cx, word [edi + 8]
mov word [esi + 8], cx
lea ecx, [esi + 4]
mov ax, word [edi + 6]
push ecx
mov word [esi + 0xa], ax
mov dword [esi + 0x10], edx
call fcn.004fd030
test al, al
jne 0x4fd291
test byte [edi + 0x1c], 4
je 0x4fd183
mov byte [esp + 0x13], 1
xor cx, cx
xor dx, dx
movzx ebp, cx
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
shl ebp, 2
lea eax, [eax + eax*4]
mov word [eax + esi + 0x36], cx
lea ebx, [eax + esi]
cmp cx, 3
lea eax, [ebp + ebp*8]
lea ebp, [eax + edi]
mov ax, word [ebp + 0xe]
mov word [ebx + 0x9c], ax
mov ax, word [ebp + 0x12]
mov word [ebx + 0x8e], ax
mov ax, word [ebp + 0x16]
mov word [ebx + 0x34], ax
mov ax, word [ebp + 0x18]
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [esi + 4]
mov dword [ebx + 0xa4], eax
jne 0x4fd200
mov dword [ebx + 0xa8], 0
jmp 0x4fd20c
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
test cx, cx
jne 0x4fd21d
mov dword [ebx + 0xac], 0
jmp 0x4fd226
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x4fd23b
cmp word [ebp + 0xe], 0xffff
jne 0x4fd23b
or dword [ebx + 0x2c], 8
jmp 0x4fd241
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x4fd189
push esi
call fcn.004fd0a0
push esi
call fcn.004fcfe0
push esi
call fcn.004fcfa0
mov eax, dword [esi + 0x10]
push eax
call fcn.004fe090
mov word [esi + 0xc], ax
test ax, ax
je 0x4fd287
add esi, 4
push esi
call fcn.004fdf00
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.004fcf70
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.004060bc
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.004060bc
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.004060bc
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.004060bc
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.004060bc
mov dword [0x41203c], eax
call fcn.004060bc
test eax, eax
jge 0x402550
push 8
call fcn.004060bc
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.004060bc
pop ecx
push 1
call fcn.004060bc
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.004060bc
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.004060bc
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.004060bc
jmp 0x402495

Function at 0x4060bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x4060cb
pop dword [ebp - 8]
mov eax, 0x4060cb
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x36381
push 0
mov eax, 0xa5dfeb77
add eax, 0x5a60f561
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x3c11
mov esi, eax
mov edx, 0xeffcd41f
add edx, 0x104467a5
add edx, dword [ebp - 8]
mov edi, 0xc80c5c3f
xor dword [ebp - 4], 0xe08a75b1
mov ebx, dword [edx]
add dword [ebp - 4], edx
sub ebx, edi
xor dword [ebp - 4], ebx
mov dword [esi], ebx
sub dword [ebp - 4], eax
add esi, 0xfd174077
add esi, 0x2e8bf8d
add edx, 4
loop 0x406119
add eax, 0xe317
xor ebx, ebx
add ebx, eax
add eax, 0x99a83fbb
add eax, 0x6657c04a
mov ecx, 0x1be30c68
add ecx, 0xe45cf398
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x40af40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46854b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045ce99
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40afc2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045adb0
mov eax, dword [eax]
push 0x4881f0
push eax
call fcn.0044d9e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045d124
test bl, bl
je 0x40afc2
push 0x4881f0
lea ecx, [esp + 0xc]
call fcn.0045d4b4
push 0x48bd6c
lea ecx, [esp + 0xc]
call fcn.0045d4b4
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40affe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045d124
jmp 0x40b0c9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b082
lea edx, [esp + 0x7c]
push 0x48bd68
push edx
call fcn.0044d9e4
add esp, 8
test eax, eax
je 0x40b082
lea eax, [esp + 0x7c]
push 0x48bd64
push eax
call fcn.0044d9e4
add esp, 8
test eax, eax
je 0x40b082
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b012
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045d124
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40c320
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c382
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc