joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100020f0
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x10086030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.10001a10
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x41
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x320]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x41
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x118]
push 0x5c
push ecx
call fcn.100027d0
mov byte [eax], 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x118]
push eax
mov ecx, eax
push str._s_s
push ecx
mov dword [ebp - 0x14], 0x34333231
mov dword [ebp - 0x10], 0x38373635
mov dword [ebp - 0xc], 0x6578652e
mov byte [ebp - 8], 0
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x320]
push ecx
call fcn.10001780
add esp, 0x24
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000287a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10086030]
jne 0x10002884
repz ret
jmp fcn.100036d8
Function at 0x10007ec4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10086030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10004914
and dword [ebp - 0x14], 0
cmp dword [0x10087bb4], 0
mov dword [ebp - 0x18], eax
jne 0x10007f77
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000801f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000801f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10087bb4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10087bb8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10087bbc], eax
call edi
push eax
call esi
mov dword [0x10087bc4], eax
test eax, eax
je 0x10007f77
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10087bc0], eax
mov eax, dword [0x10087bc0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10007fd0
cmp dword [0x10087bc4], ecx
je 0x10007fd0
push eax
call esi
push dword [0x10087bc4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10007fd0
test ebx, ebx
je 0x10007fd0
call edi
test eax, eax
je 0x10007fc7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10007fc7
test byte [ebp - 8], 1
jne 0x10007fd0
or dword [ebp + 0x10], 0x200000
jmp 0x10008003
mov eax, dword [0x10087bb8]
cmp eax, dword [ebp - 0x18]
je 0x10008003
push eax
call esi
test eax, eax
je 0x10008003
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10008003
mov eax, dword [0x10087bbc]
cmp eax, dword [ebp - 0x18]
je 0x10008003
push eax
call esi
test eax, eax
je 0x10008003
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10087bb4]
call esi
test eax, eax
je 0x1000801f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10008021
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000287a
leave
ret
Function at 0x1000f913
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000f952
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f952
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f952
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000f952
cmp dword [ecx + 0x74], 0xe
jbe 0x1000f952
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100125cf
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 0x1001266c
push ebx
push esi
call fcn.10012598
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.1001252c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012619
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001266b
push edi
push eax
call fcn.1001358a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10012639
call fcn.10011074
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001266a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001252c
add esp, 0x20
test eax, eax
jne 0x10012658
push edi
call fcn.10011074
jmp 0x10012660
push ebx
call fcn.10011074
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 0x100128d9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a888
push 0x1001a880
push str.FlsAlloc
push 0x1f
call fcn.100127f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001290d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
jmp 0x10012913
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10012957
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a898
push 0x1001a890
push str.FlsGetValue
push 0x21
call fcn.100127f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001298e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012996
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a8a0
push 0x1001a898
push str.FlsSetValue
push 0x22
call fcn.100127f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100129d0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10018050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001807d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001807d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1003cbeb
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
mov dword [ebp - 8], ecx
mov esi, ecx
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x38], ecx
jne 0x1003cc0c
xor eax, eax
jmp 0x1003cca2
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push ecx
push ecx
push dword [ebx + 0x38]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
cmp eax, 2
je 0x1003cc05
test eax, eax
je 0x1003cc30
mov esi, 0xc0000001
jmp 0x1003cca0
push edi
push dword [ebp - 4]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x1003cc50
mov esi, 0xc0000017
jmp 0x1003cc9f
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebx + 0x38]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x1003cc71
mov esi, 0xc0000001
jmp 0x1003cc8f
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push 0
push 0
push dword [ebx + 0x54]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x1003cc6a
inc dword [0x100455fc]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1003d1c5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebx], esi
mov dword [ebp - 4], esi
mov eax, dword [edi + 0x54]
test eax, eax
jne 0x1003d20b
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
lea ecx, [edi + 0x58]
call fcn.10041106
test eax, eax
je 0x1003d1fe
mov eax, 0xc8008000
jmp 0x1003d237
mov eax, dword [ebp - 4]
mov dword [edi + 0x54], eax
mov dword [edi + 0x50], 1
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1003d22b
mov dword [ebx], 1
inc dword [0x100455f8]
jmp 0x1003d235
cmp eax, 2
je 0x1003d235
mov esi, 0xc0000001
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..idata
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x21913f73
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x177b4228
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x57006a44
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x5702438c], 0
jne 0x57006a7c
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x57006a73
movzx eax, word [esp]
mov word [0x5702438c], ax
jmp 0x57006a7c
mov word [0x5702438c], 0x2c
movzx eax, word [0x5702438c]
pop edx
ret

Function at 0x57006f7e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x57006f91
xor eax, eax
jmp 0x57007034
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
jmp 0x57006fd0
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x57007032
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.57006f2e
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x57007030
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
jmp 0x57006fc7
xor eax, eax
Function at 0x57007a24
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call sub.rtl120.bpl__System__LStrAsg_qqrpvpxv
mov eax, ebx
call sub.rtl120.bpl__System_UniqueString_qqrr27System__AnsiStringT_us_i0__
mov eax, dword [ebx]
call sub.rtl120.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
test eax, eax
jle 0x57007a55
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x57007a4a
pop esi
pop ebx
ret

Function at 0x5700c0bc
Capabilities:
Check os version

Disassembly:
add eax, dword [edi]
push esp
dec edi
jae 0x5700c107
outsb dx, byte [esi]
jne 0x5700c132
add dword [eax], eax
add byte [eax], al
add byte [0xb8000000], dl
rol byte [eax], 0x57
push es
outsd dx, dword [esi]
jae 0x5700c124
outsd dx, dword [esi]
outsb dx, byte [esi]
pop es
outsd dx, dword [esi]
jae 0x5700c134
imul ebp, dword [esi + 0x39], 0x736f0b35
push edi
imul ebp, dword [esi + 0x39], 0x72736f35
xor al, byte [edi]
outsd dx, dword [esi]
jae 0x5700c148
imul ebp, dword [esi + 0x39], 0x736f0938
push edi
imul ebp, dword [esi + 0x39], 0x7657338
outsd dx, dword [esi]
jae 0x5700c15a
imul ebp, dword [esi + 0x4d], 0x736f0a45
or ch, byte [edi + 0x73]
push edi
imul ebp, dword [esi + 0x39], 0x77654e78
or ch, byte [edi + 0x73]
push edi
imul ebp, dword [esi + 0x4e], 0x646c4f74
or byte [edi + 0x73], ch
push edi
imul ebp, dword [esi + 0x4e], 0x6f073474
je 0x5700c15a
pop es
outsd dx, dword [esi]
jae 0x5700c181
imul ebp, dword [esi + 0x32], 0x736f076b
push edi
imul ebp, dword [esi + 0x58], 0x736f0950
pop eax
push eax
or dword [edi + 0x73], ebp
outsd dx, dword [esi]
jae 0x5700c191
push edi
imul ebp, dword [esi + 0x32], 0xa333030
outsd dx, dword [esi]
jae 0x5700c19b
imul ebp, dword [esi + 0x56], 0x61747369
jae 0x5700c1be
popal
or dword [edi + 0x73], ebp
push edi
imul ebp, dword [esi + 0x32], 0x6383030
outsd dx, dword [esi]
jae sym.madBasic_.bpl___xp_12Madtools_TOS
imul ebp, dword [esi + 0x37], 0x57736f0b
outsb dx, byte [esi]
aaa
or ebp, dword [edi + 0x73]
push edi
imul ebp, dword [esi + 0x32], 0x72383030
xor al, byte [esi]
outsd dx, dword [esi]
jae 0x5700c1c3
imul ebp, dword [esi + 0x38], 0x57736f09
imul ebp, dword [esi + 0x32], 0x7323130
outsd dx, dword [esi]
jae 0x5700c1d4
imul ebp, dword [esi + 0x38], 0x736f0b31
or ebp, dword [edi + 0x73]
push edi
imul ebp, dword [esi + 0x32], 0x72323130
xor al, byte [edi]
outsd dx, dword [esi]
jae 0x5700c1e8
imul ebp, dword [esi + 0x31], 0x736f0a30
push edi
imul ebp, dword [esi + 0x4e], 0x77654e74
or byte [ebp + 0x61], ch
dec esi
je 0x5700c1ec
ja 0x5700c1a9
insd dword es:[edi], dx
popal
push esp
outsd dx, dword [esi]
outsd dx, dword [esi]
insb byte es:[edi], dx
jae 0x5700c137
lea eax, [eax]
mov al, 0xc1
add byte [edi + 0xe], dl
push cs
inc eax
add byte [eax + 0xe5700c1], dh
push cs
add byte [eax], al
pop eax
pop es
add byte [eax], al
outsd dx, dword [esi]
cmp dword [0x52534f20], esi
Function at 0x401451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147f
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x40149a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ee
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ee
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f2
xor eax, eax
jmp 0x401504
cmp dword [ebp - 4], edi
je 0x401501
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x401944
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
xor esi, esi
call edi
test eax, eax
jbe 0x40197b
push ebx
mov ebx, ebp
sub ebx, str.svchost.exe
mov al, byte [ebx + esi + str.svchost.exe]
push ebp
xor al, 1
mov byte [esi + str.svchost.exe], al
inc esi
call edi
cmp esi, eax
jb 0x401963
pop ebx
and byte [esi + str.svchost.exe], 0
pop edi
pop esi
mov eax, str.svchost.exe
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100046b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ecx
lea ecx, [ebp + 0xc]
call sym.utilities.dll_public:_enum_pugi::xml_node_type___thiscall_pugi::xml_node::type_void_
lea edx, [eax - 1]
cmp edx, 4
ja 0x100047ec
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp eax, 1
jle 0x10004788
push edi
lea ecx, [ebp + 0xc]
call sym.utilities.dll_public:_wchar_t_const____thiscall_pugi::xml_node::name_void_const
push eax
push ebx
call fcn.10004894
add esp, 0xc
lea ecx, [ebp + 0xc]
push edi
call sym.utilities.dll_public:_wchar_t_const____thiscall_pugi::xml_node::value_void_const
push eax
push ebx
call fcn.10004894
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp + 0xc]
push eax
call sym.utilities.dll_public:_class_pugi::xml_attribute_iterator___thiscall_pugi::xml_node::attributes_begin_void_
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
and dword [ebp - 8], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call sym.utilities.dll_public:_bool___thiscall_pugi::xml_attribute_iterator::operator__class_pugi::xml_attribute_iterator_const__const
test al, al
je 0x1000477c
and dword [ebp - 8], 0
mov esi, dword [ebp - 0x14]
push edi
lea ecx, [ebp - 0x14]
call sym.utilities.dll_public:_wchar_t_const____thiscall_pugi::xml_attribute::name_void_const
push eax
push ebx
call fcn.10004894
add esp, 0xc
lea ecx, [ebp - 0x14]
push edi
call sym.utilities.dll_public:_wchar_t_const____thiscall_pugi::xml_node::name_void_const
push eax
push ebx
call fcn.10004894
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov esi, dword [esi + 0x14]
add esp, 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], esi
push eax
call sym.utilities.dll_public:_bool___thiscall_pugi::xml_attribute_iterator::operator__class_pugi::xml_attribute_iterator_const__const
test al, al
jne 0x1000473a
push edi
push 0
push ebx
call fcn.10004894
add esp, 0xc
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10004794
mov esi, dword [esi + 0x10]
jmp 0x100047cd
xor esi, esi
jmp 0x100047cd
lea ecx, [ebp - 4]
call sym.utilities.dll_public:_enum_pugi::xml_node_type___thiscall_pugi::xml_node::type_void_
push edi
push 1
mov byte [ebp + 0x13], al
lea eax, [ebp + 0x13]
push 1
push eax
call fcn.10012d92
mov ecx, dword [ebp - 0xc]
add esp, 0x10
push edi
push esi
push ebx
call sym.utilities.dll_private:_void___thiscall_pugi::xml_document::_save_bin_class_SOUI::SMap_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits___int__class_SOUI::CElementTraits_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____class_SOUI::CElementTraits_int___const___class_pugi::xml_node__struct__iobuf__
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
call sym.utilities.dll_public:_class_pugi::xml_node___thiscall_pugi::xml_node::next_sibling_void_
mov esi, dword [eax]
mov dword [ebp - 4], esi
test esi, esi
jne 0x10004798
push edi
push 1
lea eax, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push 1
push eax
call fcn.10012d92
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100047f2
Capabilities:
Write file on windows

Disassembly:
push 0x44
mov eax, 0x10025ed0
call fcn.1000a688
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x50]
push 0xa
sub esp, 0xc
mov dword [esp + 8], 0x40100000
mov dword [esp + 4], 0x3e800000
mov dword [esp], 0x3f400000
push 0x11
call fcn.10001490
and dword [ebp - 4], 0
lea eax, [ebp - 0x50]
push eax
push dword [edi]
mov ecx, edi
call sym.utilities.dll_private:_void___thiscall_pugi::xml_document::_build_str_map_class_pugi::xml_node__class_SOUI::SMap_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits___int__class_SOUI::CElementTraits_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____class_SOUI::CElementTraits_int____const
lea eax, [ebp - 0x50]
push eax
call fcn.1000455c
mov ecx, dword [ebp - 0x4c]
xor ebx, ebx
push esi
inc ebx
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x6c6d7873
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ecx
call fcn.10012d92
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.10004902
add esp, 0x1c
lea eax, [ebp - 0x50]
mov ecx, edi
push esi
push dword [edi]
push eax
call sym.utilities.dll_private:_void___thiscall_pugi::xml_document::_save_bin_class_SOUI::SMap_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits___int__class_SOUI::CElementTraits_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____class_SOUI::CElementTraits_int___const___class_pugi::xml_node__struct__iobuf__
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.100038cf
call fcn.1000a643
ret 4

Function at 0x10004894
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x10025efb
call fcn.1000a654
mov edi, dword [ebp + 8]
push dword [edi + 4]
call fcn.100060fa
and dword [ebp + 8], 0
mov ebx, eax
pop ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call sym.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0
je 0x100048d6
push dword [ebp + 0xc]
mov ecx, edi
call fcn.100032f0
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push ebx
push 1
push eax
call fcn.10012d92
add esp, 0x10
and dword [ebp - 4], 0
lea ecx, [esi - 0xc]
cmp ecx, dword [0x10036028]
je 0x100048fc
call fcn.1000378e
call fcn.1000a62e
ret

Function at 0x10004902
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push edi
call fcn.10002e33
mov edi, eax
test edi, edi
je 0x1000493f
push esi
mov ecx, dword [ebp + 0xc]
mov esi, edi
push edi
call fcn.10002a76
push dword [esi]
mov edi, eax
call fcn.10012e2a
push dword [ebp + 8]
inc eax
push eax
push 2
push dword [esi]
call fcn.10012d92
add esp, 0x14
test edi, edi
jne 0x10004915
pop esi
pop edi
pop ebp
ret