joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000af40
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0x6a09e667
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0xbb67ae85
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x4c], 0x3c6ef372
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x4c], 0xa54ff53a
mov eax, 4
shl eax, 2
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0x510e527f
mov edx, 4
imul eax, edx, 5
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0x9b05688c
mov edx, 4
imul eax, edx, 6
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0x1f83d9ab
mov edx, 4
imul eax, edx, 7
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0x5be0cd19
mov esp, ebp
pop ebp
ret

Function at 0x1000bf90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x1384], 0xffffffff
push 0x6c078965
push 0x1571
mov ecx, dword [ebp - 4]
call fcn.1000daa0
push 0x1388
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.1000f380
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x1000c330
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x1000c34e
mov ecx, dword [ebp - 8]
call fcn.1000d360
jmp 0x1000c361
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x1000c361
mov ecx, dword [ebp - 8]
call fcn.1000d1e0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
shr eax, 0xb
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1000d1e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x1000d1fb
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xe3
jge 0x1000d267
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x1000d23f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x1000d246
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x1000d1f2
jmp 0x1000d272
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26f
jge 0x1000d2de
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
and edx, 1
je 0x1000d2b6
mov dword [ebp - 0x18], 0x9908b0df
jmp 0x1000d2bd
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
shr eax, 1
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x1000d269
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ecx + 4]
and ecx, 0x7fffffff
or edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x1000d31c
mov dword [ebp - 0x20], 0x9908b0df
jmp 0x1000d323
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
shr eax, 1
xor eax, dword [ebp - 0x20]
mov ecx, 4
imul edx, ecx, 0x18c
mov ecx, dword [ebp - 8]
xor eax, dword [ecx + edx + 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4 + 4], eax
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
Function at 0x1000d360
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x1000d37b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jge 0x1000d3e7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x1000d3bf
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x1000d3c6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x1000d372
mov esp, ebp
pop ebp
ret
Function at 0x1001c8e0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [edi + 0x31e65725], esp
enter 0xffffffffffffdb1c, 0xffffffffffffff8b
fiadd word [esi - 0x2d]
fld dword [ebp - 0x1e]
push esi
aas
mov bl, byte [esi]
xor al, 0xea
js 0x1001c94a
sub dword [edi - 0x44583d52], edx
pop ds
out 0xf2, al
cmpsb byte [esi], byte es:[edi]
jecxz 0x1001c985
inc ebx
cmp ch, byte [ebp - 0x12]
test esi, edx
xor eax, dword [ecx - 0x7d]
retf 0xf1d3
aam 8
in al, 0x72
rol ebp, cl
adc al, al
retf 0xdac5
inc ebx
sal ecx, 1
invalid
adc ch, al
in eax, dx
push eax
mov ebp, 0x1671b83d
out dx, eax
mov ch, 0x52
fidiv dword [ebp + edi*8 - 0x13]
lcall 0x1020, 0xca6bce4e
out 0x16, al
aaa
pushfd
bound esp, qword [0x9b091413]
test al, 0xff
jl 0x1001c928
imul eax, dword [esi + esi*2 + 0x6ed7af57], 0x2a
sbb eax, 0x735a1f34
int 0x30
xchg byte [ecx - 0x63], ch
invalid
xor al, 0x1f
pop edx
jae 0x1001c957
xor byte [esi + 0x39f09d69], al
std
fucomi st(6)
pop eax
pushal
push esi
out dx, eax
and byte [eax + 0x50], 0xe2
dec ebx
pop esp
xchg ecx, eax
pop edi
pop edx
xor dh, byte [ebp - 0x27]
cmp eax, 0xc5b838df
adc ah, bl
in eax, 0xe4
jle 0x1001ca29
push 0x3a
invalid
rol byte [edi - 0x48], cl
push ebx
test al, 0xd5
inc esi
paddq mm4, mm1
cli
invalid
Function at 0x10527058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.105271a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1052707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1052706a
add dl, dl
jne 0x10527089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105270dc
xor eax, eax
add dl, dl
jne 0x10527096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1052717d
add dl, dl
jne 0x105270a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105270b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105270bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105270c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105270d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10527075
mov eax, 1
add dl, dl
jne 0x105270ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105270f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105270e1
sub eax, ebx
mov ebx, 1
jne 0x10527128
mov ecx, 1
add dl, dl
jne 0x1052710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10527119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10527105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10527075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1052713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1052714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10527136
cmp eax, 0x7d00
jae 0x1052716d
cmp eax, 0x500
jb 0x10527168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10527075
cmp eax, 0x7f
ja 0x10527170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10527075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1052719e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10527075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x438c8b
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x438a14
and edx, ecx
add ecx, 0x55d72e54
inc edx
call fcn.00438cdf
add ecx, 0x7b97fca7
add ecx, 1
add ecx, edx
xor dword [eax], edi
sub ecx, ecx
add eax, 1
add ecx, 1
and edx, ecx
cmp eax, ebx
jne fcn.00438c8b
add edx, 0xf4a82ccd
sub edx, 0x4111ca61
sub ecx, 1
ret

Function at 0x7a8e70
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7a8e7a
pushal
call 0x7a8e80
pop ebp
sub ebp, 0x10
sub ebp, 0x3a8e70
mov al, byte [esp + 0x28]
cmp al, 1
je 0x7a8ea4
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x7a8ead
mov eax, 0x3a8e70
add eax, ebp
add eax, 0x63
mov ecx, 0x614
mov edx, 0x6cb19d23
xor byte [eax], dl
inc eax
dec ecx
jne 0x7a8ec4
jmp 0x7a8ed7
test al, 0xee
test al, 0xaa
pop ds
and esp, dword [ebx]
and esp, dword [edx + 0x2323dbe2]
and esp, dword [eax]
out dx, al
wait
daa
and esp, dword [ebx]
and ebx, dword [ecx + 0x2323230b]
aam 0xc1
and bl, ch
test al, 0xa2
das
and esp, dword [ebx]
and esp, dword [eax]
out 0x73, al
scasb al, byte es:[edi]
inc edi
pop es
fild qword [edx + 0x2b4b0727]
pop edi
sub eax, 0x31454b23
mov dr4, edx
sysret

Function at 0x410f5c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42104c]
jne 0x413fe3
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x422720], eax
mov dword [0x42271c], ecx
mov dword [0x422718], edx
mov dword [0x422714], ebx
mov dword [0x422710], esi
mov dword [0x42270c], edi
mov word [0x422738], ss
mov word [0x42272c], cs
mov word [0x422708], ds
mov word [0x422704], es
mov word [0x422700], fs
mov word [0x4226fc], gs
pushfd
pop dword [0x422730]
mov eax, dword [ebp]
mov dword [0x422724], eax
mov eax, dword [ebp + 4]
mov dword [0x422728], eax
lea eax, [ebp + 8]
mov dword [0x422734], eax
mov eax, dword [ebp - 0x320]
mov dword [0x422670], 0x10001
mov eax, dword [0x422728]
mov dword [0x422624], eax
mov dword [0x422618], 0xc0000409
mov dword [0x42261c], 1
mov eax, dword [0x42104c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x421050]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x422668], eax
push 1
call fcn.00415efd
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x402cf0
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x422668], 0
jne 0x4140cf
push 1
call fcn.00415efd
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x9ea058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9ea1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9ea07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ea06a
add dl, dl
jne 0x9ea089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ea0dc
xor eax, eax
add dl, dl
jne 0x9ea096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ea17d
add dl, dl
jne 0x9ea0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ea0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ea0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ea0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9ea0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9ea075
mov eax, 1
add dl, dl
jne 0x9ea0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ea0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ea0e1
sub eax, ebx
mov ebx, 1
jne 0x9ea128
mov ecx, 1
add dl, dl
jne 0x9ea10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ea119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ea105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ea075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9ea13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ea14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ea136
cmp eax, 0x7d00
jae 0x9ea16d
cmp eax, 0x500
jb 0x9ea168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ea075
cmp eax, 0x7f
ja 0x9ea170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ea075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9ea19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9ea075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x438ca5
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
sub edi, 1
add edx, edi
add edi, edx
call fcn.00438ce7
add edx, 0x3c7d03e5
dec edx
add edi, edi
xor dword [ecx], esi
mov edi, 0x222ff3b2
add ecx, 1
add edi, edx
cmp ecx, eax
jne fcn.00438ca5
mov edx, 0x7f79b355
sub edi, edi
ret
Function at 0x421a65
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x421a74
pop dword [ebp - 0x48]
mov eax, 0xdd1368bd
add eax, 0x232eb1b7
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x4e460
push 0
mov eax, 0x69b2887a
add eax, 0x96922a36
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0xf010a05e
add ecx, 0xfefa01d
mov edx, eax
mov edi, 0x7648857b
sub edi, 0x75fff77b
add edi, dword [ebp - 0x48]
mov esi, 0xc4455246
sub esi, 0x7cdb268e
mov dword [ebp - 0x38], 0xdf09f77f
mov ebx, dword [edi]
xor dword [ebp - 8], 0xb6d77abc
add ebx, esi
sub dword [ebp - 0x14], 0xa249ba90
mov dword [edx], ebx
xor dword [ebp - 0x14], ecx
add edx, 0x6dd77a2a
sub edx, 0x6dd77a26
add edi, 0x94a6544f
add edi, 0x6b59abb5
loop 0x421ad3
add eax, 0x285ea6e9
sub eax, 0x285db22a
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x402174
Capabilities:
Create thread

Disassembly:
push 0x48
mov eax, 0x433c07
call fcn.00425d32
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
je 0x4021f6
test eax, eax
je 0x4021a7
push eax
lea ecx, [esi + 0x74]
call dword [0x434304]
test edi, edi
je 0x4021b8
push edi
lea ecx, [esi + 0x90]
call dword [0x434304]
test ebx, ebx
je 0x4021c9
push ebx
lea ecx, [esi + 0xac]
call dword [0x434304]
lea eax, [ebp - 0x4c]
push eax
xor eax, eax
push eax
push esi
push 0x4022c4
push eax
push eax
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
je 0x4022bc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4022bc
mov eax, dword [esi + 0x1b4]
test eax, eax
je 0x402209
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
and dword [ebp - 4], 0
cmp dword [esi + 0x34], 8
jb 0x402221
mov ebx, dword [esi + 0x20]
jmp 0x402224
lea ebx, [esi + 0x20]
cmp dword [esi + 0x18], 8
jb 0x40222f
mov edi, dword [esi + 4]
jmp 0x402232
lea edi, [esi + 4]
lea ecx, [ebp - 0x2c]
call fcn.00405d82
xor ebx, ebx
cmp byte [esi + 0x1b8], bl
jne 0x40225c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x402250
lea eax, [ebp - 0x28]
push eax
mov eax, esi
call fcn.00402036
test al, al
je 0x4022af
push str.XLLiveUD.exe
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x402282
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x100]
call dword [0x434304]
push ebx
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push 0x43e908
call fcn.0040231c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
call fcn.00425db5
ret 0xc
Function at 0x40231c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [ebp + 8]
lea edi, [esi + 0x54]
mov ecx, edi
call dword [0x434304]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x402343
push dword [ebp + 0xc]
lea ecx, [esi + 0x74]
call dword [0x434304]
cmp dword [ebp + 0x10], ebx
je 0x402357
push dword [ebp + 0x10]
lea ecx, [esi + 0x90]
call dword [0x434304]
cmp dword [ebp + 0x14], ebx
je 0x40236b
push dword [ebp + 0x14]
lea ecx, [esi + 0xac]
call dword [0x434304]
cmp byte [ebp + 0x18], bl
je 0x402396
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x4023b3
push ebx
push ebx
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
je 0x402392
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4023ac
cmp dword [edi + 0x18], 8
jb 0x4023a1
mov edi, dword [edi + 4]
jmp 0x4023a4
add edi, 4
push edi
mov ecx, esi
call fcn.004023d0
pop edi
pop ebx
pop ecx
pop ebp
ret 0x14
Function at 0x40515f
Capabilities:
Compare security identifiers

Disassembly:
push esi
lea esi, [eax + 4]
push edi
test esi, esi
je 0x405193
lea edi, [ebx + 4]
test edi, edi
je 0x405193
call fcn.004050c6
test al, al
je 0x405193
mov eax, ebx
call fcn.004050c6
test al, al
je 0x405193
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x405195
xor al, al
pop edi
pop esi
ret

Function at 0x405d82
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call dword [0x434304]
push str.XLLiveUD_
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
push edi
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
push 0x43ea94
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
push ebx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
push 0x43ea98
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
cmp dword [esi + 0x18], 8
jb 0x405dfd
mov esi, dword [esi + 4]
jmp 0x405e00
add esi, 4
call fcn.00405e78
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00425cba
leave
ret

Function at 0x405e12
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x405e70
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret