joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c31a5
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
lea eax, [ebp - 0x26]
mov word [eax], 0x4b
mov word [eax + 2], 0x45
mov word [eax + 4], 0x52
mov word [eax + 6], 0x6e
mov word [eax + 8], 0x65
mov word [eax + 0xa], 0x4c
mov word [eax + 0xc], 0x33
mov word [eax + 0xe], 0x32
mov word [eax + 0x10], 0x2e
mov word [eax + 0x12], 0x64
mov word [eax + 0x14], 0x6c
mov word [eax + 0x16], 0x6c
mov word [eax + 0x18], 0
mov word [ebp - 8], 0x18
mov word [ebp - 6], 0x1e
lea eax, [ebp - 0x26]
mov dword [ebp - 4], eax
xor ecx, ecx
mov ecx, dword fs:[0x18]
mov esi, dword [ecx + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
lea edi, [esi + 0x1c]
push edi
lea eax, [ebp - 8]
push eax
call fcn.004c3149
cmp eax, 1
mov ebx, esi
mov esi, dword [esi + 4]
jne 0x4c3222
mov eax, dword [ebx + 8]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
add ebx, dword [ebx + 0x3c]
push dword [ebx + 0x78]
pop dword [ebp - 4]
mov ebx, dword [ebp + 8]
add ebx, dword [ebp - 4]
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
add esi, dword [ebp + 8]
jmp 0x4c3315
push ecx
mov dword [ebp - 8], ecx
mov eax, dword [esi + ecx*4 - 4]
add eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004c325c
or eax, eax
jne 0x4c3313
mov edi, dword [ebx + 0x24]
add edi, dword [ebp + 8]
mov ecx, dword [ebp - 8]
dec ecx
movzx eax, word [edi + ecx*2]
mov edi, dword [ebx + 0x1c]
add edi, dword [ebp + 8]
shl eax, 2
add edi, eax
mov eax, dword [edi]
add eax, dword [ebp + 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
pop ecx
dec ecx
or ecx, ecx
jne 0x4c32d5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4c8d26
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
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 dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4e591c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004cfd85
mov dword [ebp - 0x14], eax
cmp dword [0x6ecea4], esi
jne 0x4e5a0f
push 0x800
push esi
push 0x642ab4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4e599c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4e5aef
push esi
push esi
push 0x642ab4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4e5aef
push 0x642acc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e5aef
push eax
call ebx
push 0x642ad8
push edi
mov dword [0x6ecea4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x6ecea8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x642afc
push edi
mov dword [0x6eceac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6eceb4], eax
test eax, eax
je 0x4e5a0c
push 0x642b18
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6eceb0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4e5a34
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4e5a27
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4e5a49
push 4
pop eax
jmp 0x4e5af1
cmp dword [ebp - 0x14], esi
je 0x4e5a49
push dword [0x6ecea4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4e5a2e
mov eax, dword [0x6eceb0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4e5aa7
cmp dword [0x6eceb4], edi
je 0x4e5aa7
push eax
call ebx
push dword [0x6eceb4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4e5aa7
test eax, eax
je 0x4e5aa7
call ecx
test eax, eax
je 0x4e5a9c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4e5a9c
test byte [ebp - 8], 1
jne 0x4e5aa7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4e5ad7
mov eax, dword [0x6ecea8]
cmp eax, edi
je 0x4e5ad4
push eax
call ebx
test eax, eax
je 0x4e5ad4
call eax
mov esi, eax
test esi, esi
je 0x4e5ad4
mov eax, dword [0x6eceac]
cmp eax, edi
je 0x4e5ad4
push eax
call ebx
test eax, eax
je 0x4e5ad4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x6ecea4]
call ebx
test eax, eax
je 0x4e5aef
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4e5af1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c392d
mov esp, ebp
pop ebp
ret
Function at 0x4fdbb0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x4fdbd5
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
dec esi
jne 0x4fdbc6
pop edi
movzx eax, dl
pop esi
ret

Function at 0x4fdd50
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004dbc70
mov eax, dword [0x6d45e0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4fddb4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4fddb4
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
call fcn.004cbfa0
add eax, 0x40
push eax
call fcn.00614c6a
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004c392d
add esp, 0x108
ret
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
lea eax, [esp + 0xc]
push 0xff
push eax
call fcn.00614d98
add esp, 0x10
mov byte [esp + 0x103], 0
call fcn.004fdc10
test eax, eax
jle 0x4fde39
push esi
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x4fde23
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004c392d
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004c392d
add esp, 0x108
ret

Function at 0x503450
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x50353c
push edi
mov edi, dword [esp + 0x14]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x5034ce
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x6485d8]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x6485d8]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x6485d8]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 0x6485d8]
mov byte [eax + 3], cl
jmp 0x50351f
shl edx, 0x10
cmp esi, 2
jne 0x5034de
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x6485d8]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x6485d8]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x50350b
lea ecx, [esi + 0x3c]
jmp 0x503518
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + 0x6485d8]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x503470
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x52abf0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.004dbc70
mov eax, dword [0x6d45e0]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x52ac56
cmp edi, dword [esi]
je 0x52ac4d
test ebp, ebp
je 0x52acd0
test ebx, ebx
js 0x52acd0
mov eax, 1
mov dword [esi], edi
jmp 0x52ac5c
mov edi, dword [esi]
test edi, edi
je 0x52acd0
test ebp, ebp
je 0x52adeb
push edi
call fcn.00508000
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x52ac90
push str.j____int_sizeof_ctx__key_
push 0x6a
push str..cryptohmachmac.c
call fcn.004fde70
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x52aceb
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.00515e40
add esp, 0xc
test eax, eax
je 0x52acd0
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.00515ff0
add esp, 0xc
test eax, eax
je 0x52acd0
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.00515da0
add esp, 0xc
test eax, eax
jne 0x52ad07
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c392d
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x52acd0
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.004cf380
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x52ad2a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.004cf9d0
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x52ad30
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.00515e40
add esp, 0xc
test eax, eax
je 0x52acd0
push edi
call fcn.00508000
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00515ff0
add esp, 0x10
test eax, eax
je 0x52acd0
xor ecx, ecx
jmp 0x52ad80
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x52ad80
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.00515e40
add esp, 0xc
test eax, eax
je 0x52acd0
push edi
call fcn.00508000
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00515ff0
add esp, 0x10
test eax, eax
je 0x52acd0
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.005160c0
add esp, 8
test eax, eax
je 0x52acd0
mov eax, 1
jmp 0x52acd2
test eax, eax
je 0x52adc9
jmp 0x52ad2e
Function at 0x551c40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.004dbc70
mov eax, dword [0x6d45e0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 4], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.00516260
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.005160c0
add esp, 0xc
test eax, eax
je 0x551d42
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00515da0
add esp, 0xc
test eax, eax
je 0x551d42
lea eax, [esp + 0x20]
push eax
call fcn.00516000
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x551d60
push edi
call fcn.0052e5f0
push ebx
push edi
mov dword [esp + 0x28], eax
call fcn.00514920
mov esi, eax
add esp, 0xc
test esi, esi
je 0x551d42
push esi
call fcn.0054b090
add esp, 4
test eax, eax
jle 0x551d42
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.005146d0
add esp, 0x18
test eax, eax
jle 0x551d42
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push esi
call fcn.0054afb0
add esp, 0x14
test eax, eax
jle 0x551d42
mov ecx, dword [esp + 0x18]
mov ebx, 1
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
push esi
call fcn.005148c0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004c392d
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x551d78
cmp dword [edi], edx
je 0x551da2
inc eax
add ecx, 4
cmp eax, 4
jl 0x551d65
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.004fef10
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004c392d
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x551dd6
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.004fef10
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004c392d
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x44]
push dword [esp + 0x20]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c392d
add esp, 0x6c
ret
Function at 0x568a70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x568a87
mov edi, ecx
jmp 0x568a8b
mov edi, ebp
mov ebp, ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 8]
jg 0x568a9b
mov eax, ebx
jmp 0x568aa5
push eax
push ebx
call fcn.00510970
add esp, 8
test eax, eax
jne 0x568aad
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x568acb
mov eax, dword [edi]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [ebx]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x568ab5
cmp esi, dword [edi + 4]
jge 0x568ae0
mov eax, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [edi + 4]
jl 0x568ad0
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
pop esi
test ecx, ecx
jle 0x568b04
mov edx, dword [ebx]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x568b01
dec ecx
test ecx, ecx
jg 0x568af3
mov dword [ebx + 4], ecx
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x5a7250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x10], 0xc
jge 0x5a7262
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6f13f8]
inc eax
mov dword [0x6f13f8], eax
cmp eax, 1
jne 0x5a7287
push 0
call fcn.004c4e88
xor eax, 0xbb40e64e
push eax
call fcn.004c4e78
add esp, 8
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push esi
push edi
push dword [ebp + 8]
call fcn.005a7420
add esp, 0xc
mov dword [ebp + 0x10], 0
call fcn.004c4e57
mov edx, eax
sar edx, 7
push esi
and edx, 0xff
push edi
mov dword [ebp - 4], edx
call fcn.005a7390
push edx
push esi
push edi
mov ebx, eax
call fcn.005a7490
mov ecx, dword [ebp + 0x10]
add esp, 0x14
mov eax, dword [ebp - 4]
xor al, bl
mov byte [ebp + ecx - 0x10], al
inc ecx
mov dword [ebp + 0x10], ecx
cmp ecx, 0xa
jl 0x5a72a4
push esi
push edi
push dword [ebp + 8]
call fcn.005a7420
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
add esp, 0xc
xor edi, edi
sub eax, ecx
mov dword [ebp - 4], eax
lea ebx, [ebx]
mov edx, dword [ebp + 0x14]
push esi
push edx
call fcn.005a7390
movzx ecx, byte [ebp + edi - 0x10]
mov ebx, eax
push ecx
push esi
push edx
call fcn.005a7490
mov eax, dword [ebp - 4]
add esp, 0x14
mov cl, byte [ebp + edi - 0x10]
add eax, edi
xor cl, bl
inc edi
mov byte [ebp + eax - 0x10], cl
cmp edi, 0xa
jl 0x5a7300
mov edx, dword [ebp + 0x14]
push esi
push edx
call fcn.005a7390
mov esi, dword [ebp + 0x1c]
mov ebx, esi
shr ebx, 0x10
movzx ecx, bl
push ecx
push dword [ebp + 0x18]
mov dword [ebp + 0x10], eax
push edx
call fcn.005a7490
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
xor bl, byte [ebp + 0x10]
push edx
push dword [ebp + 0x14]
mov byte [edi + eax], bl
call fcn.005a7390
shr esi, 0x18
mov ebx, eax
push esi
push edx
push dword [ebp + 0x14]
call fcn.005a7490
mov ecx, dword [ebp + 0xc]
add esp, 0x28
mov eax, esi
xor al, bl
mov byte [edi + ecx + 1], al
lea eax, [edi + 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5a7490
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, ecx
xor eax, dword [ebp + 0x10]
and eax, 0xff
shr ecx, 8
mov eax, dword [edx + eax*4]
xor eax, ecx
mov ecx, dword [edi + 8]
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [edx + eax*4]
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], ecx
pop edi
pop ebp
ret
Function at 0x5a74e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x100ac], ebx
je 0x5a7548
cmp dword [edi + 0x7c], ebx
jbe 0x5a7548
mov ecx, 0xffffff5c
lea eax, [edi + 0x100d0]
sub ecx, edi
lea esi, [edi + 0xa4]
mov dword [ebp + 8], ecx
mov edi, edi
mov edx, dword [edi + 0x100dc]
push edx
push eax
call fcn.005a7390
movzx ecx, byte [esi]
mov ebx, eax
push ecx
push edx
lea eax, [edi + 0x100d0]
push eax
call fcn.005a7490
xor byte [esi], bl
add esp, 0x14
mov eax, dword [ebp + 8]
inc esi
add eax, esi
cmp eax, dword [edi + 0x7c]
lea eax, [edi + 0x100d0]
jb 0x5a7510
xor ebx, ebx
mov esi, dword [edi + 0x7c]
lea eax, [edi + 0xa4]
push esi
push eax
push dword [edi + 0x2c]
mov eax, dword [edi + 8]
push dword [edi + 0x1c]
call eax
add esp, 0x10
mov dword [edi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, esi
cmovne ebx, ecx
add dword [edi + 0x100c0], esi
mov ecx, dword [edi + 0x48]
mov eax, ebx
adc dword [edi + 0x100c4], 0
add dword [edi + 0x100c8], ecx
mov dword [edi + 0x48], 0
adc dword [edi + 0x100cc], 0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5ab680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x5ab6a5
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x5ab6bd
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x5ab6ec
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x5ab72e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x5ab802
sub edx, 0x10000
js 0x5ab802
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x5ab714
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x5ab714
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x5ab785
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x5ab782
add edx, 8
jne 0x5ab769
jmp 0x5ab7f3
add edx, 4
test eax, 0xffff
jne 0x5ab792
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x5ab7f3
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x5ab7c6
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x5ab714
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x5ab802
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x5ab714
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x5ab813
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5abe80
Capabilities:
Generate random numbers via winapi

Disassembly:
mov ecx, dword [ecx]
jmp 0x5abff0
push 0xffffffffffffffff
push 0x637bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6d45e0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x6d45e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 8]
push eax
push 4
push dword [esi + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x5ac069
push 0x13
push str.error_while_reading
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
call fcn.00404a10
lea eax, [esp + 0xc]
mov dword [esp + 0x30], 0
push eax
mov ecx, esi
call fcn.005abe90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004c392d
add esp, 0x2c
ret

Function at 0x5abe90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x637b9f
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x6d45e0]
xor eax, esp
mov dword [esp + 0xf0], eax
push esi
push edi
mov eax, dword [0x6d45e0]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x110]
lea eax, [esp + 0xac]
push 0
push 0x50
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [esp + 0xc]
lea ecx, [esp + 0xb0]
mov dword [esp + 0x34], 0xf
add eax, ecx
mov dword [esp + 0x30], 0
push eax
mov eax, ecx
mov byte [esp + 0x24], 0
push eax
lea ecx, [esp + 0x28]
call fcn.004ae3e0
push esi
lea eax, [esp + 0x68]
mov dword [esp + 0x10c], 0
push str.boost::random_device:
push eax
call fcn.00445aa0
push str._Cryptopraphic_Service_Provider
push eax
lea eax, [esp + 0x48]
mov byte [esp + 0x11c], 1
push eax
call fcn.0040bc60
push edi
push eax
lea eax, [esp + 0xb4]
mov byte [esp + 0x128], 2
push eax
call fcn.0040dd80
push 0x69873c
push eax
lea eax, [esp + 0x78]
mov byte [esp + 0x134], 3
push eax
call fcn.0040bc60
lea ecx, [esp + 0x4c]
mov byte [esp + 0x138], 4
push ecx
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.0043d3b0
add esp, 0x3c
cmp dword [eax + 0x14], 0x10
mov byte [esp + 0x108], 5
jb 0x5abfb3
mov eax, dword [eax]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0xc]
push eax
call fcn.004c47e8
push 0x6c77e0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], vtable.std::invalid_argument.0
push eax
call fcn.004cf17d
int3