joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4760
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x4d4783
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.004d43c0
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.004d4420
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.004d44e0
lea eax, [esp + 0x18]
push eax
call fcn.004d3dc0
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x4d4750
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x4d4834
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.004d4730
or ax, ax
je 0x4d47fc
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x4d4820
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x4d4820
lea eax, [esp + 0xa]
push esi
push eax
call fcn.004d3ed0
or al, al
jne 0x4d4834
jmp 0x4d482f
lea eax, [esp + 8]
push esi
push eax
call fcn.004d3e20
or al, al
jne 0x4d4834
mov word [esi], 0
mov ax, word [esi]
or ax, ax
je 0x4d484c
cmp ax, 0xffff
je 0x4d484c
mov al, 1
pop esi
pop ebx
add esp, 0x40
ret 8
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8

Function at 0x4d4870
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x4d4893
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.004d43c0
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.004d4420
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.004d44e0
lea eax, [esp + 0x18]
push eax
call fcn.004d3dc0
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x4d4860
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x4d4944
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.004d4730
or ax, ax
je 0x4d4944
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x4d4944
cmp byte [esp + eax + 0xa], 0x3a
jne 0x4d4944
push esi
lea eax, [esp + eax + 0xf]
push eax
call fcn.004d3e20
or al, al
jne 0x4d4930
jmp 0x4d493f
mov ax, word [esi]
cmp ax, 1
jl 0x4d493f
cmp ax, 6
jle 0x4d4944
mov word [esi], 0
cmp word [esi], 1
sbb al, al
inc al
pop esi
pop ebx
add esp, 0x40
ret 8
Function at 0x4d4970
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
push esi
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.004d43c0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004d4420
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.004d45d0
lea eax, [esp + 4]
push 0x10
push eax
call fcn.004d4580
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push 0x10
push eax
lea eax, [esp + 0x40]
push 0x4d4960
push eax
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov esi, eax
or esi, esi
je 0x4d49df
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.004d3c40
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
cmp esi, 1
sbb al, al
inc al
pop esi
add esp, 0x50
ret 8

Function at 0x4d49f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.004d43c0
lea eax, [esp]
push 0x10
push eax
call fcn.004d4420
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.004d4530
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push 0
push eax
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
mov ecx, dword [esp + 0x34]
cmp eax, 1
mov word [ecx], ax
sbb cl, cl
inc cl
mov al, cl
add esp, 0x30
ret 4

Function at 0x4d4a60
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
push esi
mov esi, dword [esp + 0x78]
push 0x10
mov word [esi], 0
lea eax, [esp + 8]
push 0
push eax
call fcn.004d3de0
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.004d43c0
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.004d4420
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.004d4480
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.004d4630
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004d46e0
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.004d4690
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 8]
push 0x10
push eax
lea eax, [esp + 0x60]
push 0x4d4a50
push eax
lea eax, [esp + 0x58]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x4d4b33
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 8]
push eax
call fcn.004d3c40
or al, al
je 0x4d4b01
mov word [esi], 2
jmp 0x4d4b33
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 8]
push eax
call fcn.004d3c40
or al, al
je 0x4d4b1b
mov word [esi], 3
jmp 0x4d4b33
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.004d3c40
or al, al
je 0x4d4b33
mov word [esi], 1
cmp word [esi], 1
sbb al, al
inc al
pop esi
add esp, 0x70
ret 4
Function at 0x4d4d20
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
mov esi, dword [esp + 0x18]
mov byte [esp + 0x13], 0
lea eax, [esi + 4]
mov edi, dword [esp + 0x1c]
mov dword [esi], eax
mov ax, word [edi + 4]
mov word [esi + 4], ax
mov ax, word [edi + 0xa]
mov word [esi + 6], ax
mov ax, word [edi + 0x14]
mov word [esi + 0x16], ax
mov ax, word [edi + 8]
mov word [esi + 8], ax
mov ax, word [edi + 6]
mov word [esi + 0xa], ax
lea eax, [esi + 0x24]
mov dword [esi + 0x10], eax
lea eax, [esi + 4]
push eax
call fcn.004d4c20
or al, al
jne 0x4d4eaa
test byte [edi + 0x1c], 4
je 0x4d4d83
mov byte [esp + 0x13], 1
sub cx, cx
sub dx, dx
lea esp, [esp]
mov ebp, ecx
and ebp, 0xffff
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
lea eax, [eax + eax*4]
lea ebx, [esi + eax]
lea eax, [ebp*4]
mov word [ebx + 0x36], cx
lea eax, [eax + eax*8]
lea ebp, [edi + eax]
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
cmp cx, 3
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 0x4d4e10
mov dword [ebx + 0xa8], 0
jmp 0x4d4e1c
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
or cx, cx
jne 0x4d4e30
mov dword [ebx + 0xac], 0
jmp 0x4d4e39
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x4d4e50
cmp word [ebp + 0xe], 0xffff
jne 0x4d4e50
or dword [ebx + 0x2c], 8
jmp 0x4d4e56
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x4d4d90
push esi
call fcn.004d4c90
push esi
call fcn.004d4bd0
push esi
call fcn.004d4b90
mov eax, dword [esi + 0x10]
push eax
call fcn.004d6050
mov word [esi + 0xc], ax
or ax, ax
je 0x4d4ea0
lea eax, [esi + 4]
push eax
call fcn.004d5ea0
sub ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.004d4b60
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x4d6fa0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.004d4ec0
mov eax, dword [esp + 0xc]
push 0xd
mov ax, word [eax + 4]
push eax
call fcn.004d6ad0
or al, al
jne 0x4d702a
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.004d78c0
or al, al
jne 0x4d702a
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x10]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.004d7780
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.004d7910
or di, di
je 0x4d702a
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x4d70d0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x28]
push eax
mov esi, dword [esp + 0x28]
push edi
push esi
call fcn.004d4ec0
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.004d4ec0
mov eax, dword [esp + 0x10]
push 0xe
mov ax, word [eax + 4]
push eax
call fcn.004d6ad0
or al, al
jne 0x4d71b3
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004d78c0
mov bx, ax
or bl, bl
jne 0x4d7182
mov eax, dword [esp + 0x10]
mov ax, word [eax + 0xe]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x1c]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x20]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x24]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.004d77d0
mov bx, ax
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004d7910
push esi
call fcn.004d4fd0
cmp ax, 0xd
jne 0x4d7192
mov bx, 0xd
cmp bl, 0xd
je 0x4d719d
cmp bx, 3
jne 0x4d71b0
mov ax, word [esp + 0xe]
dec word [esp + 0xe]
or ax, ax
jne 0x4d7122
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x4d8f50
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push esi
mov byte [esp + 4], 0x52
mov byte [esp + 5], 0x4e
mov byte [esp + 6], 0x42
mov byte [esp + 7], 0x4f
mov byte [esp + 8], 0x44
mov byte [esp + 9], 0x52
mov byte [esp + 0xa], 0x56
mov ax, word [esp + 0x18]
add al, 0x30
mov byte [esp + 0xb], al
mov esi, dword [esp + 0x14]
mov byte [esp + 0xc], 0
mov dword [esi], 0
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4d8fe6
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x4d8fc3
cmp eax, 3
jbe 0x4d8fdb
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4d8fd0
push eax
call sub.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 0x4d9000
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov esi, dword [esp + 0x18]
push esi
mov word [esi + 6], 0xffff
call fcn.004d8ef0
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov edi, dword [esp + 0x20]
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
or ebx, ebx
je 0x4d9050
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
push esi
call fcn.004d8eb0
or ebx, ebx
je 0x4d9062
cmp word [esi + 6], 0xffff
jne 0x4d9068
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x4d9190
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push esi
mov al, byte [esp + 0x1c]
push eax
lea eax, [esp + 8]
push eax
call fcn.004d9150
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4d9200
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x4d91d9
cmp eax, 3
jbe 0x4d91f1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4d91e6
push eax
call sub.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 0x4d9220
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
push esi
mov word [esi + 6], 0xffff
call fcn.004d8ef0
lea eax, [esp + 8]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_ReadFile
mov edi, eax
push esi
call fcn.004d8eb0
cmp edi, 1
jne 0x4d9265
cmp word [esi + 6], 0xffff
jne 0x4d926b
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8

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

Disassembly:
sub esp, 0x24
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x59
mov byte [esp + 0xa], 0x53
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x49
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x53
mov byte [esp + 0x1d], 0x65
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp], 0x49
mov byte [esp + 1], 0x6f
lea eax, [esp + 8]
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
mov byte [esp + 5], 0x72
mov byte [esp + 6], 0x79
mov byte [esp + 7], 0
push eax
lea eax, [esp + 4]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
add esp, 0x24
ret

Function at 0x4da210
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov eax, dword [esp + 8]
or eax, eax
jne 0x4da221
mov ax, 2
pop esi
ret 0x14
push eax
call fcn.004d3d10
mov esi, eax
cmp word [esi], 0x7242
je 0x4da238
mov ax, 2
pop esi
ret 0x14
test byte [esi + 0x12], 4
jne 0x4da250
mov word [esi + 6], 0xb39
mov ax, 0x39
pop esi
ret 0x14
mov word [esi + 0x30], 0xd
mov ax, word [esp + 0x10]
mov word [esi + 0x34], ax
mov ax, word [esp + 0x14]
mov word [esi + 0x36], ax
mov ax, word [esp + 0xc]
mov word [esi + 0x3a], ax
mov al, byte [esp + 0x18]
mov byte [esi + 0x38], al
push esi
call fcn.004d8880
mov ax, word [esi + 6]
push eax
call fcn.004d96d0
cmp ax, 0xc
jne 0x4da296
mov ax, 3
pop esi
ret 0x14
mov ax, word [esi + 6]
push eax
call fcn.004d96d0
pop esi
ret 0x14
Function at 0x4da2b0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov eax, dword [esp + 8]
or eax, eax
jne 0x4da2c1
mov ax, 2
pop esi
ret 0x1c
push eax
call fcn.004d3d10
mov esi, eax
cmp word [esi], 0x7242
je 0x4da2d8
mov ax, 2
pop esi
ret 0x1c
test byte [esi + 0x12], 4
jne 0x4da2f0
mov word [esi + 6], 0xb39
mov ax, 0x39
pop esi
ret 0x1c
mov word [esi + 0x30], 0xe
mov ax, word [esp + 0x18]
mov word [esi + 0x34], ax
mov ax, word [esp + 0x1c]
mov word [esi + 0x36], ax
mov ax, word [esp + 0xc]
mov word [esi + 0x3a], ax
mov ax, word [esp + 0x10]
mov word [esi + 0x3c], ax
mov ax, word [esp + 0x14]
mov word [esi + 0x3e], ax
mov al, byte [esp + 0x20]
mov byte [esi + 0x38], al
push esi
call fcn.004d8880
mov ax, word [esi + 6]
push eax
call fcn.004d96d0
cmp ax, 0xc
jne 0x4da348
mov ax, 3
pop esi
ret 0x1c
mov ax, word [esi + 6]
push eax
call fcn.004d96d0
pop esi
ret 0x1c
Function at 0x4dac26
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
push 0x40
push 0
lea eax, [ebp - 0x44]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x40
push 0
lea ecx, [ebp - 0xac]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x20
push 0
lea edx, [ebp - 0x64]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
push 0x6a59c0
call fcn.004dab75
add esp, 8
push 0
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 4]
push eax
call fcn.004e1fce
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 4]
push eax
push 0x54bbd8
lea ecx, [ebp - 0x44]
push ecx
call sub.MSVCR80.dll_sprintf
add esp, 0x14
lea edx, [ebp - 0x44]
push edx
call sub.MSVCR80.dll_strlen
add esp, 4
push eax
push 0x20
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.004de3f0
lea edx, [ebp - 0x64]
push edx
push 0x54bbe8
push 0x54bc20
lea eax, [ebp - 0x1b0]
push eax
call sub.MSVCR80.dll_sprintf
add esp, 0x10
mov dword [ebp - 0x1b4], 0
lea ecx, [ebp - 0x1bc]
push ecx
lea edx, [ebp - 0x1b4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x54bc28
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x1b8], eax
push 0x40
lea eax, [ebp - 0xac]
push eax
push 1
push 0
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x1b4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b4], 0
je 0x4dad54
mov eax, dword [ebp - 0x1b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x4daffc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
push 0x40
push 0
lea eax, [ebp - 0x44]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x40
push 0
lea ecx, [ebp - 0xac]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x20
push 0
lea edx, [ebp - 0x64]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
push 0x6a59c0
call fcn.004dab75
add esp, 8
push 0
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 4]
push eax
call fcn.004e1fce
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 4]
push eax
push str._2d__2d__4d__
lea ecx, [ebp - 0x44]
push ecx
call sub.MSVCR80.dll_sprintf
add esp, 0x14
lea edx, [ebp - 0x44]
push edx
call sub.MSVCR80.dll_strlen
add esp, 4
push eax
push 0x20
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.004de3f0
lea edx, [ebp - 0x64]
push edx
push 0x54bcc4
push 0x54bcfc
lea eax, [ebp - 0x1b0]
push eax
call sub.MSVCR80.dll_sprintf
add esp, 0x10
mov dword [ebp - 0x1b4], 0
lea ecx, [ebp - 0x1bc]
push ecx
lea edx, [ebp - 0x1b4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionDtqpcCGHlvs
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x1b8], eax
push 0x40
lea eax, [ebp - 0xac]
push eax
push 1
push 0
push str.AAQDLHA
mov ecx, dword [ebp - 0x1b4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b4], 0
je 0x4db12b
mov edx, dword [ebp - 0x1b4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x4db407
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x54e54c], 0
jne 0x4db540
mov dword [ebp - 4], 0x5c
push 0x104
push 0
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x10c]
push edx
push 0x54bd8c
lea eax, [ebp - 0x214]
push eax
call sub.MSVCR80.dll_sprintf
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x214]
push edx
call sub.MSVCR80.dll_strrchr
add esp, 8
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x4db49b
mov eax, dword [ebp - 0x218]
mov byte [eax], 0
lea ecx, [ebp - 0x214]
push ecx
push 0x54bd90
push 0x6a5780
call sub.MSVCR80.dll_sprintf
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x10c]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x10c]
push ecx
push 0x54bd94
push 0x6a5420
call sub.MSVCR80.dll_sprintf
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x10c]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x10c]
push ecx
push 0x54bd98
push 0x6a4e80
call sub.MSVCR80.dll_sprintf
add esp, 0xc
mov dword [0x54e54c], 1
push 0x104
push 0x6a5780
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x4e1a97
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x10]
and eax, 0xffff
and eax, 0x3ff
mov word [ebp - 4], ax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx*8 + 0x54bf4c]
test edx, edx
jle 0x4e1b18
cmp dword [ebp - 0xc], 0
jne 0x4e1b18
mov eax, dword [ebp - 4]
and eax, 0xffff
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx*8 + 0x54bf4c]
cmp eax, edx
jne 0x4e1b0d
mov dword [ebp - 0xc], 1
jmp 0x4e1b16
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x4e1ad4
cmp dword [ebp + 8], 0
je 0x4e1b66
cmp dword [ebp - 0xc], 1
jne 0x4e1b55
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x54bf48]
push edx
call sub.MSVCR80.dll_strlen
add esp, 4
cmp dword [ebp + 0xc], eax
jle 0x4e1b55
mov eax, dword [ebp - 8]
mov ecx, dword [eax*8 + 0x54bf48]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR80.dll_strcpy
add esp, 8
jmp 0x4e1b66
push 0x54e574
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR80.dll_strcpy
add esp, 8
mov eax, dword [ebp - 4]
and eax, 0xffff
mov esp, ebp
pop ebp
ret

Function at 0x4e4640
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x54d0ec]
jne 0x4e464a
repz ret
jmp fcn.004e4f6c
Function at 0x7732c2a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x7732c2de
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x7732c2d6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x7732c2e0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x7732c2c6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x7732c3b0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x7732c3e1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x7732c3e1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x7732c3e1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x773373da
Capabilities:
Encode data using xor

Disassembly:
call 0x77337353
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x77337383
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x7733739f
xor edx, 0
jmp 0x773373aa
xor edx, edx
jmp 0x773373c1
jmp 0x773373cd
xor eax, eax
push 0x8427d7c0
call 0x773373da
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x77337416
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x773373ef
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x7733742d
add eax, 0
jno 0x77337432
add esi, 0
ret 0x10