joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001dc80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x1001dcb2
jl 0x1001dca5
test ecx, ecx
jne 0x1001dcb2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1001dd72
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.1001f240
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1001dd1e
jg 0x1001dcdd
test esi, esi
je 0x1001dd1e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x1001dcf5
mov eax, dword [esp + 0x10]
jl 0x1001dcef
cmp eax, esi
jae 0x1001dcf5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1004ef20
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1001dd3f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1001dd5b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x1001dcc4
jl 0x1001dd5b
test ecx, ecx
jne 0x1001dcc4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x1001ddb6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x1001ddb6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.1004ef20
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x1001de27
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1001dddc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x1001de12
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10056575
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1001de27
cmp edi, eax
ja 0x1001ddf0
test edi, edi
je 0x1001de27
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10056575
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001fa20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e5d0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1008f180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1004d760
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1004c4f5
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.1001f9c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001fb80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e61d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1008f180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.100225c0
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], 0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push eax
call fcn.10022dc0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov byte [ebp - 4], 0
mov bl, al
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1001fc38
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x1001fc38
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x1001fc51
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.10022870
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002e930
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f7ed
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1008f180]
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 - 0x44], esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x1002ea27
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x44], eax
test eax, eax
jle 0x1002ea27
xor ecx, ecx
add eax, 1
push 0
setb cl
neg ecx
or ecx, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.10032d70
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0xf
cmova ecx, dword [ebp - 0x40]
inc eax
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jle 0x1002e9f0
push 0
push eax
lea ecx, [ebp - 0x40]
call fcn.100236e0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x40]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [esi + 0x10], xmm0
jmp 0x1002ea6b
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1002ea27
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ea1d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ea88
push ecx
push edx
call fcn.1004d752
add esp, 8
lea edi, [ebp - 0x13]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 0x44], ecx
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x44]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [edi], al
mov eax, edx
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1002ea35
push ecx
lea eax, [ebp - 0x13]
mov ecx, esi
push eax
push edi
call fcn.1000d980
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.1004d713
mov esp, ebp
pop ebp
ret
call fcn.1005260f
int3
Function at 0x10037820
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070bfe
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x1008f180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
xorps xmm0, xmm0
movups xmmword [edi + 4], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.CMD_MAP.0
movups xmmword [edi + 0x1c], xmm0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
movups xmmword [edi + 0x34], xmm0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0xf
mov byte [edi + 0x34], 0
movups xmmword [edi + 0x4c], xmm0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0xf
mov byte [edi + 0x4c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0xe]
mov dword [ebp - 0x14], 0x2d3d3d2d
mov word [ebp - 0x10], 0x3e7c
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
sub eax, ecx
je 0x1003791a
cmp eax, 0x7fffffff
ja 0x1003792d
push eax
lea ecx, [edi + 0x64]
call fcn.1000d700
mov esi, dword [edi + 0x64]
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0xe]
sub eax, ecx
push eax
mov dword [ebp - 0x18], eax
mov eax, ecx
push eax
push esi
call fcn.1004ef20
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, esi
mov dword [edi + 0x68], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1000d6f0
int3

Function at 0x10037b50
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070bfe
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x1008f180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
xorps xmm0, xmm0
movups xmmword [edi + 4], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.REC_MAP.0
movups xmmword [edi + 0x1c], xmm0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
movups xmmword [edi + 0x34], xmm0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0xf
mov byte [edi + 0x34], 0
movups xmmword [edi + 0x4c], xmm0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0xf
mov byte [edi + 0x4c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0xe]
mov dword [ebp - 0x14], 0x2d3d3d2d
mov word [ebp - 0x10], 0x3e7c
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
sub eax, ecx
je 0x10037c4a
cmp eax, 0x7fffffff
ja 0x10037c5d
push eax
lea ecx, [edi + 0x64]
call fcn.1000d700
mov esi, dword [edi + 0x64]
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0xe]
sub eax, ecx
push eax
mov dword [ebp - 0x18], eax
mov eax, ecx
push eax
push esi
call fcn.1004ef20
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, esi
mov dword [edi + 0x68], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1000d6f0
int3
Function at 0x1003e550
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100716db
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x1008f180]
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
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x1003e63f
cmp dword [esi + 0x34], 0xf
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], ax
lea eax, [esi + 0x20]
jbe 0x1003e5b2
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
call fcn.10055355
cmp dword [esi + 0x4c], 0xf
lea edi, [esi + 0x38]
mov dword [ebp - 0x28], eax
jbe 0x1003e5d2
mov edi, dword [edi]
mov dword [eax], 0
lea eax, [ebp - 0x24]
push 0xa
push eax
push edi
call fcn.10055226
add esp, 0xc
mov ecx, eax
cmp edi, dword [ebp - 0x24]
je 0x1003e682
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0x22
je 0x1003e68c
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1003e696
mov byte [esi + 0x8c], 1
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.1004d713
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.100167c0
push eax
mov edx, 0x1007e258
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.1000d470
add esp, 4
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0x34]
push eax
call fcn.1004eeb0
push str.invalid_stoi_argument
call fcn.1004aaa1
push str.stoi_argument_out_of_range
call fcn.1004aae1
mov byte [esi + 0x6c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.100167c0
push eax
mov edx, 0x1007e258
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.1000d470
add esp, 4
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0x40]
push eax
call fcn.1004eeb0
int3
Function at 0x1003f3c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071877
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x1008f180]
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 esi, ecx
mov eax, dword [0x100928f8]
cmp byte [eax + 0x25], 0
je 0x1003f465
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esi]
cmp edi, 0xffffffff
je 0x1003f465
cmp byte [esi + 0x8c], 0
je 0x1003f465
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.1004f4a0
add esp, 0xc
lea eax, [ebp - 0x410]
push 0
push 0x400
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1003f481
push 0
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [esi]
call ebx
test eax, eax
jle 0x1003f4e6
mov eax, dword [0x100928f8]
cmp byte [eax + 0x25], 0
jne 0x1003f401
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.1004d713
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x488]
call fcn.100167c0
push eax
mov edx, str.2345
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4a0]
call fcn.1000d470
push 0x1007d4f0
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4b8]
call fcn.10011610
add esp, 8
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0x428]
push eax
call fcn.1004eeb0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x440]
call fcn.100167c0
push eax
mov edx, str.2345
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x458]
call fcn.1000d470
push 0x1007d4b4
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x470]
call fcn.10011610
add esp, 8
push eax
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 5
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0x41c]
push eax
call fcn.1004eeb0
int3
Function at 0x10041990
Capabilities:
Decode data using base64 via winapi
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071c15
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1008f180]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x38]
push eax
call fcn.10016860
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor esi, esi
movq qword [ebp - 0x20], xmm0
xor edi, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
push edi
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x24], 0xf
lea eax, [ebp - 0x38]
mov ebx, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
cmova eax, dword [ebp - 0x38]
push ecx
push edi
push 1
push edi
push eax
mov dword [ebp - 0x14], edi
call ebx
test eax, eax
je 0x10041a8d
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10041a2a
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1002b960
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
cmp dword [ebp - 0x24], 0xf
lea ecx, [ebp - 0x14]
push 0
push 0
push ecx
push esi
push 1
lea eax, [ebp - 0x38]
cmova eax, dword [ebp - 0x38]
push 0
push eax
call ebx
test eax, eax
je 0x10041a8d
lea eax, [esi + 5]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffb
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x10041a8d
push 8
call fcn.1004d760
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x44]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [ebx], eax
jmp 0x10041a8f
xor ebx, ebx
test esi, esi
je 0x10041ab9
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x10041aaf
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10041b09
push edi
push esi
call fcn.1004d752
add esp, 8
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x10041ae9
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10041adf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10041b09
push ecx
push edx
call fcn.1004d752
add esp, 8
mov eax, ebx
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.1004d713
mov esp, ebp
pop ebp
ret 4
call fcn.1005260f
int3
Function at 0x10049f00
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100726ed
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1008f180]
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, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov eax, edi
cmp dword [edi + 0x14], 0xf
mov dword [ebp - 0x2c], 0
jbe 0x10049f67
mov eax, dword [edi]
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 1
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
cmp edx, eax
ja 0x10049f9d
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edx
cmova eax, dword [ebp - 0x28]
mov byte [eax + edx], 0
jmp 0x10049fec
mov ecx, edx
sub ecx, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], ecx
cmp ecx, eax
ja 0x10049fd9
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x34]
cmova eax, dword [ebp - 0x28]
push ecx
add esi, eax
mov dword [ebp - 0x18], edx
push 0
push esi
call fcn.1004f4a0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x38]
jmp 0x10049fec
push 0
push ecx
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10023580
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 0xf
jbe 0x10049fff
mov edi, dword [edi]
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
push eax
push 1
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmova ecx, edx
mov eax, dword [ebp - 0x14]
add edi, ecx
cmp eax, 0xf
mov dword [esi], 0
lea ecx, [ebp - 0x28]
mov dword [esi + 4], 0
cmova ecx, edx
mov dword [esi + 8], 0
mov dword [ebp - 0x30], ecx
sub edi, ecx
je 0x1004a07a
cmp edi, 0x7fffffff
ja 0x1004a0c5
push edi
mov ecx, esi
call fcn.1000d700
mov esi, dword [esi]
push edi
push dword [ebp - 0x30]
push esi
call fcn.1004ef20
mov edx, dword [ebp - 0x28]
lea eax, [edi + esi]
mov esi, dword [ebp - 0x38]
add esp, 0xc
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1004a0a6
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a09c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a0ca
push ecx
push edx
call fcn.1004d752
add esp, 8
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.1004d713
mov esp, ebp
pop ebp
ret 8
call fcn.1000d6f0
call fcn.1005260f
int3
Function at 0x1004a0d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1394
call fcn.1004e880
mov eax, dword [0x1008f180]
xor eax, esp
mov dword [esp + 0x1390], eax
push ebx
push esi
push edi
call fcn.1004cf28
mov dword [esp + 0x1394], 0xffffffff
mov ecx, 1
mov dword [esp + 0x14], eax
nop word [eax + eax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [esp + ecx*4 + 0x14], eax
inc ecx
cmp ecx, 0x270
jb 0x1004a110
mov eax, dword [ebp + 8]
cmp eax, 0x80000000
mov dword [esp + 0x10], 0x270
lea ecx, [eax - 0x80000000]
lea ebx, [eax - 0x80000000]
mov eax, dword [ebp + 0xc]
cmovae ebx, ecx
cmp eax, 0x80000000
lea ecx, [eax - 0x80000000]
lea esi, [eax - 0x80000000]
cmovae esi, ecx
lea ecx, [esp + 0x10]
sub esi, ebx
cmp esi, 0xffffffff
jne 0x1004a176
call fcn.1004a6b0
mov ecx, eax
jmp 0x1004a1b1
inc esi
call fcn.1004a6b0
mul esi
mov dword [esp + 0xc], eax
mov ecx, edx
cmp eax, esi
jae 0x1004a1b1
mov eax, esi
xor edx, edx
neg eax
div esi
mov edi, edx
cmp dword [esp + 0xc], edi
jae 0x1004a1b1
nop dword [eax + eax]
lea ecx, [esp + 0x10]
call fcn.1004a6b0
mul esi
mov ecx, edx
cmp eax, edi
jb 0x1004a1a0
add ecx, ebx
cmp ecx, 0x80000000
pop edi
pop esi
lea edx, [ecx - 0x80000000]
lea eax, [ecx - 0x80000000]
mov ecx, dword [esp + 0x1394]
cmovae eax, edx
pop ebx
xor ecx, esp
call fcn.1004d713
mov esp, ebp
pop ebp
ret 8