joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0x10], edx
movzx edx, word [edx]
test dx, dx
je 0x401ad2
lea edi, [eax + 2]
xor eax, eax
lea esi, [esi]
mov ecx, 0x10
lea esi, [esi]
mov esi, eax
shr ax, 1
xor esi, edx
mov ebx, eax
xor bx, 0xa001
and esi, 1
cmovne eax, ebx
shr dx, 1
sub ecx, 1
jne 0x401a20
movzx edx, word [edi]
add edi, 2
test dx, dx
jne 0x401a18
movzx ebx, ax
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp + 4], 0x5c
mov dword [esp], edi
call esi
mov dword [esp + 4], 0x2e
test eax, eax
lea edx, [eax + 2]
cmove edx, edi
mov edi, edx
mov dword [ebp - 0x10], edx
mov dword [esp], edx
call esi
mov edx, eax
sub edx, edi
sar edx, 1
test eax, eax
je 0x401aae
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], str._04X__.s._d
mov dword [esp + 0xc], eax
call fcn.00401930
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
je 0x401ad9
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x401ac0
sub eax, dword [ebp - 0x10]
sar eax, 1
mov edx, eax
jmp 0x401a84
xor ebx, ebx
jmp 0x401a4a
xor edx, edx
jmp 0x401a84

Function at 0x401ae0
Capabilities:
Query or enumerate registry key
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 0x800
lea edi, [ebp - 0x10]
push ebx
mov ebx, esi
sub esp, 0x2c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0x800
jmp 0x401b21
cmp eax, 0xea
jne 0x401b80
mov eax, dword [ebp - 0x10]
mov dword [esp], esi
lea ebx, [eax + eax]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x401b95
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x1c], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x401b08
lea esp, [ebp - 0xc]
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
xor ebx, ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 2
jne 0x401bab
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40f000
mov dword [esp], 1
call fcn.00401580
jmp 0x401b9e
Function at 0x401e60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x10]
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x28
mov dword [ebp - 0x14], eax
mov dword [esp + 4], eax
mov eax, dword [sym.imp.shlwapi.dll_AssocQueryStringW]
mov dword [ebp - 0x10], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], 0
mov dword [ebp - 0x18], eax
call eax
sub esp, 0x18
test eax, eax
js 0x401f00
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x401f1d
mov dword [esp + 0x10], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp], 0
call eax
mov edx, dword [ebp - 0x1c]
sub esp, 0x18
test eax, eax
js 0x401f10
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
xor edx, edx
jmp 0x401eec
test byte [section..data], 2
jne 0x401f33
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40f000
mov dword [esp], 1
call fcn.00401580
jmp 0x401f26

Function at 0x401f60
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x10]
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x2c
mov dword [ebp - 0x14], eax
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegGetValueW]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [ebp - 0x18], eax
call eax
sub esp, 0x1c
test eax, eax
jne 0x402000
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x402025
mov dword [esp + 0x14], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x18], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
call eax
mov edx, dword [ebp - 0x1c]
sub esp, 0x1c
test eax, eax
jne 0x402010
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 2
jne 0x40203b
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40f000
mov dword [esp], 1
call fcn.00401580
jmp 0x40202e
Function at 0x402070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
call fcn.00401d70
mov dword [ebp - 0x10], eax
mov edi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
lea eax, [eax + eax*2]
lea eax, [eax + eax + 1]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x402197
movzx edx, byte [edi]
mov esi, eax
add edi, 1
xor ebx, ebx
test dl, dl
je 0x402190
lea esi, [esi]
lea esi, [esi]
lea eax, [edx - 0x22]
lea ecx, [esi + ebx]
cmp al, 0x1c
ja case.0x4020cd.1
movzx eax, al
jmp dword [eax*4 + 0x411160]
mov byte [ecx], dl
add ebx, 1
lea esi, [esi]
movzx edx, byte [edi]
add edi, 1
test dl, dl
jne 0x4020c0
add ebx, esi
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov byte [ebx], 0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.gt_
mov dword [esp], ecx
call fcn.004014d0
add ebx, eax
jmp 0x4020e0
mov dword [esp + 4], str.lt_
mov dword [esp], ecx
call fcn.004014d0
add ebx, eax
jmp 0x4020e0
mov dword [esp + 4], str.apos_
mov dword [esp], ecx
call fcn.004014d0
add ebx, eax
jmp 0x4020e0
mov dword [esp + 4], str.amp_
mov dword [esp], ecx
call fcn.004014d0
add ebx, eax
jmp 0x4020e0
mov dword [esp + 4], str.quot_
mov dword [esp], ecx
call fcn.004014d0
add ebx, eax
jmp 0x4020e0
mov ebx, eax
jmp 0x4020ec
test byte [section..data], 2
jne 0x4021ad
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40f000
mov dword [esp], 1
call fcn.00401580
jmp 0x4021a0
Function at 0x4021e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
movzx ebx, word [eax]
test bx, bx
je 0x402338
mov edi, eax
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x402200
sub eax, edi
sar eax, 1
lea eax, [eax*8 + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x40234b
add edi, 2
xor eax, eax
jmp 0x402257
lea edx, [ebx - 9]
cmp dx, 1
jbe 0x402288
lea esi, [esi]
add edi, 2
mov word [esi + eax*2], bx
add eax, 1
movzx ebx, word [edi - 2]
test bx, bx
je 0x40230e
lea edx, [eax + eax]
lea ecx, [esi + edx]
mov dword [ebp - 0x10], ecx
lea ecx, [esi + edx + 2]
mov dword [ebp - 0x14], ecx
cmp bx, 0x5c
je 0x4022d0
ja 0x4022a8
cmp bx, 0x3c
ja 0x4022c0
cmp bx, 0x1f
jbe 0x402230
lea edx, [ebx - 0x20]
mov ecx, 0x180007dd
bt ecx, edx
jae 0x402240
mov ecx, dword [ebp - 0x10]
mov edx, 0x5c
add eax, 2
mov word [ecx], dx
mov ecx, dword [ebp - 0x14]
mov edx, 0x5c
mov word [ecx], dx
jmp 0x402240
lea edx, [ebx - 0x60]
cmp dx, 0x1e
ja 0x402240
mov ecx, 0x50000001
bt ecx, edx
jae 0x402240
jmp 0x402288
lea edx, [ebx - 0x3e]
cmp dx, 1
ja 0x402240
jmp 0x402288
mov ecx, dword [ebp - 0x10]
mov ebx, 0x5c
add edi, 2
add eax, 4
mov word [ecx], bx
lea ecx, [esi + edx + 2]
mov ebx, 0x5c
mov word [ecx], bx
mov ebx, 0x5c
mov ecx, 0x5c
mov word [esi + edx + 6], bx
movzx ebx, word [edi - 2]
mov word [esi + edx + 4], cx
test bx, bx
jne 0x402257
lea eax, [esi + eax*2]
xor edx, edx
mov word [eax], dx
mov eax, esi
call fcn.00401d70
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
jne 0x402311
test byte [section..data], 2
jne 0x402361
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40f000
mov dword [esp], 1
call fcn.00401580
jmp 0x402354
Function at 0x402390
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
xor esi, esi
push ebx
sub esp, 0x20
mov dword [ebp - 0x18], edx
mov dword [esp + 4], eax
mov dword [esp], 0x4111d4
call fcn.00401930
mov dword [esp + 4], 0x4111f0
mov dword [ebp - 0x1c], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wfopen]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x402515
nop
test edi, edi
je 0x402478
xor ebx, ebx
jmp 0x40241a
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 4], 0xa
mov dword [esp], edi
mov ebx, eax
call dword [sym.imp.ucrtbase.dll_strchr]
test eax, eax
jne 0x4024a0
add esi, esi
mov dword [esp], edi
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll_realloc]
mov edi, eax
test eax, eax
je 0x402525
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov eax, esi
sub eax, ebx
add ebx, edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fgets]
mov dword [esp], edi
test eax, eax
jne 0x4023e0
mov esi, dword [sym.imp.ucrtbase.dll_free]
xor ebx, ebx
call esi
mov edi, dword [ebp - 0x10]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_feof]
mov dword [esp], edi
test eax, eax
setne bl
call dword [sym.imp.ucrtbase.dll_fclose]
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call esi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x1000
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x402561
mov esi, 0x1000
jmp 0x4023d8
mov byte [eax], 0
cmp byte [edi], 0x23
je 0x4023d0
mov dword [esp + 4], 0x3a
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strchr]
mov ebx, eax
test eax, eax
je 0x4023d0
mov dword [esp], 0x10
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x402561
mov byte [ebx], 0
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00401ca0
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
lea eax, [ebx + 1]
call fcn.00401ca0
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 4]
mov dword [edx + 4], eax
lea eax, [edx + 8]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov dword [ecx], eax
mov dword [ebx + 4], eax
jmp 0x4023d0
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, 1
jmp 0x40245f
test byte [section..data], 2
jne 0x40253b
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xrealloc
mov dword [esp + 4], 0x40f000
mov dword [esp], 1
call fcn.00401580
jmp 0x40252e
test byte [section..data], 2
je 0x40252e
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40f000
mov dword [esp], 1
call fcn.00401580
jmp 0x40252e
Function at 0x404ef0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x2c
mov edi, dword [eax]
mov dword [edx], 0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x12]
mov eax, dword [edi]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 6
mov dword [esp + 4], ecx
mov dword [esp], edi
call dword [eax + 0xc]
sub esp, 0x10
test eax, eax
js 0x404f33
cmp dword [ebp - 0x18], 6
je 0x404f70
test byte [section..data], 4
jne 0x405000
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [esi]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [esi], 0
mov eax, 0x80004005
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebp - 0x12], 0
jne 0x404f33
cmp word [ebp - 0x10], 1
jne 0x404f33
movzx eax, word [ebp - 0xe]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
shl eax, 4
mov dword [esp], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x20]
test eax, eax
mov ecx, eax
je 0x405034
mov dword [ebx], eax
mov eax, dword [edi]
mov dword [esp + 8], edx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], ecx
mov dword [esp], edi
call dword [eax + 0xc]
sub esp, 0x10
test eax, eax
js 0x404f40
movzx edx, word [ebp - 0xe]
shl edx, 4
cmp edx, dword [ebp - 0x18]
jne 0x404f40
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi]
test edx, edx
jne 0x404f63
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebx], 0
jmp 0x404f4b
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Invalid_ico_file_format__hr0x_08lX__bytesRead_ld__n
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.read_ico_direntries
mov dword [esp + 4], 0x40f000
mov dword [esp], 2
call fcn.00401580
jmp 0x404f40
test byte [section..data], 2
jne 0x40504a
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40f000
mov dword [esp], 1
call fcn.00401580
jmp 0x40503d
Function at 0x406c30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x24
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, esi
mov eax, ebx
call fcn.00405f10
test eax, eax
js 0x406c70
mov edx, dword [ebp - 0x10]
mov ecx, edi
mov eax, esi
call fcn.00404ef0
test eax, eax
js 0x406c9e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x8007007e
jne 0x406c82
mov edx, dword [ebp - 0x14]
test edx, edx
jne 0x406dc7
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_SHCreateStreamOnFileW]
sub esp, 0xc
test eax, eax
jns 0x406c57
mov dword [esp], ebx
mov ebx, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp + 4], 0x2e
call ebx
mov edx, eax
test eax, eax
je 0x406dbb
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov eax, 0xf
call fcn.00401e60
mov edx, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x406d98
mov dword [esp + 4], 0x2c
mov dword [esp], eax
call ebx
xor edx, edx
test eax, eax
je 0x406d0f
xor ebx, ebx
add eax, 2
mov word [eax - 2], bx
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov edx, eax
mov eax, dword [ebp - 0x18]
mov ecx, esi
xor ebx, ebx
call fcn.00405f10
mov edx, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x18]
mov dword [esp], ebx
call edx
mov eax, dword [ebp - 0x1c]
mov edx, 1
test eax, eax
js 0x406d56
mov edx, dword [ebp - 0x10]
mov ecx, edi
mov eax, esi
call fcn.00404ef0
mov ebx, eax
shr ebx, 0x1f
mov edx, ebx
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x406c67
test dl, dl
je 0x406c67
mov ecx, esi
mov edx, 0xffff80fb
mov eax, str.user32
call fcn.00405f10
test eax, eax
js 0x406c67
mov edx, dword [ebp - 0x10]
lea esp, [ebp - 0xc]
mov ecx, edi
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00404ef0
mov ecx, str.open
mov eax, 2
call fcn.00401e60
mov ebx, eax
test eax, eax
je 0x406dbb
mov ecx, esi
xor edx, edx
call fcn.00405f10
jmp 0x406d1b
mov edx, 1
mov eax, 0x80070490
jmp 0x406d56
test byte [section..data], 4
je 0x406c67
mov eax, ebx
shr eax, 0x10
je 0x406e2b
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push esi
push esi
test eax, eax
jne 0x406e40
mov eax, ebx
call fcn.00401290
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Cant_find_file:__s__give_a_chance_to_parent_process_to_create_it_n
mov dword [esp + 8], str.open_icon
mov dword [esp + 4], 0x40f000
mov dword [esp], 2
call fcn.00401580
mov eax, 0x8007007e
jmp 0x406c67
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call fcn.00401470
jmp 0x406df9
mov eax, str._invalid_
jmp 0x406df9
Function at 0x40e340
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40e3b0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40e43b
cmp ax, 9
je 0x40e428
cmp ax, 0x20
je 0x40e428
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp ax, 0x5c
je 0x40e490
cmp ax, 0x22
je 0x40e4a0
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40e43b
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x40e3e0
test esi, 1
jne 0x40e3e0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40e428
cmp ax, 0x20
je 0x40e428
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40e4b8
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040b660
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40e3fb
and dword [ebp - 0x54], 1
jne 0x40e3f4
xor esi, 1
jmp 0x40e3fb
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40e454
Function at 0x40e3b0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40e3b0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40e43b
cmp ax, 9
je 0x40e428
cmp ax, 0x20
je 0x40e428
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp ax, 0x5c
je 0x40e490
cmp ax, 0x22
je 0x40e4a0
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40e43b
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x40e3e0
test esi, 1
jne 0x40e3e0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40e428
cmp ax, 0x20
je 0x40e428
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40e4b8
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040b660
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40e3fb
and dword [ebp - 0x54], 1
jne 0x40e3f4
xor esi, 1
jmp 0x40e3fb
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40e454
Function at 0x40a4a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x40a4ec
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x40a4bb
jmp 0x40a4ec
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40a4dc
pop esi
pop ebp
ret

Function at 0x40b286
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40b2bb
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40b2e5
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40b2e5
test edi, edi
je 0x40b2b2
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40b2b2
test edi, edi
je 0x40b2ed
mov eax, edi
jmp 0x40b2b4
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40b2b4
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_rel_w32_d_000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040e711
add esp, 0xc
int3
Function at 0x40e745
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestFunction.exe_gMozillaPoisonSize], eax
call fcn.0040b286
pop ecx
mov ecx, dword [sym.TestFunction.exe_gMozillaPoisonSize]
mov dword [sym.TestFunction.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40e77d
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestFunction.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret