joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401754
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x444]
push 0x400
push eax
call fcn.0040199a
lea eax, [ebp - 0x444]
mov ebx, str.Common
push eax
push dword [esi + 0x10]
push str.CreateProcess___s___s_
push ebx
call fcn.004011f6
xor edi, edi
push 0x44
lea eax, [ebp - 0x44]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x28
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x44
push esi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4017e2
push 0x407008
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call fcn.0040120e
add esp, 0xc
xor eax, eax
jmp 0x4017e5
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x401837
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp - 0x104]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401877
push str.GetTempPath
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.0040120e
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret
lea eax, [ebp - 0x104]
push eax
call fcn.004016d6
test eax, eax
pop ecx
je 0x401871
xor esi, esi
xor edi, edi
test esi, esi
jne 0x4018da
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4018ab
push 1
pop esi
inc edi
cmp edi, 0x19
jl 0x40188c
test esi, esi
jne 0x4018da
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
push str.getNewTempDirectory___GetTempFileName___s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.0040120e
add esp, 0x14
jmp 0x401871
push dword [ebp + 0xc]
call fcn.00401946
push dword [ebp + 0xc]
call fcn.00401676
pop ecx
pop ecx
jmp 0x401873

Function at 0x401946
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401994
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x401994
push esi
mov esi, str.Common
push str.Delete___s_
push esi
call fcn.004011f6
push 0x407008
push edi
push esi
call fcn.0040120e
add esp, 0x18
xor eax, eax
jmp 0x401997
push 1
pop eax
pop edi
pop esi
ret
Function at 0x401a59
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, str.NAIMServInst
xor edi, edi
push esi
push edi
mov dword [0x408444], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push dword [0x408444]
mov ebx, eax
lea eax, [ebp - 0x108]
push esi
push str._s_error:__d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x108]
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp ebx, edi
mov dword [ebp - 4], eax
je 0x401acb
lea eax, [ebp - 8]
push edi
push eax
push edi
push 2
push edi
push edi
push edi
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4023d7
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
lea eax, [ebp - 0x14]
push 1
push eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x402431
push str.AllocateAndInitializeSid
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Stub
call fcn.0040120e
add esp, 0xc
jmp 0x4024f1
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402466
push str.OpenProcessToken
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Stub
call fcn.0040120e
add esp, 0xc
jmp 0x4024e8
push esi
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
push eax
push ebx
push ebx
push 1
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 1
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4024b5
push str.GetTokenInformation
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Stub
call fcn.0040120e
jmp 0x4024d2
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ebx, eax
push ebx
push str.System_d
push str.Stub
call fcn.004011f6
add esp, 0xc
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
pop ebx
leave
ret
Function at 0x42ccb0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x80000001
call dword [0x45c01c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42cd1d
mov edx, dword [ebp + 8]
push edx
call fcn.004548db
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.FyStore
mov ecx, dword [ebp - 4]
push ecx
call dword [0x45c018]
mov edx, dword [ebp - 4]
push edx
call dword [0x45c028]
push str.FyStore_is_registered_success_____n
call fcn.0043f830
add esp, 4
jmp 0x42cd2a
push str.FyStore_is_registered_failure_____n
call fcn.0043f830
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x401040
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov ecx, dword [esp + 0x218]
mov edx, dword [esp + 0x214]
mov eax, 0x100
push ebx
push ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push esi
lea eax, [esp + 0x14]
push edi
xor esi, esi
push eax
push 1
push esi
push ecx
push edx
xor ebp, ebp
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401117
test esi, esi
jne 0x401117
lea eax, [esp + 0x14]
lea ecx, [esp + 0x120]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x30]
push eax
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, eax
test ebx, ebx
jne 0x401101
mov eax, dword [esp + 0x22c]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00410930
add esp, 8
test eax, eax
jne 0x401101
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x230]
mov edx, ecx
lea esi, [esp + 0x120]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x10], 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov eax, 0xff
inc ebp
test ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
je 0x401085
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401130
mov ecx, dword [esp + 0x230]
mov byte [ecx], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x4020d0
Capabilities:
Get file size

Disassembly:
sub esp, 0x1c8
mov edx, dword [esp + 0x1cc]
mov ecx, 0x32
mov eax, 0x20202020
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x10]
lea ebx, [esp + 0x10]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
lea ebx, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x41a5f8
mov byte [esp + ecx + 0x10], 0x20
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0xd8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Inf_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0xd8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
push 0x80
push 3
push eax
and ecx, 3
push 1
lea eax, [esp + 0xec]
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402215
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
lea ecx, [esp + 0x28]
push str._8d_b
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x415374
mov byte [esp + 0x3e], 0
call fcn.004029f0
lea edx, [esp + 0x20]
push edx
call fcn.004029f0
push 0x41a4ec
call fcn.004029f0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c8
ret
Function at 0x4029f0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push eax
lea eax, [esp + 0xc]
dec ecx
push eax
push ecx
mov ecx, dword [0x419530]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
ret
Function at 0x403fff
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
xor ebx, ebx
push 0x14
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.004040cb
add esp, 0xc
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xa], 0x45
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 9], 0x78
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 8], 0x41
mov byte [ebp - 0x11], 0x56
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 7], bl
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xb], 0x6e
mov dword [ebp - 0xa8], 0x94
call fcn.004040fa
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xa8]
push ecx
call eax
test eax, eax
push 0x14
lea eax, [ebp - 0x14]
push ebx
push eax
jne 0x40408b
call fcn.004040cb
add esp, 0xc
xor eax, eax
jmp 0x4040c8
call fcn.004040cb
mov eax, dword [ebp - 0x98]
add esp, 0xc
sub eax, ebx
je 0x4040c5
dec eax
je 0x4040a5
dec eax
je 0x4040b7
jmp 0x404087
cmp dword [ebp - 0xa0], ebx
jne 0x4040b1
push 4
jmp 0x4040c7
jbe 0x4040b7
push 5
jmp 0x4040c7
cmp dword [ebp - 0xa4], 5
sbb eax, eax
add eax, 7
jmp 0x4040c8
push 3
pop eax
pop ebx
leave
ret

Function at 0x4040fa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004040cb
mov eax, dword [0x415b04]
and byte [ebp - 8], 0
add esp, 0xc
cmp eax, 1
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6c
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
jne 0x40415d
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x415b04], eax
leave
ret

Function at 0x40415f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
push esi
push 0x4000000
push 1
push esi
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov byte [ebp - 0x1c], 0x5c
mov byte [ebp - 0x1b], 0x5c
mov byte [ebp - 0x1a], 0x2e
mov byte [ebp - 0x19], 0x5c
mov byte [ebp - 0x18], 0x48
mov byte [ebp - 0x17], 0x4f
mov byte [ebp - 0x16], 0x53
mov byte [ebp - 0x15], 0x54
mov byte [ebp - 0x14], 0x39
mov byte [ebp - 0x13], 0x35
mov byte [ebp - 0x12], 0x2e
mov byte [ebp - 0x11], 0x56
mov byte [ebp - 0x10], 0x58
mov byte [ebp - 0xf], 0x44
call fcn.0040420b
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
jne 0x4041d0
mov eax, 0xc357
jmp 0x404207
push ebx
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0xc]
push 8
push eax
push esi
push esi
push 2
push edi
call fcn.00404296
push edi
mov ebx, eax
call fcn.00404334
add esp, 0x24
cmp ebx, esi
pop ebx
je 0x404202
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 8]
mov byte [eax], cl
xor eax, eax
jmp 0x404207
mov eax, 0xc358
pop edi
pop esi
leave
ret
Function at 0x40420b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004040cb
and byte [ebp - 9], 0
add esp, 0xc
mov byte [ebp - 0x14], 0x43
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xa], 0x41
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0xe], 0x46
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0x10], 0x74
mov byte [ebp - 0xb], 0x65
call fcn.004040fa
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x404267
leave
ret
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004040cb
add esp, 0xc
mov eax, esi
pop esi
leave
ret

Function at 0x404296
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004040cb
and byte [ebp - 5], 0
add esp, 0xc
mov byte [ebp - 0x14], 0x44
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xa], 0x6e
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0xe], 0x49
mov byte [ebp - 9], 0x74
mov byte [ebp - 0x12], 0x76
mov byte [ebp - 0xd], 0x6f
mov byte [ebp - 8], 0x72
mov byte [ebp - 0x11], 0x69
mov byte [ebp - 0xc], 0x43
mov byte [ebp - 7], 0x6f
mov byte [ebp - 0x10], 0x63
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 6], 0x6c
call fcn.004040fa
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x404302
leave
ret
push esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004040cb
add esp, 0xc
mov eax, esi
pop esi
leave
ret

Function at 0x404334
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004040cb
and byte [ebp - 9], 0
add esp, 0xc
mov byte [ebp - 0x14], 0x43
mov byte [ebp - 0xf], 0x48
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 0x13], 0x6c
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0x12], 0x6f
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0x11], 0x73
mov byte [ebp - 0xc], 0x64
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xb], 0x6c
call fcn.004040fa
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x404390
leave
ret
push esi
push dword [ebp + 8]
call eax
mov esi, eax
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004040cb
add esp, 0xc
mov eax, esi
pop esi
leave
ret
Function at 0x4043ad
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
push esi
push 0x80
push 3
push esi
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x18]
push 0xc0000000
push eax
mov byte [ebp - 0x18], 0x5c
mov byte [ebp - 0x17], 0x5c
mov byte [ebp - 0x16], 0x2e
mov byte [ebp - 0x15], 0x5c
mov byte [ebp - 0x14], 0x48
mov byte [ebp - 0x13], 0x4f
mov byte [ebp - 0x12], 0x53
mov byte [ebp - 0x11], 0x54
mov byte [ebp - 0x10], 0x4e
mov byte [ebp - 0xf], 0x54
call fcn.0040420b
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
je 0x404447
push ebx
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
push 4
push eax
push esi
push esi
push 0x80002000
push edi
call fcn.00404296
push edi
mov ebx, eax
call fcn.00404334
add esp, 0x24
cmp ebx, esi
pop ebx
je 0x404440
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
mov byte [eax], cl
xor eax, eax
jmp 0x40444c
mov eax, 0xc358
jmp 0x40444c
mov eax, 0xc357
pop edi
pop esi
leave
ret

Function at 0x404450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push es
mov ax, 0x101f
mov es, ax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x404466
pop es
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
test al, al
jne 0x404479
add al, 0x55
mov ecx, dword [ebp + 8]
pop esi
mov byte [ecx], al
xor al, al
leave
ret
Function at 0x40aa50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x1c]
cmp ecx, 1
jle 0x40ab2b
add eax, 0x32
push esi
dec ecx
movzx edx, byte [eax + 1]
movzx esi, byte [eax - 1]
mov edx, dword [edx*4 + 0x418a20]
xor edx, dword [esi*4 + 0x418220]
movzx esi, byte [eax]
add eax, 0x10
xor edx, dword [esi*4 + 0x418620]
movzx esi, byte [eax - 0x12]
xor edx, dword [esi*4 + 0x417e20]
mov dword [eax - 0x12], edx
movzx edx, byte [eax - 0xb]
movzx esi, byte [eax - 0xc]
mov edx, dword [edx*4 + 0x418a20]
xor edx, dword [esi*4 + 0x418620]
movzx esi, byte [eax - 0xd]
xor edx, dword [esi*4 + 0x418220]
movzx esi, byte [eax - 0xe]
xor edx, dword [esi*4 + 0x417e20]
mov dword [eax - 0xe], edx
movzx edx, byte [eax - 7]
movzx esi, byte [eax - 8]
mov edx, dword [edx*4 + 0x418a20]
xor edx, dword [esi*4 + 0x418620]
movzx esi, byte [eax - 9]
xor edx, dword [esi*4 + 0x418220]
movzx esi, byte [eax - 0xa]
xor edx, dword [esi*4 + 0x417e20]
mov dword [eax - 0xa], edx
movzx edx, byte [eax - 3]
movzx esi, byte [eax - 4]
mov edx, dword [edx*4 + 0x418a20]
xor edx, dword [esi*4 + 0x418620]
movzx esi, byte [eax - 5]
xor edx, dword [esi*4 + 0x418220]
movzx esi, byte [eax - 6]
xor edx, dword [esi*4 + 0x417e20]
dec ecx
mov dword [eax - 6], edx
jne 0x40aa65
pop esi
ret
Function at 0x40b158
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
cmp ebx, 0x40
push edi
jle 0x40b1a3
lea eax, [ebp - 0xe8]
push eax
call fcn.0040b275
push ebx
lea eax, [ebp - 0xe8]
push dword [ebp + 8]
push eax
call fcn.0040b29d
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040b34c
add esp, 0x18
lea esi, [ebp - 0x10]
push 0x10
pop ebx
jmp 0x40b1a6
mov esi, dword [ebp + 8]
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
push 0x10
lea edi, [ebp - 0x50]
pop ecx
xor edx, edx
test ebx, ebx
rep stosd dword es:[edi], eax
jle 0x40b1db
lea eax, [ebp - 0x50]
sub esi, eax
lea eax, [edx + ebp - 0x50]
inc edx
cmp edx, ebx
mov cl, byte [eax + esi]
mov byte [edx + ebp - 0x91], cl
mov byte [eax], cl
jl 0x40b1c6
xor eax, eax
jmp 0x40b1e0
xor byte [eax + ebp - 0x90], 0x36
xor byte [eax + ebp - 0x50], 0x5c
inc eax
cmp eax, 0x40
jl 0x40b1dd
lea eax, [ebp - 0xe8]
push eax
call fcn.0040b275
lea eax, [ebp - 0x90]
push 0x40
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0040b29d
mov esi, dword [ebp + 0x10]
add esp, 0x10
lea eax, [ebp - 0xe8]
mov ecx, esi
push 4
sub eax, esi
pop edi
mov edx, edi
jmp 0x40b22c
mov ebx, dword [ecx + eax]
mov dword [ecx], ebx
add ecx, edi
dec edx
jne 0x40b229
lea eax, [ebp - 0xe8]
push eax
call fcn.0040b275
lea eax, [ebp - 0x50]
push 0x40
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0040b29d
add esp, 0x10
lea eax, [ebp - 0xe8]
lea ecx, [esi + 0x10]
mov edx, edi
jmp 0x40b265
mov esi, dword [eax]
add eax, edi
mov dword [ecx], esi
add ecx, edi
dec edx
jne 0x40b262
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b29d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 4
mov eax, esi
pop ecx
xor dword [eax], 0x41dfac36
add eax, 4
dec ecx
jne 0x40b2ab
mov ecx, dword [esi + 0x10]
mov edi, dword [ebp + 0x10]
mov eax, ecx
mov edx, edi
shr eax, 3
lea ecx, [ecx + edi*8]
and eax, 0x3f
shl edx, 3
cmp ecx, edx
mov dword [esi + 0x10], ecx
jae 0x40b2d7
inc dword [esi + 0x14]
push 0x40
mov ecx, edi
pop ebx
shr ecx, 0x1d
add dword [esi + 0x14], ecx
sub ebx, eax
cmp edi, ebx
jb 0x40b32a
push ebx
lea eax, [esi + eax + 0x18]
push dword [ebp + 0xc]
push eax
call fcn.0040be20
lea eax, [esi + 0x18]
push eax
push esi
call fcn.0040b3b0
add esp, 0x14
mov dword [ebp + 8], ebx
add ebx, 0x3f
cmp ebx, edi
jae 0x40b326
mov eax, dword [ebp + 0xc]
lea eax, [ebx + eax - 0x3f]
push eax
push esi
call fcn.0040b3b0
add dword [ebp + 8], 0x40
pop ecx
pop ecx
add ebx, 0x40
jmp 0x40b309
xor eax, eax
jmp 0x40b32e
and dword [ebp + 8], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub edi, ecx
add ecx, edx
push edi
lea eax, [esi + eax + 0x18]
push ecx
push eax
call fcn.0040be20
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40d358
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x14
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.004040cb
and byte [ebp - 0x17], 0
add esp, 0xc
mov byte [ebp - 0x24], 0x47
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x53
mov byte [ebp - 0x20], 0x79
mov byte [ebp - 0x1f], 0x73
mov byte [ebp - 0x1e], 0x74
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x6d
mov byte [ebp - 0x1b], 0x54
mov byte [ebp - 0x1a], 0x69
mov byte [ebp - 0x19], 0x6d
mov byte [ebp - 0x18], 0x65
call fcn.004040fa
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d3c0
lea ecx, [ebp - 0x10]
push ecx
call eax
push esi
push 0x14
movzx esi, word [ebp - 0x10]
movzx eax, word [ebp - 0xe]
imul esi, esi, 0xd
add esi, eax
push 0
movzx eax, word [ebp - 0xa]
imul esi, esi, 0x1e
add esi, eax
movzx eax, word [ebp - 8]
imul esi, esi, 0x1a
imul eax, eax, 0x3d
add esi, eax
movzx eax, word [ebp - 6]
add esi, eax
movzx eax, word [ebp - 4]
imul esi, esi, 0x3c
add esi, eax
movzx eax, word [ebp - 2]
imul esi, esi, 0x4d2
add esi, eax
lea eax, [ebp - 0x24]
push eax
call fcn.004040cb
add esp, 0xc
mov eax, esi
pop esi
leave
ret