joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001822
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000182c
repz ret
jmp fcn.10001bc2

Function at 0x1000187f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1000188e
pop dword [ebp - 0x3c]
mov eax, 0xf38298cb
sub eax, 0xe382803d
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x90b6e51a
sub dword [ebp - 0x4c], 0x42649fcf
mov dword [ebp - 0x48], 0x8a729f07
add dword [ebp - 0x48], 0xa7c0ad3e
mov dword [ebp - 0x44], 0xa9f2dbac
add dword [ebp - 0x44], 0xa2596882
mov dword [ebp - 0x40], 0x3f8b6ceb
add dword [ebp - 0x40], 0xc0749315
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x9c026262
sub dword [ebp - 0x4c], 0x278ff90c
mov dword [ebp - 0x48], 0x846dc873
sub dword [ebp - 0x48], 0x430166fe
mov dword [ebp - 0x44], 0xb0a68d4b
sub dword [ebp - 0x44], 0x4d3720df
mov dword [ebp - 0x40], 0x24e448ef
sub dword [ebp - 0x40], 0x24e448ef
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x86c59d24
add eax, 0x893a92dc
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3912f
push 0
call eax
mov ecx, 0x62eabd8a
sub ecx, 0x62ea6b51
mov edx, eax
mov ebx, 0x33d36590
sub ebx, 0x23d30390
add ebx, dword [ebp - 0x3c]
mov esi, 0x2e5ad8e8
add esi, 0xf61467ee
sub dword [ebp - 0x28], 0xf4e6d7d6
mov edi, dword [ebx]
add dword [ebp - 0xc], 0xe93eefb9
sub edi, esi
mov dword [edx], edi
xor dword [ebp - 0x14], ebx
add edx, 0x8270745c
add edx, 0x7d8f8ba8
add ebx, 0xcf36d8a9
add ebx, 0x30c9275b
loop 0x100019ab
add eax, 0x36d82ae7
sub eax, 0x36d6ef30
xor ebx, ebx
add ebx, eax
add eax, 0x36d44dca
add eax, 0xc92bb23b
mov ecx, 0x2d81f657
add ecx, 0xe27e09a9
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push str.SENTRY_SERVER1R
push 0
push 0
mov dword [0x40e670], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
mov dword [0x40e274], eax
jne 0x40104a
push 0x10
push str.SENTRY_SERVER_:_ERROR_1
push str.Sentry_Server_is_already_running__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
ret 0x10
call esi
cmp eax, 0xb7
mov dword [0x40e270], eax
jne 0x401073
push 0x10
push 0x40d040
push str.Sentry_Server_is_already_running__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
ret 0x10
push 0
push 0x401090
push 0
push 0x40d03c
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x403ef0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov ax, word [0x40ec28]
push ebx
xor ax, word [0x40ec20]
push edi
push 0x3c
mov word [0x40e2d2], ax
call fcn.00404b60
movsx ecx, word [0x40e2d2]
movsx eax, ax
xor eax, ecx
push 0x3d
mov byte [esp + 0x10], al
sar eax, 8
mov byte [esp + 0x11], al
call fcn.00404b60
movsx edx, word [0x40e2d2]
movsx eax, ax
xor eax, edx
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x12], al
add esp, 8
sar eax, 8
mov byte [esp + 0xb], al
xor eax, eax
mov byte [esp + 0xc], al
mov dl, byte [esp + eax + 8]
mov bl, byte [ecx]
cmp dl, bl
jne 0x403fa1
inc eax
inc ecx
cmp eax, 4
jl 0x403f51
mov edi, dword [esp + 0x14]
push esi
mov esi, 0x30
push esi
call fcn.00404b60
xor ax, word [0x40e2d2]
add esp, 4
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x3c
jl 0x403f6c
mov cx, word [0x40ec28]
push ecx
call fcn.00404ae0
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
add esp, 8
ret
mov ax, word [0x40ec28]
push eax
call fcn.00404ae0
mov edi, dword [esp + 0x18]
add esp, 4
mov ecx, 6
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
mov eax, 0xfffffffe
pop ebx
add esp, 8
ret
Function at 0x404070
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov cx, word [0x40ec28]
xor eax, eax
xor cx, word [0x40ec20]
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
push edi
mov dword [esp + 0x16], eax
push 0x3c
mov dword [esp + 0x1e], eax
mov word [esp + 0x10], 0
mov dword [esp + 0x22], eax
mov word [0x40e2d2], cx
mov word [esp + 0x26], ax
call fcn.00404b60
movsx edx, word [0x40e2d2]
movsx eax, ax
xor eax, edx
push 0x3d
mov byte [esp + 0xc], al
sar eax, 8
mov byte [esp + 0xd], al
call fcn.00404b60
movsx ecx, word [0x40e2d2]
movsx eax, ax
xor eax, ecx
mov ecx, dword [esp + 0x38]
mov byte [esp + 0xe], al
add esp, 8
sar eax, 8
mov byte [esp + 7], al
mov byte [esp + 8], 0
xor eax, eax
mov dl, byte [esp + eax + 4]
cmp dl, byte [ecx]
jne 0x404178
inc eax
inc ecx
cmp eax, 4
jl 0x4040f5
push ebp
mov ebp, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push esi
mov esi, 0x30
lea edi, [esp + 0x14]
sub ebp, ecx
mov dx, word [edi + ebp]
push edx
push esi
call fcn.00404f70
push 0xa
call fcn.00404e90
push esi
call fcn.00404b60
xor ax, word [0x40e2d2]
push 1
mov word [edi], ax
call fcn.00404e90
add esp, 0x14
inc esi
add edi, 2
cmp esi, 0x3c
jl 0x404119
mov edi, dword [esp + 0x30]
lea edx, [esp + 0x14]
mov esi, edi
xor ecx, ecx
lea eax, [esp + 0x14]
sub esi, edx
mov dx, word [eax]
cmp dx, word [eax + ebp]
jne 0x40419e
mov word [esi + eax], dx
inc ecx
add eax, 2
cmp ecx, 0xc
jl 0x404160
jmp 0x4041b4
mov ax, word [0x40ec28]
push eax
call fcn.00404ae0
mov edi, dword [esp + 0x2c]
add esp, 4
mov ecx, 6
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, 0xfffffffe
pop edi
add esp, 0x20
ret
mov ax, word [0x40ec28]
push eax
call fcn.00404ae0
add esp, 4
mov word [edi], 0
jmp 0x4041ad
mov cx, word [0x40ec28]
push ecx
call fcn.00404ae0
add esp, 4
xor eax, eax
pop esi
pop ebp
pop edi
add esp, 0x20
ret

Function at 0x405ae0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor eax, eax
push 3
push eax
push esi
call fcn.00405b70
mov edi, eax
mov ebx, edx
mov edx, dword [esp + 0x20]
xor eax, eax
xor ecx, ecx
xor esi, edx
xor eax, ecx
mov ecx, dword [esp + 0x24]
add esp, 0xc
or edi, eax
or ebx, esi
inc ecx
test ecx, ecx
mov eax, 0x6ca9b4c3
mov edx, 0xdc4629a3
jl 0x405b38
push ebp
lea ebp, [ecx + 1]
push edx
push eax
call fcn.00405d90
mov esi, eax
mov ecx, edx
add esp, 8
xor esi, edi
xor ecx, ebx
dec ebp
jne 0x405b20
pop ebp
jmp 0x405b40
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edi, ecx
xor edx, edx
not edi
sar ecx, 0x1f
cmp edi, esi
not ecx
jne 0x405b59
cmp ecx, edx
jne 0x405b59
mov eax, esi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
ret
Function at 0x405b70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
push ebx
push esi
mov esi, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x44]
mov eax, esi
and eax, 0xffff
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov ecx, 0x10
mov eax, esi
mov edx, edi
mov dword [esp + 0x30], ebx
call fcn.004074d0
and eax, 0xffff
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
cmp eax, 3
jne 0x405d7f
push ebp
lea edi, [esp + 0x30]
mov dword [esp + 0x4c], 2
mov esi, dword [edi]
mov ecx, 1
mov eax, esi
xor edx, edx
and eax, 0x4000
call fcn.004074b0
mov ecx, esi
xor ebx, ebx
and ecx, 0x8000
xor edx, ebx
xor eax, ecx
mov ecx, 0xf
call fcn.004074d0
mov ebx, esi
mov ecx, 0xb
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
and ebx, 0x800
xor ebp, ebp
call fcn.004074b0
xor ebx, eax
xor ebp, edx
mov ecx, 1
mov eax, ebx
mov edx, ebp
call fcn.004074b0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x48]
mov ebx, esi
mov ecx, 7
and ebx, 0x80
xor ebp, ebp
call fcn.004074b0
xor ebx, eax
xor ebp, edx
mov ecx, 1
mov eax, ebx
mov edx, ebp
call fcn.004074b0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x48]
mov ebx, esi
mov ecx, 3
and ebx, 8
xor ebp, ebp
call fcn.004074b0
xor ebx, eax
xor ebp, edx
mov ecx, 1
mov eax, ebx
mov edx, ebp
call fcn.004074b0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x48]
mov ebx, esi
mov ecx, 1
and ebx, 2
xor ebp, ebp
call fcn.004074b0
xor ebx, eax
xor ebp, edx
mov ecx, 1
mov eax, ebx
mov edx, ebp
call fcn.004074b0
mov ecx, dword [esp + 0x44]
mov ebx, eax
mov eax, esi
mov ebp, edx
and eax, 1
xor edx, edx
xor eax, ecx
mov ecx, dword [esp + 0x48]
xor edx, ecx
mov ecx, 1
call fcn.004074b0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov edx, dword [edi + 4]
mov ecx, 1
mov eax, esi
call fcn.004074b0
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], edx
mov edx, dword [edi]
xor eax, eax
and edx, 0xeee8
or eax, esi
mov esi, dword [esp + 0x24]
or edx, ecx
mov ecx, dword [esp + 0x18]
or edx, ebx
mov ebx, dword [esp + 0x20]
or eax, ebp
mov ebp, dword [esp + 0x1c]
or edx, ecx
mov ecx, dword [esp + 0x28]
or eax, ebp
mov ebp, dword [esp + 0x2c]
or edx, ebx
mov ebx, dword [esp + 0x44]
or eax, esi
mov esi, dword [esp + 0x48]
or edx, ecx
or eax, ebp
or edx, ebx
or eax, esi
mov dword [edi], edx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x4c]
add edi, 8
dec eax
mov dword [esp + 0x4c], eax
jne 0x405bc4
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ecx, 0x10
call fcn.004074b0
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
pop ebp
or eax, esi
pop edi
pop esi
or edx, ecx
pop ebx
add esp, 0x30
ret
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x405d90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov ecx, 0x10
mov eax, edi
call fcn.00407500
mov esi, eax
mov ebx, edx
and edi, 0xffff
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0x30
mov eax, esi
mov ecx, 1
and eax, 1
xor edx, edx
call fcn.004074b0
mov ecx, esi
xor ebp, ebp
and ecx, 2
xor edx, ebp
xor eax, ecx
mov ecx, 2
call fcn.004074b0
mov ecx, esi
xor edx, ebp
and ecx, 8
xor eax, ecx
mov ecx, 1
call fcn.004074b0
mov ecx, esi
xor edx, ebp
and ecx, 0x10
xor eax, ecx
mov ecx, 2
call fcn.004074b0
mov edx, esi
mov ecx, ebx
and edx, 0x40
and ecx, 0x8000
xor eax, edx
xor edx, edx
mov ebp, eax
xor eax, eax
shl ebp, 9
xor edx, eax
xor ebp, ecx
mov dword [esp + 0x10], edx
mov ecx, 1
mov eax, esi
mov edx, ebx
call fcn.004074d0
mov ecx, dword [esp + 0x10]
or ebp, edx
or ecx, eax
mov eax, dword [esp + 0x24]
dec eax
mov esi, ecx
mov ebx, ebp
mov dword [esp + 0x24], eax
jne 0x405dc5
mov dword [esp + 0x24], 0x10
mov eax, edi
mov ecx, 1
and eax, 2
xor edx, edx
call fcn.004074b0
mov ecx, edi
xor ebp, ebp
and ecx, 4
xor edx, ebp
xor eax, ecx
mov ecx, 2
call fcn.004074b0
mov ecx, edi
xor edx, ebp
and ecx, 0x10
xor eax, ecx
mov ecx, 0xb
call fcn.004074b0
mov ebp, eax
xor eax, eax
mov dword [esp + 0x10], ebp
mov ebp, edx
mov edx, edi
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x10]
and edx, 0x8000
xor ebp, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
xor ebp, eax
mov ecx, 1
mov eax, edi
call fcn.004074d0
mov ecx, dword [esp + 0x10]
or ebp, edx
or ecx, eax
mov eax, dword [esp + 0x24]
dec eax
mov edi, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
jne 0x405e62
mov ecx, 0x10
mov eax, esi
mov edx, ebx
call fcn.004074b0
or eax, edi
pop edi
or edx, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x405f10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
push edi
cmp eax, 1
mov edi, esi
mov byte [esp + 8], 0x35
mov byte [esp + 9], 0x4b
mov byte [esp + 0xa], 0x50
mov byte [esp + 0xb], 0x39
mov byte [esp + 0xc], 0x48
mov byte [esp + 0xd], 0x44
mov byte [esp + 0xe], 0x36
mov byte [esp + 0xf], 0x53
mov byte [esp + 0x10], 0x32
mov byte [esp + 0x11], 0x43
mov byte [esp + 0x12], 0x56
mov byte [esp + 0x13], 0x4a
mov byte [esp + 0x14], 0x37
mov byte [esp + 0x15], 0x51
mov byte [esp + 0x16], 0x5a
mov byte [esp + 0x17], 0x4d
mov byte [esp + 0x18], 0
jne 0x405fb1
mov cl, byte [esi]
test cl, cl
je 0x405fb1
xor eax, eax
cmp cl, byte [esp + eax + 8]
je 0x405f8f
inc eax
cmp eax, 0x10
jl 0x405f81
jmp 0x405fa9
push eax
push str._01x
push 0x40ec14
call fcn.00406e30
mov al, byte [0x40ec14]
add esp, 0xc
mov byte [esi], al
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x405f7f
mov eax, edi
pop edi
pop esi
add esp, 0x14
ret
Function at 0x406770
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebp
push esi
push edi
push 8
push 0x40
call ebx
push 8
push 0x40
mov edi, eax
call ebx
push 8
push 0x40
mov esi, eax
call ebx
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push 0
push edx
call fcn.004075d0
push 0
push 0xf4240
push edx
push eax
call fcn.00407520
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call ebx
push esi
call ebx
mov ecx, dword [esi]
mov eax, dword [edi]
mov edx, dword [edi + 4]
sub ecx, eax
mov eax, dword [esi + 4]
sbb eax, edx
mov edx, dword [esp + 0x14]
cmp eax, edx
jg 0x406837
jl 0x4067f8
cmp ecx, dword [esp + 0x10]
jae 0x406837
jmp 0x4067f8
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push esi
call ebx
mov ebx, dword [esi]
mov eax, dword [edi]
mov edx, dword [edi + 4]
sub ebx, eax
mov eax, dword [esi + 4]
sbb eax, edx
xor ecx, ecx
mov edx, eax
and edx, 0x80000000
or ecx, edx
je 0x406829
mov ecx, 1
mov edx, 0
sub ecx, ebx
sbb edx, eax
mov ebx, ecx
mov eax, edx
cmp eax, dword [esp + 0x14]
jl 0x4067f2
jg 0x406837
cmp ebx, dword [esp + 0x10]
jb 0x4067f2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call edi
push esi
call edi
push ebp
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x409485
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d788
cmp edx, dword [eax]
je 0x4094a7
add eax, 8
inc ecx
cmp eax, 0x40d818
jl 0x409498
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d788]
jne 0x4095d5
mov eax, dword [0x40e318]
cmp eax, 1
je 0x4095af
test eax, eax
jne 0x4094d8
cmp dword [0x40d5e0], 1
je 0x4095af
cmp edx, 0xfc
je 0x4095d5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40950f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409900
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a160
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409552
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a160
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c4b4
push edi
call fcn.0040add0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409900
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409910
lea eax, [ebp - 0xa0]
push 0x40c494
push eax
call fcn.00409910
push dword [esi + 0x40d78c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409910
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ad45
add esp, 0x2c
pop edi
jmp 0x4095d5
lea eax, [ebp + 8]
lea esi, [esi + 0x40d78c]
push 0
push eax
push dword [esi]
call fcn.0040a160
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1272db44
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push 0x3c
push 0x12770bb8
call fcn.1273b4d0
lea eax, [ebp - 0x1c]
push eax
push 0x12721580
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x1272dbb5
push 4
pop esi
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push 0x12721f44
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1272dbac
cmp dword [ebp - 0x24], esi
jne 0x1272dbac
cmp dword [ebp - 0x28], edi
je 0x1272dbac
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x12773388], edi
xor eax, eax
jmp 0x1272dc17
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x12773388], edi
jge 0x1272dc12
mov dword [0x12773388], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x4c], di
jne 0x1272dc12
cmp word [ebp - 0x2c], 5
jb 0x1272dc12
mov dword [ebp - 4], edi
call fcn.1272db17
test eax, eax
je 0x1272dc0b
emms
mov dword [0x12773388], 1
jmp 0x1272dc0b
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x12773388]
call fcn.1273b515
ret

Function at 0x1272dd5b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
sub eax, 0
mov dword [ebp - 4], 4
je 0x1272de4b
dec eax
jne 0x1272de50
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.1273ba25
mov dword [0x1277baa4], 0x50
call fcn.1272db44
mov ecx, dword [0x1277baa4]
test eax, eax
je 0x1272ddaa
add ecx, ecx
mov dword [0x1277baa4], ecx
push edi
push 3
pop edi
mov eax, ecx
shl eax, 2
xor edx, edx
div edi
mov dword [0x1277ba94], ecx
mov dword [0x1277baa0], eax
lea eax, [ecx + ecx]
mov dword [0x1277ba9c], eax
mov eax, ecx
imul eax, eax, 0x28
mov dword [0x1277ba98], eax
lea eax, [ebp + 0xc]
push eax
push 0x12721580
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
pop edi
test eax, eax
jne 0x1272de3a
lea eax, [ebp - 4]
push eax
push 0x1277ba90
lea eax, [ebp + 8]
push eax
push 0
push 0x12721f8c
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1272de25
cmp dword [ebp + 8], 4
jne 0x1272de25
mov eax, dword [0x1277ba90]
cmp eax, 4
jb 0x1272de25
cmp eax, 0x80
jbe 0x1272de2f
mov dword [0x1277ba90], 0x18
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1272de44
mov dword [0x1277ba90], 0x18
call fcn.12789d1c
jmp 0x1272de50
call fcn.1275d290
xor eax, eax
inc eax
leave
ret 0xc

Function at 0x1272deb2
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1277bbac]
test eax, eax
je 0x1272dee6
push esi
mov esi, dword [sym.imp.msvcrt.dll_fwrite]
push eax
push 1
lea eax, [ebp + 8]
push 4
push eax
call esi
push dword [0x1277bbac]
lea eax, [ebp + 0xc]
push 1
push 4
push eax
call esi
add esp, 0x20
pop esi
pop ebp
ret
Function at 0x1272df2b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1277bbac]
test eax, eax
je 0x1272df4b
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
pop ebp
ret
Function at 0x12784256
Capabilities:
Encode data using xor

Disassembly:
call 0x127841cf
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 0x127841ff
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 0x1278421b
xor edx, 0
jmp 0x12784226
xor edx, edx
jmp 0x1278423d
jmp 0x12784249
xor eax, eax
push 0x8427d7c0
call 0x12784256
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x12784292
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 0x1278426b
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 0x127842a9
add eax, 0
jno 0x127842ae
add esi, 0
ret 0x10

Function at 0x12785017
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x12785039
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x127851db
cmp edi, dword [ebp + 0x10]
jb 0x127851db
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.12784b03
inc edi
jmp 0x127850c2
jmp 0x127850cf
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.12784b03
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.12784b03
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x12785123
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x12785107
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.12785151
add dword [eax], 0x39
jle 0x1278512d
sub al, 0xf5
mov ch, al
call fcn.12785166
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10