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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov esi, ecx
mov dword [ebp - 0x12], 0x6e696d72
mov word [ebp - 6], 0x7373
mov word [ebp - 0xc], 0x5065
mov word [ebp - 9], 0x636f
mov byte [ebp - 4], bl
mov byte [ebp - 0xa], 0x72
mov word [ebp - 0xe], 0x7461
mov word [ebp - 0x14], 0x6554
mov byte [ebp - 7], 0x65
call fcn.1001bd76
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001bba8
push ebx
push esi
call eax
mov ebx, eax
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x1001bbae
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
call fcn.1001bd48
mov esi, eax
test esi, esi
je 0x1001bc06
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 6], 0x6e696d
mov word [ebp - 9], 0x416e
mov word [ebp - 0xc], 0x7265
mov byte [ebp - 7], 0x64
mov word [ebp - 0xf], 0x5573
mov byte [ebp - 0x10], 0x49
mov byte [ebp - 0xd], 0x73
mov byte [ebp - 0xa], 0x41
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001bbff
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x1001bc5a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
mov dword [ebp - 0xc], 0x6e65704f
mov dword [ebp - 6], 0x7365636f
mov word [ebp - 2], 0x73
mov word [ebp - 8], 0x7250
call fcn.1001bd76
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001bc9e
push dword [ebp + 8]
push ebx
push 0x401
call eax
mov ebx, eax
mov eax, ebx
pop ebx
leave
ret

Function at 0x1001bca3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 0xc]
push eax
mov edi, ecx
or esi, 0xffffffff
mov word [ebp - 6], 0x5365
mov word [ebp - 3], 0x657a
mov dword [ebp - 0xc], 0x46746547
mov word [ebp - 8], 0x6c69
mov byte [ebp - 1], 0
mov byte [ebp - 4], 0x69
call fcn.1001bd76
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001bcec
push 0
push edi
call eax
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x1001bd48
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xb], 0x6c6c6568
mov dword [ebp - 6], 0x6c642e32
mov word [ebp - 2], 0x6c
mov byte [ebp - 7], 0x33
mov byte [ebp - 0xc], 0x53
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret

Function at 0x1001bd76
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xa], 0x642e3233
mov word [ebp - 6], 0x6c6c
mov byte [ebp - 4], 0
mov word [ebp - 0xf], 0x7265
mov word [ebp - 0xc], 0x6c65
mov byte [ebp - 0x10], 0x4b
mov byte [ebp - 0xd], 0x6e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
leave
ret
Function at 0x1001bdad
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0xf], 0x65636f72
mov dword [ebp - 6], 0x74737269
mov dword [ebp - 0xb], 0x32337373
mov byte [ebp - 0x10], 0x50
mov byte [ebp - 2], bl
mov byte [ebp - 7], 0x46
call fcn.1001bd76
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001bdf6
push esi
push edi
call eax
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x1001bdfd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov word [ebp - 0xa], 0x3373
mov word [ebp - 0xd], 0x6563
mov dword [ebp - 6], 0x747865
mov word [ebp - 8], 0x4e32
mov byte [ebp - 0xb], 0x73
mov word [ebp - 0x10], 0x7250
mov byte [ebp - 0xe], 0x6f
call fcn.1001bd76
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001be4d
push esi
push edi
call eax
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x1001be54
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
mov esi, ecx
xor ebx, ebx
mov word [ebp - 9], 0x6573
mov dword [ebp - 6], 0x6c646e61
mov word [ebp - 2], 0x65
mov word [ebp - 0xc], 0x6c43
mov byte [ebp - 7], 0x48
mov byte [ebp - 0xa], 0x6f
call fcn.1001bd76
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001be9a
push esi
call eax
mov ebx, eax
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x1001bea0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0x1c]
push eax
or esi, 0xffffffff
mov word [ebp - 0x18], 0x6574
mov dword [ebp - 7], 0x746f68
mov dword [ebp - 0x15], 0x686c6f6f
mov dword [ebp - 0x1c], 0x61657243
mov word [ebp - 0x11], 0x6c65
mov dword [ebp - 0xb], 0x7370616e
mov byte [ebp - 0x16], 0x54
mov word [ebp - 0xe], 0x3233
mov byte [ebp - 0xc], 0x53
mov byte [ebp - 0xf], 0x70
call fcn.1001bd76
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001bf00
push 0
push 2
call eax
mov esi, eax
mov eax, esi
pop esi
leave
ret
Function at 0x1001c42c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [ebp + 0x14]
push ebx
mov dword [0x1002f2f8], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [0x1002f300], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x3ff
xor ebx, ebx
push esi
mov dword [0x1002f2fc], eax
lea eax, [ebp - 0x823]
push ebx
push eax
mov byte [ebp - 0x824], bl
call fcn.10004ce0
lea ecx, [ebp - 0x824]
call fcn.1001c708
push esi
lea eax, [ebp - 0x423]
push ebx
push eax
mov byte [ebp - 0x424], bl
call fcn.10004ce0
lea ecx, [ebp - 0x424]
call fcn.1001c708
add esp, 0x14
lea eax, [ebp - 0x424]
mov ecx, esp
push eax
mov dword [ebp - 4], 0x336b65
mov dword [ebp - 0x1c], 0x62753733
mov dword [ebp - 0xb], 0x69657465
mov dword [ebp - 0x14], 0x6b746d34
mov word [ebp - 0x1e], 0x3063
mov word [ebp - 0x21], 0x306f
mov dword [ebp - 0x10], 0x766b6c77
mov word [ebp - 6], 0x3439
mov word [ebp - 0x24], 0x7a65
mov dword [ebp - 0x18], 0x64657578
mov byte [ebp - 7], 0x66
mov byte [ebp - 0x22], 0x75
mov byte [ebp - 0x1f], 0x61
mov byte [ebp - 0xc], 0x34
call fcn.10001411
push ecx
lea eax, [ebp - 0x824]
mov ecx, esp
push eax
call fcn.10001411
lea ecx, [ebp - 0x24]
call fcn.1001c53e
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x1001c53e
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1002231e
call fcn.1001c7b8
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
push ecx
push ecx
push 3
xor ebx, ebx
push ecx
inc ebx
mov dword [esp + 0x38], ebx
push ecx
mov ecx, dword [esp + 0x48]
mov edx, 0x80000000
call fcn.1001bcf2
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x1001c649
and dword [esp + 0x10], 0
mov ecx, edi
call fcn.1001bca3
mov esi, eax
test esi, esi
je 0x1001c649
push esi
call fcn.100026fe
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push esi
mov edx, ebp
mov ecx, edi
mov dword [esp + 0x28], ebp
call fcn.1001bc0c
mov ecx, edi
call fcn.1001be54
push esi
call fcn.100026fe
and dword [esp + 0x24], 0
add esp, 0x10
mov edi, eax
test esi, esi
je 0x1001c5f4
mov ebx, dword [esp + 0x14]
sub ebp, edi
mov eax, ebx
cdq
mov dword [esp + 0x14], 0x23
idiv dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [ebx + edi]
mov al, byte [edx + eax]
xor al, byte [ecx + ebp]
inc ebx
mov byte [ecx], al
cmp ebx, esi
jb 0x1001c5ce
xor ebx, ebx
inc ebx
push ecx
push ecx
push 2
push ecx
push ecx
mov ecx, dword [esp + 0x4c]
mov edx, 0x40000000
call fcn.1001bcf2
mov ebp, eax
add esp, 0x14
cmp ebp, 0xffffffff
je 0x1001c642
and dword [esp + 0x18], 0
push ecx
lea eax, [esp + 0x1c]
push eax
push esi
mov edx, edi
mov ecx, ebp
call fcn.1001ba61
mov ecx, ebp
call fcn.1001be54
push dword [esp + 0x28]
call fcn.100040dc
push edi
call fcn.100040dc
add esp, 0x14
jmp 0x1001c64b
push edi
call fcn.100040dc
pop ecx
xor bl, bl
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.100011d7
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.100011d7
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x6d51b19b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x6d51b1b3
xor eax, eax
jmp 0x6d51b2b4
push esi
mov eax, ebx
push edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6d51b1ba
sub eax, esi
lea edi, [eax + 0x105]
push edi
call fcn.6d522878
mov esi, eax
test esi, esi
mov dword [ebp + 8], esi
jne 0x6d51b1df
xor eax, eax
jmp 0x6d51b2b2
mov al, byte [ebx]
test al, al
je 0x6d51b2aa
cmp al, 0x25
jne 0x6d51b275
xor eax, eax
jmp 0x6d51b208
mov cl, byte [ebx]
test cl, cl
je 0x6d51b20b
cmp cl, 0x25
je 0x6d51b20b
mov byte [ebp + eax - 0x20c], cl
inc eax
inc ebx
jne 0x6d51b1f5
and byte [ebp + eax - 0x20c], 0
and byte [ebp - 0x108], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
inc ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 4], ebx
push eax
lea ebx, [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov al, byte [ebx]
test al, al
je 0x6d51b272
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov byte [ecx], al
lea eax, [esi + edi]
inc ebx
cmp dword [ebp + 8], eax
jb 0x6d51b26e
add edi, 0x104
push edi
push esi
call fcn.6d52285f
test eax, eax
je 0x6d51b2b9
mov ecx, eax
sub ecx, esi
add dword [ebp + 8], ecx
mov esi, eax
test ebx, ebx
jne 0x6d51b23d
mov ebx, dword [ebp - 4]
mov al, byte [ebx]
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov byte [ecx], al
lea eax, [esi + edi]
inc ebx
cmp dword [ebp + 8], eax
jb 0x6d51b2a2
add edi, 0x104
push edi
push esi
call fcn.6d52285f
test eax, eax
je 0x6d51b2b9
mov ecx, eax
sub ecx, esi
add dword [ebp + 8], ecx
mov esi, eax
test ebx, ebx
jne 0x6d51b1df
mov eax, dword [ebp + 8]
and byte [eax], 0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
push esi
call fcn.6d52288d
jmp 0x6d51b1d8
Function at 0x6d51bb20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
push edi
xor esi, esi
push esi
call fcn.6d5288ea
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x6d51bb3f
mov eax, dword [ebp + 0xc]
jmp 0x6d51bb66
cmp cl, 0x3a
je 0x6d51bb65
cmp cl, 0x5c
je 0x6d51bb65
cmp cl, 0x2f
je 0x6d51bb65
push eax
call fcn.6d5228ba
jmp 0x6d51bb69
inc eax
mov dword [ebp - 8], eax
mov cl, byte [eax]
test cl, cl
jne 0x6d51bb4e
lea ebx, [ebp - 0x450]
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
lea eax, [ebp - 0x10c]
push 0
push eax
call dword [sym.imp.msvcrt.dll_strchr]
mov esi, dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x10c]
cmp edi, eax
pop ecx
lea esi, [ebp + esi*4 - 0x20c]
pop ecx
mov dword [esi], edi
jbe 0x6d51bbbc
push edi
lea eax, [ebp - 0x10c]
push eax
call fcn.6d5228db
cmp byte [eax], 0x5c
je 0x6d51bbbc
mov byte [edi], 0x5c
inc edi
mov dword [esi], edi
mov eax, dword [esi]
mov dword [eax], 0x2a2e2a
push ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x18c], eax
je 0x6d51bce8
test byte [ebx], 0x10
je 0x6d51bc58
lea eax, [ebx + 0x2c]
push 2
mov edi, 0x6d51146c
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x6d51bcb9
mov esi, eax
push 3
mov edi, 0x6d511468
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x6d51bcb9
mov ecx, dword [ebp + 8]
cmp ecx, 0x20
jae 0x6d51bcb9
mov ecx, dword [ebp + ecx*4 - 0x20c]
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], ecx
sub dword [ebp - 4], eax
mov dl, byte [eax]
mov esi, dword [ebp - 4]
mov byte [esi + eax], dl
inc eax
test dl, dl
jne 0x6d51bc31
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x6d51bc3f
inc dword [ebp + 8]
mov edi, ecx
mov esi, 0x6d511464
movsw word es:[edi], word [esi]
jmp 0x6d51bb7b
push dword [ebp - 8]
lea esi, [ebx + 0x2c]
push esi
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x6d51bcb9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + ecx*4 - 0x20c]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x6d51bc79
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x10c]
lea eax, [ebp - 0x10c]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x6d51bc94
cmp dword [ebp + 0x14], 0
je 0x6d51bcb2
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
jmp 0x6d51bcb9
mov dword [ebp + 0xc], 1
cmp dword [ebp + 0xc], 0
jne 0x6d51bcd8
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + eax*4 - 0x18c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x6d51bbe5
mov eax, dword [ebp + 8]
push dword [ebp + eax*4 - 0x18c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x6d51bcf3
dec dword [ebp + 8]
jmp 0x6d51bcb9
push 1
call fcn.6d5288ea
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x6d51bd1c
Capabilities:
Create directory

Disassembly:
push 0x18
push 0x6d511470
call fcn.6d536a6c
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6d51bd32
sub eax, edx
inc eax
push eax
call fcn.6d522878
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x6d51be55
mov ecx, dword [ebp + 8]
mov edx, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x6d51bd54
mov esi, edi
mov dword [ebp - 0x20], esi
cmp byte [edi], 0x5c
jne 0x6d51bdb1
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x6d51bdb1
mov esi, eax
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
test al, al
je 0x6d51bd8d
cmp al, 0x5c
je 0x6d51bd8d
push esi
call fcn.6d5228ba
mov esi, eax
jmp 0x6d51bd76
cmp byte [esi], 0
je 0x6d51bd96
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
test al, al
je 0x6d51bdaa
cmp al, 0x5c
je 0x6d51bdaa
push esi
call fcn.6d5228ba
mov esi, eax
jmp 0x6d51bd93
cmp byte [esi], 0
je 0x6d51bdd0
jmp 0x6d51bdcc
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x6d51bdd0
mov esi, eax
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
test al, al
je 0x6d51bdd0
cmp al, 0x5c
jne 0x6d51bdd0
inc esi
mov dword [ebp - 0x20], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x6d51be26
cmp al, 0x5c
jne 0x6d51be0a
and byte [esi], 0
push edi
call fcn.6d52891f
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x6d51be17
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x6d51be07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x6d51be1b
mov byte [esi], 0x5c
push esi
call fcn.6d5228ba
mov esi, eax
mov dword [ebp - 0x20], esi
jmp 0x6d51bdd3
test al, 0x10
jne 0x6d51be07
push edi
call fcn.6d52288d
mov dword [ebp - 4], ebx
jmp 0x6d51be59
mov dword [ebp - 4], ebx
push edi
call fcn.6d52288d
xor eax, eax
inc eax
jmp 0x6d51be5b
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.6d536aa5
ret 4
Function at 0x6d5227aa
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
movzx eax, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
movzx ecx, word [ecx + 6]
push esi
xor esi, esi
test ecx, ecx
push edi
jbe 0x6d5227de
mov edx, dword [eax + 0xc]
cmp dword [esp + 0x14], edx
jb 0x6d5227d6
mov edi, dword [eax + 0x10]
add edi, edx
cmp dword [esp + 0x14], edi
jb 0x6d5227e0
add eax, 0x28
inc esi
cmp esi, ecx
jb 0x6d5227c2
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x6d522ac5
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [esp + 8]
push edi
xor edi, edi
sub eax, edi
je 0x6d522b2e
dec eax
je 0x6d522ade
dec eax
dec eax
jne 0x6d522b49
call fcn.6d522ab2
jmp 0x6d522b49
push esi
mov esi, dword [esp + 0xc]
push 0x6d580164
mov dword [0x6d580158], esi
mov dword [0x6d580164], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push edi
push 0x100000
push edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x6d58015c], eax
call fcn.6d522837
test eax, eax
pop esi
je 0x6d522b4c
xor eax, eax
cmp dword [0x6d58015c], edi
setne al
jmp 0x6d522b4c
call fcn.6d52284d
cmp dword [esp + 0x10], edi
jne 0x6d522b49
mov eax, dword [0x6d58015c]
cmp eax, edi
je 0x6d522b49
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
xor eax, eax
inc eax
pop edi
ret 0xc

Function at 0x6d52368d
Capabilities:
Read file via mapping

Disassembly:
push edi
xor edi, edi
cmp dword [esp + 8], edi
je 0x6d5236c3
push esi
push edi
push edi
push edi
push 2
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp esi, edi
je 0x6d5236c2
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
ret 4
Function at 0x6d5266e9
Capabilities:
Query environment variable

Disassembly:
push 0x120
push 0x6d513348
call fcn.6d536a6c
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call fcn.6d528192
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x6d52685c
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x6d52671f
push eax
call fcn.6d52288d
cmp dword [ebp + 0xc], edi
je 0x6d526774
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
call edi
mov dword [ebp - 0x124], eax
cmp eax, ebx
jae 0x6d52675a
lea eax, [ebp - 0x120]
push eax
call fcn.6d52888c
mov dword [esi + 0x1c], eax
jmp 0x6d52682f
push eax
call fcn.6d522878
mov dword [esi + 0x1c], eax
push dword [ebp - 0x124]
push eax
push dword [ebp + 0xc]
call edi
jmp 0x6d52682f
mov dword [ebp - 0x124], 3
push edi
push edi
push 0x6d513338
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call ebx
mov edi, eax
add edi, 3
mov dword [ebp - 0x124], edi
push 0
push 0
push 0x6d513324
call ebx
add edi, eax
mov dword [ebp - 0x124], edi
push edi
call fcn.6d522878
mov dword [esi + 0x1c], eax
mov esi, eax
mov dword [ebp - 0x128], esi
test esi, esi
je 0x6d52685c
mov byte [esi], 0x2e
inc esi
mov dword [ebp - 0x128], esi
dec edi
mov dword [ebp - 0x124], edi
lea eax, [edi - 1]
push eax
lea eax, [esi + 1]
push eax
push 0x6d513338
call ebx
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x6d526808
mov byte [esi], 0x3b
lea esi, [esi + eax + 1]
mov dword [ebp - 0x128], esi
or ecx, 0xffffffff
sub ecx, eax
add edi, ecx
mov dword [ebp - 0x124], edi
dec edi
push edi
lea eax, [esi + 1]
push eax
push 0x6d513324
call ebx
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x6d52682c
mov byte [esi], 0x3b
lea esi, [esi + eax + 1]
mov dword [ebp - 0x128], esi
and byte [esi], 0
or dword [ebp - 4], 0xffffffff
call fcn.6d5236c9
xor eax, eax
inc eax
jmp 0x6d526862
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.6d536aa5
ret 8
Function at 0x6d526e52
Capabilities:
Query environment variable

Disassembly:
push 0x1c
push 0x6d5133a8
call fcn.6d536a6c
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, 0x6d58042c
cmp dword [0x6d580434], edi
jne 0x6d526e8c
mov dword [0x6d580434], 1
mov dword [0x6d580428], edi
mov dword [0x6d580430], ebx
mov dword [0x6d58042c], ebx
and byte [0x6d580440], 0
push 0x7d1
mov esi, 0x6d580440
push esi
push 0x6d513394
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
call dword [sym.imp.msvcrt.dll__strlwr]
pop ecx
push dword [ebp + 8]
call fcn.6d528192
test eax, eax
je 0x6d526eca
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x6d526ee7
push 0x19ad0
call fcn.6d522878
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
jne 0x6d526ef0
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x6d526fa1
mov ecx, 0x66b4
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov dword [esi + 0x14], edi
push edi
call fcn.6d527a45
mov dword [esi + 0x18], eax
inc dword [0x6d580428]
lea eax, [esi + 8]
mov dword [esi + 0xc], eax
mov dword [eax], eax
mov dword [ebp - 0x20], ebx
mov eax, dword [0x6d580430]
mov dword [ebp - 0x24], eax
mov dword [esi], ebx
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [0x6d580430], esi
push dword [ebp + 0xc]
push edi
call sym.DBGHELP.dll_SymSetSearchPath
test eax, eax
je 0x6d526f46
call fcn.6d537955
test eax, eax
jne 0x6d526f4e
push edi
call sym.DBGHELP.dll_SymCleanup
jmp 0x6d526f9b
cmp dword [ebp + 0x10], 0
je 0x6d526f79
push 0
push 0x6d52b134
push edi
call fcn.6d5291fa
mov dword [ebp - 0x28], eax
test eax, eax
je 0x6d526f79
push edi
call sym.DBGHELP.dll_SymCleanup
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x6d526f9b
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x6d526fa1
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.6d536aa5
ret 0xc

Function at 0x6d528290
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
xor eax, eax
jmp 0x6d5282b2
mov dl, byte [esi + ecx - 1]
and edx, 0xdf
or edx, edi
shl edx, 8
mov edi, edx
dec ecx
xor edx, edx
test cl, 3
jne 0x6d5282a0
shr ecx, 2
test ecx, ecx
jle 0x6d5282d7
push ebx
mov ebx, dword [esi + edx*4]
and ebx, 0xdfdfdfdf
xor ebx, eax
rol ebx, 4
inc edx
cmp edx, ecx
mov eax, ebx
jl 0x6d5282c1
pop ebx
xor eax, edi
xor edx, edx
mov ecx, 0xfd
div ecx
pop edi
pop esi
mov eax, edx
ret 8

Function at 0x6d52891f
Capabilities:
Get file attributes

Disassembly:
push esi
push 0
call fcn.6d5288ea
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov esi, eax
call fcn.6d5288ea
mov eax, esi
pop esi
ret 4
Function at 0x6d52b87d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
lea eax, [ebp - 0x10]
push eax
push 0x20019
xor edi, edi
push edi
push 0x6d513728
push 0x80000002
xor ebx, ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x10], edi
je 0x6d52b986
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x6d52b97d
push esi
mov esi, dword [sym.imp.msvcrt.dll_calloc]
push 2
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, eax
imul ecx, dword [ebp - 0x14]
lea eax, [ecx + eax*2 - 2]
push 2
push eax
call esi
add esp, 0x10
cmp dword [ebp - 0xc], edi
mov ebx, eax
je 0x6d52b95f
cmp ebx, edi
je 0x6d52b96d
cmp dword [ebp - 8], edi
mov dword [ebp - 4], edi
jbe 0x6d52b96d
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
mov eax, dword [ebp - 0x14]
push edi
push edi
push edi
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x6d52b952
push dword [ebp - 0xc]
push ebx
call esi
mov eax, dword [ebp - 8]
dec eax
cmp dword [ebp - 4], eax
pop ecx
pop ecx
jae 0x6d52b952
push 0x6d51371c
push ebx
call esi
pop ecx
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x6d52b916
jmp 0x6d52b96d
cmp ebx, edi
je 0x6d52b96d
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor ebx, ebx
cmp dword [ebp - 0xc], edi
pop esi
je 0x6d52b97d
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret