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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x1012d478]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1008780a
cmp byte [ebx], 0xa
jne 0x1008780a
or byte [edi + eax + 0x28], 4
jmp 0x1008780f
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1008790e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100878f1
inc eax
cmp dl, 0xd
je 0x1008783b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10087861
cmp eax, ecx
jae 0x1008786f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10087823
jmp 0x1008790e
push 0
lea eax, [ebp - 0x10]
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 0x100878ec
cmp dword [ebp - 0x10], 0
je 0x100878ec
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1012d478]
test byte [eax + edi + 0x28], 0x48
je 0x100878c6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100878b1
mov byte [esi], dl
jmp 0x100878c2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1012d478]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1008790e
cmp byte [ebp - 1], 0xa
jne 0x100878d5
cmp esi, ebx
jne 0x100878d5
mov byte [esi], 0xa
jmp 0x1008790d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10085a52
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1008790e
mov byte [esi], 0xd
jmp 0x1008790d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1012d478]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1008790b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1008790e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10087917
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1012d478]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1008795d
cmp word [ebx], dx
jne 0x1008795d
or byte [eax + edi + 0x28], 4
jmp 0x10087962
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10087ac5
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10087aa5
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100879a3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100879d9
cmp eax, edx
jae 0x100879e7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1008797e
jmp 0x10087ac5
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10087aa0
cmp dword [ebp - 0x18], 0
je 0x10087aa0
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1012d478]
test byte [eax + edi + 0x28], 0x48
je 0x10087a76
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10087a3a
mov word [esi], cx
jmp 0x10087a71
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1012d478]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1012d478]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1012d478]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10087ac5
pop eax
cmp word [ebp - 4], ax
jne 0x10087a86
cmp esi, ebx
jne 0x10087a86
mov word [esi], ax
jmp 0x10087ac2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10085a52
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10087ac5
push 0xd
pop eax
jmp 0x10087a81
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1012d478]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10087abf
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10087ac5
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100891d4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c2fbc
push 0x100c2fb4
push str.FlsAlloc
push 0x1f
call fcn.10088fff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10089208
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009f2cc]
call esi
jmp 0x1008920e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10089252
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c2fcc
push 0x100c2fc4
push str.FlsGetValue
push 0x21
call fcn.10088fff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10089289
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009f2cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10089291
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c2fd4
push 0x100c2fcc
push str.FlsSetValue
push 0x22
call fcn.10088fff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100892cb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1009f2cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1008e7ac
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1008e849
push ebx
push esi
call fcn.1008e775
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1008d53e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1008e7f6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008e848
push edi
push eax
call fcn.1008a7ab
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1008e816
call fcn.10088d20
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008e847
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1008d53e
add esp, 0x20
test eax, eax
jne 0x1008e835
push edi
call fcn.10088d20
jmp 0x1008e83d
push ebx
call fcn.10088d20
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10091284
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10085e1a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100912f3
cmp esi, dword [ebp - 4]
je 0x100912ee
cmp dword [ebp + 0xc], 0
je 0x100912ee
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100912cb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10090dd6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100912f5
xor eax, eax
inc eax
jmp 0x100912f5
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1009135a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10113900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10085e1a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10085e1a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100913d1
cmp word [ecx], dx
je 0x100913d1
mov eax, dword [0x100c6de4]
push edi
dec eax
push eax
push 0x100c6cd0
call fcn.100912f9
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10091444
cmp word [eax], dx
je 0x10091444
mov eax, dword [edi]
test eax, eax
je 0x100913f5
cmp word [eax], dx
je 0x100913f5
lea eax, [ebp - 0x10]
push eax
call fcn.10090cdc
jmp 0x100913fe
lea eax, [ebp - 0x10]
push eax
call fcn.10090d77
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1009146e
mov eax, dword [0x100c6ccc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100c69c0
call fcn.100912f9
add esp, 0xc
test al, al
je 0x1009146e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10091439
cmp word [eax], di
je 0x10091439
lea eax, [ebp - 0x10]
push eax
call fcn.10090cdc
pop ecx
jmp 0x10091470
lea eax, [ebp - 0x10]
push eax
call fcn.10090d77
jmp 0x10091436
mov eax, dword [edi]
test eax, eax
je 0x1009145b
cmp word [eax], dx
je 0x1009145b
lea eax, [ebp - 0x10]
push eax
call fcn.10090c91
pop ecx
jmp 0x1009146e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10091539
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1009117e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10091539
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10091539
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10091539
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100914c6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100893d1
test ebx, ebx
je 0x10091534
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100893d1
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10091539
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10091539
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100960fc
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1009153b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006f8b7
leave
ret
Function at 0x10096311
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1009628d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10096480
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10096480
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10096435
jg 0x1009636d
test eax, eax
je 0x1009642b
push 1
push 0x1000
call fcn.10088594
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10096390
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10096422
push 0x8000
push ebx
call fcn.100961be
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100963b9
jg 0x100963b4
cmp ecx, 0x1000
jb 0x100963b9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1008a089
add esp, 0x10
cmp eax, 0xffffffff
je 0x100963fe
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100963b4
jl 0x100963e5
test ecx, ecx
jne 0x100963a6
push dword [ebp - 0xc]
push ebx
call fcn.100961be
push esi
call fcn.10088d20
add esp, 0xc
xor ebx, ebx
jmp 0x1009648e
cmp byte [edi + 0x24], 0
je 0x10096415
cmp dword [edi + 0x20], 5
jne 0x10096415
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10096420
mov ebx, dword [edi + 0x18]
jmp 0x10096422
xor ebx, ebx
push esi
call fcn.10088d20
pop ecx
jmp 0x1009648e
test ecx, ecx
jg 0x100963f7
jl 0x10096435
test eax, eax
jae 0x100963f7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10085a52
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10096455
cmp byte [edi + 0x1c], 0
je 0x100963f7
jmp 0x10096486
push ebx
call fcn.1008f123
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100963f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1009648e
cmp byte [edi + 0x1c], 0
je 0x1009648b
mov ebx, dword [edi + 0x18]
jmp 0x1009648e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10085a52
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10097700
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40633c
pop dword [ebp - 0x44]
mov eax, 0xcd666ccf
sub eax, 0xcd260993
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x6368dce3
add dword [ebp - 0x54], 0xeae96868
mov dword [ebp - 0x50], 0x9f076168
sub dword [ebp - 0x50], 0x6cd41523
mov dword [ebp - 0x4c], 0xaaaa876e
add dword [ebp - 0x4c], 0xa1a1bcc0
mov dword [ebp - 0x48], 0xd43e08b7
sub dword [ebp - 0x48], 0xd43e08b7
lea eax, [ebp - 0x54]
push eax
mov eax, 0xf66a920d
sub eax, 0xf62a21ad
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x23112ffb
sub dword [ebp - 0x54], 0xae9ec6a5
mov dword [ebp - 0x50], 0xbbcb5f75
add dword [ebp - 0x50], 0x85a10200
mov dword [ebp - 0x4c], 0x86595396
add dword [ebp - 0x4c], 0xdd1618d6
mov dword [ebp - 0x48], 0xbef97d98
sub dword [ebp - 0x48], 0xbef97d98
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x25cdcb0a
add eax, 0xda72a5f6
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x39585
push 0
call eax
mov ecx, 0x83364491
sub ecx, 0x8335f1a9
xor edx, edx
add edx, eax
mov edi, 0x6202a29d
add edi, 0x9e3e5d63
add edi, dword [ebp - 0x44]
mov esi, 0x65ebb269
sub esi, 0x87c939ca
sub dword [ebp - 0x34], edi
mov ebx, dword [edi]
sub dword [ebp - 0x38], ebx
xor ebx, esi
sub dword [ebp - 0x34], ecx
mov dword [edx], ebx
sub dword [ebp - 4], 0xdea45175
add edx, 0x41e98b98
sub edx, 0x41e98b94
add edi, 0x388b7f52
sub edi, 0x388b7f4e
loop 0x406460
add eax, 0x6da106b8
add eax, 0x926037bb
xor ebx, ebx
add ebx, eax
add eax, 0x1e4794a1
sub eax, 0x1e47949c
mov ecx, 0x5875d9dc
sub ecx, 0x5835d9dc
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4013ad
Capabilities:
Access peb ldr_data
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41a6f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push esi
xor esi, esi
lea eax, [esp + 0x30]
inc esi
push esi
xor ebx, ebx
push eax
mov dword [edi], vtable.replay::real_mutex.0
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push esi
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0xc4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0xc4], 4
push dword [ebp + 8]
lea ecx, [esp + 0xc]
jbe 0x4014b9
call fcn.00402fa7
mov esi, 0x41ce00
push esi
mov dword [esp + 0x168], ebx
call fcn.0040a5a0
pop ecx
push eax
push esi
lea eax, [esp + 0x10]
push eax
xor eax, eax
call fcn.004037a5
cmp eax, 0xffffffff
jne 0x401475
push str.Global_
call fcn.0040a5a0
mov ebx, eax
pop ecx
lea eax, [esp + 8]
call fcn.004036ef
xor ebx, ebx
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x401484
lea eax, [esp + 0xc]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [edi + 4], eax
jne 0x4014b4
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x4014a7
lea eax, [esp + 0xc]
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [edi + 4], eax
push ebx
push 1
jmp 0x401520
call fcn.00402fa7
lea eax, [esp + 8]
push eax
mov dword [esp + 0x168], esi
call fcn.00403111
cmp eax, 0xffffffff
je 0x4014e0
inc eax
push eax
push ebx
lea ecx, [esp + 0x10]
call fcn.00402ff2
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x4014ef
lea eax, [esp + 0xc]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [edi + 4], eax
jne 0x40151e
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x401512
lea eax, [esp + 0xc]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [edi + 4], eax
push ebx
push esi
or dword [esp + 0x16c], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00403a1e
cmp dword [edi + 4], ebx
jne 0x401574
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x48]
push str.OpenMutex_returned_0x_08x
push eax
call fcn.00419521
add esp, 0xc
push eax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x16c], 2
call fcn.00401255
push 0x41f288
lea eax, [esp + 0x64]
push eax
call fcn.0040b561
mov ecx, dword [esp + 0x15c]
pop esi
mov eax, edi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401714
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41a719
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
call fcn.00403a02
push ebx
push 0x10
lea ecx, [esp + 0x20]
call fcn.00404f65
push 1
push ebx
push 0xfffffffffffffff0
push dword [ebp + 8]
mov dword [esp + 0x9c], ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call edi
cmp eax, 0xffffffff
jne 0x401794
push ebx
push 1
lea ecx, [esp + 0x20]
call fcn.00403a1e
xor al, al
mov ecx, dword [esp + 0x84]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x4017a3
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x10
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x401771
push 1
push ebx
push 0xffffffffffffffec
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
push ebx
je 0x401772
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x401771
push 1
push ebx
push 0xfffffffffffffffc
pop eax
sub eax, dword [esp + 0x18]
push eax
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
push ebx
je 0x401772
push dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.004030ce
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x401814
mov eax, dword [eax + 4]
jmp 0x401817
add eax, 4
push ebx
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x18]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x401771
push dword [ebp + 0xc]
lea eax, [esp + 0x54]
push eax
call fcn.00418d46
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
mov byte [esp + 0x90], 1
call fcn.00418c96
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x30], 0x10
mov ecx, dword [esp + 0x1c]
jae 0x401867
lea ecx, [esp + 0x1c]
push dword [esp + 0x2c]
push ecx
push dword [eax + 0x14]
mov ecx, eax
push ebx
call fcn.0040399c
push ebx
test eax, eax
push 1
lea ecx, [esp + 0x3c]
setne byte [esp + 0x17]
call fcn.00403a1e
lea esi, [esp + 0x68]
call fcn.004053df
cmp byte [esp + 0xf], bl
je 0x4018ca
push ebx
push str.Invalid_Archive_
push str.We_are_sorry__but_your_installation___update_did_not_complete_due_to_unexpected_download_errors._r_nPlease_download_the_whole_SPAMfighter_program_from_http:__www.spamfighter.com
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [0x424cc4], bl
mov byte [esp + 0xf], bl
push ebx
push 1
lea ecx, [esp + 0x20]
call fcn.00403a1e
mov al, byte [esp + 0xf]
jmp 0x40177f
mov eax, dword [esp + 0x10]
push 1
push ebx
neg eax
push eax
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
setne byte [esp + 0xf]
jmp 0x4018b5
Function at 0x40afb2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422244]
jne 0x40afbc
repz ret
jmp fcn.0040e7ce

Function at 0x40da08
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4224b0]
je 0x40da23
inc edi
cmp edi, 0x17
jb 0x40da14
cmp edi, 0x17
jae 0x40dba3
push ebp
push 3
call fcn.0041446a
cmp eax, 1
pop ecx
je 0x40db6f
push 3
call fcn.0041446a
test eax, eax
pop ecx
jne 0x40da57
cmp dword [0x422204], 1
je 0x40db6f
cmp ebx, 0xfc
je 0x40dba2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x424288
push ebp
call fcn.0040dd29
add esp, 0xc
test eax, eax
je 0x40da8d
push esi
push esi
push esi
push esi
push esi
call fcn.0040aafa
add esp, 0x14
push 0x104
mov esi, 0x4242a1
push esi
push 0
mov byte [0x4243a5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40dad1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040dd29
add esp, 0xc
test eax, eax
je 0x40dad1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040aafa
add esp, 0x14
push esi
call fcn.0040a5a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40db16
push esi
call fcn.0040a5a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42459c
push 0x41c3d4
sub ecx, eax
push ecx
push eax
call fcn.004129af
add esp, 0x14
test eax, eax
je 0x40db16
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040aafa
add esp, 0x14
jmp 0x40db18
xor esi, esi
push 0x41c3d0
push ebx
push ebp
call fcn.0041293e
add esp, 0xc
test eax, eax
je 0x40db38
push esi
push esi
push esi
push esi
push esi
call fcn.0040aafa
add esp, 0x14
push dword [edi*8 + 0x4224b4]
push ebx
push ebp
call fcn.0041293e
add esp, 0xc
test eax, eax
je 0x40db5a
push esi
push esi
push esi
push esi
push esi
call fcn.0040aafa
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004142ad
add esp, 0xc
jmp 0x40dba2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40dba2
cmp ebp, 0xffffffff
je 0x40dba2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4224b4]
push dword [esi]
call fcn.0040a5a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret