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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x451620]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c0b3
cmp byte [ebx], 0xa
jne 0x41c0b3
or byte [eax + edi + 0x28], 4
jmp 0x41c0b8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c1b6
mov al, byte [edx]
cmp al, 0x1a
je 0x41c198
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c0e7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c10c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c116
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c0c9
jmp 0x41c1b6
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c193
cmp dword [ebp - 0xc], 0
je 0x41c193
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x451620]
test byte [eax + edi + 0x28], 0x48
je 0x41c16d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c158
mov byte [esi], dl
jmp 0x41c169
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x451620]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c1b6
cmp byte [ebp - 1], 0xa
jne 0x41c17c
cmp esi, ebx
jne 0x41c17c
mov byte [esi], 0xa
jmp 0x41c1b5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cbf3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c1b6
mov byte [esi], 0xd
jmp 0x41c1b5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x451620]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c1b2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c1b6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c1bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x451620]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c202
cmp word [esi], dx
jne 0x41c202
or byte [edi + eax + 0x28], 4
jmp 0x41c207
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41c35a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41c33a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c249
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c27f
cmp eax, edx
jae 0x41c28b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41c221
jmp 0x41c35a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c336
cmp dword [ebp - 0x14], 0
je 0x41c336
mov eax, dword [ebx*4 + 0x451620]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c30e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c2d7
mov word [esi], cx
jmp 0x41c30a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x451620]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x451620]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x451620]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c35a
pop ebx
cmp word [ebp - 4], bx
jne 0x41c31f
cmp esi, dword [ebp + 0xc]
jne 0x41c31f
mov word [esi], bx
jmp 0x41c357
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cbf3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c35a
push 0xd
jmp 0x41c353
mov ecx, dword [ebx*4 + 0x451620]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c351
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c35a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f66d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x44f680]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41f6b8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041f80c
test al, al
jne 0x41f6b2
sub edx, 2
cmp edx, edi
jne 0x41f698
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41f6da
lea eax, [edi + 2]
cmp edx, eax
je 0x41f6da
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041f5b9
add esp, 0x10
jmp 0x41f7d4
push esi
lea ecx, [ebp - 0x255]
call fcn.0041f80c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f71d
push dword [ebp - 0x25c]
jmp 0x41f6ca
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41f75a
cmp word [ebp - 0x226], 0
je 0x41f77b
cmp word [ebp - 0x226], ax
jne 0x41f75a
cmp word [ebp - 0x224], 0
je 0x41f77b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041f5b9
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41f7c7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41f734
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41f7af
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41f7d4
push 0x41f3e9
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00425900
add esp, 0x10
jmp 0x41f7a4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ab49
leave
ret

Function at 0x427250
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42727d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42727d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4039e7
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, 0xfffffff6
xor eax, eax
mov bl, byte [edx + esi + 0xa]
xor bl, byte [ecx + esi + 0xa]
or al, bl
inc esi
jne 0x4039f0
pop esi
pop ebx
ret
Function at 0x409613
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x80
jb 0x4097c7
movdqu xmm4, xmmword [edx]
not ecx
movdqu xmm3, xmmword [edx + 0x10]
movdqu xmm2, xmmword [edx + 0x20]
movdqu xmm1, xmmword [edx + 0x30]
movdqa xmm5, xmmword [0x4ee430]
add edx, 0x40
add eax, 0xffffffc0
movd xmm0, ecx
pxor xmm0, xmm4
movdqa xmm4, xmmword [0x4ee420]
movdqa xmm6, xmm0
movdqa xmm7, xmm0
movdqu xmm0, xmmword [edx]
add eax, 0xffffffc0
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm7, xmm5, 0x11
pxor xmm0, xmm6
movdqu xmm6, xmmword [edx + 0x10]
pxor xmm0, xmm7
movdqa xmm7, xmm3
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm7, xmm4, 0
pxor xmm7, xmm6
movdqu xmm6, xmmword [edx + 0x20]
pxor xmm3, xmm7
movdqa xmm7, xmm2
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm7, xmm4, 0
pxor xmm7, xmm6
movdqu xmm6, xmmword [edx + 0x30]
add edx, 0x40
cmp eax, 0x3f
pxor xmm2, xmm7
movdqa xmm7, xmm1
pclmulqdq xmm1, xmm5, 0x11
pclmulqdq xmm7, xmm4, 0
pxor xmm7, xmm6
pxor xmm1, xmm7
ja 0x409655
movdqa xmm4, xmmword [0x4ee440]
movdqa xmm5, xmmword [0x4ee450]
movdqa xmm6, xmm0
cmp eax, 0x10
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
pxor xmm0, xmm3
movdqa xmm3, xmm0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm4, 0
pxor xmm0, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm2, xmm4, 0
pxor xmm0, xmm2
pxor xmm0, xmm1
jb 0x40975f
movdqu xmm1, xmmword [edx]
movdqa xmm2, xmm0
add eax, 0xfffffff0
pclmulqdq xmm0, xmm5, 0x11
add edx, 0x10
pclmulqdq xmm2, xmm4, 0
cmp eax, 0xf
pxor xmm2, xmm1
pxor xmm0, xmm2
ja 0x409738
movdqa xmm1, xmmword [0x4ee450]
pxor xmm2, xmm2
test eax, eax
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
movss xmm2, xmm0
psrldq xmm0, 4
pclmulqdq xmm2, xmmword [0x4ee460], 0
pxor xmm0, xmm2
pxor xmm2, xmm2
movss xmm2, xmm0
pclmulqdq xmm2, xmmword [0x4ee470], 0x10
pblendw xmm2, xmm1, 0xfc
pclmulqdq xmm2, xmmword [0x4ee480], 0
pxor xmm2, xmm0
pextrd ecx, xmm2, 1
not ecx
je 0x4097d1
push eax
call fcn.004094be
add esp, 4
ret
mov eax, ecx
ret
Function at 0x40d674
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x298
mov dword [esp + 0x18c], ecx
xor ecx, ecx
xor eax, eax
imul ebx, dword [edx + 0x28], 0x34
movsd xmm0, qword [edx + 0x2c]
mov esi, edx
inc ecx
cmp dword [edx + 0x1c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov eax, dword [edx + 0x34]
mov dword [esp + 0xac], ecx
mov ecx, dword [edx + 0x20]
movsd qword [esp + 0x19c], xmm0
mov dword [esp + 0x1a4], eax
call fcn.0040d6d4
Function at 0x43933e
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
cmp word [edx], 0
mov ecx, dword [0x537f60]
mov eax, 2
mov edi, 0x17
mov ebx, edx
cmove edi, eax
cmp ecx, 3
jne 0x43945b
push 0
push 1
push edi
call dword [sym.imp.ws2_32.dll_socket]
cmp eax, 0xffffffff
je 0x4393a8
lea ebp, [esp + 4]
mov edi, eax
mov dword [ebp], 1
push ebp
push 0x8004667e
push eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
test eax, eax
je 0x4393c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x4393b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esi + 8], ebx
mov dword [esi + 4], 0
mov dword [esi], 1
jmp 0x43949f
cmp word [ebx], 0
je 0x4393e7
mov eax, dword [ebx + 0x18]
movups xmm0, xmmword [ebx + 4]
mov edx, 0x1c
mov cx, 0x17
mov dword [esp], eax
movzx eax, word [ebx + 0x1c]
add ebx, 0x14
jmp 0x4393fa
movzx eax, word [ebx + 6]
add ebx, 2
mov cx, 2
xorps xmm0, xmm0
mov edx, 0x10
rol ax, 8
mov word [esp + 4], cx
mov word [esp + 6], ax
mov ebx, dword [ebx]
mov eax, dword [esp]
mov dword [esp + 8], ebx
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], eax
push edx
push ebp
push edi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x43944f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x20]
mov ebx, eax
mov dword [ecx + 4], eax
mov dword [ecx], 0
call fcn.0040baa4
cmp al, 0xd
jne 0x439488
xor ecx, ecx
mov edx, ebx
call fcn.0042ab64
xor eax, eax
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi], eax
jmp 0x43949f
lea eax, [esp + 0x20]
lea ebp, [esp + 4]
mov ecx, 0x537f60
xor edx, edx
mov byte [eax], 1
mov dword [ebp], eax
push 0x5209e4
push 0x520898
push ebp
call fcn.004ebf90
add esp, 0xc
jmp 0x439369
mov dword [esi + 8], ebx
mov dword [esi + 4], 0
mov dword [esi], 1
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43b19d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [section..data]
mov edi, ecx
test eax, eax
je 0x43b31d
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x43b1cf
cmp dword [eax + 4], 0
mov esi, eax
je 0x43b1cf
add esi, 4
jmp 0x43b314
mov eax, dword [section..data]
test eax, eax
je 0x43b32c
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x43b312
mov esi, eax
test eax, eax
jne 0x43b234
mov al, byte [0x538038]
mov ecx, 8
mov edx, 4
call fcn.004018b0
test eax, eax
je 0x43b39a
mov dword [eax], section..data
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [section..data]
test eax, eax
je 0x43b33b
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test edi, edi
je 0x43b248
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
jne 0x43b300
lea ecx, [esp + 0x30]
xorps xmm0, xmm0
movups xmmword [ecx + 0x10], xmm0
movups xmmword [ecx], xmm0
call fcn.0043b474
test eax, eax
jne 0x43b34a
movups xmm0, xmmword [esp + 0x30]
movups xmm1, xmmword [esp + 0x40]
mov ecx, 0x158
mov edx, 8
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm1
mov al, byte [0x538038]
call fcn.004018b0
test eax, eax
je 0x43b38b
mov ebx, eax
xor eax, eax
xor edi, edi
inc eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov eax, ebx
add eax, 8
push pe_nt_image_headers32
push edi
push eax
call fcn.004e4ba0
add esp, 0xc
movups xmm0, xmmword [esp + 0x10]
movups xmm1, xmmword [esp]
mov dword [ebx + 0x108], 0x40
mov eax, 0x10000
movups xmmword [ebx + 0x110], xmm0
movups xmmword [ebx + 0x120], xmm1
xorps xmm1, xmm1
movups xmmword [ebx + 0x130], xmm1
mov dword [ebx + 0x144], edi
mov dword [ebx + 0x140], eax
mov dword [ebx + 0x14c], edi
mov dword [ebx + 0x148], eax
mov dword [ebx + 0x150], edi
add esi, 4
mov ecx, dword [esi]
mov dword [esi], ebx
test ecx, ecx
je 0x43b314
call fcn.0043b3a9
jmp 0x43b314
xor esi, esi
mov eax, esi
add esp, 0x50
pop esi
pop edi
pop ebx
ret
mov ecx, section..data
call fcn.004ec360
jmp 0x43b1b3
mov ecx, section..data
call fcn.004ec360
jmp 0x43b1dd
mov ecx, section..data
call fcn.004ec360
jmp 0x43b22c
xor edx, edx
lea ecx, [esp + 0x20]
lea esi, [esp + 0x28]
mov dword [ecx], eax
mov dword [esi], ecx
mov dword [ecx + 4], 0x521518
lea ecx, [esp + 0x30]
inc edx
mov dword [esi + 4], 0x43b42f
mov dword [ecx], 0x5214f0
mov dword [ecx + 4], edx
mov dword [ecx + 0x10], 0
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
mov edx, 0x5214f8
call fcn.004e8b50
mov ecx, 8
mov edx, 0x158
call fcn.004e8800
mov ecx, 4
mov edx, 8
call fcn.004e8800
Function at 0x43b474
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebx
push edi
push esi
mov ebx, ecx
push 2
push 0x20
push ecx
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor edi, edi
cmp eax, 0xc0000000
jb 0x43b4c0
mov esi, eax
push 0x20
push ebx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x43b4c0
mov al, byte [0x538038]
mov ecx, 4
mov edx, 4
call fcn.004018b0
test eax, eax
je 0x43b4c6
mov edi, eax
add esi, 0x80000000
mov dword [eax], esi
mov eax, edi
pop esi
pop edi
pop ebx
ret
mov ecx, 4
mov edx, 4
call fcn.004e8800
Function at 0x447700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x7c0
mov dword [esp + 0xc], edx
mov edx, dword [edx + 0x290]
lea esi, [esp + 0x248]
mov dword [esp + 0x5c], ecx
call fcn.00447729

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x148
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x38], 2
mov dword [esp + 0x48], 0
mov ecx, dword [esi + 0x108]
mov dword [esi + 0x108], 3
cmp ecx, 3
je 0x44bdc1
lea eax, [esp + 0x54]
add esi, 0x10c
mov dword [eax - 4], ecx
mov ecx, 0xd
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 0x1c]
mov edi, dword [eax + 0x20]
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0x3c], 0
cmp eax, 1
je 0x44bc78
cmp eax, 2
jne 0x44bdec
lea ecx, [esp + 0x50]
jmp 0x44bdbc
movsd xmm1, qword [esp + 0x58]
mov dword [esp + 0x20], edx
movsd xmm0, qword [esp + 0x50]
mov edx, dword [esp + 0x80]
movzx ecx, word [esp + 0x84]
mov al, byte [esp + 0x86]
mov ah, byte [esp + 0x78]
movsd qword [esp + 8], xmm1
movsd xmm1, qword [esp + 0x60]
movsd qword [esp], xmm0
movsd qword [esp + 0x10], xmm1
mov dword [esp + 0x18], edx
mov byte [esp + 0x1e], al
mov word [esp + 0x1c], cx
mov edx, dword [esp]
test edx, edx
je 0x44bcef
cmp edx, 1
jne 0x44bdba
mov edx, dword [esp + 0xc]
xor ecx, ecx
sub edx, dword [esp + 0x10]
cmovb edx, ecx
cmp dword [esp + 0x14], 0
je 0x44bcf3
jmp 0x44bdba
mov edx, dword [esp + 0xc]
test edx, edx
je 0x44bdba
mov ecx, dword [ebp + 8]
test ah, ah
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], ecx
je 0x44bd14
or al, 1
mov byte [esp + 0x1e], al
movsd xmm1, qword [esp + 0x10]
lea eax, [esp + 0x88]
movsd xmm0, qword [esp + 0x18]
movsd xmm2, qword [esp]
movsd qword [eax + 0x18], xmm1
movsd xmm1, qword [esp + 8]
movsd qword [eax + 0x20], xmm0
movsd qword [eax + 8], xmm2
movsd qword [eax + 0x10], xmm1
mov byte [eax], 0
mov eax, ecx
mov ecx, dword [ecx + 0x34]
mov edx, dword [eax + 0x38]
push edi
push esi
call fcn.004109f3
add esp, 8
mov edx, dword [esp + 0x20]
lea ecx, [eax + 0x64]
lea eax, [esp + 0x88]
push eax
call fcn.004800af
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x38]
push edi
push esi
call fcn.00410a65
add esp, 8
cmp dword [eax + 0x3c], 0
jle 0x44bd96
lea edx, [esp + 0x24]
mov ecx, ebx
call fcn.00412187
mov eax, dword [esp + 0x38]
mov bl, 1
cmp eax, 2
je 0x44bdc3
test eax, eax
je 0x44bdd6
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [eax + 8]
dec edx
and edx, 0xfffffff8
lea ecx, [edx + ecx + 8]
jmp 0x44bdde
mov ecx, esp
call fcn.0044bae4
xor ebx, ebx
lea ecx, [esp + 0x30]
call fcn.0040bea4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x30]
push edx
push ecx
call dword [eax + 0x34]
add esp, 8
jmp 0x44bdc3
mov ecx, str.wasnt_expecting_a_frame_to_reclaim
mov edx, 0x23
push 0x521ddc
call fcn.004ed309
Function at 0x455ca4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx + 0x20], 9
jne 0x455cab
ret
Function at 0x4598b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov eax, dword [ecx]
xor edx, edx
inc edx
lea esi, [eax - 6]
cmp esi, 3
cmovb edx, esi
test edx, edx
je 0x4598d5
cmp edx, 1
jne 0x4598d3
cmp eax, 5
jne 0x4598de
cmp byte [ecx + 0x3c], 3
jne 0x4598e4
pop esi
ret
add ecx, 8
pop esi
jmp fcn.004598ed
pop esi
jmp fcn.00459985
add ecx, 4
pop esi
jmp 0x459b36

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

Disassembly:
push edi
push esi
mov eax, dword [ecx]
mov esi, ecx
xor ecx, ecx
lea edx, [eax - 3]
lea edi, [eax - 2]
cmp edx, 2
cmovb ecx, edi
test ecx, ecx
je 0x459a12
cmp ecx, 1
jne 0x459b33
movzx eax, byte [esi + 0x3c]
cmp eax, 3
je 0x459b33
add esi, 4
cmp eax, 4
jne 0x459a85
mov edi, dword [esi]
movzx eax, byte [edi + 0xad]
test eax, eax
je 0x459a8e
cmp eax, 3
je 0x459ab3
cmp eax, 4
jne 0x459b24
movzx eax, byte [edi + 0xc8]
test eax, eax
je 0x459ac0
cmp eax, 3
jne 0x459acb
cmp byte [edi + 0xb8], 2
je 0x459acb
lea ecx, [edi + 0xb0]
jmp 0x459ac6
cmp eax, 2
je 0x459b33
cmp dword [esi + 0x98], 3
je 0x459a2f
lea ecx, [esi + 0x98]
call fcn.00459bb9
lea ecx, [esi + 0x70]
call fcn.0043b882
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x459a51
lock dec dword [eax]
jne 0x459a51
lea ecx, [esi + 0x8c]
call fcn.0043b8ba
mov eax, dword [esi + 0x50]
test eax, eax
je 0x459a65
lock dec dword [eax]
jne 0x459a65
lea ecx, [esi + 0x50]
call fcn.00442b6e
mov eax, dword [esi + 0x68]
test eax, eax
je 0x459b33
lock dec dword [eax]
jne 0x459b33
add esi, 0x68
mov ecx, esi
pop esi
pop edi
jmp fcn.00442b6e
mov ecx, esi
pop esi
pop edi
jmp 0x459b36
mov eax, dword [edi + 0x50]
test eax, eax
je 0x459aa2
lock dec dword [eax]
jne 0x459aa2
lea ecx, [edi + 0x50]
call fcn.00442b6e
lea eax, [edi + 0x80]
push eax
call fcn.0041ed7f
add esp, 4
jmp 0x459adf
lea ecx, [edi + 0xb0]
call fcn.00459be7
jmp 0x459acb
lea ecx, [edi + 0xbc]
call fcn.0043c50c
mov eax, dword [edi + 0x50]
test eax, eax
je 0x459adf
lock dec dword [eax]
jne 0x459adf
lea ecx, [edi + 0x50]
call fcn.00442b6e
mov eax, dword [edi + 0x78]
test eax, eax
je 0x459af3
lock dec dword [eax]
jne 0x459af3
lea ecx, [edi + 0x78]
call fcn.00442b6e
mov eax, dword [edi + 0xa8]
test eax, eax
je 0x459b0d
lock dec dword [eax]
jne 0x459b0d
lea ecx, [edi + 0xa8]
call fcn.0043b8ba
lea ecx, [edi + 0x8c]
call fcn.0043b882
add edi, 0x68
mov ecx, edi
call fcn.00459230
mov edi, dword [esi]
push edi
push 0
push dword [0x537fc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
ret
cmp byte [ecx + 0x38], 2
jne 0x459b43
mov ecx, dword [ecx]
jmp fcn.00459200
jmp fcn.00459b48
Function at 0x45c914
Capabilities:
Decrypt data via sspi

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, ecx
mov edi, edx
mov ecx, dword [edx + 0x20]
mov edx, dword [edx + 0x30]
cmp edx, ecx
jb 0x45ca70
mov ebx, dword [edi + 0x2c]
xor eax, eax
mov edx, esp
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov dword [edx], ecx
lea ecx, [esp + 0x30]
mov dword [edx + 4], 1
mov dword [ecx], eax
mov dword [ecx + 4], 4
mov dword [ecx + 8], edx
mov dword [edx + 8], ebx
mov dword [edx + 0x10], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x1c], eax
lea edx, [edi + 0x68]
push eax
push eax
push ecx
push edx
call dword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x90316
jg 0x45c9fd
cmp eax, 0x80090318
je 0x45ca46
test eax, eax
jne 0x45ca3b
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x2c]
mov ebp, dword [esp + 0xc]
mov eax, dword [edi + 0x30]
mov dword [edi + 0x18], 0
sub ecx, edx
mov ebx, ecx
add ebx, ebp
jb 0x45ca7a
cmp eax, ebx
jb 0x45ca86
lea eax, [edi + 0x10]
add edx, ecx
mov ecx, eax
push ebp
call fcn.00402a58
add esp, 4
xor eax, eax
cmp dword [esp + 0x28], 5
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov edx, dword [edi + 0x20]
jne 0x45c9e1
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.0045c897
mov eax, dword [edi + 0x20]
xor ecx, ecx
or eax, dword [edi + 0x24]
sete cl
mov dword [edi + 0xa8], ecx
jmp 0x45ca63
cmp eax, 0x90317
je 0x45ca53
cmp eax, 0x90321
jne 0x45ca3b
mov dword [edi + 0x50], 0x10000
mov byte [edi + 0x54], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0x20]
jne 0x45ca26
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.0045c897
mov dword [edi + 0xa8], 0
jmp 0x45ca63
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x45ca68
cmp dword [esp + 0x10], 4
jne 0x45ca5a
mov eax, dword [esp + 0xc]
jmp 0x45ca5d
mov word [esi], 0x104
jmp 0x45ca68
xor eax, eax
inc eax
mov dword [edi + 0xa8], eax
mov word [esi], 4
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5249d8
call fcn.004e8c40
mov edx, ebx
push 0x5249e8
call fcn.004e8e30
mov ecx, ebx
mov edx, eax
push 0x5249e8
call fcn.004e8c40