joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ea00
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x430b20]
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40ea42
call edi
mov esi, eax
test esi, esi
je 0x40ea2c
mov eax, 1
jmp 0x40ea3d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40eb4f
mov eax, 2
mov dword [0x430b20], eax
cmp eax, 1
jne 0x40eae2
test esi, esi
jne 0x40ea5b
call edi
mov esi, eax
test esi, esi
je 0x40eb4f
cmp word [esi], 0
mov eax, esi
je 0x40ea75
add eax, 2
cmp word [eax], 0
jne 0x40ea63
add eax, 2
cmp word [eax], 0
jne 0x40ea63
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40ead4
push edi
call fcn.0040af40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40ead4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40eac6
push ebx
call fcn.0040d5b0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40eb4f
test ebx, ebx
jne 0x40eaf3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40eb4f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40eb0b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40eafb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40eafb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040af40
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40eb2d
push ebx
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40f050
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x416568
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40f074
add eax, 8
inc ebp
cmp eax, 0x4165f8
jb 0x40f065
cmp ecx, dword [ebp*8 + 0x416568]
jne 0x40f21b
mov eax, dword [0x4308d0]
cmp eax, 1
je 0x40f1dd
test eax, eax
jne 0x40f0a0
cmp dword [0x413f64], 1
je 0x40f1dd
cmp ecx, 0xfc
je 0x40f21b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f0db
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40f124
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4123a0
add ebx, ecx
push ebx
call fcn.0040b270
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x412380
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x41656c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00410280
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x431cc0]
test eax, eax
je 0x40f1ee
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40f1f8
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41656c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40f590
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x431dc0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40f73d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x431cc0]
lea edi, [ecx*4 + 0x431cc0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40f73d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40f5fe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40f60f
push 2
push ebp
push eax
call fcn.0040e000
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40f76e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40f6b9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40f66a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40f657
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40f63a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40f75f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40f6b5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40f636
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40f72e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f702
cmp eax, 5
jne 0x40f6eb
mov dword [0x4309cc], eax
mov dword [0x4309c8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040d540
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40f722
cmp byte [ebp], 0x1a
jne 0x40f722
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4309c8], 0x1c
jmp 0x40f747
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4309c8], 9
pop edi
pop esi
pop ebp
mov dword [0x4309cc], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40f6b5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40f79f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40f6b9
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40f6b9
Function at 0x410530
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0040b0f0
mov eax, dword [0x431dc0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x410692
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x431cc0]
test byte [edx + ecx*8 + 4], 1
je 0x410692
push 1
push ebp
push ebx
call fcn.0040e000
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41069c
push 2
push ebp
push ebx
call fcn.0040e000
add esp, 0xc
cmp eax, 0xffffffff
je 0x41069c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x410638
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00410ff0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4105df
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040f590
add esp, 0xc
cmp eax, 0xffffffff
je 0x4105fb
sub esi, eax
test esi, esi
jle 0x410611
jmp 0x4105d0
cmp dword [0x4309cc], 5
jne 0x41060e
mov dword [0x4309c8], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00410ff0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0040e000
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x410679
push 0
push ecx
push ebx
call fcn.0040e000
add esp, 0xc
push ebx
call fcn.0040fca0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x410679
mov dword [0x4309c8], 0xd
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x4309cc], eax
push 0
push edi
push ebx
call fcn.0040e000
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x4309c8], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x410cf0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x410eae
push 0x3d
push edi
call fcn.00411210
mov esi, eax
add esp, 8
test esi, esi
je 0x410eae
cmp edi, esi
je 0x410eae
mov dl, byte [esi + 1]
mov ecx, dword [0x4309f4]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x4309f0]
cmp eax, ecx
jne 0x410d47
push eax
call fcn.00410f80
add esp, 4
mov dword [0x4309f0], eax
test eax, eax
jne 0x410dc2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x410d6e
mov eax, dword [0x4309f8]
test eax, eax
je 0x410d6e
call fcn.00410390
test eax, eax
je 0x410dbd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x410d7a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0040af40
add esp, 4
mov dword [0x4309f0], eax
test eax, eax
je 0x410eae
mov dword [eax], 0
mov eax, dword [0x4309f8]
test eax, eax
jne 0x410dbd
push 4
call fcn.0040af40
add esp, 4
mov dword [0x4309f8], eax
test eax, eax
je 0x410eae
mov dword [eax], 0
mov eax, dword [0x4309f0]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00410f00
mov esi, eax
add esp, 8
test esi, esi
jl 0x410ebf
cmp dword [ebx], 0
je 0x410ebf
test ebp, ebp
je 0x410eb7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0040d5b0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x410e19
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x410e08
lea eax, [esi*4]
push eax
push ebx
call fcn.00411070
add esp, 8
test eax, eax
je 0x410e33
mov dword [0x4309f0], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x410ea6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040af40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x410ea6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0040d5b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x410e37
test ebp, ebp
jne 0x410ea6
test esi, esi
jge 0x410ec9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00411070
add esp, 8
test eax, eax
je 0x410eae
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x4309f0], eax
jmp 0x410e37
Function at 0x43a360
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, edx
mov edi, dword [esp + 0xc]
mov edx, dword [ecx + 2]
xor edx, dword [ecx + 6]
xor edx, dword [ecx + 0xa]
add edi, edx
xor edx, edx
mov eax, dword [ecx + 6]
inc edx
xor dword [edi + edx*4 - 4], eax
inc edx
mov eax, dword [ecx + 0xa]
xor dword [edi + edx*4 - 4], eax
cmp edx, 0x14
jl 0x43a375
mov ecx, dword [esi]
call fcn.0043d5f0
mov dword [esi], 0
cmp word [0x43f1b8], 0
je 0x43a3ad
cmp word [0x43f1c0], 0
je 0x43a3ad
call edi
push 0
push 0x43f328
push 0x43f318
push 0
call dword [0x443484]
pop edi
pop esi
ret 4

Function at 0x43cbc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, 4
push esi
push edi
mov edi, dword [ecx + 0xc]
mov esi, edx
sub edi, 0x5c5c5c5d
mov ebx, dword [ecx]
add ecx, 4
xor ebx, edi
add esi, 4
dec eax
mov dword [esi - 4], ebx
jne 0x43cbd3
mov dword [edx + 0x10], 0
pop edi
pop esi
pop ebx
ret
Function at 0x43e9a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
lea eax, [esp + 0x44]
push ebx
push esi
push edi
push ebp
mov edi, edx
mov esi, ecx
push eax
push esi
call dword [0x44330c]
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [0x4434ac]
push esi
mov edi, dword [0x443358]
call edi
mov dword [esp + 0x14], eax
push esi
call edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x10], eax
push edi
call fcn.0043e7c0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push eax
push esi
call dword [0x443364]
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x30], eax
push ecx
call dword [0x443304]
mov ecx, dword [esp + 0x34]
push 0
mov dword [esp + 0x3c], eax
push ecx
push esi
call dword [0x44333c]
mov dword [esp + 0x40], eax
push esi
call dword [0x443348]
push edi
call fcn.0043e8c0
mov ebp, eax
push edi
call fcn.0043e8e0
mov dword [esp + 0x28], eax
push edi
call fcn.0043e900
mov ebx, eax
push 0
push edi
push ebp
push 4
push edi
push esi
call dword [0x443360]
mov ecx, dword [esp + 0x10]
push eax
push ecx
xor edi, edi
mov dword [esp + 0x38], eax
call dword [0x443304]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
test eax, eax
jle 0x43eaef
xor ebp, ebp
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x44], edi
add edi, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x4c], edi
jle 0x43eae3
lea eax, [esp + 0x44]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x64]
push eax
mov dword [esp + 0x4c], ebp
push ecx
add ebp, ebx
push edx
mov dword [esp + 0x5c], ebp
call dword [0x4434b8]
test eax, eax
je 0x43ead7
mov eax, dword [esp + 0x10]
push 0xcc0020
mov ecx, dword [esp + 0x2c]
push 0
mov edx, dword [esp + 0x50]
push 0
push eax
push ebx
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
push esi
call dword [0x443354]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cmp eax, ebp
jg 0x43ea8f
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cmp eax, edi
jg 0x43ea75
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [0x443304]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [0x443304]
mov ecx, dword [esp + 0x40]
push 1
push ecx
push esi
call dword [0x44333c]
mov ecx, dword [esp + 0x2c]
mov esi, dword [0x443350]
push ecx
call esi
mov ecx, dword [esp + 0x30]
push ecx
call esi
mov eax, dword [esp + 0x34]
push eax
call esi
mov eax, dword [esp + 0x14]
mov esi, dword [0x443310]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret 4
Function at 0x41fc04
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41fc0a
ret

Function at 0x42ad24
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42aed5
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.0040473c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x42aeec
call fcn.00404398
mov eax, ebx
call fcn.0041dba0
mov edi, eax
dec edi
test edi, edi
jl 0x42addc
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041db74
mov edx, dword [0x430430]
call fcn.00403444
test al, al
je 0x42add8
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0041db74
lea edx, [ebp - 0x14]
call fcn.00438a2c
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.0040473c
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040440c
inc esi
dec edi
jne 0x42ad8a
mov al, byte [0x42aef0]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x42aefc
mov eax, dword [ebp - 0xc]
call fcn.0040d1c4
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404124
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00438a2c
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x42aeec
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.00438a2c
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x42aeec
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x42aeec
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x42af08
call fcn.00409328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42aedc
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004040b0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004040b0
lea eax, [ebp - 0x14]
call fcn.0040408c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004040b0
ret
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
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 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x438ca3
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x438a14
and edx, edx
mov edx, 0x5e09354e
call fcn.00438cdd
dec ecx
xor dword [ebx], edi
add ecx, ecx
sub ecx, edx
inc ebx
add ecx, ecx
push 0x250a1d13
mov ecx, dword [esp]
add esp, 4
add edx, 1
cmp ebx, eax
jne fcn.00438ca3
dec ecx
sub edx, 0xe56667a1
ret

Function at 0x41784b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x41784b
lcall 0x5de5, 0x8b10c483
jmp loc.008b16a0
Function at 0x10002890
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1003c008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x100028c5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004f53
mov esp, ebp
pop ebp
ret
push edi
push 0xf01ff
push str.PhotoviewerChecker
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x10002955
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10002922
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x10002922
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x1000295c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push edi
call ebx
test eax, eax
je 0x1000294d
cmp dword [ebp - 0x1c], 2
jne 0x1000294d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call ebx
test eax, eax
jne 0x10002934
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10004f53
mov esp, ebp
pop ebp
ret

Function at 0x10002980
Capabilities:
Modify service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1003c008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x100029b5
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004f53
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.PhotoviewerChecker
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x10002a34
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x10002a2c
cmp dword [ebp - 0x1c], 1
je 0x10002a2c
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10002a2c
cmp dword [ebp - 0x1c], 3
jne 0x10002a2c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
cmp dword [ebp - 0x1c], 3
je 0x10002a17
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop edi
call fcn.10004f53
mov esp, ebp
pop ebp
ret