joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a300
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46c7c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x495f34]
xor eax, esp
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x80]
push 4
xor ebp, ebp
push str._tmp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebp
mov byte [esp + 0x40], 0
call fcn.00406060
push 0x104
mov dword [esp + 0x7c], ebp
call fcn.00451d0e
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
add esp, 4
mov esi, eax
push esi
push 0x104
call ebx
mov edi, eax
cmp edi, ebp
jne 0x42a389
push 3
push 0x470268
jmp 0x42a3c1
cmp edi, 0x104
jb 0x42a3b1
push esi
call fcn.00453fec
lea ebp, [edi + 1]
push ebp
call fcn.00451d0e
add esp, 8
mov esi, eax
push esi
push ebp
call ebx
mov edi, eax
cmp edi, ebp
jae 0x42a391
xor ebp, ebp
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a3b6
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x3c]
call fcn.00406060
push esi
call fcn.00453fec
add esp, 4
push 0x44f980
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x58]
call fcn.00450120
push 0x44f980
mov bl, 1
push str.libFNP_events.log
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], bl
call fcn.00450180
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 2
call fcn.00450230
mov eax, dword [esp + 0x30]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x78], bl
jb 0x42a42f
mov edx, dword [esp + 0x1c]
push edx
call fcn.00452af1
add esp, 4
mov edi, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x54]
call fcn.0044f990
cmp dword [esp + 0x68], esi
jb 0x42a450
mov eax, dword [esp + 0x54]
push eax
call fcn.00452af1
add esp, 4
cmp dword [esp + 0x4c], esi
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebp
mov byte [esp + 0x54], 0
jb 0x42a474
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00452af1
add esp, 4
mov ecx, dword [esp + 0x70]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x60]
pop ebx
xor ecx, esp
call fcn.004530e5
add esp, 0x6c
ret
Function at 0x434410
Capabilities:
Hash data using sha1

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x18
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
mov dword [edx + 0x10], 0xc3d2e1f0
pop edi
ret
Function at 0x435ca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x160
mov ecx, dword [esp + 0x170]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
push ebx
push ebp
mov dword [ecx + 0x18], eax
push esi
mov dword [ecx + 0x1c], eax
push edi
mov dword [ecx + 0x20], eax
mov byte [esp + 0x94], al
lea edx, [esp + 0xc0]
push edx
mov edx, dword [esp + 0x180]
mov ecx, 0xa
mov esi, 0x471af8
lea edi, [esp + 0x9c]
lea eax, [esp + 0x11c]
push eax
mov eax, dword [esp + 0x17c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x180]
push ecx
push edx
push eax
xor ebp, ebp
call fcn.00436e90
mov ecx, 0xb
lea esi, [esp + 0xd4]
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb
lea esi, [esp + 0x100]
lea edi, [esp + 0x50]
add esp, 0x14
mov ebx, eax
rep movsd dword es:[edi], dword [esi]
nop
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x435d54
mov eax, dword [esp + 0x40]
test eax, eax
je 0x435e08
test byte [esp + 0x18], 1
je 0x435d96
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x98]
push edx
mov eax, ecx
push eax
call fcn.00436db0
mov edx, dword [esp + 0x18c]
mov ecx, ebp
shr ecx, 5
or ebx, eax
lea eax, [edx + ecx*4]
mov ecx, ebp
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, dword [eax]
add esp, 0xc
xor ecx, edx
mov dword [eax], ecx
mov al, byte [esp + 0x10]
lea ecx, [esp + 0x6c]
push ecx
push 0x10
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x74], al
mov eax, dword [esp + 0x20]
push 1
push eax
lea ecx, [esp + 0x2c]
push ecx
inc ebp
call fcn.004394c0
mov eax, dword [esp + 0x18c]
add esp, 0x18
lea edx, [esp + 0x10]
push edx
test eax, eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x40]
push eax
push ecx
je 0x435de0
call fcn.00436d20
jmp 0x435de5
call fcn.00436db0
mov ecx, 0xb
lea esi, [esp + 0x74]
lea edi, [esp + 0x48]
or ebx, eax
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x48]
add esp, 0xc
xor al, 1
mov byte [esp + 0x3c], al
jmp 0x435d40
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x160
ret
Function at 0x4367a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1b8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1cc]
push edi
xor eax, eax
mov ecx, 0x16
lea edi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1d8]
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov byte [esp + 0x94], al
mov ecx, 0xa
mov esi, 0x471af8
lea edi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xc0]
push eax
mov eax, dword [esp + 0x1d8]
lea ecx, [esp + 0x174]
push ecx
mov ecx, dword [esp + 0x1d4]
lea edx, [esp + 0x120]
push edx
push eax
push ecx
call fcn.00436e90
mov ecx, 0xb
lea esi, [esp + 0xd4]
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb
lea esi, [esp + 0x100]
lea edi, [esp + 0x50]
add esp, 0x14
mov ebp, eax
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov eax, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0x40]
jne 0x436855
test eax, eax
je 0x436942
mov cl, byte [esp + 0x18]
test cl, 1
je 0x4368ce
shr cl, 1
test eax, eax
je 0x436879
movzx eax, word [esp + 0x44]
shl eax, 1
sar eax, 1
xor al, cl
mov cl, byte [esp + 0x10]
and al, 1
xor al, cl
jmp 0x436884
mov al, byte [esp + 0x10]
and cl, 1
xor cl, al
mov al, cl
xor edx, edx
test al, al
setne dl
mov byte [esp + 0x94], al
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
lea edx, [edx + edx + 1]
mov esi, edx
mov edx, eax
push edx
call fcn.00436db0
mov ecx, dword [esp + 0x1e4]
or ebp, eax
mov eax, ebx
shr eax, 5
lea eax, [ecx + eax*4]
mov ecx, ebx
and ecx, 0x1f
shl esi, cl
mov ecx, dword [eax]
add esp, 0xc
xor ecx, esi
mov dword [eax], ecx
mov dl, byte [esp + 0x10]
lea eax, [esp + 0x6c]
push eax
push 0x10
lea ecx, [esp + 0x78]
push ecx
mov byte [esp + 0x74], dl
mov edx, dword [esp + 0x20]
push 1
push edx
lea eax, [esp + 0x2c]
push eax
add ebx, 2
call fcn.004394c0
mov eax, dword [esp + 0x1e4]
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x6c]
test eax, eax
push edx
lea eax, [esp + 0x44]
push eax
je 0x43691a
call fcn.00436d20
jmp 0x43691f
call fcn.00436db0
mov ecx, 0xb
lea esi, [esp + 0x74]
lea edi, [esp + 0x48]
or ebp, eax
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x48]
add esp, 0xc
xor al, 1
mov byte [esp + 0x3c], al
jmp 0x436841
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1b8
ret
Function at 0x444430
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d348
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
push 0xf0000000
push 1
push 0
mov esi, ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4444a6
push 0x13
push str.CryptAcquireContext
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], eax
mov byte [esp + 0x10], al
call fcn.00406060
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], 0
call fcn.004442a0
push 0x492894
lea ecx, [esp + 0x24]
push ecx
call fcn.00453fb2
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x54
ret

Function at 0x4444e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d376
push eax
mov al, byte [0x497ae0]
mov dword fs:[0], esp
sub esp, 0x48
test al, 1
jne 0x44452f
or dword [0x497ae0], 1
mov ecx, 0x497adc
mov dword [esp + 0x50], 0
call fcn.00444430
push 0x46e230
call fcn.004530a2
add esp, 4
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [0x497adc]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x44458e
push 0xe
push 0x473f80
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
call fcn.00406060
lea eax, [esp]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], 1
call fcn.004442a0
push 0x492894
lea ecx, [esp + 0x20]
push ecx
call fcn.00453fb2
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret 8
Function at 0x4447a0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax]
mov eax, dword [esp + 8]
mov ecx, dword [ecx + 0x88]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
add ecx, 8
mov edi, 8
mov edi, edi
mov ebx, dword [ecx - 8]
mov eax, esi
ror eax, 4
xor eax, ebx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x475270]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x475470]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x475670]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x475870]
mov eax, dword [ecx - 4]
xor edx, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x475370]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x475570]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x475770]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x475970]
xor edx, ebx
mov ebx, dword [ecx]
mov eax, edx
ror eax, 4
xor eax, ebx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x475270]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x475470]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x475670]
and eax, 0x3f
mov ebp, dword [eax*4 + 0x475870]
mov eax, dword [ecx + 4]
xor ebx, ebp
xor esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x475370]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x475570]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x475770]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x475970]
xor esi, ebx
add ecx, 0x10
dec edi
jne 0x4447c0
mov ecx, dword [esp + 0x14]
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x446d00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
sub eax, ebp
push edi
mov dword [esp + 0x20], 0xf5
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 4
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
jmp 0x446d31
mov ebx, dword [esp + 0x10]
mov edi, 3
sub edi, ebx
xor esi, esi
shl edi, 3
lea ebx, [ebx + 0x474650]
mov edx, dword [esp + 0x1c]
xor eax, eax
mov al, byte [ebx]
mov ecx, 3
sub ecx, esi
shl ecx, 3
push eax
mov eax, dword [edx + ebp]
shr eax, cl
lea ecx, [esp + 0x24]
push eax
call fcn.0044dc90
movzx edx, al
mov eax, dword [esp + 0x14]
mov ecx, edi
shl edx, cl
add ebx, 4
xor eax, edx
inc esi
cmp esi, 4
mov dword [esp + 0x14], eax
jl 0x446d43
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 4
mov dword [esp + 0x10], eax
jl 0x446d2d
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
add ebp, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x446d21
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x44ac20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46d4f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push esi
push str.:_Nonblocking_input_is_not_implemented_by_this_object.
mov esi, ecx
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00429e90
add esp, 0xc
push eax
push 0
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0040c640
cmp dword [esp + 0x1c], 0x10
mov dword [esi], 0x46fb98
jb 0x44ac7e
mov edx, dword [esp + 8]
push edx
call fcn.00452af1
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esi], 0x4746ec
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x44c7b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
mov ecx, eax
or ecx, esi
or ecx, edx
test cl, 3
jne 0x44c7e0
shr edx, 2
test edx, edx
jbe 0x44c7f9
mov ecx, esi
sub ecx, eax
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x44c7d3
pop esi
ret
test edx, edx
jbe 0x44c7f9
mov ecx, esi
sub ecx, eax
mov esi, edx
lea ebx, [ebx]
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x44c7f0
pop esi
ret

Function at 0x450250
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d790
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.0044fa70
mov ecx, dword [eax + 0x18]
mov ebx, 0x10
cmp ecx, ebx
jb 0x45028c
mov eax, dword [eax + 4]
jmp 0x45028f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp dword [esp + 0x40], ebx
jb 0x4502ab
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00452af1
add esp, 4
cmp esi, 0xffffffff
jne 0x4502f6
push 0x1f
xor ebx, ebx
push str.boost::filesystem::is_directory
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00406060
mov dword [esp + 0x68], ebx
call sub.KERNEL32.dll_GetLastError
push eax
push edi
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x50]
call fcn.00451840
push eax
mov byte [esp + 0x6c], 1
call fcn.0044f950
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
shr eax, 4
pop esi
and eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret
Function at 0x450460
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d800
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
push edi
mov edi, dword [esp + 0x88]
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
jb 0x45048e
mov eax, dword [esi]
jmp 0x450490
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4504d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45059b
cmp eax, 0x57
je 0x45059b
cmp eax, 0x15
je 0x45059b
cmp eax, 3
je 0x45059b
cmp eax, 0x7b
je 0x45059b
cmp eax, 0x35
je 0x45059b
push edi
call fcn.00450250
add esp, 4
test al, al
mov eax, dword [edi + 0x18]
je 0x45053a
cmp eax, 0x10
jb 0x4504ef
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x450588
push str.boost::filesystem::remove
lea ecx, [esp + 0xc]
call fcn.00406610
mov dword [esp + 0x80], 0
call sub.KERNEL32.dll_GetLastError
push eax
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x4c]
call fcn.00451840
push eax
mov byte [esp + 0x84], 1
call fcn.0044f950
cmp eax, 0x10
jb 0x450541
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x450588
push str.boost::filesystem::remove
lea ecx, [esp + 0x28]
call fcn.00406610
mov dword [esp + 0x80], 2
call sub.KERNEL32.dll_GetLastError
push eax
push edi
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x68]
call fcn.00451840
push eax
mov byte [esp + 0x84], 3
call fcn.0044f950
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x78]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x7c
ret

Function at 0x4505b0
Capabilities:
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d820
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
mov edi, dword [esp + 0x54]
mov ecx, dword [edi + 0x18]
mov eax, 0x10
cmp ecx, eax
jb 0x4505df
mov ecx, dword [edi + 4]
jmp 0x4505e2
lea ecx, [edi + 4]
mov esi, dword [esp + 0x50]
cmp dword [esi + 0x18], eax
jb 0x4505f0
mov eax, dword [esi + 4]
jmp 0x4505f3
lea eax, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x450648
push 0x19
push str.boost::filesystem::rename
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
call fcn.00406060
mov dword [esp + 0x48], 0
call sub.KERNEL32.dll_GetLastError
push eax
push edi
push esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
call fcn.00451980
push eax
mov byte [esp + 0x4c], 1
call fcn.0044f950
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x450af0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d8db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x450c33
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.00450a00
lea eax, [ebp - 0xb0]
push str.2AC1A572DB6944B0A65C38C4140AF2F4
push eax
mov dword [ebp - 4], 0
call fcn.00426580
mov esi, eax
add esp, 8
test esi, esi
je 0x450b61
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
add eax, esi
mov edx, dword [eax + 0x10]
and edx, 0xfffff9ff
or edx, 0x800
push edi
mov dword [eax + 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call fcn.00450720
mov ecx, eax
call fcn.00450890
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00450ad0
mov ecx, dword [eax + 0x18]
mov ebx, 0x10
cmp ecx, ebx
jb 0x450ba9
mov eax, dword [eax + 4]
jmp 0x450bac
add eax, 4
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
jb 0x450bcd
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00452af1
add esp, 4
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x450c07
mov byte [ebp - 4], 1
call dword [ebp + 8]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.00450660
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x47000c
call fcn.0045252b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46d908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x495f34]
xor eax, esp
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov ecx, dword [esp + 0x48]
push ebx
push ebx
lea eax, [esp + 0x14]
push eax
push 0x400
push ecx
push ebx
push 0x1300
mov dword [esp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0xc]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450ed0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.004275e0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x450fb8
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x30]
cmp ebp, 0x10
mov eax, ebx
jae 0x450f0f
lea eax, [esp + 0x1c]
cmp byte [eax + ecx - 1], 0xa
je 0x450f2c
cmp ebp, 0x10
mov eax, ebx
jae 0x450f21
lea eax, [esp + 0x1c]
cmp byte [eax + ecx - 1], 0xd
jne 0x450fb5
lea edi, [ecx - 1]
or esi, 0xffffffff
cmp ecx, edi
jae 0x450f4b
lea ecx, [esp + 0x18]
call fcn.00451d13
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
mov eax, ecx
sub eax, edi
cmp eax, 0xffffffff
jae 0x450f5a
mov esi, eax
test esi, esi
jbe 0x450fa9
cmp ebp, 0x10
mov edx, ebx
jae 0x451008
lea edx, [esp + 0x1c]
mov ecx, edx
sub eax, esi
add edx, edi
push eax
add edx, esi
push edx
add ecx, edi
push ecx
call fcn.004539f0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub eax, esi
add esp, 0xc
cmp ecx, 0x10
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
jae 0x450f99
lea ecx, [esp + 0x1c]
mov byte [ecx + eax], 0
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
test ecx, ecx
mov edi, dword [esp + 0x14]
jne 0x450f04
xor ebx, ebx
pop ebp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov byte [edi + 4], 0
call fcn.00405f70
cmp dword [esp + 0x2c], 0x10
jb 0x450fe9
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00452af1
add esp, 4
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop ebx
xor ecx, esp
call fcn.004530e5
add esp, 0x34
ret
mov ecx, ebx
jmp 0x450f6b
Function at 0x451c70
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x451ce6
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x451ce6
mov dl, byte [ecx]
cmp dl, 0xbc
push ebx
push esi
jne 0x451cb7
cmp byte [ecx + 1], 0xbd
jne 0x451cb7
lea edx, [ecx + 2]
mov esi, edi
sub esi, edx
mov bl, byte [edx]
mov byte [esi + edx], bl
inc edx
test bl, bl
jne 0x451c97
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x451ca4
pop esi
sub ecx, eax
pop ebx
mov byte [ecx + edi - 4], dl
mov eax, edi
pop edi
ret
xor dl, 0x23
mov byte [edi], dl
mov al, byte [ecx]
xor esi, esi
test al, al
je 0x451cdc
mov edx, edi
sub edx, ecx
mov al, byte [ecx + 1]
mov bl, byte [edx + ecx]
inc esi
inc ecx
dec al
xor al, bl
mov byte [edx + ecx], al
cmp byte [ecx], 0
jne 0x451cc8
mov byte [esi + edi], 0
pop esi
pop ebx
mov eax, edi
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x453d2d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004535d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x453dc8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x497df8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x453dc8
cmp eax, 1
je 0x453de9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x453dc8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x453d95
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x453dc4
xor eax, eax
inc eax
jmp 0x453e08
cmp edi, eax
jae 0x453dcc
xor eax, eax
jmp 0x453e08
cmp eax, esi
jae 0x453dd3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x497df8]
jmp 0x453dec
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret