joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b09
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 0x407b4d
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 0x407b1c
jmp 0x407b4d
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x407b3d
pop esi
pop ebp
ret

Function at 0x408585
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 0x4085ba
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 0x4085e4
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x4085e4
test edi, edi
je 0x4085b1
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4085b1
test edi, edi
je 0x4085ec
mov eax, edi
jmp 0x4085b3
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4085b3
int3
Function at 0x40b15d
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.TestLinkedList.exe_gMozillaPoisonSize], eax
call fcn.00408585
pop ecx
mov ecx, dword [sym.TestLinkedList.exe_gMozillaPoisonSize]
mov dword [sym.TestLinkedList.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40b195
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestLinkedList.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x409d0a
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 0x409d4e
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 0x409d1d
jmp 0x409d4e
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x409d3e
pop esi
pop ebp
ret

Function at 0x40aae8
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 0x40ab1d
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 0x40ab47
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40ab47
test edi, edi
je 0x40ab14
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40ab14
test edi, edi
je 0x40ab4f
mov eax, edi
jmp 0x40ab16
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40ab16
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040df73
add esp, 0xc
int3
Function at 0x40dfa7
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.TestCeilingFloor.exe_gMozillaPoisonSize], eax
call fcn.0040aae8
pop ecx
mov ecx, dword [sym.TestCeilingFloor.exe_gMozillaPoisonSize]
mov dword [sym.TestCeilingFloor.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40dfdf
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestCeilingFloor.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x59552301
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x238567be
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x416c80
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x4171a0
test edx, edx
je 0x4171a0
call fcn.00416c97
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x4171e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.00416c80
mov edx, dword [esp + 0xc]
shl ecx, 4
test eax, eax
jne 0x417251
lea eax, [edx + ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
movups xmmword [edx], xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmmword [edx - 0x10], xmm1
cmp eax, edx
ja 0x417216
movups xmm0, xmmword [edx]
aesimc xmm0, xmm0
movups xmmword [edx], xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
xor eax, eax
ret

Function at 0x41b76f
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66c900
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x70a034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edi, [ebx + 4]
lea esi, [ebp + 0xc]
mov dword [ebx], eax
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x18]
push 0x6c88d0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebx + 0x10], 0
and dword [ebx + 0x14], 0
call fcn.004292cc
push 0x6d2e1f
lea ecx, [ebx + 0x30]
call fcn.004292cc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41c7a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c7fe
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41c7ef
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x41c7eb
cmp esi, ecx
jae 0x41c7ef
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x41c7d9
cmp esi, ecx
jb 0x41c7f3
xor eax, eax
jmp 0x41c7fd
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x424723
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x70a034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, dword [ebp + 8]
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42479a
cmp dword [ebp - 8], 1
je 0x424772
cmp dword [ebp - 8], 2
je 0x424772
push 0xd
pop eax
jmp 0x42479a
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x424794
test ecx, ecx
je 0x42478f
test cl, 1
jne 0x42476d
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x424794
jmp 0x42476d
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006255fe
mov esp, ebp
pop ebp
ret 0xc
Function at 0x430590
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
test edx, edx
jne 0x4305a4
xor eax, eax
jmp 0x4306c7
push ebx
mov eax, edx
xor edx, edx
push 3
pop ecx
div ecx
mov ecx, eax
mov ebx, edx
xor eax, eax
mov dword [ebp - 4], ecx
test ebx, ebx
mov dword [ebp - 8], ebx
setne al
add eax, ecx
xor ecx, ecx
shl eax, 2
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0064374e
mov edx, eax
mov dword [ebp - 0xc], edx
pop ecx
test edx, edx
je 0x4306c6
cmp dword [ebp - 4], 0
push esi
mov esi, edx
jbe 0x430651
mov ebx, dword [ebp - 4]
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
movzx edx, byte [edi + 2]
add edi, 3
shl eax, 8
shl ecx, 0x10
or ecx, eax
or edx, ecx
mov eax, edx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__Hm]
mov byte [esi], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__Hm]
mov byte [esi + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__Hm]
mov byte [esi + 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__Hm]
mov byte [esi + 3], al
add esi, 4
sub ebx, 1
jne 0x4305f0
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp ebx, 1
jne 0x43067d
movzx ecx, byte [edi]
mov eax, ecx
and ecx, 3
shr eax, 2
shl ecx, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__Hm]
mov byte [esi], al
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__Hm]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
jmp 0x4306bd
cmp ebx, 2
jne 0x4306c0
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0xa
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__Hm]
mov byte [esi], al
mov eax, ecx
shr eax, 4
and eax, 0x3f
and ecx, 0xf
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__Hm]
mov byte [esi + 1], al
mov al, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__Hm]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
mov byte [esi], 0
mov eax, edx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x433f6c
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x4340d5
mov edx, 0x10000000
cmp eax, 0x7c
je 0x4340d5
cmp eax, 0x29
jne 0x433fa5
cmp dword [esi + 0x10], 0
jne 0x4340d5
test dword [esi + 0x50], edx
je 0x4340db
cmp eax, 0x2e
jne 0x433fc0
push 5
lea ecx, [esi + 0x24]
call fcn.004341cf
mov ecx, esi
call fcn.00433f47
jmp 0x4340bf
cmp eax, 0x5c
jne 0x43401d
mov ecx, esi
call fcn.00433f47
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x433ff3
cmp word [esi + 0x48], 0x62
jne 0x433ff3
push 4
lea ecx, [esi + 0x24]
call fcn.004341cf
mov ecx, esi
call fcn.00433f47
jmp 0x4340c6
test eax, eax
je 0x434011
cmp word [esi + 0x48], 0x42
jne 0x434011
push 4
lea ecx, [esi + 0x24]
call fcn.004341cf
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x433fe7
mov ecx, esi
call fcn.00434541
jmp 0x4340bf
cmp eax, 0x5b
jne 0x434041
mov ecx, esi
call fcn.00433f47
mov ecx, esi
call fcn.004344f5
cmp dword [esi + 0x4c], 0x5d
je 0x433fb4
push 4
jmp 0x4340dd
cmp eax, 0x28
jne 0x434065
mov ecx, esi
call fcn.00433f47
mov ecx, esi
call fcn.00434639
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x4340db
mov ecx, esi
call fcn.00433f47
jmp 0x4340bb
cmp eax, 0x5e
jne 0x434071
push 2
jmp 0x433fdf
cmp eax, 0x24
jne 0x43407d
push 3
jmp 0x433fdf
cmp eax, 0x2a
je 0x4340d1
cmp eax, 0x2b
je 0x4340d1
cmp eax, 0x3f
je 0x4340d1
cmp eax, 0x7b
je 0x4340d1
cmp eax, 0x7d
jne 0x43409b
test dword [esi + 0x50], edx
je 0x4340cd
cmp eax, 0x5d
jne 0x4340a5
test dword [esi + 0x50], edx
je 0x43403a
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004347ef
mov ecx, esi
call fcn.00433f47
mov bl, 1
test bl, bl
je 0x4340c6
mov ecx, esi
call fcn.0043472b
mov cl, 1
jmp 0x433f73
push 6
jmp 0x4340dd
push 0xa
jmp 0x4340dd
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.0060fa5c
int3
Function at 0x436b8b
Capabilities:
Check for time delay via gettickcount
Delete file
Move file

Disassembly:
push 0x34
mov eax, 0x66e6d5
call fcn.006267e9
cmp dword [0x71c9c8], 0
je 0x436d22
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x71cd84]
cmp eax, 0x927c0
jb 0x436d22
mov edi, 0x400000
cmp dword [0x71c9b8], edi
jg 0x436d22
push 0x800000
push 0x71c9b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebx, eax
cmp ebx, edi
je 0x436c0e
test ebx, ebx
je 0x436c0e
cmp ebx, edi
jle 0x436bf6
push 0xff800000
jmp 0x436d17
lea eax, [ebx - 1]
cmp eax, 0x3ffffe
ja 0x436d22
push 0xffc00000
jmp 0x436d17
call esi
cmp dword [0x70aa9c], 0xffffffff
mov dword [0x71cd84], eax
je 0x436d0f
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
xor esi, esi
push eax
push esi
mov edi, 0x71c9d0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov eax, dword [0x70aa9c]
cmp dword [ebp - 0x24], esi
jb 0x436d0f
ja 0x436c58
cmp dword [ebp - 0x20], eax
jb 0x436d0f
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.0043782b
push str..old
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.004375a3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [0x71c9c8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
mov dword [0x71c9c8], esi
push 0x71c9d0
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push ecx
push ecx
push 0x80
push 2
push ecx
push 0x40000000
push 0x71c9d0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00419a90
test eax, eax
js 0x436cfa
push 2
push ecx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00436637
cmp byte [0x71c9cc], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [0x71c9c8], eax
je 0x436d04
push str.NewFile
push esi
push esi
call fcn.00436fb2
add esp, 0xc
jmp 0x436cfd
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x436d04
push esi
call edi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0042470b
mov eax, 0xff800000
sub eax, ebx
push eax
push 0x71c9b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
call fcn.00626793
ret
Function at 0x436d28
Capabilities:
Delete file
Move file

Disassembly:
push 0x38
mov eax, 0x66e71a
call fcn.006267e9
mov edi, ecx
mov dword [ebp - 0x14], edi
push 0x71c9bc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x436ea5
xor ebx, ebx
mov dword [0x70aa9c], 0x400000
mov byte [ebp - 0x41], bl
mov dword [ebp - 0x1c], ebx
call fcn.00424649
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041b814
mov dword [ebp - 4], ebx
test edi, edi
jne 0x436da1
lea ecx, [ebp - 0x14]
call fcn.00436a53
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00430a26
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0042470b
mov esi, dword [ebp - 0x1c]
mov edi, esi
mov dword [ebp - 0x14], esi
jmp 0x436da4
mov esi, dword [ebp - 0x1c]
push edi
call fcn.00643138
push edi
push 0x6d39f4
push 0x104
push 0x71c9d0
call fcn.00437795
add esp, 0x14
lea edi, [ebp - 0x40]
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [ebp - 0x24], ebx
ja 0x436de9
cmp dword [ebp - 0x20], 0x400000
jb 0x436e2a
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.0043782b
push 2
pop eax
push str..old
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], al
call fcn.004375a3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 0x41], 1
call fcn.0042470b
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
cmp byte [ebp - 0x41], 0
push ecx
push ecx
push 0x80
push 4
pop eax
push 2
pop ecx
cmovne eax, ecx
mov byte [ebp - 4], 3
push eax
push ecx
push 0x40000000
push edi
lea ecx, [ebp - 0x18]
call fcn.00419a90
test eax, eax
js 0x436e8f
push 2
pop eax
push eax
push ecx
push ecx
lea ecx, [ebp - 0x18]
call fcn.00436637
cmp byte [0x71c9cc], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [0x71c9c8], eax
je 0x436e9d
push str.BEGAIN_n
push ebx
push ebx
call fcn.00436fb2
add esp, 0xc
jmp 0x436e92
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x436e9d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.0042470b
call fcn.00626793
ret
Function at 0x436eab
Capabilities:
Write file on windows

Disassembly:
push 0x18
mov eax, 0x66e75f
call fcn.006267e9
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.00424649
push eax
lea ecx, [ebp - 0x14]
call fcn.0041b814
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x14]
push str.:__Tid_d_
push eax
call fcn.0043772c
add esp, 0xc
push 0x6d3a80
call fcn.00641b80
pop ecx
push eax
push ecx
mov ecx, esi
call fcn.00437621
lea ecx, [ebp - 0x24]
call fcn.00436b18
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.004372e8
pop ecx
push esi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004372e8
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00437405
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0042470b
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0042470b
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0042470b
call fcn.00436b8b
cmp dword [0x71c9b8], 0x400000
jge 0x436fa1
mov edi, 0x71c9b8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 0x400000
jge 0x436f9a
mov ecx, dword [0x71c9c8]
test ecx, ecx
je 0x436f9a
mov eax, dword [esi]
lea edx, [ebp - 0x18]
push ebx
push edx
mov dword [ebp - 0x18], ebx
push dword [eax - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0042470b
call fcn.00626793
ret
Function at 0x437936
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push 0x49c
mov eax, 0x66e8bb
call fcn.006267e9
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x43c], edi
xor ebx, ebx
mov dword [ebp - 0x448], 0xc
push ebx
lea eax, [ebp - 0x448]
mov dword [ebp - 0x4a8], ebx
push eax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x444], ebx
push eax
lea eax, [ebp - 0x438]
mov dword [ebp - 0x440], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4379a2
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
jmp 0x437b72
push 0x40
lea eax, [ebp - 0x4a0]
push ebx
push eax
call fcn.0063e3a0
xor eax, eax
mov dword [ebp - 0x4a4], 0x44
add esp, 0xc
mov word [ebp - 0x474], ax
cmp dword [esi + 0x14], 0x10
xorps xmm0, xmm0
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x478], 0x101
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
movups xmmword [ebp - 0x458], xmm0
jb 0x4379f5
mov esi, dword [esi]
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x4a4]
push eax
push ebx
push ebx
push 0x10
push 1
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x437a32
push dword [ebp - 0x43c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x438]
call esi
jmp 0x437991
mov dword [ebp - 0x420], 0xf
mov dword [ebp - 0x424], ebx
mov byte [ebp - 0x434], bl
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push 0x32
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
jmp 0x437af1
mov ecx, dword [ebp - 0x418]
test ecx, ecx
je 0x437b1a
push 0
mov edx, 0x3ff
lea eax, [ebp - 0x41c]
push eax
cmp ecx, edx
mov eax, edx
cmovb eax, ecx
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x438]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x437b1a
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x437b1a
cmp eax, 0x400
jae 0x437b7a
mov byte [ebp + eax - 0x414], 0
cmp byte [ebp - 0x414], 0
jne 0x437ad1
xor eax, eax
jmp 0x437ade
lea eax, [ebp - 0x414]
push eax
call fcn.00641b80
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x434]
call fcn.00423950
xor ecx, ecx
lea eax, [ebp - 0x418]
push ecx
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x438]
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x418], ecx
call esi
test eax, eax
jne 0x437a6c
test bl, bl
je 0x437a51
push dword [ebp - 0x43c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x438]
call esi
push dword [ebp - 0x458]
call esi
push dword [ebp - 0x454]
call esi
xor ebx, ebx
mov dword [edi + 0x14], 0xf
lea eax, [ebp - 0x434]
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
mov byte [edi], bl
call fcn.00428f2c
push ebx
push 1
lea ecx, [ebp - 0x434]
call fcn.00429656
mov eax, edi
call fcn.00626793
ret
call fcn.00625c6a
int3
Function at 0x43853c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x70a034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0063e3a0
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
push str.GetPhysicallyInstalledSystemMemory
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x438585
lea ecx, [ebp - 0x10]
push ecx
call eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov edx, dword [ebp - 0xc]
or ecx, edx
je 0x43859a
shrd eax, edx, 0xa
shr edx, 0xa
jmp 0x4385b8
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006255fe
mov esp, ebp
pop ebp
ret