joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11bf6db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11bfa208
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x11c020e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
push 1
mov eax, dword [ebp - 0x20]
add eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.11be2730
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
je 0x11bf6e47
cmp dword [ebp + 8], 0
je 0x11bf6e47
push 2
push 0
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.11be31f9
add esp, 4
shl eax, 1
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.11be2760
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x11bf80b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.11bf43b0
test eax, eax
je 0x11bf80d6
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x11bf8187
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x11bf80e9
cmp dword [ebp + 0x10], 0
jne 0x11bf80ee
jmp 0x11bf8184
mov eax, dword [ebp + 0x10]
shl eax, 1
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.11be30b0
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
call fcn.11be3194
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x11bf811f
jmp 0x11bf8184
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.11be30b0
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x11bf817c
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
push edx
call fcn.11bf8010
add esp, 0x10
test eax, eax
je 0x11bf817c
mov eax, dword [ebp + 0xc]
push eax
call fcn.11be31f9
add esp, 4
mov dword [ebp - 4], eax
xor ecx, ecx
jne 0x11bf80dd
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x11bf8920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x11bf8965
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x11bf8999
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x11bf89b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x11bf89f9
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x11bf8a89
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], 2
jb 0x11bf8a7f
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.11be3194
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x11bf8a7f
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

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 0x4044ff
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x404542
push 0x19
push 0x4019855
push 6
call fcn.00407107
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404559
mov eax, 0x4fc710
jmp 0x404608
inc dword [ebp - 4]
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x505a9d]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.0040119d
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.00408630
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4045a7
push ebx
call fcn.004070fb
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00404620
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4045e9
push 0x136
push 0x4019855
push 6
call fcn.00407107
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x404603
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00407101
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x404608
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x404619
push ebx
call fcn.004070fb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x404b33
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404b7a
push 0x19
push 0x4018d7e
push 6
call fcn.00407107
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
mov eax, 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404bb5
push 0x46
push 0x4018d7e
push 6
call fcn.00407107
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push 1
push dword [ebp - 4]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404bec
push 0x6a
push 0x4018d7e
push 6
call fcn.00407107
add esp, 0xc
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404c18
push 0xa7
push 0x4018d7e
push 6
call fcn.00407107
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 4]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404c4f
push 0xc2
push 0x4018d7e
push 6
call fcn.00407107
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x404c57
mov esp, ebp
pop ebp
ret 8
Function at 0x40506b
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x32
push 1
mov ebx, 0x184
call fcn.00408890
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4050b0
push ebx
call fcn.004070fb
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4050c7
mov eax, 0x4242c6
push eax
push 1
mov ebx, 0x130
call fcn.00407f00
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40510d
push 0x73
push 0x4018ce7
push 6
call fcn.00407107
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40513b
mov eax, dword [ebp - 4]
test eax, eax
je 0x405136
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00407101
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x405145
mov eax, 0x4242c6
jmp 0x405145
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405156
push ebx
call fcn.004070fb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x407700
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x407792
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x407784
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40777c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x407745
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x4077a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x4077e1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x4077e1.2
jmp dword [eax*4 + 0x40786c]
mov word [esp + 0x48], di
jmp 0x40781a
mov word [esp + 0x48], 2
jmp 0x40781a
mov word [esp + 0x48], 3
jmp 0x40781a
mov word [esp + 0x48], 4
jmp 0x40781a
mov word [esp + 0x48], 7
jmp 0x40781a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x407864
cmp dword [esp + 0x70], edi
je 0x407850
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x407890
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4078f9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004073f0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x409d10
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x409d2e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x409d23
pop esi
ret

Function at 0x418b1b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x418b5d
call fcn.0041be6b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x418b5d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x418b54
xor eax, eax
jmp 0x418b65
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00418b6b
pop edi
pop esi
pop ebx
ret 4

Function at 0x419af6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41d718
call fcn.0040d418
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041be6b
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x419b35
call fcn.0041be6b
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x419b43
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x419b51
or eax, 0xffffffff
jmp 0x419c39
mov ecx, esi
call fcn.00419a6c
mov dword [ebp - 0x14], eax
call fcn.0041715f
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x419b88
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x419b88
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00417113
push dword [ebp - 0x14]
call fcn.00416c45
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00419804
cmp eax, edi
je 0x419bfb
test byte [esi + 0x24], 0x10
je 0x419bc9
push 4
mov ecx, esi
pop ebx
call fcn.00416645
test ah, 1
je 0x419bc1
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00418c6d
cmp dword [esi + 0x1c], edi
je 0x419bfb
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00416679
jmp 0x419bfb
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x419c0f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x419c28
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x419c28
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00419aa6
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41b9dd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41ba0b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41ba29
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041b943
jmp 0x41ba29
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41ba29
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041b943
test edi, edi
mov eax, edi
jne 0x41ba13
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x44db60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x40be46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x403140
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
mov esi, 1
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 0x84], esi
push 0x4e9014
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00470ea0
cmp dword [ebp - 0x28], esi
jl 0x44de06
lea eax, [ebp - 0x28]
push eax
call fcn.004724b0
mov edi, eax
mov dword [ebp - 0x2c], edx
mov ecx, edi
or ecx, edx
jne 0x44dc12
lea edx, [ebp - 0x28]
push edx
jmp 0x44ddfe
push edx
push edi
mov esi, dword [ebp + 0xc]
fild dword [esi]
call dword [sym.imp.MSVBVM60.DLL___vbaFpCmpCy]
test eax, eax
jge 0x44dc30
mov eax, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaI4Cy]
mov dword [esi], eax
push ebx
mov ecx, dword [esi]
sub ecx, 1
jo 0x44de80
push ecx
push 1
push 0x11
lea edx, [ebp - 0x20]
push edx
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
je 0x44dc87
cmp word [ecx], 1
jne 0x44dc87
mov edi, dword [ecx + 0x14]
neg edi
cmp edi, dword [ecx + 0x10]
jb 0x44dc83
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x34]
mov eax, edi
jmp 0x44dc90
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xc]
add edx, eax
push edx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x44], 0x80020004
mov dword [ebp - 0x4c], 0xa
push esi
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x4c]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call fcn.00471450
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea edx, [ebp - 0x28]
push edx
call fcn.00470e40
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryMove]
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
wait
push 0x44de6a
jmp 0x44de5d
call fcn.00470e40
mov dword [ebp - 0x28], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
wait
push 0x44de6a
jmp 0x44de5d
lea ecx, [ebp - 0x20]
push ecx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x44de90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x40be46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x403168
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x80], ebx
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov edx, 0x41abec
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x70], 0x6011
lea ecx, [ebp - 0x70]
push ecx
call fcn.00454300
mov dword [ebp - 0x8c], eax
xor esi, esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
cmp esi, dword [ebp - 0x8c]
jg 0x44e018
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x44df64
cmp word [ecx], 1
jne 0x44df64
mov ebx, esi
sub ebx, dword [ecx + 0x14]
cmp ebx, dword [ecx + 0x10]
jb 0x44df5e
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
xor ebx, ebx
jmp 0x44df6d
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
add edx, eax
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x70], 0x4011
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcHexVarFromVar]
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov dword [ebp - 0x78], 0x416f68
mov dword [ebp - 0x80], 8
mov eax, dword [ebp - 0x24]
push eax
push 2
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcRightCharBstr]
mov edx, eax
lea ecx, [ebp - 0x34]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x4c]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x18
mov eax, 1
add eax, esi
jo 0x44e14a
mov esi, eax
jmp 0x44df22
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x44e134
jmp 0x44e12a
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
Function at 0x402948
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebp, esp
push eax
sub esp, 4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, 0x9f
jae 0x40297b
mov eax, dword [ebp - 8]
shl eax, 2
lea edi, [eax + 0xa19172]
xor eax, eax
mov al, 3
mov byte [edi], al
inc dword [ebp - 8]
jmp 0x402957
call sub.KERNEL32.dll_GetCommandLineA
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx eax, byte [ecx]
test eax, eax
je 0x40299f
mov ecx, dword [ebp - 8]
movzx eax, byte [ecx]
cmp al, 0x20
je 0x40299f
inc dword [ebp - 8]
jmp 0x402983
mov eax, dword [ebp - 8]
mov esp, ebp
pop edi
pop esi
pop ebp
pop ebx
ret 0
Function at 0x1000ee43
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000ee82
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ee82
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ee82
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000ee82
cmp dword [ecx + 0x74], 0xe
jbe 0x1000ee82
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret