joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467f00
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x467f11
xor al, al
pop esi
ret 4
push str.ZipArchive_Mapping_File
push 0
push 0
push 4
push 0
call fcn.00467df0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi], eax
je 0x467f0b
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
test eax, eax
mov dword [esi + 4], eax
setne cl
mov al, cl
pop esi
ret 4

Function at 0x468800
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49748c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4b0f34]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.CZipCentralDir.0
call fcn.00465750
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [esp + 0x18], ebx
call fcn.00465750
mov dword [esi + 0x30], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x2c], vtable.CZipArray_class_CZipFileHeader__.0
mov dword [esi + 0x48], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], vtable.CZipArray_struct_CZipCentralDir::CZipFindFast_.0
mov eax, 1
push eax
mov byte [esp + 0x1c], 3
mov byte [esi + 0x40], al
mov byte [esi + 0x41], al
mov byte [esi + 0x58], bl
mov byte [esi + 0x60], bl
call fcn.00466fc0
push eax
call fcn.00467e70
mov dword [esi + 0x5c], eax
add esp, 8
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], 0x8000
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x468f40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x496a18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4b0f34]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
lea ebx, [eax + 0x16]
push 0
push ebx
lea ecx, [esp + 0x1c]
call fcn.00465900
movzx eax, word [esi + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [0x4b0388]
mov dword [esp + 0x10], eax
mov dword [ecx], edx
mov eax, dword [0x4b4680]
test eax, eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], 0
jne 0x468fbb
call fcn.00466fc0
test al, al
mov eax, 0x4655a0
jne 0x468fb6
mov eax, 0x4655d0
mov dword [0x4b4680], eax
push 2
lea ecx, [esi + 0x6c]
push ecx
add edi, 4
push edi
call eax
mov eax, dword [0x4b4680]
mov edi, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x468fef
call fcn.00466fc0
test al, al
mov eax, 0x4655a0
jne 0x468fea
mov eax, 0x4655d0
mov dword [0x4b4680], eax
push 2
lea edx, [esi + 0x6e]
push edx
add edi, 6
push edi
call eax
mov eax, dword [0x4b4680]
mov edi, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x469023
call fcn.00466fc0
test al, al
mov eax, 0x4655a0
jne 0x46901e
mov eax, 0x4655d0
mov dword [0x4b4680], eax
push 2
lea ecx, [esi + 0x70]
push ecx
add edi, 8
push edi
call eax
mov eax, dword [0x4b4680]
mov edi, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x469057
call fcn.00466fc0
test al, al
mov eax, 0x4655a0
jne 0x469052
mov eax, 0x4655d0
mov dword [0x4b4680], eax
push 2
lea edx, [esi + 0x72]
push edx
add edi, 0xa
push edi
call eax
mov eax, dword [0x4b4680]
mov edi, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x46908b
call fcn.00466fc0
test al, al
mov eax, 0x4655a0
jne 0x469086
mov eax, 0x4655d0
mov dword [0x4b4680], eax
push 4
lea ecx, [esi + 0x74]
push ecx
add edi, 0xc
push edi
call eax
mov eax, dword [0x4b4680]
mov edi, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x4690bf
call fcn.00466fc0
test al, al
mov eax, 0x4655a0
jne 0x4690ba
mov eax, 0x4655d0
mov dword [0x4b4680], eax
push 4
lea edx, [esi + 0x78]
push edx
add edi, 0x10
push edi
call eax
mov eax, dword [0x4b4680]
mov edi, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x4690f3
call fcn.00466fc0
test al, al
mov eax, 0x4655a0
jne 0x4690ee
mov eax, 0x4655d0
mov dword [0x4b4680], eax
push 2
lea ecx, [esp + 0x14]
push ecx
add edi, 0x14
push edi
call eax
movzx edx, word [esp + 0x1c]
mov eax, dword [esi + 0xc]
push edx
push eax
mov eax, dword [esp + 0x2c]
add eax, 0x16
push eax
call fcn.00482050
mov ecx, dword [esp + 0x30]
add esp, 0x18
push 1
push ebx
push ecx
mov ecx, dword [esi + 0x24]
call fcn.004665e0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00465930
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x46d750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x497781
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x4b0f34]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call fcn.004649f0
movzx ecx, byte [0x49a779]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
call fcn.0046a2f0
mov edx, dword [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00462b30
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 1
call fcn.00464330
mov ecx, dword [esp + 0xc]
xor edx, edx
test ecx, ecx
setne dl
mov byte [esp + 0x38], 2
mov dword [esp + 0x10], 1
test edx, edx
jne 0x46d7eb
push 0x80004005
call fcn.00401700
mov eax, dword [eax]
push ecx
push eax
call fcn.004834a4
add esp, 8
or edi, 0xffffffff
test eax, eax
je 0x46d813
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00466ea0
add esp, 4
cmp eax, edi
je 0x46d813
xor bl, bl
jmp 0x46d815
mov bl, 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x38], 1
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d83c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x46d925
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00464330
mov eax, dword [eax]
push eax
mov byte [esp + 0x3c], 3
call fcn.0046d750
add esp, 4
test al, al
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d88b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x46d8d2
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call fcn.0046a240
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x38], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x46d8be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00466f70
add esp, 4
test al, al
jne 0x46d925
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], al
call fcn.0046a240
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x38], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x46d8be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x30
ret
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call fcn.0046a240
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [esp + 0x38], edi
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x46d954
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x30
ret
Function at 0x470b1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x470b3e
cmp dword [edi + 0x54], 0
jne 0x470b3e
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0047740b
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00470ae5
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x4748a0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4748d9
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047016d
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00462710
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4763f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x476437
call fcn.0047740b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x476437
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x476452
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00475fab
test ebx, ebx
mov esi, eax
je 0x476450
test edi, edi
je 0x476450
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x47771f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x497ee8
call fcn.00483a01
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x477744
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x477790
call fcn.0047005a
push eax
lea ecx, [ebp - 0x10]
call fcn.00401b50
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047748a
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401860
mov eax, esi
call fcn.00483aa0
ret 8
Function at 0x47d296
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 0x47d2c4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47d2e2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047d200
jmp 0x47d2e2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47d2e2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0047d200
test edi, edi
mov eax, edi
jne 0x47d2cc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4b620c]
test ecx, ecx
je 0x47d3a5
jmp 0x47d295
ret 8

Function at 0x47ec3c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b0f34]
jne 0x47ec46
repz ret
jmp fcn.00485a8c

Function at 0x480a5e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x480a8b
call fcn.00483357
mov dword [eax], esi
call fcn.00483344
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0047f2fc
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x480a67
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x480aba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048336a
pop ecx
call fcn.00483344
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x480ae1
test al, 1
je 0x480ae1
test byte [esp + 0xc], 2
je 0x480ae1
call fcn.00483357
mov dword [eax], 5
call fcn.00483344
mov dword [eax], 0xd
jmp 0x480ab1
xor eax, eax
pop esi
ret
Function at 0x491fd5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00485ceb
xor ebx, ebx
cmp dword [0x4b6f30], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4920aa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x492015
xor eax, eax
jmp 0x49216e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a1908
push edi
call esi
cmp eax, ebx
je 0x49200e
push eax
call fcn.00485c88
mov dword [esp], 0x4a18f8
push edi
mov dword [0x4b6f30], eax
call esi
push eax
call fcn.00485c88
mov dword [esp], 0x4a18e4
push edi
mov dword [0x4b6f34], eax
call esi
push eax
call fcn.00485c88
mov dword [0x4b6f38], eax
lea eax, [ebp - 8]
push eax
call fcn.0047f49e
test eax, eax
pop ecx
pop ecx
je 0x492078
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047f200
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4920aa
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00485c88
cmp eax, ebx
pop ecx
mov dword [0x4b6f40], eax
je 0x4920aa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00485c88
pop ecx
mov dword [0x4b6f3c], eax
mov eax, dword [0x4b6f3c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x492123
cmp dword [0x4b6f40], esi
je 0x492123
push eax
call fcn.00485cf4
pop ecx
call eax
cmp eax, ebx
je 0x4920f0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4b6f40]
call fcn.00485cf4
pop ecx
call eax
test eax, eax
je 0x4920f0
test byte [ebp - 0x18], 1
jne 0x492123
lea eax, [ebp - 0xc]
push eax
call fcn.0047f4d5
test eax, eax
pop ecx
je 0x49210b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047f200
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x49211a
or dword [ebp + 0x10], 0x200000
jmp 0x492154
or dword [ebp + 0x10], 0x40000
jmp 0x492154
mov eax, dword [0x4b6f34]
cmp eax, esi
je 0x492154
push eax
call fcn.00485cf4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x492154
mov eax, dword [0x4b6f38]
cmp eax, esi
je 0x492154
push dword [ebp - 4]
push eax
call fcn.00485cf4
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4b6f30]
call fcn.00485cf4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x496378
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4b0f34]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049630d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00482bd0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4963c7
cmp dword [ebp - 0x1c], 5
jb 0x4963df
jmp 0x4963db
cmp dword [ebp - 0x10], 1
jne 0x4963df
cmp dword [ebp - 0x1c], 4
ja 0x4963db
jne 0x4963df
cmp dword [ebp - 0x18], 0
jbe 0x4963df
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4a22ac
call fcn.004961e1
test eax, eax
jge 0x496400
mov byte [0x4b97e0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047ec3c
add ebp, 0x78
leave
ret
Function at 0x4058f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, edx
mov eax, esi
mov dword [esp + 0x10], ebp
shr eax, 2
xor ebx, ebx
xor edx, edx
mov dword [esp + 0xc], eax
push edi
mov edi, ecx
test eax, eax
je 0x4059ae
cmp eax, 8
jb 0x405983
mov ecx, eax
mov ebx, edi
and ecx, 0xfffffff8
lea eax, [ebp + 0x10]
xorps xmm3, xmm3
xorps xmm2, xmm2
sub ebx, ebp
nop
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [edi + edx*4]
add edx, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [ebx + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edx, ecx
jb 0x405930
mov eax, dword [esp + 0x10]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd ebx, xmm2
cmp edx, eax
jae 0x4059ae
lea ecx, [edx*4]
mov esi, edi
add ecx, ebp
sub esi, ebp
mov ebp, eax
sub ebp, edx
mov edx, eax
mov eax, dword [ecx + esi]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
or ebx, eax
sub ebp, 1
jne 0x405996
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
shl edx, 2
sub esi, edx
mov dword [esp + 0x1c], esi
jne 0x4059c6
pop edi
pop esi
test ebx, ebx
pop ebp
sete al
pop ebx
add esp, 8
ret
add edi, edx
add ebp, edx
mov edx, ebx
mov eax, ebx
shr edx, 0x18
xor ecx, ecx
shr eax, 0x10
or dl, al
mov eax, ebx
shr eax, 8
or dl, al
or dl, bl
mov dword [esp + 0x14], edx
test esi, esi
je 0x405aa0
cmp esi, 0x20
jb 0x405a81
mov ebx, esi
lea eax, [ebp + 0x10]
mov edx, edi
and ebx, 0xffffffe0
sub edx, ebp
xorps xmm3, xmm3
mov dword [esp + 0x10], edx
xorps xmm2, xmm2
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ecx + edi]
add ecx, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + esi - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, ebx
jb 0x405a14
por xmm2, xmm3
mov esi, dword [esp + 0x1c]
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
cmp ecx, esi
jae 0x405aa0
sub edi, ebp
lea eax, [ecx + ebp]
sub esi, ecx
nop dword [eax + eax]
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x405a90
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x4079d0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530c0b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x579258]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 8]
mov dword [esi], vtable.CryptoPP::RandomPool.0
mov byte [eax + 0x21], 1
mov dword [eax + 0x28], 0x20
mov dword [eax + 0x2c], eax
lea eax, [esi + 0x38]
mov dword [ebp - 4], 0
mov byte [eax + 0x11], 1
mov dword [eax + 0x18], 0x10
mov dword [eax + 0x1c], eax
push 0x120
mov byte [ebp - 4], 1
call fcn.004603d4
mov dword [ebp - 0x10], eax
mov byte [eax + 0x111], 1
mov dword [eax + 0x118], 0x3c
lea edx, [eax + 0x18]
mov ecx, edx
neg ecx
and ecx, 0xf
add ecx, edx
mov dword [edx + 0x104], ecx
mov dword [eax], vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.1.0
mov dword [eax + 4], vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.0
mov dword [esi + 0x58], eax
push dword [esi + 0x30]
mov byte [esi + 0x5c], 0
push 0
push dword [esi + 0x34]
call fcn.004ecad0
push dword [esi + 0x50]
push 0
push dword [esi + 0x54]
call fcn.004ecad0
add esp, 0x1c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b790
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530dbd
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], esi
test esi, esi
jne 0x40b7cb
xor ebx, ebx
jmp 0x40b7d6
push esi
call fcn.00405b20
add esp, 4
mov ebx, eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], vtable.CryptoPP::NonblockingRng.0
mov byte [ebp - 4], 1
call fcn.0040b9d0
push ebx
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x40b83a
mov byte [ebp - 4], 0
mov ecx, edi
mov eax, dword [edi]
push esi
push ebx
call dword [eax + 0xc]
xor al, al
mov edi, ebx
mov ecx, esi
rep stosb byte es:[edi], al
push ebx
call fcn.004fdecd
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460412
mov esp, ebp
pop ebp
ret 8
push 0x55d504
lea ecx, [ebp - 0x28]
call fcn.00404f50
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.0040b300
push 0x5763c4
lea eax, [ebp - 0x50]
push eax
call fcn.004ebbb1
int3
Function at 0x40f550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531275
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
push 0x40
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], esi
call fcn.00405420
movups xmm0, xmmword [str.BufferedTransformation:_this_object_doesnt_allow_input]
mov edi, eax
mov dword [ebp - 0x18], 0x37
mov eax, 0x3f
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], eax
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x55d578]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x55d588]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [0x55d598]
mov dword [edi + 0x30], eax
mov ax, word [0x55d59c]
mov word [edi + 0x34], ax
mov al, byte [0x55d59e]
mov byte [edi + 0x36], al
mov byte [edi + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.00405420
mov dword [esi + 0x10], eax
mov ecx, 0x3f
movups xmm0, xmmword [edi]
inc ecx
push ecx
movups xmmword [eax], xmm0
push edi
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [eax + 0x30], xmm0
mov dword [esi + 0x20], 0x37
mov dword [esi + 0x24], 0x3f
mov esi, dword [ebp - 0x2c]
mov dword [esi], vtable.CryptoPP::NotImplemented.0
call fcn.00460404
add esp, 8
mov dword [esi], 0x53dc8c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460412
mov esp, ebp
pop ebp
ret