joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52ca24
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x20], ecx
push ebx
call fcn.0052c9fc
pop ecx
lea eax, [ebx + 0x6c]
mov ebx, eax
xor ecx, ecx
mov eax, ecx
xor edx, edx
mov esi, eax
and eax, 1
dec eax
inc edx
not eax
shr esi, 1
and eax, 0xedb88320
xor esi, eax
cmp edx, 8
mov eax, esi
jl 0x52ca4d
mov dword [ebx], eax
inc ecx
add ebx, 4
cmp ecx, 0x100
jb 0x52ca49
pop esi
pop ebx
pop ebp
ret

Function at 0x53036c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, 0x100
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
or ebx, 0x100
add edi, edi
mov eax, ebx
mov edx, esi
mov ecx, ebx
shr ecx, 8
and edx, edi
shr eax, 7
add edx, esi
add edx, ecx
and eax, 1
push eax
add edx, edx
add edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005302d4
add esp, 0xc
add ebx, ebx
mov edx, ebx
xor edx, edi
not edx
and esi, edx
cmp ebx, 0x10000
jb 0x530383
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x53042c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 0xc]
xor edx, edx
or eax, 0x100
mov ecx, eax
shr ecx, 8
mov ebx, dword [ebp + 8]
movzx ecx, word [ebx + ecx*2]
mov ebx, eax
shr ebx, 7
and ebx, 1
neg ebx
and ebx, 0x7ff
xor ecx, ebx
sar ecx, 4
mov ebx, dword [ebp + 0x10]
add edx, dword [ebx + ecx*4]
add eax, eax
cmp eax, 0x10000
jb 0x53043a
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x530470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
or eax, 0x100
mov edx, 0x100
add ecx, ecx
mov esi, edx
mov edi, eax
and esi, ecx
shr edi, 8
add esi, edx
add esi, edi
mov edi, dword [ebp + 8]
movzx esi, word [edi + esi*2]
mov edi, eax
add eax, eax
shr edi, 7
and edi, 1
neg edi
and edi, 0x7ff
xor esi, edi
mov edi, dword [ebp + 0x14]
sar esi, 4
add ebx, dword [edi + esi*4]
mov esi, eax
xor esi, ecx
not esi
and edx, esi
cmp eax, 0x10000
jb 0x530488
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x53055c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
shl edi, cl
or eax, edi
xor edx, edx
cmp eax, 1
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
je 0x5305a2
mov ecx, eax
mov edi, eax
shr ecx, 1
and edi, 1
neg edi
movzx ecx, word [ebx + ecx*2]
and edi, 0x7ff
xor ecx, edi
sar ecx, 4
shr eax, 1
add edx, dword [esi + ecx*4]
cmp eax, 1
jne 0x53057e
mov eax, edx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5305ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 4], eax
mov eax, 1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x5305f8
mov esi, dword [ebp + 8]
mov edx, ebx
and edx, 1
movzx esi, word [esi + eax*2]
mov edi, edx
add eax, eax
neg edi
and edi, 0x7ff
xor esi, edi
mov edi, dword [ebp + 0x14]
sar esi, 4
shr ebx, 1
mov esi, dword [edi + esi*4]
add dword [ebp - 4], esi
or edx, eax
mov eax, edx
dec ecx
test ecx, ecx
jne 0x5305c7
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x595f50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x10c000]
mov dword [edi + 0x15b1c8], 0x5d75039b
push edi
or ebp, 0xffffffff
jmp 0x595f7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x595f81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x595f70
mov eax, 1
add ebx, ebx
jne 0x595f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x595fa4
jne 0x595fb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x595fb4
dec eax
add ebx, ebx
jne 0x595fb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x595f88
xor ecx, ecx
sub eax, 3
jb 0x595fcc
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x59603e
sar eax, 1
mov ebp, eax
jmp 0x595fd7
add ebx, ebx
jne 0x595fd7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x595fe4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x596008
inc ecx
add ebx, ebx
jne 0x595ff4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x595fe9
jne 0x596005
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x595fe9
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x596028
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x596019
jmp 0x595f76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x596028
add edi, ecx
jmp 0x595f76
pop esi
mov edi, esi
mov ecx, 0x8efc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x596046
cmp byte [edi], 0x1e
jne 0x596046
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x59604b
lea edi, [esi + 0x192000]
mov eax, dword [edi]
or eax, eax
je 0x5960c3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x198f7c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19906c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x596078
mov ecx, edi
jns 0x5960a7
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x199070]
or eax, eax
je 0x5960bd
mov dword [ebx], eax
add ebx, 4
jmp 0x596095
call dword [esi + 0x199074]
popal
jmp 0x4015a8
Function at 0x401110
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
push str.AccessISFwUpdater.dll
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
call edi
cmp eax, ebx
je 0x401168
push eax
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40116b
mov dword [esi + 4], ebx
push str.VideoOCR.dll
call edi
cmp eax, ebx
mov dword [esi], eax
je 0x401257
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.voInitialiseReader
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.voStartRead
push eax
call edi
mov ecx, dword [esi]
push str.voStopRead
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.voQueryReaderState
push edx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.voTerminate
push eax
call edi
mov ecx, dword [esi]
push str.voGetVideoVersion
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi]
push str.voGetSerialNumber
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi]
push str.voSethWnd
push eax
call edi
mov ecx, dword [esi]
push str.voRegisterImageCallback
push ecx
mov dword [esi + 0x24], eax
call edi
mov edx, dword [esi]
push str.voGetImage
push edx
mov dword [esi + 0x2c], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi]
push str.voSetSounder
push eax
call edi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x401257
mov ecx, dword [esi]
push str.voGetFPGAFirmwareVersion
push ecx
call edi
mov edx, dword [esi]
push str.voGetCameraFirmwareVersion
push edx
mov dword [esi + 0x34], eax
call edi
mov dword [esi + 0x38], eax
mov eax, dword [esi]
push str.voProgramFirmware
push eax
call edi
mov ecx, dword [esi]
push str.voEnterFirmwareUpdateMode
push ecx
mov dword [esi + 0x3c], eax
call edi
mov edx, dword [esi]
push str.voExitFirmwareUpdateMode
push edx
mov dword [esi + 0x40], eax
call edi
mov dword [esi + 0x44], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x401ed0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
xor esi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x118]
lea eax, [esp + 8]
push eax
push 0x20019
push esi
push ecx
push 0x80000002
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f68
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
push eax
push esi
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401f5d
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x120]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x10c
ret

Function at 0x401f80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push 0x80000002
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401feb
mov ecx, dword [esp + 0x14]
lea edx, [esp + 8]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x14]
push eax
push esi
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401fe0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 4]
mov esi, 1
mov dword [eax], ecx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x4027d0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x244
lea eax, [esp]
push esi
push eax
push ecx
push 0x40513c
call fcn.00401ad0
add esp, 0xc
lea edx, [esp + 0x108]
lea eax, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40284f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x13c]
push ecx
push edx
push 0x40513c
call fcn.00401ad0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call edi
lea ecx, [esp + 0x110]
push ecx
push esi
call ebx
test eax, eax
jne 0x402816
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
pop esi
add esp, 0x244
ret
Function at 0x4028a0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x550
mov ecx, 0x41
xor eax, eax
push ebx
push edi
lea edi, [esp + 0x454]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x210]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x10c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x55c]
lea eax, [esp + 0x454]
push eax
push ecx
push 0x405248
call fcn.00401ad0
add esp, 0xc
lea edx, [esp + 0x314]
lea eax, [esp + 0x454]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a55
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
test byte [esp + 0x31c], 0x10
jne 0x402a1b
mov al, byte [esp + 0x10]
lea edi, [esp + 0x348]
test al, al
jne 0x402968
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402a1b
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x218]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x218]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jge 0x4029f4
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x405248
call fcn.00401ad0
add esp, 0xc
lea edx, [esp + 0x114]
push edx
call ebp
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402a1b
lea ecx, [esp + 0x114]
lea edx, [esp + 0x218]
push ecx
push edx
push 0x405248
call fcn.00401ad0
add esp, 0xc
lea eax, [esp + 0x114]
push eax
call ebp
lea ecx, [esp + 0x31c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402925
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x568]
lea eax, [esp + 0x10]
push edx
push eax
push 0x405248
call fcn.00401ad0
add esp, 0xc
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x550
ret
Function at 0x402a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403060
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString_1
cmp ebp, 2
mov byte [esp + 0x2c], 1
jle 0x402ac5
lea eax, [esp + 0x34]
push str.000000
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
jmp 0x402b2a
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, 6
sub ecx, ebp
test ecx, ecx
jle 0x402afd
mov edx, ecx
mov eax, 0x30303030
lea edi, [esp + 0x10]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebp
lea edi, [esp + 0x16]
mov eax, ecx
sub edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x4055e4
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov edx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push 6
mov dword [esp + 0x1c], eax
push ecx
mov dword [esp + 0x24], eax
push edx
mov dword [esp + 0x2c], eax
call fcn.00402be0
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x34]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
mov byte [esp + 0x2c], 0
test eax, eax
pop edi
pop esi
pop ebp
lea ecx, [esp]
jge 0x402baf
call fcn.00402cc0
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.00402cc0
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
call fcn.00402cc0
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.00402cc0
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x401f70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401fbb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401fb4
test esi, esi
je 0x401fb4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f90
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4021a0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4021f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4022c8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40222e
cmp eax, 4
jne 0x402250
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40223e
cmp edx, 4
je 0x40223e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004021a0
Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x441ee7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x441ef6
pop dword [ebp - 0x50]
mov eax, 0x441ef6
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x52910
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x2824f7db
sub ecx, 0x2824a54e
xor esi, esi
add esi, eax
mov edi, 0x2528a61b
add edi, 0xdb1fd7e5
add edi, dword [ebp - 0x50]
mov ebx, 0x4f93bb09
add ebx, 0x8d5393cd
mov dword [ebp - 0xc], 0x8242a180
mov edx, dword [edi]
add dword [ebp - 0x38], esi
add edx, ebx
xor dword [ebp - 0x4c], 0xde8cf8f8
mov dword [esi], edx
add dword [ebp - 0x34], 0x6b625415
add esi, 0x84a9a21d
sub esi, 0x84a9a219
add edi, 0xe2a92823
sub edi, 0xe2a9281f
loop 0x441f4d
add eax, 0x127b0a44
add eax, 0xed8632c3
xor ebx, ebx
add ebx, eax
add eax, 0xfd3ba20b
sub eax, 0xfd3ba206
mov ecx, 0x80b3b968
sub ecx, 0x8073b968
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10192d41
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x10192d50
pop dword [ebp - 4]
mov eax, 0x21ee3d58
add eax, 0xee2aeff8
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x4a3fedba
add dword [ebp - 0x14], 0x4125791
mov dword [ebp - 0x10], 0xc764f5d2
sub dword [ebp - 0x10], 0x9531a98d
mov dword [ebp - 0xc], 0x8325ca0f
add dword [ebp - 0xc], 0xc9267a1f
mov dword [ebp - 8], 0x1864bbf2
add dword [ebp - 8], 0xe79b440e
lea eax, [ebp - 0x14]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xcc67ada4
add dword [ebp - 0x14], 0xa80abbb2
mov dword [ebp - 0x10], 0x27dd8a32
sub dword [ebp - 0x10], 0xe67128bd
mov dword [ebp - 0xc], 0xc678cdf2
sub dword [ebp - 0xc], 0x63096186
mov dword [ebp - 8], 0xbe82c8cf
sub dword [ebp - 8], 0xbe82c8cf
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0xbec4881b
add eax, 0x51587a1d
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x36136
push 0
call eax
mov ecx, 0x5e9122d4
add ecx, 0xa16f2391
mov esi, eax
mov edi, 0x101e8e00
add edi, dword [ebp - 4]
mov ebx, 0x64f90c40
add ebx, 0xdaf907b9
mov edx, dword [edi]
xor edx, ebx
mov dword [esi], edx
add esi, 4
add edi, 4
loop 0x10192e67
add eax, 0x10c67
mov ebx, eax
add eax, 0x3ca5cb4f
add eax, 0xc35a34b6
mov ecx, 0xf760ba52
add ecx, 0x189f45ae
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x40c393
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 0x40c430
push ebx
push esi
call fcn.0040c35c
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.0040c2f0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c3dd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c42f
push edi
push eax
call fcn.0040cfb0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c3fd
call fcn.0040ae51
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c42e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c2f0
add esp, 0x20
test eax, eax
jne 0x40c41c
push edi
call fcn.0040ae51
jmp 0x40c424
push ebx
call fcn.0040ae51
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 0x40d72d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ad30
push 0x44ad28
push str.FlsAlloc
push 0x1f
call fcn.0040d5ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d761
push dword [ebp + 8]
mov ecx, esi
call dword [0x42114c]
call esi
jmp 0x40d767
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d7ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ad40
push 0x44ad38
push str.FlsGetValue
push 0x21
call fcn.0040d5ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d7e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42114c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d7ea
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ad48
push 0x44ad40
push str.FlsSetValue
push 0x22
call fcn.0040d5ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d824
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42114c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]